Using RGSS3 with RPG Maker XP

but the good thing is that if the rpg maker developers in japan are planning to make a new rpg maker program they could make it compact-able with old rgss so that way all rgss from the newest and the oldest can use rpg maker vx ace script and rpg maker xp script in that new rpg maker program (if they have plan to develop it!)

you should be working at enterbrain because of what you did! lol.
I just don't see how that is possible considering how the classes for rgss and rgss3 are completely different, and because the scripts we write are based on the existing classes, you're not going to be able to just grab an XP script and plug it into VX project and expect the class names, methods, and variables to all exist.

But maybe it's because they came up with a way to do it that they're working at EB.

I mean, if there's a way to write our scripts such that we can expect compatibility with both XP, VX, and Ace, then we would be doing that ourselves so everyone can enjoy the same script without having to re-write it 3 times.
When you're switching the DLL and the Game.exe to the RGSS3 DLL with Ace's Game.exe or even the RGSS2 DLL with VX's Game.exe, all you're really inheriting are RGSS3's (or RGSS2's) built in classes and modules along with the new RPG classes.

BUT copying and pasting all of RPG Maker XP's RPG classes from the help manual onto the script editor pretty much renders the other makers' RPG classes kind of useless. Sure, a class from Ace like RPG::UsableItem would still be around but it's pretty much just sitting there.

Speaking of those RPG classes, if you're still looking to use RGSS3 with RMXP despite the "Failed to Load Archive" flaw being around when you encrypt your games and finding yourself wanting to get rid of RGSS3's RPG classes, copy and paste this script by IceDragon above everything.



Code:
# // Created By IceDragon
# // Date Created : 03/19/2012
# // Date Modified : 03/19/2012
# // Cheat trick
# // Because everytime you save your game with rmvx it changes the dll to rgss2*.dll
# // You should just rename the rgss3*.dll to the equavilent 2
module RPGRGSS3
  # // Remap all the RGSS3 classes to the current module
  RPG.constants.each { |c| const_set(c,RPG.const_get(c)) }
end
module RPG
  # // Store all the constants
  c = constants.to_a
  # // REMOVE the RGSS3 classes from this module
  c.each { |c| remove_const(c) }
end
but i have a point since it possible for newer version of rgss to be used in older version of rpg maker than it possible to make it the next version of rgss to be compact-able with older version of rgss you just need to code the correct thing.

