onidsouza
Jun 27 2009, 02:56 PM
Oni Ruby Editor
IntroductionThis is a project to create a easier way to edit RPG Maker Scripts, made in FXRuby.
Requirement'sTo runNothing. But to compile ruby scripts you need ruby installed.
To EditBut you need Ruby 1.8.2 with FXRuby installed in order to edit the aplication code. go to the
Ruby official Site and download the OneClick Installer, that installs FXRuby too (It installs ruby gems with that gem included)
Download the aplicationLink 1 - My Own ServerLink 2 - MediafireDownload the CodeLink 1 - My Own ServerLink 2 - MediafireFeaturesEdit and Save Text Files (.txt)
Edit and Save Ruby Files (.rb and .rbw)
Save as Option
Create new files
Compile Ruby Files (using rubyscript2exe)
Unpack RPG Maker Script Files
To come on next versionPack the files again
Highlight reserved ruby words (NEED HELP)
CompatibilityOnly works in windows
People working in this project:Onidsouza
-----------
-----------
-----------
-----------
-----------
Want to work on this project? post it here!
onidsouza
Jun 28 2009, 03:37 AM
New update: Edit, Save and Compile Ruby Files.
Compile Options uses rubyscript2exe, that comes with the aplication.
onidsouza
Jun 28 2009, 10:02 AM
New update: Fixed a error when saving a file
New options: new file and save as
added the rubyscript2exe file in the code download
onidsouza
Jun 28 2009, 10:34 AM
Updated: Added a overwrite file confirmation
BizarreMonkey
Jun 28 2009, 02:20 PM
Hmmm... this looks interesting I have ruby installed, but i dont download things unless there a demo or really good. I dont know much about programming languages, but if this makes scripting easier i may have to learn it, but i wonder if its as easy to learn as it is to write
great work anyway, surprised none else has replied to this.
onidsouza
Jun 28 2009, 04:42 PM
@bizzare monkey
To install the aplication you only need ruby.
To edit the code you need ruby + FXRuby gem
Well, it currenctly only edits ruby files. I'm still try-ing to make it read *.rvdata code.
It's not a good ideia to use it to develop ruby now, but well, you can help us improving the code if you want. The code is there to download, the archive come with the main file (textEditor.rbw) and the compiler used (rubyscript2exe.rb). The aplication comes with the aplication (textEditor.exe)
Well, i'm going holyday's, so i won't move this topic for 1 month, unless if i find a computer in where i'm going,
So feel free to download and improve the code as you want, and post here any improvements that you made.
Once i'm back, i will organise all changes and keep improving the software.
See you guys in 1 month, until there,
Good holyday's,
~Onidsouza~
Yanfly
Jun 28 2009, 04:57 PM
I'm sorry to burst your bubble, but I would definitely not say this editor is easier to use/edit scripts with. There's so many factors that need improvement. Of the things you can do to improve it, here's a list
- Use a monospaced font.
- Colour coding helps wonders.
- Better tab control.
- Make sure all functions work properly. I clicked cancel after I pressed Open and it kicked me out of the program.
- The fact we still have to actually import things back into RPG Maker's RGSS player doesn't make this any more convenient.
I'd probably list more but those are the most import things that I can see as problematic.
I understand your desire to make something like that since you're just starting to learn it, but for people who regularly create/edit scripts, this is still far from passing. Sorry.
onidsouza
Jun 30 2009, 09:57 AM
i'm SURE that it's not a easier way. After all, still is in development, that's why i posted the code here, so if any one feels up to improve the code, it could help me, after all a IDE isn't easy to do. But thanks for your suggestions!
1. What's a monospaced font?
2. I'm working on that, but i'm really bad in regular expressions and it's really hard to select all special words in the text for me. But it will come.
3. What's TAB control?
4. I see, i think i know the solution for that. [SOLVED, COMING ON NEXT RELEASE]
5. No. The objectif of this is edit DIRECTLY the Scripts.rvdata file, so you don't need to import back in to the rgss player.
About the Scripts.rvdata file, it is a file that contais all of your scripts, dumped into that file by method:
Marshal.dump(obj, target)
So it can be loaded with:
obj = Marshal.load(target).
I'm still analizing the file, so if any one could help me, i will be happy!
REMOVED THE ORIGINAL CONTENT DUE OFFENSIVE TO YANFLY
QUICK EDIT AFTER REMOVAL: Please don't say that i'm starting to learn. I program at 4 years and i study a lot for that. I'm very experienced and i've done a lot of scripts. When people say that i'm inexperienced, it get's me really angry.
onidsouza
Jun 30 2009, 05:17 PM
Look's like Scripts.rvdata is cryptographed. So i took out $game_switches from the file, and it looks very strange. Anyway, we must transform this:

in this:

Any ideias? That thing is pissing me off...
berka
Jul 1 2009, 03:08 AM
in ruby:
CODE
require "zlib"
$scripts={}
File.open("Scripts.rvdata", "rb") { |f|
Marshal.load(f).each{|s| $scripts[s[1]]=Zlib::Inflate.inflate(s[2])}
}
p $scripts
it creates an hash:
$script[sectionname]=>code
and you can write files as:
CODE
require "zlib"
$scripts={}
File.open("Scripts.rvdata", "rb") { |f|
Marshal.load(f).each{|s| $scripts[s[1]]=Zlib::Inflate.inflate(s[2])}
}
Dir.mkdir("Scripts") rescue nil
$scripts.each_pair{|k,v|File.open("Scripts/#{k}.txt","wb")<<v}
berka
onidsouza
Jul 1 2009, 05:13 AM
wow berka! you're alsome!
i can't test it rigth now because i'm acessing the forum in my ipod ,
but once i get home i will test it!
edit: how do i desinflate the scripts so that i can save the scripts.rvdata again?
EDIT2: Use Zlib::Deflate.deflate
Speed@
Jul 2 2009, 01:27 AM
That's berka, best french RGSS scripter.
onidsouza
Jul 2 2009, 08:54 AM
For sure. Now the editor unpacks the scripts into a folder, in the next version i will pack the scripts again into the file Scripts.rvdata.
Uploading now...
Uploaded
DreadFulPero
May 16 2012, 08:12 AM
QUOTE (berka @ Jul 1 2009, 01:08 PM)

in ruby:
CODE
require "zlib"
$scripts={}
File.open("Scripts.rvdata", "rb") { |f|
Marshal.load(f).each{|s| $scripts[s[1]]=Zlib::Inflate.inflate(s[2])}
}
p $scripts
it creates an hash:
$script[sectionname]=>code
and you can write files as:
CODE
require "zlib"
$scripts={}
File.open("Scripts.rvdata", "rb") { |f|
Marshal.load(f).each{|s| $scripts[s[1]]=Zlib::Inflate.inflate(s[2])}
}
Dir.mkdir("Scripts") rescue nil
$scripts.each_pair{|k,v|File.open("Scripts/#{k}.txt","wb")<<v}
berka
Hi,
is possible to get the code for CommonEvents.rvdata into txt files or one file?
I tried it similar to this, but i can`t do it. I tried it with $data_common_events, but i think i don`t know exactly how.
maybe it needs some other argument, but i don`t know. I know little of ruby, but I really need this.
So if I can get the code for this it would be really great

Thnx
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.