08-09-2024, 02:01 AM
(This post was last modified: 08-09-2024, 02:06 AM by DerVVulfman.)
(08-09-2024, 12:20 AM)kyonides Wrote: Unnecessary if you know that such data is being stored in $RGSS_SCRIPTS already.That is not really true.
Whether you load the scripts database with:
script_list = load_data("Data/Scripts.rxdata")
or
script_list = $RGSS_SCRIPTS
the result is the same...
A test result with the actual script content under ZLIB compression.
Generated with $RGSS_SCRIPTS (the same result with my code).
My above code acquires the script database, breaks the database down into a hash array so you can grab an individual script by a key value, expands and basically decrypts each script in the database itself into something legible, and breaks each script down into individual lines to make it even more useful and essentially legible.
The only thing argued is that I used the classic load_data command used already within the system rather than $RGSS_SCRIPTS which you have just suggested. Other than that, nothing else would have changed.
BUT... on an incidental note, the $RGSS_SCRIPTS variable appears nowhere in the default scripts, no where in the help manual, would surely not be in Ruby-Docs, and does not appear in any Google search. Considering the Game.Ini file has the line Scripts=Data\Scripts.rxdata, I assume it is here where $RGSS_SCRIPTS comes into play. Only one who would have been working on their own replacement engine would have known that.