[XP] RPG Maker XP Online System (RMX-OS)

Started by Blizzard, June 20, 2009, 11:52:23 am

Previous topic - Next topic

fugibo

Quote from: nirahiel on December 27, 2009, 06:18:21 pm
:'(

Its like i have ruby1.8 and ruby1.9 installed.
When i do "rubt --version" it tells me 1.8.
When i try to remove 1.8 it also asks me to remove ruby...
I dont know what to do to make it work.


Try "ruby1.9." If that works, then I can come up with a workaround for you (probably something like "mv /usr/bin/ruby /usr/bin/ruby1.8", followed by "ln -s /usr/bin/ruby1.9 /usr/bin/ruby").

nirahiel

December 27, 2009, 06:22:53 pm #341 Last Edit: December 27, 2009, 06:23:57 pm by nirahiel
When I enter this its just like waiting... can halt it with Ctrl C though

EDIT :

haha, look this :

ruby1.9 --version
ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux]

fugibo

December 27, 2009, 06:26:01 pm #342 Last Edit: December 27, 2009, 06:27:05 pm by Longfellow
Quote from: nirahiel on December 27, 2009, 06:22:53 pm
When I enter this its just like waiting... can halt it with Ctrl C though


Well, that means that Ruby can be launched from ruby1.9. So "ruby1.9 --version" should give you 1.9. Try this, then:

mv /usr/bin/ruby /usr/bin/ruby1.8
ln -s /usr/bin/ruby1.9 /usr/bin/ruby

It might not work, but it should make scripts run using 1.9 instead of 1.8 (you'll be able to use ruby1.8 to refer to the old version after that).

To undo it, use:

rm /usr/bin/ruby
mv /usr/bin/ruby1.8 /usr/bin/ruby


EDIT:
Also, those might require sudo. So either prepend each line with sudo, or just use "sudo su" and then use those commands.

nirahiel

OK now ruby --version gives me 1.9.0 as expected, need to sleep now, tell me what to do then i'll do it when i wake up :)

thanks.

fugibo

Just try running RMX-OS again. What you've done should run most scripts with Ruby 1.9 now, like I said.

Also, I need to make a tutorial for properly setting up Ruby on Ubuntu. Apparently it's a lot harder than expected (Ruby 1.9 is still marked as unstable IIRC, so Ubuntu has it installed nonstandard. It's easy enough to fix, but until the Ubuntu devs complete the shift people will be stuck with 1.8)

Blizzard

Lol, beat me to it. I was going to suggest to overwrite Ruby 1.8 with 1.9 as well. xD

Quote from: Ryexander on December 27, 2009, 04:35:25 pm
and what about ruby_to_exe? as far as i can tell the exe that it creates can run on any windows environment.


Executable of about 100 MB in cygwin. ._. I already checked that.
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.

Ryex

December 27, 2009, 07:30:30 pm #346 Last Edit: December 27, 2009, 08:14:22 pm by Ryexander
well dam.
and here i thought that it would be easy to just use c++ or something. after all you wouldn't need any thing above .net 2 which is standard in all windows pc's 98 or above
EDIT:
and Waite 100 MB? that can be true
a simple ruby command line script like RMX-OS shouldn't create a exe larger than 8 MB

*goes off to test it*

ok well I ended up using OCRA (just search "OCRA ruby" on google) because it compresses the exe even smaller the used it on RMX-OS it cam out in working order extensions and all at a size of 700KB
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

Yeah, but then you can't really use server extensions.

I said 100MB if you "compile" it under cygwin. I got that info from the guy who made ruby2exe or something like that. I've read his site.
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.

Ryex

blizz you not making much scene. read the below
Spoiler: ShowHide

for one thing I discovered the rubyscript2exe is no longer supported and dosn't work with ruby 1.9
instead I'm now talking about OCRA no compiling necessary to use it
to install it you use
gem install ocra

in a command prompt and it installs the ruby gem
you can then navagate to the server folder and use
ocra RMX-OS.rb

