RPG Maker scripting limitations

Hello everyone,

I'm making a game for my university thesis and I'm thinking of using RPG Maker. The thing is, I want to know what are the limitation of the scripting language, like:

I'm not expecting to do something like making the game 3D or doing a physics engine. I just what to know if I can expect some kind of limitation if I want to link some external libraries that need to do some other sort of calculations like the one I mentioned above.

Thanks in advance.
Hello there Nesokas,

To answer your questions:

  1. Unfortunately the require function cannot be used to work with Ruby C extensions in RPG Maker. You are left with Win32API and the DL module.
  2. require function nerfed as stated above. The graphics are software rendered. The non-ruby parts of the engine is closed-source, thus being inaccessible. I heard that having more than 10000 sprites (visible objects) may cause problems. I don't know if there are others of interest.
  3. 32-bit program gives a natural maximum memory usage. If you suspect some of your planned structures may use large amounts of memory I suggest you stress test early. I haven't done any myself on RPG Maker VX Ace so I do not know about any particular behavior. Threading support is limited, so I would suggest only considering having one thread as possible. Should you anyway want to implement concurrency I suggest creating a DLL (with C extern methods) which creates and manages native threads distinctly from the main game thread.
I hope this will help guide you in your search.

*hugs*

 - Zeriab
Thank you for the quick reply.

Do you know if there is any other way to link other libraries with RPG Maker, or if is it possible to read external files created by other programs and things like that?
you can write and read external files (several script do this to get their own data, search for "SES External Text" as one example), but that is DATA - you can run that data through eval() or process it in any way you prepared when writing the data, but if it's in another language, the ruby interpreter can't handle it.
Thank you guys, you've been really helpful.

I've been doing some research and I found this http://www.swig.org/. Do you think I can use it to link a c++ library with RPG Maker? I'm I able to change the compilation process and flags?

Sorry if I'm being pushy but this is really important for me.
I don't know whether SWIG will be useful. Maybe it can save you a lot of time or maybe it will be hellish to implement.
Consider creating an intermediary DLL which you load into the RGSS player process using various simple Win32API.new bindings. You can invoke those simple synchronous method calls in a ruby script and have the intermediary do the actual calls into the C++ library. Conceptually you can consider it as a variation of the Adaptor design pattern.

For IO you have the standard File module present, which is a subclass of the IO module. Furthermore you have the load_data and save_data which loads ruby-marshalled code from the specified file. (For reference look in the help file)
When you package the game for distribution you have the option to decrypt the game data. Here load_data has the additional ability to load data from encrypted archives.

Triggering external programs using the system command and reading the external file it creates is perfectly possible.

I forgot to mention that RPG Maker is basically limited to Windows.
*hugs*

 
Thank you very much!! You guys helped me a lot  😉
Going to move this into RGSSx Script Support. Just let us know when you have enough information to go with, and I'll close the topic up 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-scripting-limitations.21509/