Tool - ArmaScriptTrace
I wrote a small Java application that is able to parse Arma script files and trace the execution calls of other scripts via #includes, execvm, etc. It then displays a nice tree graph image using GraphViz showing the structure. Anyway, I find it handy when making missions to run it on init.sqf and see what scripts are being called.
Please test and let me know if it breaks or is unable to parse something. Or, if you have suggestions I would love to hear them.
v0.4 (BETA) - still some bugs I think, please test
Dev-Heaven Project Page:
Java Runtime Environment
Last edited by firefly2442; Jan 5 2011 at 05:09.
Reason: new release
Hmm I may be doing it wrong or perhaps (unlikely) I need to update my JRE or something. It usually pops up whenever it needs updating though. I've tried on my carrier addon and on a mission I made but neither return any image, and trying to save just saves an empty file. Any other system requirements? 32/64-bit issues perhaps? Regardless this seems kinda neat, especially for larger projects, to visually see it.
Hmm, so you've tried going to Open, and then specifying like your init.sqf file or something? Have you tried it on any other files or missions? I don't believe there are 32/64 compatibility issues, however, it may be possible I missed a dependency for GraphViz.
Try this, open up your file again and minimize the app (don't close it). Go into the folder and check to see if there is a "temp.dot" and/or "temp.png" file. That will tell us if it's actually running.
Thanks for testing.
Just tried it myself, I open a file and nothing. It creates a temp.dot with just some armtrace text but nothing else.
If I try and save temp.png it saves nothing.
Same here. Windows 7 Enterprise 64Bit - Java 6 Update 21
Originally Posted by F2k Sel
What version of Java are both of you running? When I ran it on my development machine I had 1.6. If you open up the console and type "java -version" it will tell you.
edit: Hmm, ok clearly I goofed on something. Thanks for trying. I'll see if I can fix it this evening.
Windows XP Pro 32Bit - Java 6 Update 21
I just tried it on another machine and it seems to work fine. At this point, I'm guessing it's hanging when it parses the file. For those of you where it doesn't work, can you please post/send me the file/files that you tried running it on. If you want, you can PM me or send me an email. My email is "firstname.lastname@example.org". (Take that spam bots!).
Thanks in advance.
removed old download link.
Thanks, try this updated zip.
Last edited by firefly2442; Sep 30 2010 at 02:09.
Reason: old link