Staredit Network > Forums > Modding Discussion > Topic: Iscript Debugger / Crash Prevention plugin
Iscript Debugger / Crash Prevention plugin
Jun 9 2018, 3:36 am
By: O)FaRTy1billion[MM]  

Jun 9 2018, 3:36 am O)FaRTy1billion[MM] Post #1

👻 👾 👽 💪

At the request of Voy, here is a plugin to prevent & report the most common reason for a crash in a mod. This plugin will detect calls to invalid iscript calls and invalid GRP frames. It will display these errors in-game and also log them.

Code
Listening for errors...
Invalid frame 50 in animation "Init" on Image ID 278
Invalid frame 50 in animation "Init" on Image ID 278
Call to undefined animation "AlmostBuilt" on Image ID 278


This plugin is compatible with iscript extender, and should be compatibile with most other plugins (including GPTP).

It currently supports versions 1.14.0, 1.15.x, and 1.16.x. I can add other versions if requested (these all just had identical assembly in the required functions between versions so it was easy :P).

Let me know if you encounter any errors or have any comments or suggestions.

Download!



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 9 2018, 3:57 am Voyager7456 Post #2

Responsible for my own happiness? I can't even be responsible for my own breakfast

Thanks for this, Farty! This makes debugging mods so much easier, especially mods like Orid Ibanna that were made a long time ago and have crashes that aren't always easily to isolate.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:06 am]
SiberianTiger -- anyone wanna play footmen frenzy with me on us west?
[12:50 am]
O)FaRTy1billion[MM] -- NudeRaider
NudeRaider shouted: Lanthanide ya, I was pretty sure this must be the case, but I was referring to FaRTy1billion
i was mostly joking. I haven't seen any specs for it or anything other than vague comments
[10:02 pm]
Suicidal Insanity -- jjf28
jjf28 shouted: if you do parse those correctly I'll probably turn on sub-string recycling by default since it makes smaller map sizes, else I'll prompt the user before turning it on
I won't parse those correctly - I do not remember why, maybe it was the embedded nulls in stat_txt.tbl, but I clip strings at the next offset in the table header and don't search for a nul byte
[04:26 pm]
Dem0n -- ya he's in there
[03:52 pm]
NudeRaider -- Lanthanide
Lanthanide shouted: i don't know, but Armo does, so he can be asked
whcih discord? SEN?
[03:51 pm]
NudeRaider -- Lanthanide
Lanthanide shouted: and also there are tools right now that let you use it, so to say "no one can use it" is wrong
ya, I was pretty sure this must be the case, but I was referring to FaRTy1billion
FaRTy1billion shouted: nobody knows
[02:02 pm]
jjf28 -- if you do parse those correctly I'll probably turn on sub-string recycling by default since it makes smaller map sizes, else I'll prompt the user before turning it on
[02:01 pm]
jjf28 -- e.g. "asdf<NUL>" and "df<NUL" occupy the same space in character data but have two different offsets
[02:00 pm]
jjf28 -- hey SI, are you parsing STR sections with sub-string recycling?
[12:52 pm]
Moose -- spicy memes
Please log in to shout.


Members Online: Roy