OpenMusic() and Link option

Discuss any general programming issues here
Post Reply
User avatar
NubeCheCorre
Posts: 56
Joined: Mon Mar 19, 2012 1:24 am
Contact:

OpenMusic() and Link option

Post by NubeCheCorre » Mon Mar 19, 2012 11:47 pm

As title said, i'd like to know if i can use the link option with the function OpenMusic. It is available with the preprocessor command @MUSIC but it seems not working with the function.. as i like to manually open and close files i don't wont to make my exe bigger than normal.. If i compile by hand the program and i use the no linking option, Hollywood doesn't link anything right?

User avatar
stefff285
Posts: 230
Joined: Sat Mar 03, 2012 12:59 pm
Location: dijon / france
Contact:

Re: OpenMusic() and Link option

Post by stefff285 » Tue Mar 20, 2012 11:48 am

hello hello

welcome !

as i forgot to welcome you ^^

i'm a beginner too but as i did as this

@music***** with the number and name of your music
playmusic******

as this it work for me

you can make
@sample
playsample

too

hollywood is cool for scripting, you will see in time :))))

regards

User avatar
NubeCheCorre
Posts: 56
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: OpenMusic() and Link option

Post by NubeCheCorre » Tue Mar 20, 2012 1:31 pm

hi :-)

yes i know thanks, but i was asking if i can set the link parameter with the command OpenMusic() to avoid linking the music to the executable in order to have a lighter exe ;-)

User avatar
Juan Carlos
Posts: 507
Joined: Mon Sep 06, 2010 1:02 pm
Contact:

Re: OpenMusic() and Link option

Post by Juan Carlos » Tue Mar 20, 2012 3:12 pm

With OpenMusic(N, "Name / drawer") example: OpenMusic(1, "Turrican2_Remix.mod") and PlayMusic(1) you play the music file that it must be join the executable in a drawer is better if you have much mp3 files or ogg for example, only to give the path correctly with OpenMusic and to make an installer where it copy the executable and the sound files, or copy all in a single mode, even with a external file you can change the music only rename other file.

User avatar
NubeCheCorre
Posts: 56
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: OpenMusic() and Link option

Post by NubeCheCorre » Tue Mar 20, 2012 9:03 pm

ok thanks but what i am asking is if i can set the parameter link also for this command to avoid linking the music to the executable :)

User avatar
airsoftsoftwair
Posts: 3149
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OpenMusic() and Link option

Post by airsoftsoftwair » Tue Mar 20, 2012 10:36 pm

No, you cannot use the 'Link' tag with OpenMusic(). You need to use the preprocessor command @MUSIC for this.

Bugala
Posts: 819
Joined: Sun Feb 14, 2010 7:11 pm

Re: OpenMusic() and Link option

Post by Bugala » Fri Mar 23, 2012 10:08 pm

Id i understood right, what you are wanting to do is to just play music without that piece of music being added to your executable.

Just dont use @MUSIC at all, but in your code simply use OpenMusic(), and it will simply open the music file without adding it to your executable.

But do remember when distributing that executable that if you are opening for example "music/musicfile.ogg" that "Music" folder and file "musicfile.ogg" in that folder need to exist or your program will fail to open that music file.

User avatar
NubeCheCorre
Posts: 56
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: OpenMusic() and Link option

Post by NubeCheCorre » Mon Mar 26, 2012 10:37 pm

that's what i mean, thank you :-)

Post Reply