Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Ruby Editor v1.4(recruiting too), UPDATED! Unpacks the scripts. TO COME: Pack the scripts again
onidsouza
post Jun 27 2009, 02:56 PM
Post #1


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




Oni Ruby Editor


Introduction
This is a project to create a easier way to edit RPG Maker Scripts, made in FXRuby.

Requirement's
To run
Nothing. But to compile ruby scripts you need ruby installed.

To Edit
But 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 aplication
Link 1 - My Own Server
Link 2 - Mediafire

Download the Code
Link 1 - My Own Server
Link 2 - Mediafire

Features
Edit 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 version
Pack the files again
Highlight reserved ruby words (NEED HELP)

Compatibility
Only works in windows

People working in this project:
Onidsouza
-----------
-----------
-----------
-----------
-----------
Want to work on this project? post it here!


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
onidsouza
post Jun 28 2009, 03:37 AM
Post #2


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




New update: Edit, Save and Compile Ruby Files.
Compile Options uses rubyscript2exe, that comes with the aplication.


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
onidsouza
post Jun 28 2009, 10:02 AM
Post #3


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




New update: Fixed a error when saving a file
New options: new file and save as
added the rubyscript2exe file in the code download


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
onidsouza
post Jun 28 2009, 10:34 AM
Post #4


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




Updated: Added a overwrite file confirmation


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
BizarreMonkey
post Jun 28 2009, 02:20 PM
Post #5


Gone and never coming back.
Group Icon

Group: Revolutionary
Posts: 112
Type: Developer
RM Skill: Undisclosed




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.


__________________________

Go to the top of the page
 
+Quote Post
   
onidsouza
post Jun 28 2009, 04:42 PM
Post #6


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




@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~


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
Yanfly
post Jun 28 2009, 04:57 PM
Post #7


Level 19
Group Icon

Group: Revolutionary
Posts: 384
Type: None
RM Skill: Undisclosed




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

  1. Use a monospaced font.
  2. Colour coding helps wonders.
  3. Better tab control.
  4. Make sure all functions work properly. I clicked cancel after I pressed Open and it kicked me out of the program.
  5. 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.


__________________________
Go to the top of the page
 
+Quote Post
   
onidsouza
post Jun 30 2009, 09:57 AM
Post #8


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




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.


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
onidsouza
post Jun 30 2009, 05:17 PM
Post #9


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




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...


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
berka
post Jul 1 2009, 03:08 AM
Post #10


Level 8
Group Icon

Group: Revolutionary
Posts: 111
Type: Scripter
RM Skill: Advanced




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

This post has been edited by berka: Jul 1 2009, 03:15 AM


__________________________
Go to the top of the page
 
+Quote Post
   
onidsouza
post Jul 1 2009, 05:13 AM
Post #11


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




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


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
Speed@
post Jul 2 2009, 01:27 AM
Post #12


Level 12
Group Icon

Group: Revolutionary
Posts: 203
Type: None
RM Skill: Undisclosed




That's berka, best french RGSS scripter. wink.gif
Go to the top of the page
 
+Quote Post
   
onidsouza
post Jul 2 2009, 08:54 AM
Post #13


image master of doom
Group Icon

Group: Revolutionary
Posts: 603
Type: None
RM Skill: Undisclosed




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


__________________________
Gabba Gabba Hey! enjoy your life ^^
lol (by keet's brother)
some lol
more lol
even MORE lol
Serious Discussion
why all my lol's have Teh Parakeet involved?

me ^^

bacon

Spamming is always better with bacon
Go to the top of the page
 
+Quote Post
   
DreadFulPero
post May 16 2012, 08:12 AM
Post #14


Level 1
Group Icon

Group: Member
Posts: 8
Type: None
RM Skill: Beginner




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 smile.gif

Thnx
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th May 2013 - 12:46 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker