Chaos Project

Featured Projects => Tasks => Advanced RPG Creator => Finished Tasks => Topic started by: Blizzard on March 10, 2011, 04:55:29 pm

Title: [Finished] [RGSS] Task 2
Post by: Blizzard on March 10, 2011, 04:55:29 pm
Somebody should extract all hidden RMXP RTP scripts and the default RTP scripts from the editor. Put each of them in one file because the order of the scripts is important and ARC doesn't know that order.
Title: Re: Task 2
Post by: ForeverZer0 on March 10, 2011, 05:35:25 pm
I'm on it.
I need something to do while I wait for Tortoise to update.  :P
Title: Re: Task 2
Post by: Ryex on March 10, 2011, 05:39:24 pm
the editor folder contains a file data.rb this contains the entire RPG module except for cache
Title: Re: Task 2
Post by: ForeverZer0 on March 10, 2011, 05:40:46 pm
Okay, that makes it even easier.

I'll add Cache and commit.

EDIT: I'll add Cache and the default scripts and commit.

Also, what directory would be best to place the file in? Resources?
Title: Re: Task 2
Post by: Blizzard on March 10, 2011, 05:56:37 pm
Rename "RGSS Hidden Classes" to "RMXP" and put them there. Remember, one file for all the hidden scripts and one file for all the RTP scripts.
Title: Re: Task 2
Post by: ForeverZer0 on March 10, 2011, 06:49:56 pm
Do I need to include Color, Tone, Table, etc. or pretty much just the RPG classes?
If not, I'm pretty much done. I spent a little time putting the hidden classes in alphabetical order and listing them all.

EDIT:
Finished and committed files.
Oops. I see I forgot to rename the folder. Doing that now.

EDIT 2:
For some reason, when I try to commit the file removal, I get an error. "Failed to shakehands..." it tells me.  :P
If someone could remove the redundant folder for me, that would be great. I apologize for all these strange problems that have been happening with my SVN. Believe me, no one thinks it is as annoying as I do.
Title: Re: Task 2
Post by: Zeriab on March 12, 2011, 04:26:57 am
Be careful when extracting the hidden scripts from the help file.
I remember seeing at least one instance where there was an error.
Of course you can just extract it from the dll:
http://pastebin.com/UnwwZeq6

Here are some other bits and pieces which may or may not be useful:
$!.to_s.split("
")[1].sub(/.*?:/,'')
$@[0].to_s.sub(/:.*/,'')
$@[0].to_s.sub(/.*?:/,'').to_i
$RGSS_SCRIPTS[$@[0].to_s.sub(/Section/,'').sub(/:.*/,'').to_i][1]
$!.to_s.sub(/Section[0-9]+:[0-9]+:in `[^']*'/, "")
$!.to_s.sub(/\(eval\):[0-9]+:in `[^']*'/, "")
$@[0] = $!.to_s.clone
$@.shift while $@[0].to_s[0..5] == '(eval)' and $@.size > 1
$:.clear;$KCODE='U'
Graphics._reset;Input.update;Audio.me_stop;Audio.se_stop;Audio.bgm_stop;Audio.bgs_stop;GC.start;
$RGSS_SCRIPTS[%d][3]
'Section%03d'
$RGSS_SCRIPTS = load_data(scripts_fname);$RGSS_SCRIPTS.each { |s| s[3,0] = Zlib::Inflate.inflate(s[2]) };$RGSS_SCRIPTS.size


Oh, and you can use Game debug for playing in debug mode and Game btest for testing a battle.

I dunno how much of it will be useful though.

*hugs*
Title: Re: Task 2
Post by: Blizzard on March 12, 2011, 05:17:19 am
Quote from: Zeriab on March 12, 2011, 04:26:57 am
I remember seeing at least one instance where there was an error.


I know that, lol! It was MoveRoute of Event or something like that.