RPG Maker CP

Started by G_G, December 29, 2010, 02:47:59 am

Previous topic - Next topic

G_G

December 29, 2010, 02:47:59 am Last Edit: December 31, 2010, 07:44:32 am by game_guy
    RPG Maker CP (Data Editor)



    Intro
    Alright, this isn't going to be a fancy looking thread quite yet. Its not even anything special. But its the fact I want to get something out and I want to make sure people can run this. I coded this ruby program well of course in ruby and wxruby. So far I created an actors window, it'll load up Data/Actors.rxdata and feed the names into a listbox. You can then click on one, change the name, then save the data. You can then open up RPG XP to see the changes.

    What I hope to accomplish is to remove some of the silly limitations and any possible bugs the database editor has. And possibly add features the database should have. Another thing this is for, is just practice. I'm curious to see how far I can get with this, curious if I'll finish it, I want to see what I can or can't do with ruby and wxruby. And the one great thing is that its open source! Now don't be tea bagging on my coding here. Its not the most efficient but its mostly because I'm lazy.

    I'll always have two versions up for downloads. One for people who have ruby installed and who have wxruby installed. Then I'll have a download up for people who don't have either installed or is missing one of them.


    Downloads
    NOTE: There is a file size difference for the fact that the executable version is compiled and it has to pack all required classes and modules. Its almost worth getting wxruby and ruby installed.

    Actor Editor
    Spoiler: ShowHide
    Actor Editor (0.0.1) Source - Executable
    Actor Editor (0.1.0) Source - Executable
    Changes From 0.0.1

    • Prettier Design
    • Added Proper Exit Button
    • Added Editing of Actor Class

    Update From 0.0.1

    • Download the update here.
    • Extract actors.rb from the zip into the 0.0.1 directory. Overwrite the existing actors.rb.
    • Run main.rb/main.exe depending on your version.



    Development Packs
    NOTE: All packs are setup to load all rpg data at runtime. So to access each of them, just call them with a global variable. e.g. $actors, $classes, $skills etc....

    Editor Base (1.0.0)
    Spoiler: ShowHide
    This is used to make an editor of a certain type, e.g. Actors, skills, etc... Its pretty basic and all you really need to do is make a GUI.
    Source (1.0.0)


    Editor Base (1.1.0)
    Spoiler: ShowHide
    This is used to make an editor of a certain type, e.g. Actors, skills, etc... Its pretty basic and all you really need to do is make a GUI.
    Changes from 1.0.0

    • Added build support. Turn your version into a standalone executable. Run build.bat, your program will indeed open, just close it right away. However you still need all the other folders and files except main.rb packed into a zip folder or whatever. This way you can make updates and patches to your editor without the need for a full download.

    Source (1.1.0)



    Bugs
    If you run into a bug that hasn't been reported, please report it using the following template.
    [/list]
    App: (Which editor or app you're using, example, Actor Editor)
    Version: (version of the app, says in title bar of app)
    Error: (error(s) that are printed out in the console, place this in [nobbc][code]
    [/nobbc] tags)
    When: (when, where, and how did the error happen, basically what were you exactly doing in the app)
    Fix: (if by chance you are a coder and/or a debugger, and found a fix or work around then please post it, if not leave this blank)[/code]

    Crash After Saving Actors
    Spoiler: ShowHide
    App: Actor Editor
    Version: 0.0.1
    Error:
    no implicit conversion from nil to integer

    When: Once you edit the name of an actor and click "Save Actor'", it then happens when you try and click on a different actor.
    Fix: Update from 0.0.1 to 0.1.0.



    Installing Wxruby
    Spoiler: ShowHide
    Ruby - Download 1.8.6 or 1.9.1
    Rubygems - This is to install wxruby, to install, download and extract, run setup.rb
    Wxruby for 1.9.1 - This is the GUI system made for ruby
    Wxruby for 1.8.6 - Same as above

    After installing Ruby and Rubygems, its quite easy to install wxruby. Move the wxruby.gem file to your desktop and rename it to wxruby. Now open up your command prompt and you'll want to guide it to your desktop.
    cd c:\users\name\desktop

    Then all you have to do is type
    gem install wxruby.gem

    And it should be fairly quick, just wait until you can input stuff into the command prompt again to know its done.



    Screenshots
    Actor Editor Screenshots - Video
    Spoiler: ShowHide



    If anyone wants to work on this with me, it'd be helpful to have some of the following....
    -Scripter - Who knows ruby and understands ruby quite a bit
    -Designer - Someone who wants to design layouts for the editor/someone who wants to design a logo for the program
    -Debuggers - People who debug our stuff, basically test out the program and report any issues or ideas
    -Rest - People who submit ideas and report bugs about XP's default database.

    And if by any means someone can come up with a name for this monstrocity.

    ForeverZer0

    I could help with some of the scripting if you'd like.
    I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

    G_G

    December 29, 2010, 10:58:26 am #2 Last Edit: December 29, 2010, 11:34:43 am by game_guy
    If you do want to help go right ahead. Though there is a couple things you'll need.

    Ruby - Download 1.8.6 or 1.9.1
    Rubygems - This is to install wxruby, to install, download and extract, run setup.rb
    Wxruby for 1.9.1 - This is the GUI system made for ruby
    Wxruby for 1.8.6 - Same as above

    After installing Ruby and Rubygems, its quite easy to install wxruby. Move the wxruby.gem file to your desktop and rename it to wxruby. Now open up your command prompt and you'll want to guide it to your desktop.
    cd c:\users\name\desktop

    Then all you have to do is type
    gem install wxruby.gem

    And it should be fairly quick, just wait until you can input stuff into the command prompt again to know its done.

    Then to help, you'll want to decide what you're willing to help with. Its all database stuff, and possibly an event editor for maps, and maybe a map editor. Who knows. But I don't want to completely clone rmxp, just want to do database-y stuff. Maybe since the database doesn't have a Variable/Switch editor, you could do that. Another thing I recommend is download the actor editor source, and looking over to maybe see how wxruby works. You can also access the API Documentation here.

    Get yourself comfortable with it maybe, I completely forgot I had to set up a main source where everybody could just download and work on it. And wow I am putting these instructions and stutff in the first post so people won't have to download 5mb files every single time a new editor is released or a new version. But seeing the way I have it setup, people will only have to replace actors.rb and rpg_data.rb for upgrading. I still need to setup some main files for blank editors. Anyways sorry for the long confusing instructions, and like I said if you want to help jump right in.

    EDIT: Editor Base is put up in the first post. Download that and you should be able to get started.

    winkio


    G_G

    Quote from: winkio on December 29, 2010, 11:50:39 am
    I approve this project  :up:


    Yes! Already getting approval!

    I had an idea. Custom Event Commands! Create a small .rb file, run the event editor (say if I get this far) and your custom event command you made is there! No more script calls >:3

    Blizzard

    Check out Daygames and our games:

    King of Booze 2      King of Booze: Never Ever
    Drinking Game for Android      Never have I ever for Android
    Drinking Game for iOS      Never have I ever for iOS


    Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

    Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

    ForeverZer0

    December 29, 2010, 03:25:14 pm #6 Last Edit: December 29, 2010, 03:26:16 pm by ForeverZer0
    I love the idea for the custom event commands. Re-doing the Interpreter class as well? If so, I'd be happy to work on that. I've always had a few bitches about how it operates, be nice to put a new spin on it.
    I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

    G_G

    Well heres how I looked at it, if you had a custom event command, all it'd do is just insert the script call command with the snipped your command does. All this really is is a database editor. But we could include some rewrites if it makes it function better.

    ForeverZer0

    You are going to have to (I think) mod the Interpreter class. Otherwise you could create all sorts of extra options and commands when setting up events, but they won't have any actual function in-game.
    I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

    G_G

    A couple of things. Did some working on the actor editor and I added a couple of things to the Editor Base dev pack. Theres two new files added to it. "ocrasa.rb" and "build.bat". Ocra is a ruby add-on that turns ruby files into stand alone executables. And the build.bat is just a simple bat file that runs it. It builds main.rb into main.exe. I've setup my coding so simple patches can be made here and there and people don't have to re-download it each time something has been changed or fixed.

    Actor Editor 0.1.0
    Prettied up the design. Added class changing for the actors. Added a proper exit button. Added a non-functional Change Max actors button. Of course it will be functional. Instead of re-downloading the entire thing, you can just download the Actor Editor 0.1.0 Update in the downloads.

    Editor Base 1.1.0
    Added functional "build" option for those who want to build their version into a standalone executable.

    The Niche

    Fucking hell, nine months later, we'll have fucking rpg maker cp. I'm not a coder at all, but I could help out in testing and in graphics, if you need any help there.
    Level me down, I'm trying to become the anti-blizz!
    Quote from: winkio on June 15, 2011, 07:30:23 pm
    Ah, excellent.  You liked my amusing sideshow, yes?  I'm just a simple fool, my wit entertains the wise, and my wisdom fools the fools.



    I'm like the bible, widely hated and beautifully quotable.

    Dropbox is this way, not any other way!

    G_G

    Well lets start thinking of names here. Then maybe we can come up with a logo. And what not.

    WhiteRose

    Have you coordinated with Ryex at all? As I recall, he was working on something somewhat similar. You can find his thread here:
    http://forum.chaos-project.com/index.php/topic,7452.0.html

    Ryex

    ... if your going to do this would you perhaps  consider extending the code into python when your done? or let we look at it when it comes time for me to make the database editor for RMPY?
    I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

    G_G

    All code here is open source. Whenever you feel like it, go ahead and take a look. It was pretty easy to make this, seeing it was coded completely in ruby, the marshal works the same here as it does in rpg maker xp.

    EDIT: I have a video demo. http://www.youtube.com/watch?v=hJ1IrGNvQTM

    Blizzard

    I like the name RPG Maker CP.
    BTW, you're doing all of this in C#, right? How did you implement the Marshal loading and dumping?
    Check out Daygames and our games:

    King of Booze 2      King of Booze: Never Ever
    Drinking Game for Android      Never have I ever for Android
    Drinking Game for iOS      Never have I ever for iOS


    Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

    Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

    G_G

    December 31, 2010, 07:27:56 am #16 Last Edit: December 31, 2010, 07:44:57 am by game_guy
    Quote from: game_guy on December 30, 2010, 11:55:41 pm
    All code here is open source. Whenever you feel like it, go ahead and take a look. It was pretty easy to make this, seeing it was coded completely in ruby, the marshal works the same here as it does in rpg maker xp.

    EDIT: I have a video demo. http://www.youtube.com/watch?v=hJ1IrGNvQTM


    Quote from: Blizzard on December 31, 2010, 04:43:45 am
    I like the name RPG Maker CP.
    BTW, you're doing all of this in C#, right? How did you implement the Marshal loading and dumping?


    LOL!

    I can tell you haven't been reading my thread all that thoroughly! xD Especially since I brought up Ruby and Wxruby so many times xP

    EDIT: Renamed to RPG Maker CP. Now, who's gonna make a snazzy logo of that?

    Blizzard

    Actually I have. But I was out last night so it's obvious that I forgot. := Gotta stop killing my brains with alcohol. xD
    Check out Daygames and our games:

    King of Booze 2      King of Booze: Never Ever
    Drinking Game for Android      Never have I ever for Android
    Drinking Game for iOS      Never have I ever for iOS


    Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

    Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

    G_G

    Well, glad you are reading thoroughly xP I mostly lol'd because of the fact right in my previous post it says its coded completely in ruby, then you reply asking if it was made in c#. xD

    Blizzard

    Ah crap. D: I could have pulled it off as trolling and saved my face. ._.
    Check out Daygames and our games:

    King of Booze 2      King of Booze: Never Ever
    Drinking Game for Android      Never have I ever for Android
    Drinking Game for iOS      Never have I ever for iOS


    Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

    Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.