RGSSx script supporting tool

sokita

Crawling back to the surface
Veteran
Joined
Apr 27, 2014
Messages
198
Reaction score
29
First Language
Indonesian
Primarily Uses
Where I can find a tool for testing RGSS script? I mean, like sandbox or console in codecademy. Thanks for your help.
 

Nathan Frost

... only the world's greatest Secret Agent.
Veteran
Joined
Sep 23, 2014
Messages
243
Reaction score
74
First Language
English
Primarily Uses
I don't know if you tried this yet, but RM comes with a console for debugging and testing various data for scripts. All you have to do is use 'p' without the quotation marks and push your data after that. So and example could be:

Code:
def evaluate_value    @example_value = 0    do_something_here    @example_value = new_value    # Print New Value into Console    p @example_valueend
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
you're pretty much left to just do it and try right in RM... after all, RGSSX is not open source, there are parts that are hidden from the public.
 

sokita

Crawling back to the surface
Veteran
Joined
Apr 27, 2014
Messages
198
Reaction score
29
First Language
Indonesian
Primarily Uses
I don't know if you tried this yet, but RM comes with a console for debugging and testing various data for scripts. All you have to do is use 'p' without the quotation marks and push your data after that. So and example could be:

def evaluate_value @example_value = 0 do_something_here @example_value = new_value # Print New Value into Console p @example_valueend
Hmm, wil do this, it can be added to Main section right? So I can get result quickly. And how I can do puts in VX? There are no console at all.

This is the only one I know of: http://forum.chaos-project.com/index.php?topic=10420.0

But even then...not really sandbox.
I had downloaded that once, but it crashes everytime I am trying to open it. I am sure I fully downloaded it, but, ok, I will re-download it.

EDIT: I mean no response after clicking Gemini.exe

you're pretty much left to just do it and try right in RM... after all, RGSSX is not open source, there are parts that are hidden from the public.
Hmm, I understand.

Actually I just want to try some basic ruby like hashes, methods, etc, but if the method contains some element from RGSSx, it won't work with console on codecademy (I usually uses that web). Thanks for answers.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
From what I understand, Sokita is asking for a tool in which you can write some lines and test it without using RM itself... Is that right?
 

sokita

Crawling back to the surface
Veteran
Joined
Apr 27, 2014
Messages
198
Reaction score
29
First Language
Indonesian
Primarily Uses
From what I understand, Sokita is asking for a tool in which you can write some lines and test it without using RM itself... Is that right?
Yup. You are right.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Which is hard to do given that RGSS and RM itself has a lot of hidden code, which to make a working "simulator" you'd need to know.

It would be quite a useful tool especially for creating scripts and testing it without access to RM, but given that reverse-engineering the engine is prohibited (to obtain those hidden codes),  I wonder how you could do that...
 
Last edited by a moderator:

sokita

Crawling back to the surface
Veteran
Joined
Apr 27, 2014
Messages
198
Reaction score
29
First Language
Indonesian
Primarily Uses
Which is hard to do given that RGSS and RM itself has a lot of hidden code, which to make a working "simulator" you'd need to know.

It would be quite a useful tool especially for creating scripts and testing it without access to RM, but given that reverse-engineering the engine is prohibited (to obtain those hidden codes),  I wonder how you could do that...
Hmm, I understand, sir. It is impossible without breaking EULA.

Haven't tried it yet, but it (seems) requires gosu to work. 

https://github.com/CaptainJet/RM-Gosu

Have you installed Ruby environment on your PC?
Hmm, I am not sure... Can you teach me how? (Maybe via facebook chat instead?) 
 

Solistra

Veteran
Veteran
Joined
Aug 15, 2012
Messages
593
Reaction score
247
Primarily Uses
Hmm, I understand, sir. It is impossible without breaking EULA.
Not really -- you can create an approximation of the RGSSx hidden classes which simply respond to the messages sent from the Ruby side. Getting the methods which these objects respond to is simple, and it really isn't all that hard to write wrappers around, say, OpenGL which provide the same general functionality. There are a few problematic classes, of course, but for the most part, it's not too difficult to do.


Also, this may not be exactly what you're looking for, but Enelvon and I wrote a REPL for Ace (SES Console) which allows you to write code and dynamically test it inside of a running Ace game being played in test mode. This isn't exactly a sandbox, but you can use the macro functionality that we provide to write an externally defined macro containing the code you want to test, dynamically call that macro during play testing (which loads it into the current game), then tweak the code as the game is running and get the basic results that you want.


The REPL is available here. The latest stable version is 1.3, but we also have an unstable version 1.4 available from the unstable branch here (which is actually very stable and contains a lot of functionality missing from stable version 1.3).


If you need more instruction on how to get the SES Console working how you want it, please feel free to send me a PM. I'd be happy to help.
 

sokita

Crawling back to the surface
Veteran
Joined
Apr 27, 2014
Messages
198
Reaction score
29
First Language
Indonesian
Primarily Uses
Thanks Solistra (and Enelvon), I think I can mark this as solved now. I will PM you later, Solistra
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top