Author Topic: [XP] Versioning for RMX-OS  (Read 34071 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] Versioning for RMX-OS
« on: May 30, 2010, 10:42:57 AM »
Versioning for RMX-OS
Authors: Blizzard
Version: 1.21
Type: RMX-OS Plugin
Key Term: RMX-OS Plugin

Introduction

This script allows you to create updates for your game and is fully integrated into RMX-OS which makes external systems unnecessary.

This script is to be distributed under the same terms and conditions like the scripts it was created for: RMX-OS.

Features

  • allows the definition of update procedures
  • completely integrated into RMX-OS and your game
  • makes external update systems unnecessary

Screenshots

N/A for this sort of script

Demo

N/A

Script

Just make a new script above main and paste this code into it.
(click to show/hide)

Make a new file with an .rb extension in the Extensions folder of RMX-OS and copy-paste this script into it.
(click to show/hide)


Instructions

In the script in the first comment.

Compatibility

Requires RMX-OS to work.

Credits and Thanks

  • Boris "Blizzard" Mikić

Author's Notes

Remember to activate the server extension by adding the server extension filename to the list in the configuration.

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! N-Joy! =D
« Last Edit: March 23, 2019, 06:32:19 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline AliveDrive

  • Astral Trancist
  • *****
  • Posts: 690
  • LV: 17
  • Gender: Male
  • Nyah!
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #1 on: May 30, 2010, 10:45:33 AM »
OMG YES.  :haha:
The permanent solution for your problem would be to stop hanging out with stupid people.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #2 on: May 30, 2010, 10:52:15 AM »
As I said, I will release it later. Now it is "later". xD
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline SBR*

  • Chaos User
  • ******
  • Posts: 1195
  • LV: -7
  • Gender: Male
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #3 on: May 30, 2010, 12:15:52 PM »
Oh yeah! Now the only thing left to do is making MySQL work again :'(... It keeps on giving me errors that say "Host 'localhost' is not allowed to connect to the server". I tried searching it on google, but it didn't work. I'm now trying to FULLY delete it...

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #4 on: May 30, 2010, 05:44:13 PM »
I'm slightly confused on this (sorry for being noobish)
So in the RMX-OS folder that we downloaded do we put in the game and rename it "versions/2/Game"? If so, my computer won't let me rename things with "/"......


Nevermind, I think I get it....



Edit: Now I'm having more problems. At first, it showed that there was no "2.txt" so I tried restarting the server. Now it doesn't seem to do this anymore, but it now says "You have been disconected" and gives this error in the error logs.....

(click to show/hide)

edit: Are you sure syntax is the problem, because I get this error even when I just copy one of the examples for the comments in the script
« Last Edit: May 31, 2010, 12:35:21 AM by Wizered67 »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #5 on: May 30, 2010, 10:40:17 PM »
Code: [Select]
# Notes:
#   
#   - There is no syntax checking or other verification of your version log
#     files. It is recommended not to use batch processing with one command but
#     use a command for every single file or directory.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #6 on: May 31, 2010, 02:17:49 AM »
I thought you were retired >___>

Anyways nice job!

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #7 on: May 31, 2010, 08:46:35 AM »
I promised to post this before I retired. Since I couldn't post it months ago, I've posted it now. Think of it as a script that traveled through  time into the future. :V:
« Last Edit: May 31, 2010, 08:55:21 AM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

tipsta

  • Guest
Re: [XP] Versioning for RMX-OS
« Reply #8 on: June 05, 2010, 01:00:50 PM »
Well,
Its a great idea, but im having trouble getting it to work.

Currently im getting this error,
Code: [Select]
undefined method `gsub!' for nil:NilClass
./Extensions/(RMX-OS) Version.rb:54:in `block in client_update'
C:/Documents and Settings/Owner/Desktop/Project/Server/Extensions/(RMX-OS) Version.rb:54:in `each'
C:/Documents and Settings/Owner/Desktop/Project/Server/Extensions/(RMX-OS) Version.rb:54:in `client_update'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Client.rb:43:in `block in handle'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Client.rb:43:in `each_value'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Client.rb:43:in `handle'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Server.rb:275:in `block in run'

