Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Global script sequence order not correct when changing rooms (They run before lower-sequence order non-global NPC scripts)
New Topic New Poll Post Reply
Poster Message
melvin
Level: Delver
Rank Points: 34
Registered: 07-11-2007
IP: Logged

File: Bug Global script sequence order on room change.hold (1.9 KB)
Downloaded 24 times.
License: Public Domain
icon Global script sequence order not correct when changing rooms (+2)  
As title.

As explaining it here would be a bit finicky, I have created a garden for you to enjoy. :P

See attachment.

I doubt fixing it will break any current holds, but it is a major inconvenience for a very complex custom element across rooms I am currently working on. (I'll get a workaround going, just posting this for future architects.)

Cheers.

Edit: TSS, Linux, Steam, 5.1.0.6546.

Edit 2: Global script themselves also appear to be out of order. Looks like the first created global script goes first.

____________________________
Feedback appriciated: High Path Journey (V8R6: Coöperative hold)
*Having a DROD brake ATM, sorry* Jul-2013: I'm back (and DO want to finish that hold)!

Click here to view the secret text


[Last edited by melvin at 12-16-2021 09:46 AM]
12-16-2021 at 09:25 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
melvin
Level: Delver
Rank Points: 34
Registered: 07-11-2007
IP: Logged
icon Re: Global script sequence order not correct when changing rooms (+2)  
Sequence order also appears to be incorrect for new entities using the "Generate entities" command, only for the specific turn the entity is generated.

So, if an entity (e.g. NPC mimic with seq. 100) generates an entity with seq. 9999, the turn the entity is generated it appears to run directly when generated. This means the seq. 9999 entity runs at 100 the first turn, which is before monsters.

This might need a new thread, but I guess the "sort NPC sequence order" is simply not called on Generate entity, but only before/after a turn or similar, so likely one fix applies to all.

There is the edge case what to do when a seq. 9999 generates a seq. 100, for example. I would argue that it does not get executed that turn at all.

Edit: Thinking more there are likely situations where the current behaviour is preferred. So it's really a tricky topic. (Edit 2: Overall however, I think the current behaviour is not expected and rather surprising.)

____________________________
Feedback appriciated: High Path Journey (V8R6: Coöperative hold)
*Having a DROD brake ATM, sorry* Jul-2013: I'm back (and DO want to finish that hold)!

Click here to view the secret text


[Last edited by melvin at 12-29-2021 04:02 AM]
12-21-2021 at 02:44 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : Global script sequence order not correct when changing rooms (They run before lower-sequence order non-global NPC scripts)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.