SES Console (An advanced REPL for RMVX Ace.)

Solistra

Veteran
Veteran
Joined
Aug 15, 2012
Messages
593
Reaction score
247
Primarily Uses
SES Console v1.2
by Solistra and Enelvon
Introduction
This script provides an interactive Ruby console through the RGSS Console with a number of advanced features. This is primarily a scripter's tool.

In addition to the core script, you may also download a zipped package of default external macros which provide a number of useful tasks and general enhancements to the basic SES Console. The latest macro package may be downloaded from GitHub -- the latest release of the SES Console should have a .zip archive attached to it which provides the entire macro package ready to be placed in your configured macro directory. The package may be found here:Please be sure to read the included README.md file included with the package for more information about what it offers.

Change Log
  • v1.2 (June 17th, 2014) - Numerous enhancements, minimized code base, provided default macro package.
  • v1.1 (April 15th, 2014) - Fixed a potential recursion issue.
  • v1.0 (April 8th, 2014) - Initial release.
Features
  • Provides an IRB-like REPL for RMVX Ace.
  • Supports user-defined macros stored as external Ruby files.
  • Includes a default package of useful macro files.
  • Allows entering multiple lines of input for evaluation.
  • Users may step into and out of any Ruby object known at runtime.
Screenshot
How to Use
Due to the length of the usage interactions, detailed usage information for this script is available from the source repository where the script is stored. Specifically, usage information is provided in the README.md file.

Script
This script is available from SES VX Ace.

Installation
Place this script below the SES Core (v2.0) script (if you are using it) or the Materials header, but above all other custom scripts. This script does not require the SES Core (v2.0), but it is recommended.

Credit and Thanks
  • Solistra
  • Enelvon
Author's Notes
This script is made available under the terms of the MIT Expat license. View this page for more information.
 
Last edited by a moderator:

Solistra

Veteran
Veteran
Joined
Aug 15, 2012
Messages
593
Reaction score
247
Primarily Uses
This is a notice that the script has been updated to version 1.1 -- this was a bug fix release.


Specifically, in the initial release version, trying to access a missing constant while the SES Console's context was set to SES::Console caused a potentially infinite recursion due to the way SES::Console.const_missing was written. This bug has now been resolved.
 

Solistra

Veteran
Veteran
Joined
Aug 15, 2012
Messages
593
Reaction score
247
Primarily Uses
This is a notice that the script has been updated to version 1.2 -- this release offers a number of general enhancements to the code base.


Of particular note is the fact that this release also comes with a zipped archive of default macro files designed to greatly enhance the capabilities of the SES Console, particularly for debugging tasks. The included macro package (macro_package.zip) may be downloaded directly from the GitHub repository under the Releases.


Further development on macro files will take place under the "macro" branch of the source repository until a new release is deemed appropriate.
 

Lemur

Crazed Ruby Hacker
Veteran
Joined
Dec 1, 2014
Messages
106
Reaction score
124
First Language
English
Primarily Uses
Late to the party, but you might look into Pry as well for more inspiration. Really, this needs to be a baked into future releases for RM. Repls are far too great a tool to not have readily accessible in a scripting language.
 

Solistra

Veteran
Veteran
Joined
Aug 15, 2012
Messages
593
Reaction score
247
Primarily Uses
I actually use Pry as my primary REPL for Ruby in general on an almost daily basis -- I only fall back on IRB if absolutely necessary.


Honestly, you also happened to reply to this topic at a time when I'm thinking of updating most of my scripts -- including this one. To be more specific, I'm not too happy with how inflexible the actual invocation of code is: it's all far too hard-coded. I'd much prefer to use a Pry-like approach which defines hooks which are called around the actual code in question.
 

Lemur

Crazed Ruby Hacker
Veteran
Joined
Dec 1, 2014
Messages
106
Reaction score
124
First Language
English
Primarily Uses
I actually use Pry as my primary REPL for Ruby in general on an almost daily basis -- I only fall back on IRB if absolutely necessary.

Honestly, you also happened to reply to this topic at a time when I'm thinking of updating most of my scripts -- including this one. To be more specific, I'm not too happy with how inflexible the actual invocation of code is: it's all far too hard-coded. I'd much prefer to use a Pry-like approach which defines hooks which are called around the actual code in question.
I happen to know one of the core members of Pry. He actually works about 2-3 miles from me. I've written a few plugins to it as well:

If you need advice or reviews on things, ping me some time. Still new to RGSS but certainly not Ruby.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
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'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top