i mean if i was a programmer i will try to make the newer version of rgss which it can be compact-able with older version of rgss or maybe even in other game engine (i know this is against the enterbrain EULA {i think} but i just talking about that coding doesn't have limitation and have the possibility to make an newer version of rgss that can use the same script from older rgss system) i not a programmer and i know it possible. it like saving time from making the same scripts over and over again every time a newer version of rpg maker released.
It's not as easy as it sounds. Yes, you can make anything running off of the same interpreter (in this case Ruby) "compatible" so to speak, but it doesn't mean their classes will comingle with each other. They could include the other libraries (RGSS, RGSS2, and RGSS3), but you'd have to pick one or the other, otherwise you'd run into repeat classes with different coding. Just like, since RGSS has a different map layering system, a map made in an RGSS game wouldn't be able to run in the same game using the RGSS3 engine and vice versa. So really, all you'd be able to do is make a maker that the user is able to choose which version of the RGSS library they'd want to use. It'd just be easier for them to make RGSS4 where it uses a little bit of each system's classes, or entirely revamped classes that use a map system like RGSS, but has the improvements of RGSS3.
i mean if i was a programmer i will try to make the newer version of rgss which it can be compact-able with older version of rgss or maybe even in other game engine (i know this is against the enterbrain EULA {i think} but i just talking about that coding doesn't have limitation and have the possibility to make an newer version of rgss that can use the same script from older rgss system) i not a programmer and i know it possible. it like saving time from making the same scripts over and over again every time a newer version of rpg maker released.
Yes, I would also like to save the effort of having to write the same script multiple times, but because I've written a couple scripts I feel that there's just no way to do that under the current circumstances.

It's possible if you consider an infinite number of possibilities in the future with an infinite supply of ideas, but if you were a programmer that wrote scripts for RM, you'd probably find that no matter what you do, you couldn't write a single script - efficiently - that will work with all 3 engines. Or even two.

Some people build in conditional branches to check whether you're using XP or VX and load the appropriate class, but that's not a real solution it's just combining two scripts into a single one.

Don't even think about providing compatibility with other game engines if you can't even provide compatibility with two very similar engines with pretty much the same code base.

It's not as easy as it sounds. Yes, you can make anything running off of the same interpreter (in this case Ruby) "compatible" so to speak, but it doesn't mean their classes will comingle with each other.
How about writing a custom RM interpreter that takes "RM code" and translates it to the underlying library? (RGSS, 2, 3).

It would take the code you write, figure out what you're trying to do, and then re-write the code to do the exact same thing, except with the expected classes!

But of course, that's black magic and doesn't seem like something computers can handle trivially.

Maybe provide an interface using a functional language so that we just declare what we want it to do, and then this RM interpreter decides how to do it given the underlying libraries.

Then we don't have to expect the classes to work together. We just need to make them happy with what they have.

If someone really wants to write a script in Ace that uses Ace-only features and expects it to work in XP, sorry XP is going to remove those features and do what it can do.

This would force all scripters to forget ruby and go learn a new language (ie: the RM language), but if executed properly we can have scripts that are compatible with all three engines without having to re-write them for each.

The RM language could be procedural I guess, but being procedural probably makes it harder to implement such an idea.
With interpreted languages, that'd be extremely inefficient, especially with Ruby. Also, I'm not sure if that's entirely possible because, in the end, Ruby is Ruby. What you're writing when writing RGSS is pure Ruby, just using predefined classes. The only way you'd be able to make it work would be by having all 3 still separate DLL files and having writers required which DLL to grab the classes from at the beginning of the script and each script limited to a single class, but still, when it hit the processor, it'd probably more problems than it'd be worth.
I'm sure jomar has a clever way to do it, since he seems to have ambitious ideas (ie: "I know it's possible")

He just needs to describe the process and hand it over to someone with the technical know-how to get it done.

Abstraction might not be the best way to do it, but I can't really think about how to make different things compatible with a single script, as if you're writing for a specific engine, without providing a set of rules that dictate how code should be written.
It's my opinion that they just need to make a new scripting language (say RGSS4) and leave it the same from now on, only making minor patches to the RGSS4 API instead of entire overhauls.
I think if and when rgss4 comes out, we're probably going to have someone trying to use rgss4 in XP or VX and then someone's going to ask whether it's possible to just provide a way so that we can write one script that will be compatible with all four engines lol
So... It could be a simple thing... But it's not, unfortunately.

It's not as simple as rewrite Hidden Classes/Default Engine in Ruby 1.9 and just put it to work... The Ace Game.exe refuses to do the job... We need to find some workaround...

Oh, there's no need to copy all RTP and rename DLLs and such. The objective would be the simplest way to run XP with RGSS3.

Database, Maps, Traits, etcetera. aren't related to this, and thus unnecessary for this task. The RGSS3 powered engine should simply interact with the default XP database. No more than this...
Your logic is entirely flawed. The RGSS3 engine is what creates the layers in maps. It tells the game how to read the map databases, it controls how the scripts interact with the ruby interpreter. It's the heart of the entire thing so no, you can't just copy it over and expect everything to work 100% by just copying. The databases are a different format, probably stored in different ways. The original XP database isn't compatible with the VXAce database.
Let's be realists, there's no point in using RGSS3 on XP, okay it have Ruby 1.9.2 and few extra methods, but the main features that RGSS3 brought are the new Default Scripts structure, and the New RPG classes, both can't be used. There would be a improvement in performance, but in the end you lose performance, because you have to use rewrites from hidden classes Tilemap and Window, wich are a way worse in perfomance.

When someone present me a Tilemap rewrite that runs smooth on an 500x500 map, maybe i can change this statement.
Let's be realists, there's no point in using RGSS3 on XP, okay it have Ruby 1.9.2 and few extra methods, but the main features that RGSS3 brought are the new Default Scripts structure, and the New RPG classes, both can't be used. There would be a improvement in performance, but in the end you lose performance, because you have to use rewrites from hidden classes Tilemap and Window, wich are a way worse in perfomance.

When someone present me a Tilemap rewrite that runs smooth on an 500x500 map, maybe i can change this statement.
Hello there, Victor! =D

Your statement is half true, I agree with the part that there are no great advantages on putting RGSS3 on VX or XP, given the reasons you said. But I'll try to experiment these things to get some results first, before my final veredict. My work is to prove that it could give some extra performance (but not too much). Well, in VX I had good results, since there's only few things to rewrite or edit. In XP I dunno. Yet.

My tests were not conclusive, as I have tested only without any rigid scientific method, it was purely informal, but I did it with RGSS3 and VX engine, and both VX and Ace alone. I used a Tilemap rewrite, wrote by Ramiro, the best (I known) for VX, and a little map. Everything ran well here, generally in RGSS3 VX and RGSS3 game the framerate was a few frames above the RGSS2, as expected, but in the RGSS3+VX, if I didn't saw wrong, the framerate was a bit unstable and lesser (just a lil') than "pure" RGSS3.

And with a 500x500? Wait and we will get there...I tested here with my old Pentium 4, ran VX and Ace around the 30~35FPS. I think my machine is good to show the scenario for simple games, I used such a little map in this test, with no events. Big and complicated maps with lots o' events makes my CPU/RAM crazy and framerate goes down directly to the hell, obviously... Slow computer or no, I think my tests are valid so far, as I think we can workaround this. Let explain my point:

Tweaking the engine and only putting on it what is needed, rather than rewriting everything would be a good solution, if it works. I guess this way we could "convert" some (not every) games to RGSS3, in a reasonable manner. At least, the VX ones. But some work is needed to achieve this. Please observe this method needs total independence of VX RTP (need to copy many RTP files here to work and/or let it use Ace RTP resources), as RGSS3 doesn't can recognise VX RTP. Oh, and there are other minor complications too, but I created some batch files (.bat) to do it to me.

Let's study and see if this solution is viable...
I would also suggest only taking what's actually necessary, but then you'd have to figure out what that is I guess.

However, in terms of scripts compatibility, you should assume that any part of the default (Ace) engine is fair game.

I typically don't write scripts with the assumption that someone may be using a watered down version of the engine, for example.

Otherwise, we have a situation where you have XP scripts, XP SDK scripts (some of which aren't even compatible with the default engine), VX scripts, and VXA scripts. And now VXA-lite lol
I would also suggest only taking what's actually necessary, but then you'd have to figure out what that is I guess.

However, in terms of scripts compatibility, you should assume that any part of the default (Ace) engine is fair game.

I typically don't write scripts with the assumption that someone may be using a watered down version of the engine, for example.

Otherwise, we have a situation where you have XP scripts, XP SDK scripts (some of which aren't even compatible with the default engine), VX scripts, and VXA scripts. And now VXA-lite lol
VXA-lite? I've never heard about of.

XP and VX/VX Ace are soooo different. Maybe the transplant between XP and RGSS3 would be inviable after all. The only decent solution I imagine here is to put all the Tilemap/Window "calculations and rendering" in a third party DLL (similar to the bitmap modifying ones), if applicable. I dunno if it's possible but appears to need a lot of work on this concept.

On "VX and RGSS3" side (I was speculating on this before, it's pretty offtopic) I see a future, but as Victor said, most of the vantages of Ace couldn't be used anyway...
VXA-lite => watered down version of the Ace engine that allows you to port it to VX or XP without having all of the dependencies on the rgss3 library.

Since a good portion of scripts don't access rgss3 specific properties, and the class structure in Ace can be copied over (with some modification) if people don't like the XP design.
VXA-lite => watered down version of the Ace engine that allows you to port it to VX or XP without having all of the dependencies on the rgss3 library.

Since a good portion of scripts don't access rgss3 specific properties, and the class structure in Ace can be copied over (with some modification) if people don't like the XP design.
Where I can find this? We got it here in forum? There's a link? I wanna check it out.Back to the topic, I already tested some conversion like "RGSS2 for XP", but I really don't liked the final result. I'll try the steps here and see if it works well. Someone can comment about the RGSS3+XP? I'm pretty curious about that.
It hasn't been written yet.

Presumably it will be written when someone really wants to port the data structures over from Ace to XP lol
It hasn't been written yet.

Presumably it will be written when someone really wants to port the data structures over from Ace to XP lol
Oh, I understand. OK. I'll wait for it, then. Sounds interesting.

Anyway, I've managed to put RGSS3 to work with the RPG Maker VX Data Structure. Maybe still today I'll be able to post it here. The scripts aren't perfect, but it was more easy than I thought at a first glance.

Victor, what you said to XP could be true, but for VX it's a totally different thing! Definitely what you said is a half truth, hehehe.
I can understand why people would want this on XP. A lot of people still prefer XP's mapping capabilities compared to VX and Ace, but also like Ace's easier scripting methods and newer features. What I can't understand is why you'd bother doing this for VX, when the outcome would pretty much be the same as if you were using VX-Ace. Certainly not to save money, since TF already stated you'd need to own a copy of both editors.

Original thread: https://forums.rpgmakerweb.com/threads/using-rgss3-with-rpg-maker-xp.2936/