to create a exe with one the ruby stuff it needs to run, this exe is just over 700 kb.
it also loades the extension files into the exe that RMX-OS loaded when ocra ran it to trace all the necessary files
how ever it dose not load the cfg.ini file into the exe and instead looks fore it in the exe's run directory the same for any file that did not get put into the exe itself. like the data folder and any extensions that get added to the cfg after the exe is complied it will look for in the extensions folder.
you can how ever add and extra files that ocra dose not trace and find necessary like so
ocra rmx-os.rb data/*

will compile rmx-os into an exe with the data folder inside the exe
you could then take this exeand any extra file that didn't get added to it (like the extension folder the utilities folder and the cfg.ini to another computer and run rmx-os without ruby or ocra installed

now forget about what i just said because what I'm getting to is that you could use orca to compile a static exe that simply collected messages for the client and forwarded them to the server and did the same for the server's messages to the client
no compiling 100mb files in there at all. the user gets a 700kb file that runs under it's own ruby weather or not the system has ruby.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

But there's still one problem. The user can't edit the server scripts anymore.
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.

Ryex

Quote from: Ryexander on December 28, 2009, 12:23:58 pm
now forget about what i just said because what I'm getting to is that you could use orca to compile a static exe that simply collected messages for the client and forwarded them to the server and did the same for the server's messages to the client
no compiling 100mb files in there at all. the user gets a 700kb file that runs under it's own ruby weather or not the system has ruby.

I'm not talking about using it on RMX-OS I just tested it on RMX-OS to see how it would work for the underlined bolded and quoted purpose
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

Oh, that. >.<
You should still test that one a few PCs with different OSes that don't have to see if it really is that simple.
Also, if I used a relay client, I'd just have the same code twice. I'd need to pass on the data from the relay client to RMXP which would just complicate things unnecessarily.

BTW, this is what I was talking about:
QuoteAnd when I say Windows, I mean both Windows (RubyInstaller, MinGW and MSWin32) and Cygwin. But the generated exe under Cygwin is very, very big, because its exe's are very big (static?) and it includes cygwin1.dll, so it can run on machines without Cygwin.
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.

Ryex

oh that... but then again that is rubyscript2exe which as I said dosen't seem to work under ruby 1.9
OCRA dose, and OCRA compresses the exe with LZMA.
any way my point with the relay client was thet it would be able to communicate with the server with out haveing to call Graphics.update.
many people (on PNO at least) are having the game crash on them while it saves game data between maps because of a script hanging error.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

Eh, that sucks. ._. As I said, twice the code and complicating stuff.
This just shows that you shouldn't use RMXP for a serious MMO project. ._.
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.

Ryex

I suppose your right.
and so I go back to my earlier wish that RMXP could be multi threaded... like that is gonna happen.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

fugibo

If you have to, you can rewrite the sockets library you're using to call the Graphics.update method, but that would require linking against whatever Ruby library RGSS uses.

Blizzard

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.

edwardthefma

January 03, 2010, 01:26:42 pm #357 Last Edit: January 03, 2010, 01:31:15 pm by edwardthefma
i get this wen trying to load my extentions
Spoiler: ShowHide
RMX-OS Server v1.08
==========================================================================
Loading extensions...
Error: 'GlobalDNS' could not be initialized.
uninitialized constant GlobalDNS::RMXOS_VERSION
RMX-OS.rb:69:in `block in load_extensions'
RMX-OS.rb:60:in `each'
RMX-OS.rb:60:in `load_extensions'
RMX-OS.rb:169:in `<main>'
--------------------------------------------------------------------------
> Starting TCP Server at '207.192.71.108:64677'...
> Connecting to MySQL database 'edwardthefma'...
> Optimizing database tables...
   > Optimizing table 'buddy_list'...
   > Optimizing table 'guilds'...
   > Optimizing table 'inbox'...
   > Optimizing table 'save_data'...
   > Optimizing table 'user_data'...
   > Optimizing table 'users'...
--------------------------------------------------------------------------
RMX-OS Server has started successfully at 2010-01-03 18:23:15 UTC.
Host: 207.192.71.108:64677
Press CTRL+C to shut down RMX-OS.


i am UNable to load in the extensions with the new version
and hear is a copy of my cfg
Spoiler: ShowHide
NAME = 'RMX-OS Server'
HOST = '207.192.71.108'
PORT = 64677


RMXOS_VERSION = 1.08

LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 30
AUTO_RESTART = true
RESTART_TIME = 5
OPTIMIZE_DATABASE_ON_STARTUP = true
DATABASE_CONNECTION_TIMEOUT = 60

SQL_HOSTNAME = 'localhost' # SQL Host
SQL_USERNAME = 'edwardthefma' # SQL Username
SQL_PASSWORD = '********' # SQL Password
SQL_DATABASE = 'edwardthefma' # SQL Database

INBOX_SIZE = 10

EXTENSIONS = ['GlobalDNS'
]



i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
shellium.org :) free linux shells pm me and i will gladly
help you get 1

Blizzard

*points to the Global DNS topic where he said that there is a new version that works with RMX-OS 1.08* -_-
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.

edwardthefma

ok it is working now and evry thing is going good
i am the lead dev for the shellium mmorpg project
http://wiki.shellium.org/w/Mmorpg
shellium.org :) free linux shells pm me and i will gladly
help you get 1