[XP] Versioning for RMX-OS

Started by Blizzard, May 30, 2010, 04:42:57 am

Previous topic - Next topic

G_G

Just a suggestion. Make the folder "Version" in your client folder. Then inside it make a folder "2". Thats where the error is pointing towards.

mroedesigns

I tried it, didn't work. I figured the version folder would go in the server though? I also tried putting it in the Extensions folder like Extensions/Version/2/Scripts.rxdata but it's doing the same thing.

mroedesigns

So I probably shouldn't be double-posting so soon, but I still haven't been able to figure this out. Either I'm putting the directory structure together wrong, or I'm missing something. But the fact that everything up to that point (game version checking, recognizes the update is needed, and tries to update) works is really confusing me. Anyone have any idea what could be causing this?

diagostimo

i know that this might be a bit of necro, but if your still having the issue of it relizing it needs to update but closing the conection to the server, i resolved this after a mess around, so i coppied the client folder to the desktop, with the game version as 1, i then edited some tilling in my project that is still in the rpg m os folder, then changed its game version to 2, also changing its extension version to 2, i test the rpg m os folders client, and it works, i can see the tiles i just edited, i also add 2.txt to the extensions folder and add this comand to it:

:dir
C:/Documents and Settings/User/Desktop/2112 with rmx-os/RMX-OS Client/Data
Data

then i launch the client i copied to my desktop that is still at version 1, it updates it and allows the game to launch, i can see the tiles i edited.
obviously i got:
C:/Documents and Settings/User/Desktop/2112 with rmx-os/RMX-OS Client/Data
from the location of folder that im using to apply the update so it will vary depending wheres yours is, i hope this is some help to who ever it may concern :)

Xolitude

Would I be allowed/be able to re-write this for my own RPG Maker VX master-server?

Blizzard

Yes, sure. Feel free to do so. Just don't forget to include me in the credits and release it under the same license.
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.

Xolitude

Quote from: Blizzard on March 31, 2013, 07:30:53 pm
Yes, sure. Feel free to do so. Just don't forget to include me in the credits and release it under the same license.


Of course ^.^

Is it possible to write it for RPG Maker VX client+server?

Blizzard

Yeah, you only have to change to code to fit your server and the VX client.
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.

Xolitude

Quote from: Blizzard on March 31, 2013, 08:20:53 pm
Yeah, you only have to change to code to fit your server and the VX client.


Oh ok :)

Blizzard

Updated to work with RMX-OS 2.0.
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.

goth1sniper

this is the error i get when updateing the Scripts.rxdata file
Tue Jun 17 09:15:46 Pacific Daylight Time 2014:
Invalid argument - C:/Users/User/AppData/Local/Temp/RMXP_update1/Data/Scripts.rxdata
Versioning updater:242:in `initialize'
Versioning updater:242:in `open'
Versioning updater:242:in `check_connection'
(RMX-OS) Script:929:in `listen'
(RMX-OS) Script:926:in `each'
(RMX-OS) Script:926:in `listen'
(RMX-OS) Script:5873:in `waiting_for_server_versioning_later'
Versioning updater:481:in `waiting_for_server'
(RMX-OS) Script:5685:in `waiting?'
(RMX-OS) Script:5821:in `update_versioning_later'
Versioning updater:452:in `update'
(RMX-OS) Script:5550:in `main'
(RMX-OS) Script:5547:in `loop'
(RMX-OS) Script:5552:in `main'
-<:::RMX-OS Main:::>-:47


Here is the update text file
:file
versions/2/Scripts.rxdata
Data/Scripts.rxdata


If I try it with this it works
:file
versions/2/test.txt
Data/test.txt

Blizzard

Check if the file exists. It might be possible that your PC doesn't allow temporary files. :/
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.

goth1sniper

The file is there.
if i do this
:file
versions/2/test.txt
Data/test.txt

It workes but if I add the scripts file it gives me the error.
I even made a blank text file an named it test.rxdata an it gave me the error.
It has somthing to do with the .rxdata

Blizzard

No, I meant check if it exists in the temporary folder on the client's PC.
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.

goth1sniper

Quote from: Blizzard on June 17, 2014, 03:45:03 pm
Check if the file exists. It might be possible that your PC doesn't allow temporary files. :/


Oh om sorry.
No It wont send it. I looked in C:\Users\User\AppData\Local\Temp\RMXP_update1\Data
The text file I send will be in there When I test the update with that.

Sylphe

Having exactly the same error "Script  'Versionning' at line 241 : Errno::EINVAL occurred.

Invalid Argument -
C:/Users ... /Temp/RMXP_update2/Game.rgssad

The line is "file = File.open(path, 'wb')"
Maybe it is because it tries to Open the rgssad file ?

:/ annoying error though
blindly follow his heart can lead to the loss

Sylphe, descendant of Zoldik Family.
Quote from: TedBearTRY KEEP UP

whitespirits

OK so im having an error with this system similar to everyone else

Spoiler: ShowHide


I have my config set to

:dir
versions\2

is it again to do with the temps not being there? is there a way around it?


Blizzard

Just change the temp dir in the extended configuration then.

TempDir = ENV['TEMP'].gsub('\\', '/') + '/RMXP_update' # system temp folder


TempDir = 'RMXP_update'
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.

whitespirits

Thanks blizz i see it makes the folder now in game Dir its still having this error tho man

Spoiler: ShowHide

Blizzard

Ok, you didn't set up the version file properly in the first place. Look at the examples. Do you see any \ characters? No, they are all / characters, because \ is an escape character that is not interpreted as an actual character.
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.