Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[1294] *sigh* My scripts broke, again.

15 replies · 2,518 views · Started 13 August 2010

Ok, I think it's any of my FFC scripts that use global arrays. They just cause a crash whenever that array gets thrown in the mix. Also, I did recompile like the changelog said, no dice.

I'm having the same problem with the shop script! And even after I recompiled the scripts, it still crashed!

I don't know... It just crashes when the message string is displayed after Link buys the shop script items.
And how am I supposed to tell global arrays apart from local arrays?

If they're declared outside of a script they're global, if they're inside a script they're local.
Is it my shop script you're using?

Does it crash like when ZC usually crashes (it'd be nice if I couldn't just say that eh!) or does it say 'Microsoft encountered a problem and the application had to close' or something similar?

It's just a usual crash. Local arrays are having 0 problems, the crash happens when you get to the line in the script where the array is first used.

Joe123 wrote:If they're declared outside of a script they're global, if they're inside a script they're local.
Is it my shop script you're using?

Does it crash like when ZC usually crashes (it'd be nice if I couldn't just say that eh!) or does it say 'Microsoft encountered a problem and the application had to close' or something similar?



Yes, it is your shop script.

I'm not having this problem with your sign post script, your item pickup message script, or your RealNPC Script, as far as I know, and I'm not having any problems with InsanityForce's Cliff Jump Script either.
Do any of those scripts use arrays?
By the way, Joe. Did you get my last message? I've got some other bug reports that weren't addressed before you released that last windows build. And where is _L_ anyway? He hasn't been as active as he used to be.

No, none of them do. I don't see why the shop should be crashing, I think it's probably un-related.

Did you get my message about documentation?

EDIT:
So on further inspection it's not actually global array access that's crashing ZC, it's CREATEITEMR.

*sigh* Looks like I'll have to remove any of those FFCs with the shop script until the problem is resolved...
And yes, I did get your message about the documentation, but how can I help? And where is this documentation you're talking about?

I'm not here till monday, but I will try my best to get the issue fixed and a new build ASAP when I get back (unless someone else deals with it).

Oh right ok, you didn't reply. I will get back to you in a few days.