And my version file looks like,
Code: [Select]
:file
v/Scripts.rgssad
Scripts.rgssad

Not sure if i have done something wrong, or if its the script itself.

Also,
Would it be possible to set this up so the server directs the clients to download the file from a web server?
So basically,

Client connects
Server tells client it needs to be updated
Client Accepts
Server reads update file and tells client to download from "http://url.of.updates.com/updates/*number/*file.*"
Client downloads from "http://url.of.updates.com/updates/*number/*file.*"


I think it would be better than downloading the updates from the server.

Yours,
Tipsta
« Last Edit: June 05, 2010, 01:17:11 PM by tipsta »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #9 on: June 07, 2010, 01:39:52 PM »
Well,
Its a great idea, but im having trouble getting it to work.

Currently im getting this error,
Code: [Select]
undefined method `gsub!' for nil:NilClass
./Extensions/(RMX-OS) Version.rb:54:in `block in client_update'
C:/Documents and Settings/Owner/Desktop/Project/Server/Extensions/(RMX-OS) Version.rb:54:in `each'
C:/Documents and Settings/Owner/Desktop/Project/Server/Extensions/(RMX-OS) Version.rb:54:in `client_update'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Client.rb:43:in `block in handle'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Client.rb:43:in `each_value'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Client.rb:43:in `handle'
C:/Documents and Settings/Owner/Desktop/Project/Server/Data/Server.rb:275:in `block in run'

And my version file looks like,
Code: [Select]
:file
v/Scripts.rgssad
Scripts.rgssad

Not sure if i have done something wrong, or if its the script itself.

If you are getting that error, then you haven't set it up right or put your files in the right folder.

Also,
Would it be possible to set this up so the server directs the clients to download the file from a web server?
So basically,

Client connects
Server tells client it needs to be updated
Client Accepts
Server reads update file and tells client to download from "http://url.of.updates.com/updates/*number/*file.*"
Client downloads from "http://url.of.updates.com/updates/*number/*file.*"


I think it would be better than downloading the updates from the server.

This is not a download system, this is an updating system. It uses the connection to the game server to update the game.
If you want a system that downloads files, get one.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

tipsta

  • Guest
Re: [XP] Versioning for RMX-OS
« Reply #10 on: June 07, 2010, 11:14:25 PM »
Well, i don't think i set it up wrong because if i leave my update file (2.txt) empty it works until it throws the error, "Unable to find temp dir"

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #11 on: June 07, 2010, 11:57:25 PM »
I think your operating system is messed up. The script uses the temporary folder of the operating system and when you are getting that error, then it's possible that you TEMP environment variable doesn't exist.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #12 on: June 23, 2010, 05:50:44 PM »
Yes!!!!!! I finnally figured out why I was getting that error before! It was all because I had listed my extensions in the wrong order!

Anyway, now that thats over, it gives an error saying
No such file or directory -C:/Users/ME/AppData/Local/Temp/RMXP_update


So do I have to go in and MAKE this folder and put the updates in there? Please can you help me. I'm hopelessly lost!

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #13 on: June 24, 2010, 12:52:30 AM »
No, the script automatically makes those folders that you need.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #14 on: June 24, 2010, 01:04:02 AM »
So then how come it's giving me this error?
What can I do to fix it?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #15 on: June 24, 2010, 08:23:01 AM »
Well, obviously the folders aren't created. To which folder does the path exist?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #16 on: June 25, 2010, 02:43:11 AM »
I'm not completely sure I understand your question, but if I know it right then:
I have the AppData folder, then local, then temp, just not the RMXP_Update folder.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20013
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Versioning for RMX-OS
« Reply #17 on: June 25, 2010, 09:00:44 AM »
I'll remember to check that then. The game should create the RMPX_update folder.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 512
  • LV: 16
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #18 on: June 25, 2010, 05:31:21 PM »
Thanks Blizzard. I appreciate you looking into it even though you're retired.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Versioning for RMX-OS
« Reply #19 on: June 26, 2010, 01:05:12 AM »
Thanks Blizzard. I appreciate you looking into it even though you're retired.

*whispers* Dont remind him! He may remember then not fix it :V*whispers*