View previous topic :: View next topic |
Author |
Message |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Tue Jun 14, 2011 7:35 pm Post subject: The Music of my Discontent |
|
|
Plotscripting is getting fickle with me.
play song(songnumber), play song(songname), play song:songname, play song:(songname), and play song:(songnumber) do not work!
Do you know the proper commands to stop a song and play another? Also, is there a command to use a door? |
|
Back to top |
|
 |
Rimudora Psychopath yandere Halloween 2006 Creativity Winner


Joined: 26 May 2005 Posts: 335
|
Posted: Tue Jun 14, 2011 7:40 pm Post subject: |
|
|
play song (number) should work no matter what. (make sure you're using a valid song number).
play song (song:songname) only works if you've exported an HSI file for your game and included it in your script.
the command for using a door is "use door(door number)". |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Jun 14, 2011 11:57 pm Post subject: |
|
|
"stop song" stops the music. You don't have to stop the current song before playing another, it's automatic.
Try looking in the .hsi (with a text editor) if you're confused as to the actual names of the exported constants. Note that the "song:" prefix has no special meaning at all, it's just part of the name. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Wed Jun 15, 2011 7:04 am Post subject: |
|
|
Nope, still refusing to play Arie_Duet. Heres the script itself:
Quote: | include, plotscr.hsd
include, Blackandwhite.hsi
#----------------------------------------
Plotscript, Graybegginings, begin.
suspend map music
suspend player
suspend box advance
camera follows NPC(6)
play song (1)
show text box(2)
wait(55)
advance text box
show text box(3)
wait(55)
advance text box
show text box(4)
wait(55)
advance text box
pan camera (down,23)
wait for camera
show text box(5)
wait(55)
resume player
resume box advance
stop song
resume map music
advance text box
end |
|
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Jun 15, 2011 7:30 am Post subject: |
|
|
Your script looks good. The only problem I see is that the "suspend map music" command is pointless here. That only matters for stopping the music from changing when you move to a different map, and since this script all happens on one map, there is no reason to suspend map music.
This is correct.
How many songs do you have imported? What is the ID number of each song?
What is the ID number of the map music? |
|
Back to top |
|
 |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Wed Jun 15, 2011 9:31 am Post subject: |
|
|
Heres the songlist.
Quote: | 1,song:Arie_Duet
2,song:ClorindaFalseCartlemmy
3,song:Don't_Do_Shrooms
4,song:Sabre_Dance
5,song:The_Floating_Palace
6,song:Victory3
7,song:Verse3
8,song:BattleForJade
9,song:Bossmusic
10,song:Cavemusic
11,song:MrTriangletheme
12,song:Sadforest
13,song:Toccata and Broaste
14,song:Forest
15,song:JeremyJacobsHelheim
16,song:JadeWorld
17,song:NightmareAnimus
18,song:TheElementsAnimus
19,song:Panotipican
20,song:Rain
21,song:Rain2 |
The list will increase in time. I also had to convert the file to MSoft word, but in time I will convert it back. [/quote] |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Jun 15, 2011 9:40 am Post subject: |
|
|
So song 0 is blank?
What song does the map use?
How does Arie Duet sound in the music import menu in custom?
If you try changing the map music to Arie Duet in the map editor in custom, does Arie Duet play okay in game?
Master K wrote: | The list will increase in time. I also had to convert the file to MSoft word, but in time I will convert it back. |
Converted to MS word? That is strange. But as long as you save the word file with a different filename than the original, that won't break anything. |
|
Back to top |
|
 |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Wed Jun 15, 2011 10:15 am Post subject: |
|
|
I changed it to MS so I could read it.
Song 0 is blank.
The map uses song 14.
Arie Duet seems ok on the import menu.
Arie Duet plays good ingame. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Jun 15, 2011 10:39 am Post subject: |
|
|
Strange... Everything seems correct, but it still doesn't work.
The only other thing I can think of is that maybe one of the text boxes is stopping the music. I see that text box 2 is displayed right after the song is played. If text box 2 was configured to play your blank song 0, that could explain what is happening. Check the "Box Appearance" menu for text box 2, and make sure that Music: is set to "NONE" and not set to song 0. |
|
Back to top |
|
 |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Wed Jun 15, 2011 10:50 am Post subject: |
|
|
Nope, text box is set to no music.
This is the issue of my discontent! |
|
Back to top |
|
 |
mswguest Guest
|
Posted: Wed Jun 15, 2011 11:50 am Post subject: |
|
|
What DOES happen when this script is run during the game? Does the map music simply continue playing? Does everything else happen (the textboxes, the NPC movement, etc)? There were some problems with blank BAMs being converted in the past; does it fix the problem if you import some random (non-blank) song to be song number zero?
Are there any other scripts going on? Map autorun script? On keypress script? |
|
Back to top |
|
 |
Master K Ex-Akatsuki Masked Ninja

Joined: 11 Jun 2011 Posts: 57 Location: Everywhere and Nowhere. Muahaha!
|
Posted: Wed Jun 15, 2011 12:23 pm Post subject: |
|
|
I don't know yet. The script won't let me run it. It says it expected top level declaration with playsong, but got a hardcoded function... |
|
Back to top |
|
 |
mswguest Guest
|
Posted: Wed Jun 15, 2011 12:43 pm Post subject: |
|
|
Haha, I really hope this is the problem:
Quote: | Plotscript, Graybegginings, begin. |
Take a look at that. A PERIOD at the end of "begin"? Could that be what is screwing this up? |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Jun 15, 2011 12:47 pm Post subject: |
|
|
Master K wrote: | I don't know yet. The script won't let me run it. It says it expected top level declaration with playsong, but got a hardcoded function... |
Oh! You should have said so sooner! I thought you were saying that the script was compiling and running, and that all the text box display and advancement was working perfectly, and that the only problem was the music not playing. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Jun 15, 2011 4:08 pm Post subject: |
|
|
Wow, not getting an error until 5 lines later... extremely cruel! The problem was that "begin." was taken as the name of an argument, and "(6)" as the content of the script, making "play song" appear to come after the end of the script. I had forgotten that periods were allowed in identifiers; we need to disallow that. Also, HSpeak should not allow "suspend map music" as an argument name. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
|