 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
chronoboy Into the past with a splash

Joined: 04 Jun 2010 Posts: 162 Location: Canada
|
Posted: Mon Nov 22, 2010 7:47 pm Post subject: suspend box advance does not work with music-enabled boxes |
|
|
For some reason, if I use a textbox from plotscript with the box advance suspended, it does not suspend box advance if music is attached to the box. I removed the music option, putting it back to NONE and then it worked.
Code sniplet:
Code: |
suspend box advance
show textbox (35)
wait (30)
advance textbox
resume box advance
|
Does not work when music is attached to the box, the box can be closed at any time by the player. Removing the music from the box, the player cannot close the box and needs to wait the 30 ticks.
Bug report? _________________ Current project: Chronoboy Adventures
Website: http://www.chronoboy.com/ |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon Nov 22, 2010 11:33 pm Post subject: |
|
|
I can't reproduce it. Also, looking at the source code, I can't see how anything other than memory corrupt could cause such a symptom. You seem to run a lot of scripts on timers, including music related ones, could one of those be the problem? _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
chronoboy Into the past with a splash

Joined: 04 Jun 2010 Posts: 162 Location: Canada
|
Posted: Mon Nov 22, 2010 11:41 pm Post subject: |
|
|
The Mad Cacti wrote: | I can't reproduce it. Also, looking at the source code, I can't see how anything other than memory corrupt could cause such a symptom. You seem to run a lot of scripts on timers, including music related ones, could one of those be the problem? |
Actually, I don't any scripts on timers...
Code: |
effects.hsi: set timer (tmrid,random(20,40))
intro.hsi: set timer (0,30,18,@pass cloud)
intro.hsi: set timer (1,20,18,@pass cloud)
intro.hsi: stop timer (0)
intro.hsi: stop timer (1)
intro.hsi: set timer (tmr ruins,random(30,60),18,@intro ruins)
tests.hsi: set timer (0,30,18,@pass cloud)
tests.hsi: set timer (1,20,18,@pass cloud)
util.hsi: set timer (tmr light,120,18,@lights out)
wakucavern.hsi: stop timer (tmr light)
|
The only timer that is actually used during gameplay is for torch light. The timer in effects.hsi is used in the pass cloud script.
My work around for this issue was to control the music in my plotscript, which seems to work nicely. _________________ Current project: Chronoboy Adventures
Website: http://www.chronoboy.com/ |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue Nov 23, 2010 12:47 am Post subject: |
|
|
Try searching your scripts for "resume box advance" instead. And I don't suppose you have "advance textbox" in an on-key-press script anywhere?
If you can't figure it out, stick this after the wait(30) (assuming you're using a nightly):
Code: | trace value((read general(44),and,128)) |
That'll print the state of the "suspend box advance" bit to g_debug.txt _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|