Page 1 of 1

OpenMusic() and Link option

Posted: Mon Mar 19, 2012 11:47 pm
by NubeCheCorre
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?

Re: OpenMusic() and Link option

Posted: Tue Mar 20, 2012 11:48 am
by stefff285
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

Re: OpenMusic() and Link option

Posted: Tue Mar 20, 2012 1:31 pm
by NubeCheCorre
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 ;-)

Re: OpenMusic() and Link option

Posted: Tue Mar 20, 2012 3:12 pm
by Juan Carlos
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.

Re: OpenMusic() and Link option

Posted: Tue Mar 20, 2012 9:03 pm
by NubeCheCorre
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 :)

Re: OpenMusic() and Link option

Posted: Tue Mar 20, 2012 10:36 pm
by airsoftsoftwair
No, you cannot use the 'Link' tag with OpenMusic(). You need to use the preprocessor command @MUSIC for this.

Re: OpenMusic() and Link option

Posted: Fri Mar 23, 2012 10:08 pm
by Bugala
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.

Re: OpenMusic() and Link option

Posted: Mon Mar 26, 2012 10:37 pm
by NubeCheCorre
that's what i mean, thank you :-)