Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Blizzard on June 20, 2009, 11:52:23 am

Title: [XP] RPG Maker XP Online System (RMX-OS)
Post by: Blizzard on June 20, 2009, 11:52:23 am
RPG Maker XP Online System
Authors: Blizzard
Version: 2.06
Type: Multiplayer Online System
Key Term: Misc System

Introduction

This system features a set of scripts that are used in RPG Maker XP (client scripts) and another set that require Ruby itself (server scripts). Using this system allows to create multiplayer online games with RPG Maker XP.
Note that this is merely a very powerful tool. It is up to you to make your game awesome using this tool.

This work is licensed under BSD License 2.0:
QuoteCopyright (c) Boris "Blizzard" Mikić
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1.  Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.

2.  Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

3.  Neither the name of the copyright holder nor the names of its contributors
    may be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

You may use this script for both non-commercial and commercial products without limitations as long as you fulfill the conditions presented by the above license. The "complete" way to give credit is to include the license somewhere in your product (e.g. in the credits screen), but a "simple" way is also acceptable. The "simple" way to give credit is as follows:
QuoteRPG Maker XP Online System licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikić

Alternatively, if your font doesn't support diacritic characters, you may use this variant:
QuoteRPG Maker XP Online System licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikic

In general other similar variants are allowed as long as it is clear who the creator is (e.g. "RMX-OS created by Blizzard" is acceptable). But if possible, prefer to use one of the two variants listed above.

If you fail to give credit and/or claim that this work was created by you, this may result in legal action and/or payment of damages even though this work is free of charge to use normally.


Features

The features are listed in the Manual chapter 1.1. for convenience.

Screenshots

N/A


Demo

RMX-OS (https://downloads.chaos-project.com/scripts/RMX-OS.zip)

Script

Included in the demo.


Instructions

The instructions can be found in the User Manual.


Compatibility

It is recommended not to use RMX-OS with SDK. Generally RMX-OS is over 95% compatible with SDK 1.x and over 90% compatible with SDK 2.x, but due to unexpected behavior you are running risk of bugs and save data corruption. Carefully decide if you want to use SDK in your project.
Incompatible with the RGSS100J.dll. RMX-OS was coded to be compatible and extensible so most scripts should work normally with RMX-OS. Scripts that require a server extension (i.e. an ABS) might need additional extensions for any script specific (i.e. battle related) enhancements (i.e. special skill processings from Tons of Add-ons). Using a generic Anti-Lag system with RMX-OS might conceptually not be a good idea, because of online interaction between characters. Make sure your Anti-Lag system can work with RMX-OS properly without causing problems.


Credits and Thanks


Author's Notes

If you have problems opening the .chm manual file, please read this article: http://blogs.technet.com/seanearp/archive/2007/05/28/can-t-read-chm-compiled-help-on-vista-xp-2003.aspx
The solution is at the bottom, you don't need to read the whole article.

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

That's it! N-Joy! =D
Title: Re: [XP] RMX-OS
Post by: Starrodkirby86 on June 20, 2009, 11:54:43 am
Quote
It is recommended not to use RMX-OS with SDK. Generally RMX-OS is over 95% compatible with SDK 1.x and over 90% compatible with SDK 2.x, but due to unexpected behavior you are running risk of bugs and save data corruption. Carefully decide if you want to use SDK in your project.


:rofl: You just had to say that nicely.

Wow, this is going to be the replacer for Netbattle, yeah?

I am very proud of you for finishing it and I'm glad that a new script created by you would be something this massive.

(First :3)
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 20, 2009, 12:00:01 pm
Cool! 8)

*goes to try it out*
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 20, 2009, 12:02:56 pm
Remember to read the manual. :P

Quote from: Starrodkirby86 on June 20, 2009, 11:54:43 am
Quote
It is recommended not to use RMX-OS with SDK. Generally RMX-OS is over 95% compatible with SDK 1.x and over 90% compatible with SDK 2.x, but due to unexpected behavior you are running risk of bugs and save data corruption. Carefully decide if you want to use SDK in your project.


:rofl: You just had to say that nicely.


:3 Worst thing, I was actually serious. xD

Quote from: Starrodkirby86 on June 20, 2009, 11:54:43 am
Wow, this is going to be the replacer for Netbattle, yeah?


Yes. But it's not done yet. For v1.0 I want to add chat (probably also a buddy list) and maybe some other minor things (probably guilds), I'll see.

Quote from: Starrodkirby86 on June 20, 2009, 11:54:43 am
I am very proud of you for finishing it and I'm glad that a new script created by you would be something this massive.

(First :3)


<3 It has almost 3000 lines of code and comments. I didn't know it was that long until I put all scripts into one file, lol!
Title: Re: [XP] RMX-OS
Post by: Ryex on June 20, 2009, 12:30:00 pm
so... dose JC know that this is out yet?/ have you finished his version?
Title: Re: [XP] RMX-OS
Post by: Calintz on June 20, 2009, 12:32:55 pm
Sounds intriguing, but I prefer original games rather than OMMRPGs.
Title: Re: [XP] RMX-OS
Post by: Aqua on June 20, 2009, 12:33:20 pm
Congratz on releasing this new and big project.

Hopefully it'll become like... super mega awesome D:
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 20, 2009, 12:45:16 pm
Quote from: Ryexander on June 20, 2009, 12:30:00 pm
so... dose JC know that this is out yet?/ have you finished his version?


No, because he can't use it with the new client. I am going to implement and edit it for him when I'm done with RMX-OS.
Title: Re: [XP] RMX-OS
Post by: G_G on June 20, 2009, 01:01:15 pm
I've been waiting for this forever!!! Now to test it out and give feedback
Title: Re: [XP] RMX-OS
Post by: fugibo on June 20, 2009, 01:26:02 pm
Blizz, I may be wrong, but aren't Regular Expressions, like, brutally slow? Like, hash-lookup-level-times-ten slow? 0_o It might not be such a problem with simple ones, and it might not matter since the engine might be waiting on the server anyway, but that's not the sort of thing I'd think would be very reliable in such a time-sensitive environment >_<
Title: Re: [XP] RMX-OS
Post by: Ryex on June 20, 2009, 01:42:57 pm
Quote from: Longfellow on June 20, 2009, 01:26:02 pm
Blizz, I may be wrong, but aren't Regular Expressions, like, brutally slow? Like, hash-lookup-level-times-ten slow? 0_o It might not be such a problem with simple ones, and it might not matter since the engine might be waiting on the server anyway, but that's not the sort of thing I'd think would be very reliable in such a time-sensitive environment >_<

well how else is the server going to interpret messages from the client and the client from the server?
Title: Re: [XP] RMX-OS
Post by: fugibo on June 20, 2009, 01:57:25 pm
Quote from: Ryexander on June 20, 2009, 01:42:57 pm
Quote from: Longfellow on June 20, 2009, 01:26:02 pm
Blizz, I may be wrong, but aren't Regular Expressions, like, brutally slow? Like, hash-lookup-level-times-ten slow? 0_o It might not be such a problem with simple ones, and it might not matter since the engine might be waiting on the server anyway, but that's not the sort of thing I'd think would be very reliable in such a time-sensitive environment >_<

well how else is the server going to interpret messages from the client and the client from the server?


You don't have to use regular expressions to compare strings >_<
Title: Re: [XP] RMX-OS
Post by: bradhawk on June 21, 2009, 01:09:52 am
whoa, awesome Blizz, i'll try this, i belive if you make this, it will lagless ^^

thanks before...
Title: Re: [XP] RMX-OS
Post by: G_G on June 21, 2009, 01:17:42 am
Hey blizz or someone could someone help me with a step by step tutorial on how to go setting this whole thing up right?
It'll help me and I'm sure others.

Thanks in advance! ^_^
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 21, 2009, 03:08:53 am
Only thing I'm having trouble with is the MySQL database... after I make the daabase it just says that it couldn't connect to the database whenever I try to actually do anything with it :(
Title: Re: [XP] RMX-OS
Post by: Reygekan on June 21, 2009, 03:10:45 am
Why is it that it takes me 8000+ lines of code to do a working Hearts game in Java, whereas you can pull this kind of magic in 3000?

Sounds like the sex. And the sex always sounds good.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 21, 2009, 07:00:09 am
Quote from: Longfellow on June 20, 2009, 01:26:02 pm
Blizz, I may be wrong, but aren't Regular Expressions, like, brutally slow? Like, hash-lookup-level-times-ten slow? 0_o It might not be such a problem with simple ones, and it might not matter since the engine might be waiting on the server anyway, but that's not the sort of thing I'd think would be very reliable in such a time-sensitive environment >_<


Depends on how the parser was implemented. But I agree, it might be a good idea to test that on speed. It's true, I don't need regular expressions to compare strings.

'abc' == 'abc'


But regular expressions aren't meant to compare strings. They are meant to find string patterns. As I said, I can change my system in such a way so I don't use string expressions. But the question is whether

if message =~ /SAV(.+)\t(.+)/
 type = $1
 value = $2
 # stuff
end


is REALLY slower than

string = message[0, 3]
if string == 'SAV'
 data = message[3, message.size - 3]
 type, value = data.split("\t")
 # stuff
end


because regular expressions don't only find string patterns, no, they also find matched substrings after matching a string to a pattern.

As I said, it depends on how the parser was implemented and what kind of regular expression you use. I've had a class that was almost only based on grammars, finite state machines and regular expressions (and I had an A, yay). What I'm trying to say is that I know what I'm talking about.

Quote from: Reygekan on June 21, 2009, 03:10:45 am
Why is it that it takes me 8000+ lines of code to do a working Hearts game in Java, whereas you can pull this kind of magic in 3000?


Why does Netplay+ 1.7 have like 3 times more code (I haven't counted, honestly) and the chat system is the only thing that RMX-OS doesn't have (yet)? I honestly don't know. Maybe the way of coding or experience. It's said that a good programmer is up to 20 times faster than a bad programmer (and of course a good programmer produces better code). Maybe it is also related to the number of coded lines. I don't know. I didn't do any research on productivity of programmers.

Quote from: Reygekan on June 21, 2009, 03:10:45 am
Sounds like the sex. And the sex always sounds good.


Like Munkey said, Remexos = anagram for "more sex". xD
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 21, 2009, 07:07:01 am
I keep getting this error no matter I use,
Quote
Can't cannot to MySQL server on 'localhost' (10061)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 21, 2009, 08:11:56 am
Did you install MySQL properly? Did you set the username and password for MySQL in cfg.rb properly? Is MySQL even running? Control Panel -> Administrative Tools -> Services and find MySQL. The service should be anything else but disabled and started.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 21, 2009, 09:12:42 am
I think I installed it right and of course it's running, I'm not stupid :P And yeah the username and password are set up properly too...
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 21, 2009, 09:20:10 am
Just checking. I've made the simplest mistakes myself.

Try using '127.0.0.1' instead of 'localhost'. Maybe your PC doesn't respond well to URLs.

If you can't get it running this way, try downloading and using XAMPP instead. Deinstall MySQL first.
Title: Re: [XP] RMX-OS
Post by: G_G on June 21, 2009, 10:34:53 am
*points at blizz's post*
not 666 again :(

How would we use XAMPP than instead? GOD I dont get the instructions in the manual at all!!?!??!!GRRAA
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 21, 2009, 11:56:05 am
Good news! Server says online now :D
Bad news, it says Server did not respond when you try to actually get onto it... :(

EDIT: Okay, it stays online for a while then goes offline, and it doesn't come back on unless I restart the server, then it goes offline again etc, etc.
Using XAMPP
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 21, 2009, 12:55:58 pm
Did the server crash anyhow (and auto-restarted)?
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 21, 2009, 01:43:26 pm
Server never crashed, no. It's staying online now, I managed to connect and create an account. All was going well until I talked to the green haired girl and an error came up about the auto save fuction, sorry don't know the exact error :-/ Haven't been able to get back into the game since. Now, server still says it's online, I select the server to connect to an error comes up saying server did not respond, same if you try it a second time, then I get this on the third or forth try,
Spoiler: ShowHide
(http://img190.imageshack.us/img190/872/errorriw.png)

And same thing again after I restart the game
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 21, 2009, 01:57:46 pm
Ah, I see. I removed the AutoSaver module for this release. But it's a bug that you can't reconnect. I will look into this.
Title: Re: [XP] RMX-OS
Post by: Memor-X on June 21, 2009, 08:18:33 pm
*explodes* for the past week i've been trying to get a demo of a system like this from another forum to work to see how it's like and you made one! i waisted all this time trying to get the other one to work (worked out it's not even in english) *downloads*, well it was made by you Blizz then i have no doubts that it'll work (apart from the error or bug here and there but that's expected), apart from the server, i keep getting this

(http://i76.photobucket.com/albums/j14/Memor-X/error.png)

i'm using Wampserver 2.0 to test it, it's got the correct MySQL version and i download the right Ruby Version, i've almost amde the correct chnages to the config, any ideas what's going on
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 22, 2009, 10:15:36 am
You already have something running on the port that I specified as default or you have run it more than once for some reason because it's reinitializing a constant.
Title: Re: [XP] RMX-OS
Post by: Valcos on June 22, 2009, 12:04:27 pm
Sweet. If this is anything like setting up a MS private server, its gonna be easy xD. But, for that, all the resources were there for you... really didnt have to do much :<_<:
Title: Re: [XP] RMX-OS
Post by: nathmatt on June 23, 2009, 02:57:40 pm
i open the cfg file and it closes automatically

edit opened it in a text doc & it opened but i cant get the server u have to run if i tell the game to run strait on the sql it says online but the server dose not respawn
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 03:38:43 pm
Ok, I have no idea what you just said. I got lost after the part that you opened cfg.rb in a text editor.
Title: Re: [XP] RMX-OS
Post by: nathmatt on June 23, 2009, 03:47:48 pm
if i change the port in module RMXOS::Options to the port mysql already has it will say online but says the sever will not respond

if i change the cfg file & try to open the rmx-os file in the some folder it wont connect
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 03:50:55 pm
If you change the port in the cfg file, you need to change it in the game's client as well.

Are you sure that you did it properly? You must not type something like 127.0.0.1, it HAS TO be '127.0.0.1'.
Title: Re: [XP] RMX-OS
Post by: nathmatt on June 23, 2009, 03:55:21 pm
the help file says my
User: root
  Password:
  (means no password!)
so i did this

NAME = 'RMX-OS Server'
HOST = '127.0.0.1'
PORT = 3306
VERSION = 0.8

LOG_MESSAGES = false
LOG_ERRORS = false
AUTO_RESTART = true
RESTART_TIME = 5

SQL_HOSTNAME = 'localhost' # SQL Host
SQL_USERNAME = "root"
SQL_PASSWORD =
SQL_DATABASE = 'rmxosdb' # SQL Database

EXTENSIONS = [
   'Blizz-ABS'
]
i get the port when i open the mysqlstart.bat
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 03:57:24 pm
Port 3306 is reserved for SQL, why are you using is for the game? o_o;
If you have no SQL password, it should be

SQL_PASSWORD = ""


Oh, and remove the extension. There is no Blizz-ABS extension yet. ._.
Title: Re: [XP] RMX-OS
Post by: nathmatt on June 23, 2009, 03:58:18 pm
not sure how to change the port lol
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 03:59:26 pm
Just change it back to the default value. I think I used 54269.
Title: Re: [XP] RMX-OS
Post by: nathmatt on June 23, 2009, 04:03:03 pm
i never changed the port in the first place & dont know how to change it


edit i will work on it more l8er
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 04:09:33 pm
Quote from: nathmatt on June 23, 2009, 03:55:21 pm
PORT = 3306
Title: Re: [XP] RMX-OS
Post by: jcsnider on June 23, 2009, 04:54:47 pm
It is great that this is out.

Some one asked if I knew about this.
Blizzard gave me .8 a week ago. At the time all he really needed to do was documentate... it took him forever, or maybe he was busy with something else so read it!

So yes I knew about it, but I didnt know about the release until now.
It will be great replacement for netplay
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 04:57:07 pm
Yeah, I was busy with some other stuff. xD But on saturday I sat down and just did it. Took me over 4 hours to finish the commenting of the code and make a manual. >.<

What RMX-OS now needs to proper stress testing. KOA and PNO will be the pilot games using RMX-OS. ^_^
Title: Re: [XP] RMX-OS
Post by: G_G on June 23, 2009, 05:50:01 pm
when I run sql and press connect it says it cant connect to localhost
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 05:53:49 pm
Please some more details. From where are you trying to connect? From a management software, from RMX-OS, etc.? Have you checked your password? Are you sure that it's right? If localhost doesn't work, try using 127.0.0.1.
Title: Re: [XP] RMX-OS
Post by: G_G on June 23, 2009, 05:58:16 pm
first one question which one am I supposed to run?
Query Browser
Adminstration
or Migration Toolkit
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2009, 06:06:07 pm
IDK. I use phpmyadmin for it. Try query browser. All you need to do is the execute the query in the .sql file.
Title: Re: [XP] RMX-OS
Post by: G_G on June 23, 2009, 06:22:37 pm
EDIT:::
That problems fixed but now all I get is Server didnt respond everytime I try to click on my server. It says its online and its a localhost server but its not loading through.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 06:30:49 am
You are making no sense again. I have no idea what you just said. ._. What happens when you select that option?
Title: Re: [XP] RMX-OS
Post by: Sally on June 24, 2009, 08:05:45 am
are we expecting any updates for this? like maybe... blizz ABS to work with it... =]
Title: Re: [XP] RMX-OS
Post by: jcsnider on June 24, 2009, 08:08:12 am
He did say in post number 1. It has options where you can add extensions, one of these extensions will sooner or later be Blizz ABS but sometime after 1.0 comes out.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 10:34:09 am
EDIT: Nevermind, I put up v0.81.
Title: Re: [XP] RMX-OS
Post by: Sally on June 24, 2009, 11:49:22 am
To prove that it works:
http://www.sendspace.com/file/edntmk

Hosted my me =]
Server will probably be up most of the time... if not expect it to be up soon. pm me :)
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 24, 2009, 03:10:41 pm
If I set up an evented class and character graphic selection screen, would it save everything for the player? Or is there some script snippets I need to include etc,?

Oh and I haven't had any server problems with the update like I did with the first version ^^
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 03:20:47 pm
Yes, actor data is being saved (that's how the default configuration is set up) except for temporary stuff like battle actions. You don't need anything else.
Title: Re: [XP] RMX-OS
Post by: G_G on June 24, 2009, 03:33:50 pm
Would it be possible for a later version to have online battles with people? Using the dbs or something? Have team vs team or something? That would be pretty cool.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 24, 2009, 03:42:35 pm
dbs... meh. I'd prefere online battles with peopel with blizz abs. Speaking of which, when RMX-OS is Blizz ABS compatable, will we be able to define certain maps as PvP?
Also, say if I was making a game where 2 armies were against each, would you be able to have them not be able to damage each other but only the other side? And have an option for the player to turn that off... betrayal... awesomeness :D
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 03:48:11 pm
My idea was that you need to invite somebody into PvP and you can do it on any map or you can PvP anywhere.
Title: Re: [XP] RMX-OS
Post by: G_G on June 24, 2009, 04:04:00 pm
that'd be okay for abs but like maybe not the dbs but a side view one maybe I dunno I just figured being able to choose between an abs or a turned base battle system would be cool.
Title: Re: [XP] RMX-OS
Post by: Sally on June 24, 2009, 04:11:43 pm
like wow's duels...

but there should also be able a place where everyone can attack everyone else...
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 04:33:35 pm
Quote from: game_guy on June 24, 2009, 04:04:00 pm
that'd be okay for abs but like maybe not the dbs but a side view one maybe I dunno I just figured being able to choose between an abs or a turned base battle system would be cool.


Ok, how about we add straight 10 different battle systems so players have a choice?
Title: Re: [XP] RMX-OS
Post by: G_G on June 24, 2009, 04:52:19 pm
...I meant just two different ones for the person who is making the game to choose from.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 24, 2009, 04:57:46 pm
Okay problem...

Me and Drake joined a game together and when we get on the same map I get this error

Quote
Script '(RMXP) Spriteset_Map' line 29: NoMethodError occured.

undefined ,ethod 'create_network_player' for #<Spriteset_Map:0x186d2b8>


Also as a suggestion, maybe a character creation scene where the player can pick a graphic character name and a class.
Oh and I thought the names displayed over the players heads :O.o:
Title: Re: [XP] RMX-OS
Post by: G_G on June 24, 2009, 05:00:05 pm
change that line (i think its 29) to this
added.each {|id| create_character_sprite($network.players[id])}


Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 05:39:16 pm
Ok, if one person gives me one more "suggestion", I'll stop working on this. Seriously, guys, what do you think I am? An idiot? "Names over players' heads", "Blizz-ABS support", "guilds", "admin controls", "mouse controls", etc. My to-do list includes even non-trivial stuff beyond those here so stop bombarding me with requests. I shouldn't have released this in the first place. I give you a finger and you pull out my entire arm. I am making a system for online gaming here, not a game. Seriously.

Quote from: Hellfire Dragon on June 24, 2009, 04:57:46 pm
Also as a suggestion, maybe a character creation scene where the player can pick a graphic character name and a class.


Spoiler: ShowHide
OMG, IT'S A MIRACLE
(http://img261.imageshack.us/img261/2307/snap872.png)
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 24, 2009, 06:15:37 pm
xD Blizz is a little mad huh? Yeah I evented it. I have the player starting on that screen but I wanted to have it check if the player had already made character. I tried using a switch and conditional branch but the data would have tobe saved.
I just remember you removed the auto-save for this version :uhm:
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 06:27:13 pm
Yes, the auto-save isn't really finished yet (in fact, I haven't even started this auto-save yet).

If you REALLY want a script for things like that, don't you think somebody had that idea before you and already made one? :P

I've just put up v0.82. I've fixed an issue with saving and I added name sprites and chat. I've also started some other things that are partially done in the script, but not really "enabled" yet.
Title: Re: [XP] RMX-OS
Post by: Ryex on June 24, 2009, 07:02:17 pm
Quote from: Blizzard on June 24, 2009, 05:39:16 pm
Ok, if one person gives me one more "suggestion", I'll stop working on this. Seriously, guys, what do you think I am? An idiot? "Names over players' heads", "Blizz-ABS support", "guilds", "admin controls", "mouse controls", etc. My to-do list includes even non-trivial stuff beyond those here so stop bombarding me with requests. I shouldn't have released this in the first place. I give you a finger and you pull out my entire arm. I am making a system for online gaming here, not a game. Seriously.

Quote from: Hellfire Dragon on June 24, 2009, 04:57:46 pm
Also as a suggestion, maybe a character creation scene where the player can pick a graphic character name and a class.


Spoiler: ShowHide
OMG, IT'S A MIRACLE
(http://img261.imageshack.us/img261/2307/snap872.png)



a lot of those things are really simple for other people to do or have already been done. guilds and admin controls might legitimate additions that should be made at one time or another perhaps by Blizz or perhaps by some one else but things like mouse controls already exists. it would not be all that had to make them work with the system if you have a scripter who knows what they are doing. so i guess patience would be best. this isn't even V1 yet.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 24, 2009, 07:04:36 pm
Yes, yes. That's what I meant. I wouldn't call it version 0.something if it was done already.
Title: Re: [XP] RMX-OS
Post by: G_G on June 24, 2009, 07:38:38 pm
I dont like how the chatbox plays cursor sounds when you move your character left or right. When you move left or right it moves the chatbox cursor which is cool but I dont like it when I'm moving the character and when you move up it shows previous messages and stuff
Title: Re: [XP] RMX-OS
Post by: G_G on June 25, 2009, 12:34:28 am
I'm working on a script to release to the public for this. Its an easy to use/setup class chooser. With male and female graphics to setup Here;s a few screenies.
Spoiler: ShowHide
(http://i307.photobucket.com/albums/nn318/bahumat27/classchoose.png)

Spoiler: ShowHide
(http://i307.photobucket.com/albums/nn318/bahumat27/classchoose2.png)

Spoiler: ShowHide
(http://i307.photobucket.com/albums/nn318/bahumat27/classchoos3.jpg)


Comments anyone?
Title: Re: [XP] RMX-OS
Post by: Ryex on June 25, 2009, 01:43:55 am
whats with the double post? and it looks OK if you set it up right personally I would make the class selection box go from bottom to top with a 32pxile offset from all sides, the male female box stretch from the side of the class box to the other side but offset just like the class box, then center the sprite box in the gap making sure to allow the box to expand for the bit map of the sprite no matter what size it is. oh and set up the configuration to have a customizable set of sprites for male and female, maybe a list of file names for each? should i even be going this in depth here?

edit oh and it looks like the spirit isn't centered in the window
Title: Re: [XP] RMX-OS
Post by: G_G on June 25, 2009, 02:11:33 am
I did not realize the double post -_-

Oh and the config is like this
module GameGuy
ClassList = ["Fighter", "Mage", "Lancer", "Warrior"]
end
then i have a method in the module
def cgraphic(id) # id is the choice of classes so you'd use 1 for your first class 2 for your second, etc...
case id
when 1 then return ["male_graphic", "female_graphic", class_id]
the class id is the id in teh database this choice represents.
male graphic is the actual male graphic for that class
female graphic is the actual female graphic for that class

And I'm going to make the window larger and what you're saying is haev the class list on one side 32 pixels down and 32 pixesl to the right
then the gender list same thing but on the other side?
Title: Re: [XP] RMX-OS
Post by: Ryex on June 25, 2009, 03:25:21 am
 
text drawing: ShowHide


00000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000
000cccccccccccgggggggggggggggggggggggggggggggggggggggggg000
000cccccccccccgggggggggggggggggggggggggggggggggggggggggg000
000cccccccccccgggggggggggggggggggggggggggggggggggggggggg000
000ccccccccccc000000000000000000000000000000000000000000000
000ccccccccccc000000000000000000000000000000000000000000000
000ccccccccccc000000000000000000000000000000000000000000000
000ccccccccccc000000000000000ssssssssssss00000000000000000000
000ccccccccccc000000000000000ssssssssssss00000000000000000000
000ccccccccccc000000000000000ssssssssssss00000000000000000000
000ccccccccccc000000000000000ssssssssssss00000000000000000000
000ccccccccccc000000000000000ssssssssssss00000000000000000000
000ccccccccccc000000000000000ssssssssssss00000000000000000000
000ccccccccccc000000000000000ssssssssssss00000000000000000000
000ccccccccccc000000000000000000000000000000000000000000000
000ccccccccccc000000000000000000000000000000000000000000000
000ccccccccccc000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000

0's = black space
c's = class window
g's = gender window
s's = sprite window



and I think the config should use class id's pull, the classes from the database and allow the use of any sprite for any class or the same sprite for multiple classes
also we're getting off topic here so if you want to talk more ask for this to be split or make a new topic
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 25, 2009, 06:38:40 am
Quote from: game_guy on June 24, 2009, 07:38:38 pm
I dont like how the chatbox plays cursor sounds when you move your character left or right. When you move left or right it moves the chatbox cursor which is cool but I dont like it when I'm moving the character and when you move up it shows previous messages and stuff


Quote from: Blizzard on June 24, 2009, 05:39:16 pm
if one person gives me one more "suggestion", I'll stop working on this.


Thanks to game_guy there will be no more versions of RMX-OS released.
Title: Re: [XP] RMX-OS
Post by: jcsnider on June 25, 2009, 09:08:35 am
Quote from: Blizzard on June 25, 2009, 06:38:40 am
Quote from: game_guy on June 24, 2009, 07:38:38 pm
I dont like how the chatbox plays cursor sounds when you move your character left or right. When you move left or right it moves the chatbox cursor which is cool but I dont like it when I'm moving the character and when you move up it shows previous messages and stuff


Quote from: Blizzard on June 24, 2009, 05:39:16 pm
if one person gives me one more "suggestion", I'll stop working on this.


Thanks to game_guy there will be no more versions of RMX-OS released.
It seems like more of a compliant then a suggestion  ;)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 25, 2009, 10:21:56 am
I said "suggestion", not suggestion.

Nah, I'm just messing with you anyway. :P v0.83 is out. My intention was that you can toggle the chat mode like in PNO which I did in v0.83. In other words the chat in v0.82 wasn't finished yet. Pressing F5 will toggle the chat display while F6 will toggle chat mode. If the window is not visible, F6 will also toggle the chat window. When chat mode is on, player controls are disabled.
Title: Re: [XP] RMX-OS
Post by: G_G on June 25, 2009, 08:50:36 pm
I did a complete update. Database, server, and client. And now I cant register. Everytime I try I get the
"Server did not respond" message.
Title: Re: [XP] RMX-OS
Post by: Diokatsu on June 25, 2009, 09:02:45 pm
Here's a suggestion: LET IT BURN!!!!!!!!!!!!!!!


No, this is pretty cool. *Insert Blizzard praise*

Cool to see a big project come out of CP other than BABS.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 26, 2009, 04:21:08 am
I'm not sure. Does the server give any error message? If not, have you tried the new server completely separate from the old one?
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 26, 2009, 05:53:32 am
Quote from: game_guy on June 25, 2009, 08:50:36 pm
I did a complete update. Database, server, and client. And now I cant register. Everytime I try I get the
"Server did not respond" message.


Since you did a complete update, did you forget to set up the cfg.ini in the server folder? That's what happened to me after I updated >.<
Title: Re: [XP] RMX-OS
Post by: FenrisHalo on June 26, 2009, 07:12:15 am
Shat a small file. Looks really promising ;)

I'll look into it a bit more when I get the time (first summer holiday day isn't hard-work day), but I'll definetly try it- got a good game running with eclipse once, expect to get a far better one running with this.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 26, 2009, 11:26:54 am
@G_G I think I found the problem, in the cfg.ini file, line 4, RMXOS_VERSION is set to 0.82 it should be 0.83, I think anyway :P
Title: Re: [XP] RMX-OS
Post by: G_G on June 26, 2009, 11:55:00 am
Quote from: Hellfire Dragon on June 26, 2009, 05:53:32 am
Quote from: game_guy on June 25, 2009, 08:50:36 pm
I did a complete update. Database, server, and client. And now I cant register. Everytime I try I get the
"Server did not respond" message.

Since you did a complete update, did you forget to set up the cfg.ini in the server folder? That's what happened to me after I updated >.<


No I changed it to my hamachi IP and the thing said it was online. I ran the server and said it was connected successfully to my hamachi. It connected to the database just fine it said.

@blizz: No error messages just a message saying
"Server did not respond"

Title: Re: [XP] RMX-OS
Post by: Blizzard on June 26, 2009, 12:55:05 pm
That's weird, I'm not having that problem. Are you sure that you upgraded everything properly? Script and server? The database wasn't updated. And are you sure that you have configured it all properly?
Title: Re: [XP] RMX-OS
Post by: G_G on June 26, 2009, 12:57:46 pm
Yea I'm definetly sure. I deleted the database. I deleted all the other versions of rmx-os I had. Redownloaded this one. Ran the sql script again. COnfigured cgf.ini and then configured the RMX Options and made sure it matched my hamachi ip. The only problem is is I cant register so I cant log in which stinks.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 26, 2009, 01:08:57 pm
So you have 4 folders and 4 files in your server folder. You have changed the HOST in cfg.ini and you have changed it in the Options script. Both match and are either 5.x.x.x or 127.0.0.1. You have set up a MySQL password and you have set SQL_PASSWORD, SQL_USERNAME, SQL_HOSTNAME and SQL_DATABASE properly in cfg.ini. You can run it all on 127.0.0.1 properly without any network connections active.
That's how it should be.
And now, which of these are not true?

BTW, Server IS version 0.82. The server hasn't been changed.
Title: Re: [XP] RMX-OS
Post by: G_G on June 26, 2009, 01:16:40 pm
The host in the cfg.ini is my hamachi IP which is running and its on. And I have changed it in the options script. Both match or else it would say my server is offline. I have set up a MySQL password and placed it in the cfg.ini. I've set up the sql_username, and host, and database properly or else when I ran the server it wouldnt be able to connect to my database.

I've double even triple checked everything. I even dug up an older version out of the recycle bin and all the data and options were the same.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 26, 2009, 01:22:49 pm
Is the MySQl service running? Rub > msconfig > Services, check mysql is ticked
Title: Re: [XP] RMX-OS
Post by: G_G on June 26, 2009, 04:25:51 pm
It is running and it is checked. I even tried changing the ip in everything to my localhost 127.0.0.1
again same thing. THe server said it connected to the host and database but its still not working ;__;
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 26, 2009, 05:29:56 pm
Ok, thanks to game_guy I solved the problem.
This time I have also change the way RMX-OS notifies about errors. That means it's more stable. >:3
So v0.84 is out.
Title: Re: [XP] RMX-OS
Post by: nathmatt on June 27, 2009, 03:42:55 am
every time i try to config sq li get this error  any suggestions
Spoiler: ShowHide
(http://i184.photobucket.com/albums/x287/nathmatt/NewBitmapImage-5.jpg)


edit got that fixed but it says unknown database where to i find that ?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2009, 06:21:28 am
*points the the installation guide in the manual* I have mentioned that problem.
Title: Re: [XP] RMX-OS
Post by: Sally on June 27, 2009, 07:10:40 am
hey blizz, dont that sound familiar...
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2009, 07:32:33 am
I know, Sally, I know. ._.
Title: Re: [XP] RMX-OS
Post by: nathmatt on June 27, 2009, 08:02:19 am
i must have missed it RTFM lol
Title: Re: [XP] RMX-OS
Post by: fugibo on June 27, 2009, 08:43:51 am
*levels blizz up for the third time* I <3 this.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 29, 2009, 10:17:35 am
Hey blizz, is there a way to check wwhat the players registered name is and use it ina conditional branch?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 29, 2009, 01:00:02 pm
$network.name will give you the name of the player. This doesn't work if he isn't logged in.
Title: Re: [XP] RMX-OS
Post by: G_G on June 29, 2009, 02:10:24 pm
The DOS window gets this error when other people connect and stuff
It connects fine but I dont think thats supposed to happen

(http://i307.photobucket.com/albums/nn318/bahumat27/rmxoserror4.png)
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 29, 2009, 02:17:17 pm
Exact same thing happened to me G_G
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 29, 2009, 02:45:28 pm
That's a problem when a connection breaks (e.g. player closes RMXP forcibly with the X button). You don't have to bother about it.
I haven't found a way yet to avoid it. I think there is none.
Title: Re: [XP] RMX-OS
Post by: G_G on June 29, 2009, 02:57:47 pm
Mkay I was just checking. *phew* lol
Title: Re: [XP] RMX-OS
Post by: winkio on June 29, 2009, 08:34:24 pm
nice, Blizz.  Very nice.
Title: Re: [XP] RMX-OS
Post by: G_G on June 29, 2009, 08:38:04 pm
WINKIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOIOI

:) Nice to see ya again
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 30, 2009, 07:49:38 am
I made a parallel process that with this script call

$network.name == $game_actors[1]


Shouldn't that change the character name to the registered name?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 30, 2009, 07:53:04 am
$game_actors[1].name = $network.name


And it's enough if you run this once when a new game is started.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 30, 2009, 07:56:31 am
Works perfect, ty Blizzy :)
Title: Re: [XP] RMX-OS
Post by: feandrad on June 30, 2009, 05:35:46 pm
Quote from: game_guy on June 26, 2009, 04:25:51 pm
It is running and it is checked. I even tried changing the ip in everything to my localhost 127.0.0.1
again same thing. THe server said it connected to the host and database but its still not working ;__;


I have the same problem, the server said it connected but in the game appears offline....
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 30, 2009, 06:23:08 pm
You probably did something you weren't supposed to. Is it the latest version and have you read the installation guide step by step properly?
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on June 30, 2009, 06:36:24 pm
Did you remember to upgrade the SQL database? In the server folder go to Database and use the 0.83 to 0.84.sql if you were using 0.83 other use the RMX-OS SQL Database.sql
Title: Re: [XP] RMX-OS
Post by: feandrad on June 30, 2009, 06:52:07 pm
Quote from: Hellfire Dragon on June 30, 2009, 06:36:24 pm
Did you remember to upgrade the SQL database? In the server folder go to Database and use the 0.83 to 0.84.sql if you were using 0.83 other use the RMX-OS SQL Database.sql


I download the lastest version directly (v0.84).

Quote from: Blizzard on June 30, 2009, 06:23:08 pm
You probably did something you weren't supposed to. Is it the latest version and have you read the installation guide step by step properly?


Yes I've read the instalation guide a dozen of times and I can't find the problem.

Here is my Options script

Spoiler: ShowHide

#==============================================================================
# module RMXOS
#------------------------------------------------------------------------------
# Contains options used for the game that can be set up.
#==============================================================================

module RMXOS::Options
 
 SERVERS = []
 SAVE_DATA = {}
 CREATION_DATA = {}
 #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 # Server / Connection Settings
 #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 SERVER_REFRESH = 200
 SERVER_TIMEOUT = 200
 SERVERS.push(RMXOS::Server.new('Server Local', '127.0.0.1', 54269))
 #SERVERS.push(RMXOS::Server.new('Endil', '127.0.0.1', 54268))
 #SERVERS.push(RMXOS::Server.new('Sally', '5.184.209.29', 54269))
 #SERVERS.push(RMXOS::Server.new('BlizzDev', '161.53.76.80', 54269))
 #SERVERS.push(RMXOS::Server.new('My Server', 'www.myserver.net', 54269))
 #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 # System
 #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 MIN_USERPASS_LENGTH = 3
 MAX_USERPASS_LENGTH = 16
 CHATINPUT_WIDTH = 320
 CHATBOX_WIDTH = 320
 CHATBOX_LINES = 8
 CHATINPUT_MAX_LENGTH = 40
 #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 # Save Data
 # - see the documentation to learn how to set up which data is being saved
 #   by RMX-OS.
 #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 # save container variable definitions
 SAVE_CONTAINERS = [
     '$game_system',
     '$game_switches',
     '$game_variables',
     '$game_self_switches',
     '$game_party',
     '$game_actors',
     '$game_map',
     '$game_player'
 ]
 # general save data setup
 SAVE_DATA['Graphics.frame_count'] = []
 SAVE_DATA[Game_System] = ['@timer', '@timer_working', '@menu_disabled']
 SAVE_DATA[Game_Switches] = ['@data']
 SAVE_DATA[Game_Variables] = ['@data']
 SAVE_DATA[Game_SelfSwitches] = ['@data']
 SAVE_DATA[Game_Party] = ['@gold', '@steps', '@actors', '@items', '@weapons',
     '@armors']
 SAVE_DATA[Game_Actors] = ['@data']
 SAVE_DATA[Game_Map] = ['@map_id']
 SAVE_DATA[Game_Player] = ['@x', '@y', '@real_x', '@real_y', '@character_name',
     '@encounter_count']
 SAVE_DATA[Game_Actor] = ['@actor_id', '@name', '@character_name',
     '@character_hue', '@class_id', '@weapon_id', '@armor1_id', '@armor2_id',
     '@armor3_id', '@armor4_id', '@level', '@exp', '@skills', '@hp', '@sp',
     '@states', '@maxhp_plus', '@maxsp_plus', '@str_plus', '@dex_plus',
     '@agi_plus',  '@int_plus']
 # for all classes that must have default arguments specified
 CREATION_DATA[Game_Actor] = '1'
 
end




I use windows Vista x64, that's change anything??
Title: Re: [XP] RMX-OS
Post by: G_G on July 01, 2009, 12:22:52 am
did you run the server?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 01, 2009, 05:30:55 am
What about cfg.ini of the server? Did you set that one up right?
Title: Re: [XP] RMX-OS
Post by: feandrad on July 01, 2009, 10:14:28 am
Quote from: Blizzard on July 01, 2009, 05:30:55 am
What about cfg.ini of the server? Did you set that one up right?


Here is my config.ini:

Spoiler: ShowHide

NAME = 'Localhost'
HOST = '127.0.0.1'
PORT = 54269
RMXOS_VERSION = 0.84

LOG_MESSAGES = false
LOG_ERRORS = false
AUTO_RESTART = true
RESTART_TIME = 5

SQL_HOSTNAME = '127.0.0.1' # SQL Host
SQL_USERNAME = 'root' # SQL Username
SQL_PASSWORD = 'penis' # SQL Password
SQL_DATABASE = 'rmxosdb' # SQL Database

EXTENSIONS = [
]


Quote from: game_guy on July 01, 2009, 12:22:52 am
did you run the server?


Of couse I do...  :<_<:  :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 01, 2009, 11:07:06 am
And the SQL root password is surely penis?

What exactly is the problem? Do you get an error message or does it simply not react? Or does it say the server is offline?
Title: Re: [XP] RMX-OS
Post by: feandrad on July 01, 2009, 11:14:18 am
Yes, the password is penis.  :naughty:

The server runs normaly, but the client say it is offline, but he is not!
I don't get any error, I just can't connect because the server appears offline in the game.
Title: Re: [XP] RMX-OS
Post by: Holyrapid on July 01, 2009, 11:15:37 am
Lol, i popped here from another tab, and saw the egg, and thought for a second, when did i post here, looked up, and saw it was just someone with the same egg. Nice system Blizz. You are the best goddamn scripter int he goddamn world
Title: Re: [XP] RMX-OS
Post by: feandrad on July 01, 2009, 11:21:21 am
Quote from: Pyhankoski on July 01, 2009, 11:18:27 am
Lol, i popped here from another tab, and saw the egg, and thought for a second, when did i post here, looked up, and saw it was just someone with the same egg. Nice system Blizz. You are the best goddamn scripter int he goddamn world!


lol  :V:

Anyway, you are doubleposting Pyhankoski....
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on July 01, 2009, 12:04:58 pm
Quote from: feandrad on July 01, 2009, 11:14:18 am
Yes, the password is penis.  :naughty:

The server runs normaly, but the client say it is offline, but he is not!
I don't get any error, I just can't connect because the server appears offline in the game.

Are you sure that the password is right? If you installed XAMPP there were 2 users created named root, one with localhost and the other 127.0.0.1 and if you didn't install XAMPP are you sure it's the right user?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 01, 2009, 01:53:38 pm
Quote from: feandrad on July 01, 2009, 11:14:18 am
The server runs normaly, but the client say it is offline, but he is not!
I don't get any error, I just can't connect because the server appears offline in the game.


If it says that the server is offline, there can only be 4 possible reasons:

1. IP doesn't match on server and in game client. (Judging from your cfg.ini and the options, they do match.)
2. Port doesn't match on server and in game client. (Judging from your cfg.ini and the options, they do match.)
3. You are running the server on localhost (127.0.0.1) and you are trying to connect to localhost (127.0.0.1) on a different computer. If you run the server on localhost, no other computer will be able to access the server. You HAVE TO enter the actual IP on the network.
4. Problem with port forwarding. Google for "port forwarding".
Title: Re: [XP] RMX-OS
Post by: feandrad on July 02, 2009, 12:08:00 am
let me see if I understand. The awnsers 3 and 4 are problems in connections between 2 or more computers, but I'm trying to connect on a server in my own computer. I think the problem is on mySQL. I use version 5.0.

Edit:
Quote from: Hellfire Dragon on July 01, 2009, 12:04:58 pm
Quote from: feandrad on July 01, 2009, 11:14:18 am
Yes, the password is penis.  :naughty:

The server runs normaly, but the client say it is offline, but he is not!
I don't get any error, I just can't connect because the server appears offline in the game.

Are you sure that the password is right? If you installed XAMPP there were 2 users created named root, one with localhost and the other 127.0.0.1 and if you didn't install XAMPP are you sure it's the right user?


Well, the server connects, the mySQL manager can access the database, so I think teh password is correct...  :uhm:
There is two different passwords for '127.0.0.1' and 'localhost', or they are the same for default??  :???:


No double posting within 24 hours!
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 02, 2009, 04:51:47 am
As I said, if you can run the server, but you don't see it online in the game, then something with the configuration is wrong.
If both are on the same computer, then using 127.0.0.1 should work properly. :/
Have you tried it on another computer?
Title: Re: [XP] RMX-OS
Post by: feandrad on July 02, 2009, 11:57:34 am
No, I don't... I'll try later....
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 02, 2009, 03:53:58 pm
RMX-OS 0.85 is out. It runs on Ruby 1.9.1 now. I have added in the installation guide how to install Ruby 1.9.1 "properly".



EDIT: I have uploaded 0.85 again because I added the link for Ruby so you don't have to google for it because people can get confused whether to download the source of the binary. You can download the "right" Ruby 1.9.1 from here (http://rubyinstaller.org/downloads/ruby-1.9.1-p129-i386-mingw32.7z).

EDIT: v0.86 is up.


Title: Re: [XP] RMX-OS
Post by: Ryex on July 04, 2009, 03:09:41 pm
the ruby like you gave is just a file not an installer like I normally use when installing ruby do we just open the server.rb file with the ruby.exe?
Title: Re: [XP] RMX-OS
Post by: G_G on July 04, 2009, 03:12:41 pm
RTFM
Title: Re: [XP] RMX-OS
Post by: Ryex on July 04, 2009, 03:14:01 pm
ya i figured it out.... I read the manual.... :^_^': :P
Title: Re: [XP] RMX-OS
Post by: G_G on July 04, 2009, 03:19:05 pm
Oh woops hang on read the post again xD
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 04, 2009, 05:28:45 pm
v0.87 is up.



EDIT:

Nobody's posting here? O.o; Does that mean it works all fine? xD
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on July 07, 2009, 06:48:34 am
Guess so :P

I have no problems with it anymore, but ya never know :xD:
Title: Re: [XP] RMX-OS
Post by: edwardthefma on July 07, 2009, 11:25:04 am
i havent had a problem yet XD but wen pepol play it thay like freak out XD
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 13, 2009, 08:43:08 am
@Longfellow:

Spoiler: ShowHide
Quote from: Blizzard on June 21, 2009, 07:00:09 am
Quote from: Longfellow on June 20, 2009, 01:26:02 pm
Blizz, I may be wrong, but aren't Regular Expressions, like, brutally slow? Like, hash-lookup-level-times-ten slow? 0_o It might not be such a problem with simple ones, and it might not matter since the engine might be waiting on the server anyway, but that's not the sort of thing I'd think would be very reliable in such a time-sensitive environment >_<


Depends on how the parser was implemented. But I agree, it might be a good idea to test that on speed. It's true, I don't need regular expressions to compare strings.

'abc' == 'abc'


But regular expressions aren't meant to compare strings. They are meant to find string patterns. As I said, I can change my system in such a way so I don't use string expressions. But the question is whether

if message =~ /SAV(.+)\t(.+)/
 type = $1
 value = $2
 # stuff
end


is REALLY slower than

string = message[0, 3]
if string == 'SAV'
 data = message[3, message.size - 3]
 type, value = data.split("\t")
 # stuff
end


because regular expressions don't only find string patterns, no, they also find matched substrings after matching a string to a pattern.

As I said, it depends on how the parser was implemented and what kind of regular expression you use. I've had a class that was almost only based on grammars, finite state machines and regular expressions (and I had an A, yay). What I'm trying to say is that I know what I'm talking about.


Alright, I have tested it. I used 4 different test cases.

Case 1: ShowHide
This test case is the most basic. It matches the string for the first 3 characters and then separates the rest as data from the original string. It is used on a string that matches.
This script was used in the test case:

a = 'CHTBlizzard: Hi, guys. What\'s up?'
count = 1000000

time = Time.now
count.times {
 if a =~ /CHT(.+)/
   data = $1
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'CHT'
   data = a[3, a.size - 3]
 end
}
p Time.now - time


The test times for regex method:
1.234
1.219
1.235

The test times for direct string manipulation:
2.532
2.500
2.484


Case 2: ShowHide
This test case is identical to the first one except for the string that is checked. This time the string does not match the pattern.
This script was used in the test case:

a = 'CHTBlizzard: Hi, guys. What\'s up?'
count = 1000000

time = Time.now
count.times {
 if a =~ /MOV(.+)/
   data = $1
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'MOV'
   data = a[3, a.size - 3]
 end
}
p Time.now - time


The test times for regex method:
0.500
0.515
0.500

The test times for direct string manipulation:
1.688
1.750
1.703


Case 3: ShowHide
This test case is the most complex and requires regex perform multiple separation of data.
This script was used in the test case:

a = 'LINBlizzard\ttestpass'
count = 1000000

time = Time.now
count.times {
 if a =~ /LIN(.+)\t(.+)/
   user, pass = $1, $2
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'LIN'
   user, pass = a.split("\t")
 end
}
p Time.now - time


The test times for regex method:
0.781
0.797
0.765

The test times for direct string manipulation:
4.672
4.734
4.688


Case 4: ShowHide
Again the test case is the same as the one before but the string is not matched.
This script was used in the test case:

a = 'LINBlizzard\ttestpass'
count = 1000000

time = Time.now
count.times {
 if a =~ /REG(.+)\t(.+)/
   user, pass = $1, $2
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'REG'
   user, pass = a.split("\t")
 end
}
p Time.now - time


The test times for regex method:
0.547
0.610
0.546

The test times for direct string manipulation:
1.750
1.750
1.781


In all 4 test cases I have not included the calculation of standard deviation and distribution as the purpose is comparison rather than precision of the measurement.

Interpretation of results:

Regex matches strings (several times) faster. In case the string isn't matched, the direct string manipulation method still needs to create a new substring for the first match and then extract the rest of the string while regex does that all at once. This is due to regex matching is implemented with a parser and a finite state machine mechanism that doesn't need to check the entire string or alter the string in order to determine whether it does or does not match a pattern.

Conclusion:

Regex is much better for string pattern detection. Use it when you can, but don't use it when you don't actually need it!
Title: Re: [XP] RMX-OS
Post by: fugibo on July 14, 2009, 09:03:12 am
Quote from: Blizzard on July 13, 2009, 08:43:08 am
@Longfellow:

Spoiler: ShowHide
Quote from: Blizzard on June 21, 2009, 07:00:09 am
Quote from: Longfellow on June 20, 2009, 01:26:02 pm
Blizz, I may be wrong, but aren't Regular Expressions, like, brutally slow? Like, hash-lookup-level-times-ten slow? 0_o It might not be such a problem with simple ones, and it might not matter since the engine might be waiting on the server anyway, but that's not the sort of thing I'd think would be very reliable in such a time-sensitive environment >_<


Depends on how the parser was implemented. But I agree, it might be a good idea to test that on speed. It's true, I don't need regular expressions to compare strings.

'abc' == 'abc'


But regular expressions aren't meant to compare strings. They are meant to find string patterns. As I said, I can change my system in such a way so I don't use string expressions. But the question is whether

if message =~ /SAV(.+)\t(.+)/
 type = $1
 value = $2
 # stuff
end


is REALLY slower than

string = message[0, 3]
if string == 'SAV'
 data = message[3, message.size - 3]
 type, value = data.split("\t")
 # stuff
end


because regular expressions don't only find string patterns, no, they also find matched substrings after matching a string to a pattern.

As I said, it depends on how the parser was implemented and what kind of regular expression you use. I've had a class that was almost only based on grammars, finite state machines and regular expressions (and I had an A, yay). What I'm trying to say is that I know what I'm talking about.


Alright, I have tested it. I used 4 different test cases.

Case 1: ShowHide
This test case is the most basic. It matches the string for the first 3 characters and then separates the rest as data from the original string. It is used on a string that matches.
This script was used in the test case:

a = 'CHTBlizzard: Hi, guys. What\'s up?'
count = 1000000

time = Time.now
count.times {
 if a =~ /CHT(.+)/
   data = $1
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'CHT'
   data = a[3, a.size - 3]
 end
}
p Time.now - time


The test times for regex method:
1.234
1.219
1.235

The test times for direct string manipulation:
2.532
2.500
2.484


Case 2: ShowHide
This test case is identical to the first one except for the string that is checked. This time the string does not match the pattern.
This script was used in the test case:

a = 'CHTBlizzard: Hi, guys. What\'s up?'
count = 1000000

time = Time.now
count.times {
 if a =~ /MOV(.+)/
   data = $1
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'MOV'
   data = a[3, a.size - 3]
 end
}
p Time.now - time


The test times for regex method:
0.500
0.515
0.500

The test times for direct string manipulation:
1.688
1.750
1.703


Case 3: ShowHide
This test case is the most complex and requires regex perform multiple separation of data.
This script was used in the test case:

a = 'LINBlizzard\ttestpass'
count = 1000000

time = Time.now
count.times {
 if a =~ /LIN(.+)\t(.+)/
   user, pass = $1, $2
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'LIN'
   user, pass = a.split("\t")
 end
}
p Time.now - time


The test times for regex method:
0.781
0.797
0.765

The test times for direct string manipulation:
4.672
4.734
4.688


Case 4: ShowHide
Again the test case is the same as the one before but the string is not matched.
This script was used in the test case:

a = 'LINBlizzard\ttestpass'
count = 1000000

time = Time.now
count.times {
 if a =~ /REG(.+)\t(.+)/
   user, pass = $1, $2
 end
}
p Time.now - time

time = Time.now
count.times {
 if a[0, 3] == 'REG'
   user, pass = a.split("\t")
 end
}
p Time.now - time


The test times for regex method:
0.547
0.610
0.546

The test times for direct string manipulation:
1.750
1.750
1.781


In all 4 test cases I have not included the calculation of standard deviation and distribution as the purpose is comparison rather than precision of the measurement.

Interpretation of results:

Regex matches strings (several times) faster. In case the string isn't matched, the direct string manipulation method still needs to create a new substring for the first match and then extract the rest of the string while regex does that all at once. This is due to regex matching is implemented with a parser and a finite state machine mechanism that doesn't need to check the entire string or alter the string in order to determine whether it does or does not match a pattern.

Conclusion:

Regex is much better for string pattern detection. Use it when you can, but don't use it when you don't actually need it!



I see. I was looking at the problem from a more C-oriented perspective, in which case something like Regexp would be a bit of overkill. The architecture you're using for the server protocol also plays a big part.

But you win. *bows, and powers up for teh epic*
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 15, 2009, 04:58:02 am
The only one that wins are the users of RMX-OS because these results show that they definitely have a good and optimized server. :)

Also, I don't think the architecture (except for the communication protocol) is that relevant. These results don't mean that more complicated regular expressions wouldn't be slower. i.e. It could be that Netplay+ message protocol (in form of "<tag_name>data</tag_name>") wouldn't work so fast with regular expressions.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on July 15, 2009, 08:59:57 am
I have a weird problem, whenever I enter Map002 it runs common event  2 auto-matically :O.o:
I checked to make no event on the map called it and that wan't hard because there's only 2 on it, a transfer event and one that changes your graphic
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 15, 2009, 03:12:22 pm
I don't think that it has anything to do with RMX-OS.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on July 15, 2009, 03:40:52 pm
That's the only non-default script I'm using :uhm:
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 15, 2009, 04:14:09 pm
Quote from: Blizzard on July 15, 2009, 03:12:22 pm
I don't think that it has anything to do with RMX-OS.


Meaning that your eventing is messed up. RMX-OS doesn't affect events at all.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on July 15, 2009, 04:37:25 pm
How can my eventing be messed up? I even replaced the common event with plain text box and it still showed up... the common event doesn't use a switch to activate and it isn't called at all on the map... I can't find the problem :-/
Title: Re: [XP] RMX-OS
Post by: fugibo on July 15, 2009, 11:21:18 pm
Quote from: Blizzard on July 15, 2009, 04:58:02 am
The only one that wins are the users of RMX-OS because these results show that they definitely have a good and optimized server. :)

Also, I don't think the architecture (except for the communication protocol) is that relevant. These results don't mean that more complicated regular expressions wouldn't be slower. i.e. It could be that Netplay+ message protocol (in form of "<tag_name>data</tag_name>") wouldn't work so fast with regular expressions.


I meant that a basic C server would most likely just stuff everything into a 3-4 bytes per message (one identifier, 2-3 arguments, each as a char, maybe a short/int) and evaluate it in a simple loop, which definitely has the potential to be much, much faster. Of course, in Ruby stuff like that becomes slightly more complicated and a waste of effort.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 16, 2009, 04:17:04 am
Quote from: Longfellow on July 15, 2009, 11:21:18 pm
Quote from: Blizzard on July 15, 2009, 04:58:02 am
The only one that wins are the users of RMX-OS because these results show that they definitely have a good and optimized server. :)

Also, I don't think the architecture (except for the communication protocol) is that relevant. These results don't mean that more complicated regular expressions wouldn't be slower. i.e. It could be that Netplay+ message protocol (in form of "<tag_name>data</tag_name>") wouldn't work so fast with regular expressions.


I meant that a basic C server would most likely just stuff everything into a 3-4 bytes per message (one identifier, 2-3 arguments, each as a char, maybe a short/int) and evaluate it in a simple loop, which definitely has the potential to be much, much faster. Of course, in Ruby stuff like that becomes slightly more complicated and a waste of effort.


What you are talking makes no sense. You are saying that in C you can make a message like "CHTBlizzard: Hello. My name is Blizzard and I am a programmer." be 3-4 bytes long which is complete bullshit.
First thing, the message is far too long to be compressed down to 3 bytes.
Secondly, my message identifiers are 3 characters long which translates into 3 bytes of application data that are sent over the network (sent using Win32API which was written in C/Assembly, helloooooooooo). Altogether it means that whatever I do in Ruby, it will be turned into actual C data before sent over the network. In fact, this will happen in any language because practically all socket controlling programs were written in low level languages because nobody would make one in a high level language. That's like coding an operating system in a high level language: You don't do that.
Thirdly, sending a message over the network using TCP (http://en.wikipedia.org/wiki/Transmission_Control_Protocol) isn't just sending 3 bytes. It's sending at least 160 + 3 bytes. That results in actually far better communication when you use longer messages or put several messages in one TCP package (but I didn't go that far with RMX-OS because that could create lag significant lag). That also means using a single byte and all of 256 possible states as identifier is just idiotic. Sending 2 additional bytes over the network is much less costly than manipulating raw byte streams so it's just a minimal message. You fail at computer communcation protocols. Horribly.

That's what I hate about C programmers. They are so narrow-sighted that they think C is the best and the fastest language for every single purpose that there is out in the world. They think that they can do just everything with "just a few bytes" while they completely ignore the practical usability. If they did just that, it would be actually ok, but they are much worse. They have no problem wasting irreasonable amount of CPU time just to save 10% of memory. We don't live in a time anymore where we have only 64kB of memory. I'm not saying to waste memory, but I have no problem increasing memory usage by 10% if I can speed up execution time by 400% because the program doesn't recalculate some things over and over again. I guess that is what makes the difference between a "programmer" and a "programm engineer".

Saying stuff like this just to make you look smart is really idiotic. Level down for that degree of arrogance. "just stuff everything into a 3-4 bytes per message" Woah, you should listen to yourself.
Title: Re: [XP] RMX-OS
Post by: boisei0 on August 03, 2009, 05:56:17 am
Have you copied the manual from Blizz-ABS and edited it...

QuoteFinal Notes:
If you feel that this manual how to use Blizz-ABS is missing something or if you want to help to improve this manual, please contact me.


:roll:
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 05, 2009, 10:11:14 am
Yes. ._.;;; I'll fix it in the next version. BTW, v0.9 is finally up. :D
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on August 05, 2009, 10:46:14 am
Yay :D
*goes of to use it*
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 05, 2009, 11:41:55 am
How's it working? And how do you like the new features? ^_^
Title: Re: [XP] RMX-OS
Post by: G_G on August 05, 2009, 11:55:12 am
I cant wait to test this out!!!!....stupid laptop load >:U

my laptops loading right now, and I'm on my granny's computer so yea I'll be trying it soon :) *lv's up* I read the new help manual and the new features sound awesome.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on August 05, 2009, 01:24:01 pm
Quote from: Blizzard on August 05, 2009, 11:41:55 am
How's it working? And how do you like the new features? ^_^

Working great. New features are awesome :D One thing though, what's the number for the admin group? Or is the first register automatically the admin? The number for the usergroup is 10 right now for my user.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 05, 2009, 02:26:16 pm
Admin = 10
2nd Admin = 9
Mod = 8
Normal Player = 0

The first person to register is automatically made admin. Every other admin that is created by using the /admin command is secondary admin. That is some sort of root admin feature to prevent admin hacking. For now there are only security measures on the client. I didn't implement them on the server yet because I wanted to release v0.9 already. That means that if a client would send one of the special messages to the server (i.e. inviting a new guild member), he could do it without being actually guild leader. Of course that would require using a special script. :P And of course I'm going to implement proper server-side authentication as well.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on August 05, 2009, 02:42:32 pm
Whoever makes a RM MMO on CP I'd be the first to become a member of it... well not first but its almost a promise that I would.
Title: Re: [XP] RMX-OS
Post by: bradhawk on August 06, 2009, 09:05:28 am
awesome new features, but, when i try to register, it show like this
(http://img199.imageshack.us/img199/1425/errorzal.png)
when i using RMX-OS 0.87 i dont found that problem :naughty:

Thanks
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on August 06, 2009, 10:34:38 am
Did you remember to update the server & database?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 06, 2009, 12:00:22 pm
RMX-OS 0.9 is the newest version. Update your database, use the new script and use the new server. :P
Title: Re: [XP] RMX-OS
Post by: bradhawk on August 06, 2009, 07:06:29 pm
i already updated the database . . . i replace the old database with new configuration database  :^_^':
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on August 07, 2009, 06:11:56 am
And the server? Also, did you remember to reconfigure the cfg.ini if you replaced it with the new server?
Title: Re: [XP] RMX-OS
Post by: bradhawk on August 07, 2009, 07:48:47 am
i already replace the database, config the new server, run the server, no prob. , run game, but when i want to register, it show like that . . .  :^_^':
and i try to reinstall the mySQL, but it show error when i config the SQL . . . damn ~
Title: Re: [XP] RMX-OS
Post by: edwardthefma on August 07, 2009, 04:30:48 pm
Quote from: bradhawk on August 06, 2009, 09:05:28 am
awesome new features, but, when i try to register, it show like this
(http://img199.imageshack.us/img199/1425/errorzal.png)
when i using RMX-OS 0.87 i dont found that problem :naughty:

Thanks

this error has bean confermed he is not the only 1 getting it i am getting it too
Title: Re: [XP] RMX-OS
Post by: Aqua on August 07, 2009, 04:36:06 pm

    def try_register(user, pass)
      self.send("REG#{username}\t#{encrypt_password(password)}")
    end


That's line 965-967
Just make user/pass the same as username/password

Doesn't matter which one really...


    def try_register(username, password)
      self.send("REG#{username}\t#{encrypt_password(password)}")
    end
Title: Re: [XP] RMX-OS
Post by: edwardthefma on August 07, 2009, 04:48:33 pm
lol i was just looking at that i posted just incase it didnt work  :haha:
Title: Re: [XP] RMX-OS
Post by: bradhawk on August 08, 2009, 02:02:43 am
Quote from: Aqua on August 07, 2009, 04:36:06 pm

    def try_register(user, pass)
      self.send("REG#{username}\t#{encrypt_password(password)}")
    end


That's line 965-967
Just make user/pass the same as username/password

Doesn't matter which one really...


    def try_register(username, password)
      self.send("REG#{username}\t#{encrypt_password(password)}")
    end


now its work, thanks Aqua  :)
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 08, 2009, 11:43:56 am
Yeah, that was the problem. When I saw 0.87, I thought that it was a problem related to that version. 0.8x and 0.9x are very different. I'll put up a fixed version of 0.9 right away.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on August 08, 2009, 11:46:13 am
dont for get about the script call $network.save for auto save XD

i need the new call to change the game name to the network name
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 08, 2009, 11:48:09 am
There you go, fixed 0.9 is up.
Title: Re: [XP] RMX-OS
Post by: acebelowzero on August 11, 2009, 01:20:03 pm
Hey i have a slight problem...

My sql sever is up and running everything works fine except for this...

I start the sql sever[works fine] then i start the RMX-OS ruby program but this happens

(http://i563.photobucket.com/albums/ss76/acebelowzero/Capture.png)

I have no idea y its not workin?

Can someone please help.



Sorry about other stupid post i made ok.  My brother used my computer while i was gone and he does the same thing as me but he sucks at it ok. (i was outa town)

Thanks
Title: Re: [XP] RMX-OS
Post by: Starrodkirby86 on August 11, 2009, 01:35:15 pm
I decided to delete your other topic as it was a duplicate to this one. If you have troubles with one of Blizzard's scripts, it's best to post them here like what you did right now.

I don't have any viable solutions for this, by the way, since I'm not an expert at this. ._. I'm just here to tell you what's above.
Title: Re: [XP] RMX-OS
Post by: acebelowzero on August 11, 2009, 02:34:23 pm
 :???:Im i suppose to anything here?

 "module Options
 
   SERVERS = [???????]
   SAVE_DATA = {??????}
   CREATION_DATA = {??????}"

This is the options script Please help . im not sure if i put anything in the Module options...:(
:???:
Title: Re: [XP] RMX-OS
Post by: Aqua on August 11, 2009, 02:36:50 pm
Did you read the manual?
You don't put anything in those.

Here's a sample config

module Options
 
    SERVERS = []
    SAVE_DATA = {}
    CREATION_DATA = {}
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Server / Connection Settings
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    SERVER_REFRESH = 200
    SERVER_TIMEOUT = 200
    SERVERS.push(['Localhost', '127.0.0.1', 56969])
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Security
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    RESERVED_USERNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
        'none']
    RESERVED_GUILDNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
        'none']
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # System
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    USERPASS_MIN_LENGTH = 3
    USERPASS_MAX_LENGTH = 16
    CHATINPUT_WIDTH = 480
    CHATBOX_WIDTH = 480
    CHATBOX_LINES = 8
    CHATINPUT_MAX_LENGTH = 60
    PM_MAX_LENGTH = 1000
    GUILDNAME_MAX_LENGTH = 32
Title: Re: [XP] RMX-OS
Post by: acebelowzero on August 11, 2009, 02:45:27 pm
ok thank u.  but can u help me out with my other problem the one below that's the one that's getting on my nerves i have really everything i know but see i don't know much- lol-

Title: Re: [XP] RMX-OS
Post by: Blizzard on August 12, 2009, 03:15:45 am
It looks like your PC doesn't accept remote connections over TCP. Just google for "TCP connection premission denied" or something like that. The error is not related to RMX-OS itself.
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on August 13, 2009, 10:14:47 am
How would I check what group the player is in?
ie,
Conditional Branch: Script: player_is? 8 (mod)? (most likely nothing like that :P )
*event stuff*
Else: *event stuff*

Title: Re: [XP] RMX-OS
Post by: Blizzard on August 13, 2009, 01:09:19 pm
$network.usergroup # contains the usergroup identifier of the player
$network.admin? # returns true if the player is an admin or 2nd admin
$network.mod? # return true if the player is a mod, admin or 2nd admin
Title: Re: [XP] RMX-OS
Post by: Ryex on August 15, 2009, 07:56:35 pm
I get an undefined method or variable error in the method in the .9 scripts in the Remeox client
def try_register(user, pass)
      self.send("REG#{username}\t#{encrypt_password(password)}")
    end
Title: Re: [XP] RMX-OS
Post by: G_G on August 15, 2009, 08:01:38 pm
change username to user and password to pass
Title: Re: [XP] RMX-OS
Post by: Aqua on August 15, 2009, 08:05:02 pm
Logging out is bugged...
When I exit the game, I can't relogin as it says that I'm already logged in... >.>
Title: Re: [XP] RMX-OS
Post by: Ryex on August 15, 2009, 08:07:21 pm
Quote from: game_guy on August 15, 2009, 08:01:38 pm
change username to user and password to pass

yes I did that but I telling him it is still there
Title: Re: [XP] RMX-OS
Post by: fugibo on August 15, 2009, 10:35:53 pm
Quote from: Ryexander on August 15, 2009, 08:07:21 pm
Quote from: game_guy on August 15, 2009, 08:01:38 pm
change username to user and password to pass

yes I did that but I telling him it is still there


For the record, the class and method it's reporting are infinitely useful: that's why RGSS tells you them.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 16, 2009, 11:56:17 am
Quote from: Ryexander on August 15, 2009, 07:56:35 pm
I get an undefined method or variable error in the method in the .9 scripts in the Remeox client
def try_register(user, pass)
      self.send("REG#{username}\t#{encrypt_password(password)}")
    end



When did you download 0.9? I put up a fixed version after the first time that bug was reported.

Quote from: Aqua on August 15, 2009, 08:05:02 pm
Logging out is bugged...
When I exit the game, I can't relogin as it says that I'm already logged in... >.>


Are you 100% sure that you are using 0.9? Not only that I never encountered that problem since I "fixed" it, I even have a thread on the server running that terminates all clients that are disconnected but are still treated as if they are actually online. Not that it shouldn't be happening, it actually can't happen.
Title: Re: [XP] RMX-OS
Post by: Ryex on August 16, 2009, 01:04:03 pm
I have that problem too  but If I wait a bit (like 30 minuets or so) I can log back in

EDIT: and now the problem seems to be gon after I re DLed the client
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 16, 2009, 01:17:56 pm
Wrong topic then. I fixed in RMX-OS a while ago as I said. Remexos is different and I updated the scripts there. I didn't fix it there before, that's why you got the error. I thought you were talking about RMX-OS because you posted here. :P
Title: Re: [XP] RMX-OS
Post by: Ryex on August 16, 2009, 03:06:58 pm
oh sorry
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on August 17, 2009, 08:29:00 am
Does the /geval command effects currently online or everyone registered on the server? If it only effects those online, any chance of one that effects everyone registered on the server? Or is there an SQL thing I could run in the database for that?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 17, 2009, 10:21:27 am
Quote from: Hellfire Dragon on August 17, 2009, 08:29:00 am
Does the /geval command effects currently online or everyone registered on the server?


*points to manual*

Quote from: Hellfire Dragon on August 17, 2009, 08:29:00 am
If it only effects those online, any chance of one that effects everyone registered on the server? Or is there an SQL thing I could run in the database for that?


How would you execute a script on a client isn't connected and has absolutely no way to receive that script command? -_-
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on August 17, 2009, 01:23:28 pm
The players data is saved in the database, including switches and variables, right?
I think...
Title: Re: [XP] RMX-OS
Post by: Aqua on August 17, 2009, 01:26:08 pm
    # save container variable definitions
    SAVE_CONTAINERS = [
        '$game_system',
        '$game_switches',
        '$game_variables',
        '$game_self_switches',
        '$game_party',
        '$game_actors',
        '$game_map',
        '$game_player'
    ]
    # general save data setup
    SAVE_DATA['Graphics.frame_count'] = []
    SAVE_DATA[Game_System] = ['@timer', '@timer_working', '@menu_disabled']
    SAVE_DATA[Game_Switches] = ['@data']
    SAVE_DATA[Game_Variables] = ['@data']
    SAVE_DATA[Game_SelfSwitches] = ['@data']
    SAVE_DATA[Game_Party] = ['@gold', '@steps', '@actors', '@items',
        '@weapons', '@armors']
    SAVE_DATA[Game_Actors] = ['@data']
    SAVE_DATA[Game_Map] = ['@map_id']
    SAVE_DATA[Game_Player] = ['@x', '@y', '@real_x', '@real_y',
        '@character_name', '@encounter_count']
    SAVE_DATA[Game_Actor] = ['@actor_id', '@name', '@character_name',
        '@character_hue', '@class_id', '@weapon_id', '@armor1_id',
        '@armor2_id', '@armor3_id', '@armor4_id', '@level', '@exp', '@skills',
        '@hp', '@sp', '@states', '@maxhp_plus', '@maxsp_plus', '@str_plus',
        '@dex_plus', '@agi_plus', '@int_plus']
Title: Re: [XP] RMX-OS
Post by: Ryex on August 17, 2009, 08:05:55 pm
so... what are the planned changes between v0.9 and v1.0?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 18, 2009, 04:18:20 am


Nothing else I can think of right now.
Title: Re: [XP] RMX-OS
Post by: Ryex on August 18, 2009, 04:22:10 am
OOOOOOOOOOOOOOOOooooooo *looks in awe at the shiny To-Do list*
sounds good!
trading and the chat box stuff sounds cool!
and I can't wait to read the documentation and possible learn something new!
Title: Re: [XP] RMX-OS
Post by: Aqua on August 18, 2009, 04:23:23 am
*drools*
Go, Blizzard, go!
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 18, 2009, 04:40:09 am
The documentation will probably take the most time. It will include diagrams, API reference, etc. ._.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 19, 2009, 03:41:46 am
v0.91 is up. Among other things, it should remove the problem when a player can't login because he's still "logged in" after his client crashed.
Title: Re: [XP] RMX-OS
Post by: acebelowzero on August 19, 2009, 07:39:18 pm
Ok i got my online connection to work but i really dont know how to chat...

This is all that shows
Spoiler: ShowHide
(http://i563.photobucket.com/albums/ss76/acebelowzero/Capture-1.jpg)


Can u please help. :)
Title: Re: [XP] RMX-OS
Post by: Aqua on August 19, 2009, 07:41:18 pm
Read... the... manual...
Quote1.1.2. Additional Controls
F5
Triggers the chat window's visibility. This feature is disabled during event execution.
F6
Triggers the chat window active or inactive. While the chat window is active, the player will not be able to move or execute events
Title: Re: [XP] RMX-OS
Post by: edwardthefma on August 27, 2009, 11:58:36 pm
i keep getting this

MySQL server has gone away
C:/Users/james/Desktop/RMX-OS Server/RMX-OS Server/Data/Action_Handler1.rb:60:in `query'
C:/Users/james/Desktop/RMX-OS Server/RMX-OS Server/Data/Action_Handler1.rb:60:in `try_login'
C:/Users/james/Desktop/RMX-OS Server/RMX-OS Server/Data/Client.rb:102:in `check_connection'
C:/Users/james/Desktop/RMX-OS Server/RMX-OS Server/Data/Client.rb:44:in `handle'
C:/Users/james/Desktop/RMX-OS Server/RMX-OS Server/Data/Server.rb:138:in `block in run'
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 28, 2009, 03:30:02 am
Happens because of the MySQL connection timeout (which is 8 hours by default). I'm aware of this "bug" and I will fix it and make RMX-OS reconnect to SQL every few hours.
Title: Re: [XP] RMX-OS
Post by: jcsnider on September 02, 2009, 10:10:11 am
Any idea when 1.0 will be released?
Title: Re: [XP] RMX-OS
Post by: Jackolas on September 02, 2009, 10:24:51 am
blizz will release 1.0 when its done. not any sooner :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 03, 2009, 04:06:57 am
LMAO! "RMX-OS Forever - it's done when it's done" xD

Today I'll start working on it again. So it might be done within the next 10 days or 2 weeks. I'll see how much time I'll have.
Title: Re: [XP] RMX-OS
Post by: Lore on September 10, 2009, 06:06:07 pm

@Aqua's bottom post: *facepalm*

Yeah, I didn't see that forum when I logged in, that's why. I relogged and it suddenly appeared.
Title: Re: [XP] RMX-OS
Post by: Aqua on September 10, 2009, 06:08:51 pm
Wrong topic... o.o
http://forum.chaos-project.com/index.php?topic=3930.0
Title: Re: [XP] RMX-OS
Post by: rpgmakerfanhaha on September 12, 2009, 10:33:03 am
hat's difficult to understand.Well,I will try it in my second game"Linked Destiny"
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 14, 2009, 05:08:10 am
*announces* RMX-OS 1.0 will be out soon. <3
Title: Re: [XP] RMX-OS
Post by: jcsnider on September 14, 2009, 07:29:35 am
*turns on notifications* and then *goes to school*
Title: Re: [XP] RMX-OS
Post by: Starrodkirby86 on September 15, 2009, 02:55:18 am
Quote from: Blizzard on September 14, 2009, 05:08:10 am
*announces* RMX-OS 1.0 will be out soon. <3
Brace yourselves for sex epicness. This of course means it's...the first complete/public version, right? Of course, version numbers don't mean much to me now, especially since you can just slap out random numbers that will still convince people.
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 15, 2009, 05:15:56 am
v1.0 means for me the first release that has all the features that I intended it to have. Every version after that means additional features/bug fixes, etc. It was v0.x so far because not everything that should be in there was in there. xD
Title: Re: [XP] RMX-OS
Post by: jcsnider on September 15, 2009, 07:42:06 am
XD Can't wait.... :^_^':
Title: Re: [XP] RMX-OS
Post by: edwardthefma on September 15, 2009, 02:42:10 pm
blizzard showd me how to add commands so i thought i would post wate blizzard told me to do

i was going to use the command to save

Quote from: Blizzard on September 14, 2009, 02:21:02 pm
alias check_normal_commands_teleport check_normal_commands
def check_normal_commands(message)
 if message =~ /\A\/save\Z/
   $network.save
   return true
 end
 return check_normal_commands_teleport(message)
end


Or:

alias check_normal_commands_teleport check_normal_commands
def check_normal_commands(message)
 if message == 'save'
   $network.save
   return true
 end
 return check_normal_commands_teleport(message)
end



then you add

save to the  PARAMETERS section around line 286
and add save to DESCRIPTIONS around line  336
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 15, 2009, 03:44:09 pm
You can add PARAMETERS and DESCRIPTIONS pretty much anywhere as long it's in RMXOS::Data. That way you won't get weird messages when you try use the command improperly.

EDIT: Pretty much this:

class RMXOS::Network
 
 alias check_normal_commands_command_save check_normal_commands
 def check_normal_commands(message)
   if message =~ /\A\/save\Z/
     $network.save
     return true
   end
   return check_normal_commands_command_save(message)
 end
 
end

module RMXOS::Docs
 
 PARAMETERS['save'] = 'none'
 DESCRIPTIONS['save'] = 'Saves the game.'
 
end
Title: Re: [XP] RMX-OS
Post by: C.C. rOyAl on September 20, 2009, 02:57:30 am
its said there might be complications with an abs, would this include babs?
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on September 20, 2009, 09:08:07 am
Yep, but I think blizzy is supposed to making an extension for rmx-os so it'll work ;)
Title: Re: [XP] RMX-OS
Post by: C.C. rOyAl on September 20, 2009, 09:21:29 am
cool, cant wait!
Title: Re: [XP] RMX-OS
Post by: Ryex on September 20, 2009, 06:59:45 pm
hey blizz, I've been running a server to test maps and such, and for the hell of it I took a look in the log files and noticed that it was chock full of errors (can't make hide or tails of them as I don't really know how the server works yet) should I send you the actions and error log files so you can look through them?

edit: never mind i just realized that the logs are old, you just included them in the dl for the remexos server and i didn't notice them
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 21, 2009, 04:18:01 am
Lol! You can mostly check everything by checking the dates of the errors. I think I cleaned it this time.
Title: Re: [XP] RMX-OS
Post by: phillip1756 on September 25, 2009, 04:17:20 pm
plz can you post the script on this topic instead of putting it in the download
Title: Re: [XP] RMX-OS
Post by: Aqua on September 25, 2009, 04:31:14 pm
If you don't get the demo, you wouldn't get a lot of the files that are really important, like the manual.
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 27, 2009, 01:10:40 pm
You can't just put in the script and expect it to work. You need the server scripts and all server related files as well. There's a reason why it's a download.

Also, v1.0 is out. :=
Title: Re: [XP] RMX-OS
Post by: Aqua on September 27, 2009, 01:11:07 pm
SQUEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!!

*asplodes*
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on September 27, 2009, 01:37:53 pm
 :w00t:
Awesomeness!

This is great Blizzy ;)
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 27, 2009, 02:16:04 pm
And it's already over 6000 lines. o.o;
Title: Re: [XP] RMX-OS
Post by: jcsnider on September 27, 2009, 07:18:53 pm
Quote from: Hellfire Dragon on September 27, 2009, 01:37:53 pm
:w00t:
Awesomeness!

This is great Blizzy ;)



     /\
      l
Says It all
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on September 28, 2009, 04:33:04 pm
:)

Anyway Blizzy, got an error :/
Quote
Script' (RMX-OS Script)' line 3288: TypeError

can't clone NilClass


Line 3288: @chat_messages.clone.each {|chat_message|

Comments say it's for chat bubbles but the error still shows even if I set them to false
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 28, 2009, 04:47:13 pm
Weird. I'll look into it.
Title: Re: [XP] RMX-OS
Post by: secondVISION on September 30, 2009, 11:56:32 am
Hey,

let's say you've completed your v1 script.
I 'install' it but when I want to add new things, like balancing stuff or new maps,.... will that 'mess up' with your script?
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 30, 2009, 12:07:13 pm
Nope. Editing the database or maps rarely messes up a script. The exclusion would maybe be scripts that are directly connected to that.
Title: Re: [XP] RMX-OS
Post by: Ryex on October 02, 2009, 04:49:53 pm
hey blizz didn't you say that you would finish the documentation with v1.0?  :(
oh well no rush there i'll read it when and if it gets finished
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 03, 2009, 07:16:34 am
I'll do it for 1.1. I wanted to release 1.0 earlier so I skipped the docs for now.

EDIT: v1.01 is out. I fixed the bug HD mentioned. It was weird, though. Logically that bug wasn't supposed to exist at all.
Title: Re: [XP] RMX-OS
Post by: Ryex on October 04, 2009, 07:47:10 pm
I found a bug! I did I did! lol it's only a small one and it's more a a glitch.
the chat bubbles will only show the last part of a message. ie I decided to test them and put in a message that was the max 200 characters but the bubble only showed the last 68 characters of the message.

also if i may make a suggestion the remember log in option should only enable a loading of the user's preference from the .ini or similar file. that way if some one is one a public computer or a computer with more than one person on it they can disable the remember log in option from the servers scene

just a suggestion.
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 05, 2009, 09:10:54 am
I was just too lazy to make "Remember me" optional for the player so far.
Also, who the heck will install an RMXP game on a public computer?! -_-

I'll look into the bug with the chat bubbles. It's probably because of the text splitting in case of long messages.

EDIT: Alright, I checked on the bug and it's not a bug. It actually works as intended, I just didn't consider some cases.
The script splits the text in lines so they fit in 96 pixels width while the maximum line number in the chat bubble is 5. For former constant was hardcoded, I changed that for the next version and I changed it to 192 instead of 96. You can always change RMXOS::Data::ChatBubbleEntries and (in the next release) RMXOS::Data::ChatBubbleMaxWidth. I'll also change RMXOS::Data::ChatBubbleEntries to 8 instead of 5 by default. I might change the maximum chat entry limit to 150 or 128 or 100. I'll see. In any case there are constants in the RMXOS::Data module which are actually for advanced users since they aren't part of the default configuration. Feel free to change them, but remember to be careful when you update the script not to overwrite the edited part and add new constants from the script in that case.
Title: Re: [XP] RMX-OS
Post by: phillip1756 on October 17, 2009, 07:39:53 am
the server keeps on saying offline,how do i change this?
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on October 17, 2009, 09:31:10 am
Why did you make a new topic for that? Should've looked here before I replied in the topic >.<
Anyway,
Quote from: Hellfire Dragon on October 17, 2009, 09:28:37 am
First, this should prbably be in the RMX-OS thread. Now, you sure you actually started the server? If you are then is the server set up correctly and the database set up right?
Title: Re: [XP] RMX-OS
Post by: edwardthefma on October 17, 2009, 09:56:24 pm
welli think rmxos is awsome i cant wate untill i can get it running in ruby rails XD
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 22, 2009, 06:34:51 am
Eh, what SQL Management software do you guys use? People at RRR have trouble finding some. :/
Title: Re: [XP] RMX-OS
Post by: G_G on October 22, 2009, 08:55:52 am
Query Browser
http://www.mysql.com/products/administrator/%20

thats got a few mysql tools which includes a query browser which is an sql management which I use.
Title: Re: [XP] RMX-OS
Post by: Ryex on October 22, 2009, 09:43:59 am
that's one of the things i'm going to try to add to the RMX-OS GUI. that way you dont have DL anything but MySQL, RMX-OS and the GUI to set up the server
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 22, 2009, 09:52:01 am
Lol, database management software isn't really a small program. But you could just add some basic functions. That could be useful and should suffice for most people.
Title: Re: [XP] RMX-OS
Post by: Ryex on October 22, 2009, 10:02:00 am
basically the functions to to create the database run the setup script and run any update scripts
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 22, 2009, 10:04:09 am
Basically running SQL queries. Probably a database content display and possibility to edit stuff would be nice, too. But for that you need to be know SQL more or less. xD

Good luck with that.
Title: Re: [XP] RMX-OS
Post by: Aqua on October 22, 2009, 03:41:47 pm
I use Navicat.
It's nifty :x
Title: Re: [XP] RMX-OS
Post by: Ryex on October 24, 2009, 04:59:46 pm
hm I thought of a possible addon the could be made for this script... a TOS page that your are required to click yes on or you can't register. the TOS could be pulled from a text file and it could be turned on and off.... what do you think?
Title: Re: [XP] RMX-OS
Post by: jcsnider on October 24, 2009, 05:11:55 pm
I like the idea, but maybe instead of a text file in client, make it be in server and the server send it over so it can be updated anytime or, in the game's scripts so people cant edit it themselfs trying to be a smartass.
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 24, 2009, 07:36:50 pm
This is pointless. You just put TOS for the client download. Problem solved.
Title: Re: [XP] RMX-OS
Post by: Ryex on October 24, 2009, 08:19:18 pm
hmm true. I just kniw that most MMO's I seen they have a different TOS for registering an account than for installing the game. but then most MMO's I've seen the TOS for the account registering was probably meant to cover the forum and site use as well as in game stuff. it would make more sense if the page was used to display online conduct rules.
Title: Re: [XP] RMX-OS
Post by: G_G on October 25, 2009, 11:36:26 pm
Okay guys I figured out how to run a server without using hamachi, I feel so proud of myself. Lol.

Yea I cant believe it was so simple but took me this long to figure out.

Anyways I have a client and server up so here's a test. Its running on my actual ip without hamachi.
http://gameguy.webhop.org/Files/client.exe

It does work I tested it with edwardthefma also here's my new site! Under construction of course xD
http://gameguy.webhop.org I'm going to change the name to something else but its all for server testing.
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 26, 2009, 03:52:09 am
Wait, you mean you are running RMX-OS on a remote server where you don't have direct access like at your PC?
Title: Re: [XP] RMX-OS
Post by: jcsnider on October 26, 2009, 06:33:14 am
No, he is saying he figured out how to host RMX-OS on his computer and people are able to access it without hamachi. As for the website, he states, "Welcome to game_guy's site. This is all ran on his comptuer server, no web host used."
Title: Re: [XP] RMX-OS
Post by: G_G on October 26, 2009, 07:53:26 am
Yea sorry for the confusion -_-
Title: Re: [XP] RMX-OS
Post by: Djeff on October 28, 2009, 09:07:01 am
looks nice
where can i find the ruby thing ?
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 28, 2009, 10:51:26 am
You can find it here (http://justfuckinggoogleit.com/).
Title: Re: [XP] RMX-OS
Post by: Djeff on October 28, 2009, 02:51:17 pm
Just where wanted to have the official site.
there are a lot of sites via google.
but found it.

thanks anyway
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 29, 2009, 02:14:20 am
Official Ruby site, where else would you find the download? http://www.ruby-lang.org/en/downloads/
Title: Re: [XP] RMX-OS
Post by: Djeff on October 29, 2009, 11:02:37 am
ok thank you

sorry to bother you
Title: Re: [XP] RMX-OS
Post by: Annyahs on November 16, 2009, 04:05:22 pm
This is an absolutely awesome idea and I would love to implement it in my game. Being able to play with my family and friends on a game designed especially for us that we don't have to pay a monthly fee for... yeah that rocks.

So, I set out on the endeavor to set this up with a game I was creating with my fiance and I've gotten completely lost somewhere in the MySQL seas.

I've downloaded and installed:
*Ruby
*MySQL
*MySQL Management software
*RMX-OS GUI

To the best of my knowledge, I've installed and configured them all correctly (as well as the cfg.ini file).
However, the GUI wouldn't allow me to connect to the SQL server. I then realized I'd forgotten to create the database, as stated in the file you included. So, I did that with the management software.

Everything should now be fine and dandy, but its still not letting me connect in the GUI. I went ahead and tried to connect in the game and got the error:
"Script 'RMX-OS Script' line 2496: Errno::ECONNRESET occurred. An existing connection was forcebly closed by the remote host."

How can it refuse to connect in the GUI and then report a working connection that refuses to allow login? I'm confused.
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 16, 2009, 05:36:33 pm
As I already mentioned in the installation guide, you should look up port forwarding and other terms.
Title: Re: [XP] RMX-OS
Post by: Annyahs on November 19, 2009, 01:35:03 pm
I already have. I opened the ports used by RMX-OS and MySQl and then used port checker to confirm that they were indeed open. Still getting the error.
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 19, 2009, 02:57:42 pm
You ran the server, right? Post your configuration of the server and the client. Maybe something's wrong.
Title: Re: [XP] RMX-OS
Post by: Ryex on November 19, 2009, 08:31:36 pm
note that if the GUI can't connect to the database RMX-OS can't either. use the connect button to check the connection. most database management software works as a remote client. use the configuration you used for the software for RMX-OS and it should work
also be sure that the MySQL server is running simply right click on my computer and click manage then go to services ans make sure the MySQL services is started.
Title: Re: [XP] RMX-OS
Post by: element on November 21, 2009, 04:53:19 am
When you want a game to be 24/24 online, you need the main computer always to be on ?
Title: Re: [XP] RMX-OS
Post by: Hellfire Dragon on November 21, 2009, 09:35:36 am
You mean 24/7 :P and yes, if your hosting it off your own comp then you will need to leave it on if you want it to be available 24/7.
Title: Re: [XP] RMX-OS
Post by: element on November 21, 2009, 12:23:21 pm
that sucks :p any other way to fix that ?
Title: Re: [XP] RMX-OS
Post by: Ryex on November 21, 2009, 01:31:02 pm
host in a place that is not your computer. or get a cheap computer and devote it to the task.
Title: Re: [XP] RMX-OS
Post by: element on November 21, 2009, 03:48:35 pm
host in place whats not my pc ...
u mean ? sorry my english isn't that good  :^_^':
Title: Re: [XP] RMX-OS
Post by: Ryex on November 21, 2009, 03:55:36 pm
host the server on a computer that is not yours, ie. your friends, parent's work (not always a good idea), a paid host online, ect.
Title: Re: [XP] RMX-OS
Post by: element on November 22, 2009, 03:22:46 am
oh get it ! :p
ty for the idea
Title: Re: [XP] RMX-OS
Post by: edwardthefma on December 02, 2009, 05:11:08 pm
it is hear i fixd the mysql.so error in linux and now you can run rmx-os inside a Linux shell

http://forum.chaos-project.com/index.php/topic,5055.0.html
Title: Re: [XP] RMX-OS
Post by: Ryex on December 05, 2009, 11:10:28 am
hey blizz the name of the whisperer dose not appear in front of received whisper text, it just appears as yellow text and you have no clue who it cam from.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 06, 2009, 05:24:42 am
Ok, I'll fix that.
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 06, 2009, 10:08:58 am
k. tried a lot myself. got a lot to work myself. even in the saving stuff..
but ran into a problem :S
I'm not someone to ask for help with every problem because I want to fix everything myself, but I'm stuck
under Save_Data in the manual says :
QuoteIt requires some basic scripting knowledge to set up this configuration! If you are unsure, ask a scripter.


I have a quest system in my game that works great when it was single player (could save an load quest progress.)
Now I can't get it to work any more.

to get it to work in the single player game I added to Scene_Save
    Marshal.dump($game_temp.qupdate, file)
   Marshal.dump($game_temp.qupdate2, file)

in  Game_Temp I added under "class Game_Temp"
  attr_accessor :qupdate
 attr_accessor :qupdate2

and under "def initialize"
    @qupdate = []
   @qupdate2 = []
   for i in 0...200000
     @qupdate[i] = false
     @qupdate2[i] = false
   end

to start a quest i add a script in an event with:
$game_temp.qupdate[1][0] = true

(this will start quest 1 with 0 objective completed)

if more info is needed say so.
Reason for not uploading whole scrip: don't want you guys go to the trouble to read trough 500+ lines of code
if script is really needed i will post it
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 06, 2009, 12:02:28 pm
Add this:

SAVE_DATA[Game_Temp] = ['@qupdate', '@qupdate2']


And add '$game_temp' to SAVE_CONTAINERS.

Also, I recommend that you don't put that stuff in Game_Temp. Better put it in Game_System. Then you need to add '@qupdate' and '@qupdate2' to SAVE_DATA[Game_System] instead of what I just said.
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 06, 2009, 12:48:45 pm
thanks, i go right to it

edit:
change to system, works like a dream.
added it to SAVE_DATA[Game_System]

got error:

Quote
Script 'RMX-OS Data' line 2600: RuntimeError occurred
Error! Saving for class Array undefined!


think there need to be added a     CREATION_DATA[Game_System] = ????
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 06, 2009, 01:41:13 pm
Right. That's an issue I have fixed already, but it's not in a released version yet. It happens if you have arrays / hashes in arrays / hashes. Put this under RMX-OS for now and it should work:

Spoiler: ShowHide
#==============================================================================
# Object
#------------------------------------------------------------------------------
# Enhanced with methods for self-encoding of contained data and methods for
# decoding of saved game data that was received from the server.
#==============================================================================

class Object
 
  #----------------------------------------------------------------------------
  # Checks whether this object is actually a literal. (Literals are here
  # defined as strings, numbers, ranges, true, false and nil.)
  # Returns: True or false.
  #----------------------------------------------------------------------------
  def literal?
    return (self.is_a?(String) || self.is_a?(Numeric) || self.is_a?(Range) ||
        self.is_a?(TrueClass) || self.is_a?(FalseClass) || self.is_a?(NilClass))
  end
  #----------------------------------------------------------------------------
  # Serializes the object and all contained objects for the RMX-OS SQL
  # database.
  #  prefix - semantical prefix for the serializations
  # Returns: Array of serialization strings.
  #----------------------------------------------------------------------------
  def rmxos_serialize(prefix = nil)
    # add prefix extension if this isn't a top level class
    (prefix == nil ? prefix = 'SAV' : prefix += '/')
    # add class name
    prefix += self.class.name
    # prepare result and data arrays
    serializations, data = [], []
    # for each variable that this class should save
    RMXOS::Options::SAVE_DATA[self.class].each {|variable|
        # get value of variable
        value = self.instance_variable_get(variable)
        # if value is of a class that should be saved as well
        if RMXOS::Options::SAVE_DATA[value.class] != nil ||
            value.is_a?(Array) || value.is_a?(Hash)
          # get serializations from this value with this class as prefix
          serializations += value.rmxos_serialize("#{prefix}/#{variable}")
          data.push(value.class)
        # if value is literal
        elsif value.literal?
          data.push(value)
        else
          # can't save this value
          raise RMXOS::Error.get_save_error(value)
        end}
    # if there is any data
    if data.size > 0
      # inspect and compress
      data = data.inspect.gsub(', ') {','}
      # add data array query
      serializations.unshift("#{prefix}\t#{data}")
    end
    return serializations
  end
  #----------------------------------------------------------------------------
  # Serializes array and hashes for the RMX-OS SQL database.
  #  prefix       - semantical prefix for the serializations
  #  indices      - array of indices (array) or keys (hash)
  #  all_literals - whether all elements are literals or not
  # Returns: Array serialization strings.
  #----------------------------------------------------------------------------
  def rmxos_serialize_enum(prefix, indices, all_literals)
    # prepare result
    serializations = []
    # if all array elements are literals
    if all_literals
      # get as string
      data = self.inspect
    else
      # create new instance of this class
      data = self.class.new
      # for each index in enumerable
      indices.each {|i|
          # if element is literal
          if self[i].literal?
            # add it to the result
            data[i] = self[i]
          # if element is of a class that should be saved as well
          elsif RMXOS::Options::SAVE_DATA[self[i].class] != nil ||
              self[i].is_a?(Array) || self[i].is_a?(Hash)
            # get serializations from this element with this class as prefix
            serializations += self[i].rmxos_serialize("#{prefix}[#{i.inspect}]")
            # add elements's class to data array
            data[i] = self[i].class
          else
            # can't save this value
            raise RMXOS::Error.get_save_error(self[i])
          end}
      # inspect and compress
      data = data.inspect
    end
    # add a little bit of compression :)
    data.gsub!(', ') {','}
    # add data array query
    serializations.push("#{prefix}\t#{data}")
    return serializations
  end
  #----------------------------------------------------------------------------
  # Deserializes data retrieved from the server into this object.
  #  name - the key for the hash data retrieved from the server
  #----------------------------------------------------------------------------
  def rmxos_deserialize(name)
    # evaluate the data for this class which turns into an array
    data = eval($network.load_data[name])
    # iterate through all indices of variables that are to be saved
    RMXOS::Options::SAVE_DATA[self.class].each_index {|i|
        # get variable name
        variable = RMXOS::Options::SAVE_DATA[self.class][i]
        # if this variable's loaded value is a class
        if data[i].is_a?(Class)
          # access key for loaded data
          key = "#{name}/#{variable}"
          # if it's an array
          if data[i] == Array
            # evaluate and get the loaded array
            data[i] = eval($network.load_data[key])
            # load all classes contained in this array
            rmxos_deserialize_enum(name, variable, data[i],
                (0...data[i].size).to_a)
          elsif data[i] == Hash
            # evaluate and get the loaded hash
            data[i] = eval($network.load_data[key])
            # load all classes contained in this hash
            rmxos_deserialize_enum(name, variable, data[i], data[i].keys)
          else
            # load this class
            data[i] = rmxos_deserialize_object(key, data[i])
          end
        end
        # set the variable to this value
        self.instance_variable_set(variable, data[i])}
  end
  #----------------------------------------------------------------------------
  # Deserializes data retrieved from an array or a hash.
  #  name     - the key for the hash data retrieved from the server
  #  variable - name of the variable containing the array
  #  data     - actual array or hash
  #  indices  - array of indices (array) or keys (hash)
  #----------------------------------------------------------------------------
  def rmxos_deserialize_enum(name, variable, data, indices)
    # iterate through all indices
    indices.each {|i|
        # if data is a class
        if data[i].is_a?(Class)
          # access key for loaded data
          key = "#{name}/#{variable}[#{i.inspect}]"
          # if it's an array
          if data[i] == Array
            # evaluate and get the loaded array
            data[i] = eval($network.load_data[key])
            # load all classes contained in this array
            rmxos_deserialize_enum(name, "#{variable}[#{i.inspect}]", data[i],
                (0...data[i].size).to_a)
          elsif data[i] == Hash
            # evaluate and get the loaded hash
            data[i] = eval($network.load_data[key])
            # load all classes contained in this hash
            rmxos_deserialize_enum(name, "#{variable}[#{i.inspect}]", data[i],
                data[i].keys)
          else
            # load this class
            data[i] = rmxos_deserialize_object(key, data[i])
          end
        end}
  end
  #----------------------------------------------------------------------------
  # Deserializes data retrieved from the server into this object.
  #  prefix - semantical prefix for loaded data access
  #  classe - class that needs to be instantiated
  # Returns: New instance of a class after loading.
  #----------------------------------------------------------------------------
  def rmxos_deserialize_object(prefix, classe)
    # if classe requires additional creation arguments
    if RMXOS::Options::CREATION_DATA.has_key?(classe)
      # get the arguments
      args = RMXOS::Options::CREATION_DATA[classe]
      # create an instance with those arguments
      new = eval("#{classe.name}.new(#{args})")
    else
      # simply instantiate the class
      new = classe.new
    end
    # load data for this class
    new.rmxos_deserialize("#{prefix}/#{classe.name}")
    return new
  end
 
end

#==============================================================================
# Array
#------------------------------------------------------------------------------
# Arrays need to be encoded and decoded differently than other obejcts.
#==============================================================================

class Array
 
  #----------------------------------------------------------------------------
  # Serializes the object and all contained objects for the RMX-OS SQL
  # database.
  #  prefix - semantical prefix for the serializations
  # Returns: Array of serialization strings.
  #----------------------------------------------------------------------------
  def rmxos_serialize(prefix)
    # all indices
    indices = (0...self.size).to_a
    # are all elements literals
    all_literals = !self.any? {|val| !val.literal?}
    # return serializations from this array
    return self.rmxos_serialize_enum(prefix, indices, all_literals)
  end

end

#==============================================================================
# Hash
#------------------------------------------------------------------------------
# Hashes need to be encoded and decoded differently than other obejcts.
#==============================================================================

class Hash
 
  #----------------------------------------------------------------------------
  # Serializes the object and all contained objects for the RMX-OS SQL
  # database.
  #  prefix - semantical prefix for the serializations
  # Returns: Array of serialization strings.
  #----------------------------------------------------------------------------
  def rmxos_serialize(prefix)
    # all keys
    indices = self.keys
    # are all elements literals
    all_literals = !self.any? {|key, val| !val.literal?}
    # return serializations from this hash
    return self.rmxos_serialize_enum(prefix, indices, all_literals)
  end 
 
end

module RMXOS
 
  class Network
   
    def send_save_data(classes = RMXOS::Options::SAVE_DATA.keys)
      # repare data for saving
      save_data = {}
      classes.each {|classe|
          save_data[classe] = RMXOS::Options::SAVE_DATA[classe]}
      serializations = []
      # for each save container
      self.get_save_containers.each {|container|
          # if the container's class is on this saving list
          if save_data[container.class] != nil
            # recursively get save serializations
            serializations += container.rmxos_serialize
          end}
      # find all literals
      literals = RMXOS::Options::SAVE_DATA.keys.find_all {|key|
          !key.is_a?(Class)}
      # create serializations for literal saving data
      literals.each {|key| serializations.push("SAV#{key}\t#{eval(key)}")}
      # send all save serializations
      serializations.each {|query| self.send(query)}
    end
   
  end
 
end
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 06, 2009, 02:10:51 pm
got it working. till a point
dunno if its a problem in RMX-OS or my quest script

it works fine with log-in (new account ofc) and log-off.
but when I log in again with the same account error pops up

Script 'RMX-OS Data' line 2619: Type Error occurred
Cannot Convert nil into String

sorry to be a pain :S
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 06, 2009, 02:17:16 pm
Fixed as well.

Spoiler: ShowHide
module RMXOS
 
  class Network
 
    def listen
      @messages.clear
      # stop if socket is not ready
      return if !self.connected? || !@socket.ready?
      # get 0xFFFF bytes from  received message
      buffer = @socket.recv(0xFFFF)
      # delete null values from buffer
      buffer.gsub!("\000", '')
      # split messages by \n without suppressing trailing empty strings
      buffer = buffer.split("\n", -1)
      # if chunk from previous incomplete message exists
      if @previous_chunk != nil
        # complete chunk with first new message
        buffer[0] = @previous_chunk + buffer[0]
        # delete chunk buffer
        @previous_chunk = nil
      end
      # remove last message in buffer
      last_chunk = buffer.pop
      # incomplete message if it exists (meaning last message has no \n)
      @previous_chunk = last_chunk if last_chunk != ''
      # check each message in the buffer
      buffer.each {|message|
          next if self.check_game(message)
          next if self.check_communication(message)
          next if self.check_connection(message)
          next if self.check_loading(message)}
    end
   
  end
 
end
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 06, 2009, 03:09:03 pm
guess just put it under the rest of the script

had a longer loading
still crashed. same error
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 06, 2009, 05:25:27 pm
Eh, then I don't know. You'll have to wait until I release v1.1. :/
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 06, 2009, 06:46:58 pm
np than. will work around it for now :P
thanks for looking into it anyway. :bow:
Title: Re: [XP] RMX-OS
Post by: Ryex on December 06, 2009, 08:34:16 pm
ok so I'm building a world chat channel addon for PNO I just want to know is the prefix CHW or CAW in use? (and yes I'm aware that mods can use the /global command, this is fo of a use /world to turn world chat off and on, and while your in world chat all your messages are sent to everyone)

EDIT: wow Blizz you weren't thinking of a multichannel system when you designed the chat were you. I ended up giving up on making the world and local chat logs combine correctly and just made it a completely different log.
Title: Re: [XP] RMX-OS
Post by: G_G on December 07, 2009, 12:43:29 am
can this run on ruby on rails?

EDIT:
Where go we access all the PM's a player recieves? A friend was bugging me saying he didn't like viewing pm's through chatbox so he asked me to make a script that showed him them.

So I plan on doing that but I need to know how to access PM's.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 07, 2009, 05:27:18 am
@Ryex: I did not implement world chat on purpose. Spammers, advertisers, idiots and everybody else falling into that kind of category shouldn't be allowed to talk to everybody whenever they feel like it. There will always be people like that and if they have the means to be completely annoying idiots by annoying everybody else on the server, they will use that opportunity. Imagine 100 people on a server and just 2 pairs of 2 people on two different maps who talk to each other, 2 more annoying idiots who are looking for a pokemon to trade and let the entire server know and 2 more noobs who don't know how to play and keep asking questions. The chatbox will be flooded just like that and a normal conversation with somebody will become impossible.

@G_G: Actually it's in the manual. *points to chapter 4.3.* The PMs are received with the PMA server message. RMXOS::Network#decode_pm_data turns the received string into a proper chat message displaying all the info about the PM.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 07, 2009, 11:35:47 am
@Blizz well Jc and most every one else wanted it and in that case my method of implementing it is better. you don't have to see the world chat if you don't want to.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 07, 2009, 01:21:00 pm
Alright, but I have warned you. :P
Title: Re: [XP] RMX-OS
Post by: Ryex on December 07, 2009, 02:23:23 pm
yes, yes you did. and yours IS the reason most MMO's have the option to turn the global and trade chat channels off. and even the local channel. so that you can view only the sever messages and personal stuff like pm's or the channel you want to. eventually that is what I'm going to expand it to. a multichannel system where a user receives local messages and messages from channels that they subscribe to. ie the user enters /world into the chat box and the server receives a messages to send world messages to them. and then entering /world again tells it to stop. the same could be done with any extra channel.
It would make a nice extension in that form I think


EDIT:
also in the latest version of PNO I'm having the loading problems again. the type error can't convert nil to string error. I looked up the two lines that it gives, the lines are in the methods rmxos_deserialize and  rmxos_deserialize_enum. the line in both cases is
data = eval($network.load_data[key])
if it helps I was trying to proxy the game client so the network connection never went over 10kb/s and jumped up and down a lot. I have a feeling that this is why
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 07, 2009, 05:23:16 pm
Alright, then it's ok, channels are fine. I actually hoped that somebody would make plugins to split the different chat message categories. :=

I'm not sure, but the edited client is supposed to receive server message chunks and simply put them together if they aren't complete. Find RMXOS::Network#listen and dump all received messages (before the \000 are all deleted) into a file and send me that file.
Title: Re: [XP] RMX-OS
Post by: Lost King on December 07, 2009, 10:47:08 pm
Alright, so, I've spent close to around the last 4 hours tackling the installation of the server alone, mind you I've been having internet connection problems every other minute and everythings been pissing me off like no other. But anyway.

I've finally gotten MySQL to download and got all the way up to the execute window of setting up the instance and it gets to Start Server, the first time I did this it said it couldn't Start, so I closed out, uninstalled, reinstalled, and now it's frozen at that screen twice and I closed out of it after waiting 5 minutes.

Can someone PLEASE help me? Lead me to another alternative? One that isn't a source code and won't take me 4 hours to install. I've got Windows Vista and every new program I come by turns into an adventure regardless of how easy the set up should be. I'm sure getting the actual game to work on the server, if I ever get that working, will take a good 5 hours or so.
Title: Re: [XP] RMX-OS
Post by: Aqua on December 07, 2009, 11:24:27 pm
Wait... did you or did you not successfully install MySql? O.o
Title: Re: [XP] RMX-OS
Post by: Lost King on December 08, 2009, 01:34:56 am
I got it to install, but I can't configure it. I've tried Starting it through the Services thing in Control Panel but that errors out with something about terminating the Localhost or something.
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 08, 2009, 02:09:43 am
reinstall MySQL. (had the same problem)
I suggest following this guy guide because its a real pain to uninstall.
http://www.channels.com/episodes/show/6310023/Completely-remove-MySQL-server-for-Windows

just follow him how to uninstall.
and than install the MySQL again

also get the MySQL from here:
http://dev.mysql.com/downloads/mysql/5.1.html#win32
and download the Windows MSI Installer (x86)

took me 2 mins to get to work when I finely figured this out :P
(got it working on vista no problems)
Title: Re: [XP] RMX-OS
Post by: Ryex on December 08, 2009, 02:31:35 am
ok Blizz I sent it to you in pm. now as I said before, it works fine until I try putting the connections through a proxy that dose not get more that 10 kb/s.
so big rush on finding a solution or any thing. what ever you did the first time stopped it form happening on a regular basis
Title: Re: [XP] RMX-OS
Post by: Lost King on December 08, 2009, 03:01:49 am
Alright, I just tried it twice, following the steps in the video you linked both times to get rid of the previous install. And both times I got to the end of the Configuration and it says "Could not start the service MySQL."

I disabled my firewall the second time, is there some option I should be choosing or some simple task I'm over looking? Usually running as Admin solves everything but that's not an option on the installer even though you give it permission anyway. Could it perhaps be a problem with some other program I have running? I have Hamachi on now, does that affect anything?
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 08, 2009, 04:12:30 am
QuoteCould not start the service MySQL

that sounds like a classic problem of Vista thinking its smart by stopping programs.
simple way to fix this is log in as administrator.
deinstal and than reinstall

other way is:
deinstal MySQL.
now reinstal MySQL
when it asks to start setup a database press no (deselect it or whatever)
now go to the MySQL install path.
open the Bin map in the instal path and look for a exe called "MySQLInstanceConfig"
(for example C:\MySQL Server 5.1\bin\MySQLInstanceConfig.exe)
right click that file and execute as admin.
follow the database setup.

If that fails:
Remove windows vista
Install windows XP or windows 7
AND NEVER GO BACK TO VISTA AGAIN
Title: Re: [XP] RMX-OS
Post by: G_G on December 08, 2009, 09:25:54 am
Quote from: game_guy on December 07, 2009, 12:43:29 am
can this run on ruby on rails?

EDIT:
Where go we access all the PM's a player recieves? A friend was bugging me saying he didn't like viewing pm's through chatbox so he asked me to make a script that showed him them.

So I plan on doing that but I need to know how to access PM's.


Still curious if this runs on Ruby on Rails?
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 08, 2009, 10:02:39 am
IDK. Didn't ed manage to run it on a Linux shell?
Title: Re: [XP] RMX-OS
Post by: G_G on December 08, 2009, 10:36:34 am
Yea Ed ran it on a linux shell I think, but me and a friend don't have a linux shell and was wondering if Ruby on Rails would work with it.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 08, 2009, 10:48:20 am
Ruby on Rails is an extension on Ruby. RMX-OS works with Ruby, Ruby on Rails has nothing to do with it.
Title: Re: [XP] RMX-OS
Post by: Lost King on December 08, 2009, 07:22:17 pm
Alright, I am Admin, still doesn't work, I've run as Admin, doesn't work. I've tried like 5 different versions of MySQL, doesn't work. I've reinstalled a good 5 times, still doesn't work. Should I be doing a Typical install or Complete? Is there a particular folder I should be installing it to instead of Program Files? Could my ports be screwing it up? I've had problems with them in the past.

Any help would be greatly appreciated.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 08, 2009, 07:51:10 pm
uninstall My sql and remove EVERYTHING. I've had this problem before. the normal uninstall program dose not remove the previous installs setting files so you will have to do that manually.  THEN restart your computer.
then go and try the reinstall. if is still dose not work I don't know what to tell you.
Title: Re: [XP] RMX-OS
Post by: G_G on December 08, 2009, 08:37:59 pm
how do we send a chat message via script call?

EDIT: Nevermind I figured it out.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 09, 2009, 02:45:37 am
@Lost King: The most important thing is that you need to run MySQL by any means. If you can't run it, you can't use RMX-OS. If you can't manage to get it working in Vista, consider using a remote database.
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 09, 2009, 03:38:43 am
QuoteIf you can't manage to get it working in Vista, consider using a remote database.

ore install an other operating system. Vista is know to mess stuff up.
its kinda the biggest mistake made in the history of computers.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 09, 2009, 05:13:54 am
Except Windows ME.
Title: Re: [XP] RMX-OS
Post by: Lost King on December 09, 2009, 09:22:37 am
Switching from Vista isn't an option, my computer isn't compatible with XP, I don't have access to Windows 7, and Linux just makes me mad, unless I can install it with a Live CD and still have it work.

How exactly would I go about using a remote database?
Title: Re: [XP] RMX-OS
Post by: edwardthefma on December 09, 2009, 10:47:09 am
a remote database is a mysql that is hosted via a different web sight
it works under vista tho it is picky and it might take a while to get it working
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 09, 2009, 01:04:33 pm
I think there's a site called freedb that has MySQL databases for remote hosting. Just create an account there and configure RMX-OS to connect to the remote database rather than a local one.
Title: Re: [XP] RMX-OS
Post by: Lost King on December 09, 2009, 02:02:57 pm
Cool, I'll see if I can get it to work.
Title: Re: [XP] RMX-OS
Post by: element on December 09, 2009, 02:37:38 pm
so with freedb you wont need a computer to be constantly on and its free ?
Title: Re: [XP] RMX-OS
Post by: G_G on December 09, 2009, 02:43:28 pm
no freedb is just a place for a free mysql database, your computer will always have to be on still for the server to always be on
Title: Re: [XP] RMX-OS
Post by: Lost King on December 09, 2009, 06:20:25 pm
Well, this remote database stuff has gotten me...rather confused. So, back to MySQL, I have another computer, it's rather shitty but it runs, it has XP, and has agreed to install MySQL as well as complete the Setup. All I need now is the Database manager, does anyone have suggestions on what to download? I'm sort of lost on it. Also, can I run the server off of that computer, since it's always on and connected to the internet, while I work on the actual game on my good computer?
Title: Re: [XP] RMX-OS
Post by: Aqua on December 09, 2009, 06:23:48 pm
Navicat is a good MySql manager.

Yes, you can run a server off that computer.
Title: Re: [XP] RMX-OS
Post by: Lost King on December 09, 2009, 06:34:04 pm
Thank you so much, hopefully I can finally get this all settled and actually get around to making a game.
Title: Re: [XP] RMX-OS
Post by: G_G on December 10, 2009, 08:56:04 am
how do we add the chat box in other scenes?
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 10, 2009, 03:51:14 pm
Just check out the additional code for Scene_Map in RMX-OS. Basically you need to instantiate the two windows (chat and chat input) and update them every frame.
Title: Re: [XP] RMX-OS
Post by: Lost King on December 10, 2009, 07:19:24 pm
Happy day! I've finally gotten it working. Now, I'm running the server off my crap computer, how do I go about updating the game from my normal computer? I've got Hamachi and I'll need to get around setting up that connection.
Nevermind, I've figured it out. Nearly crapped myself when I saw my character from this computer on my computer upstairs.
Title: Re: [XP] RMX-OS
Post by: element on December 11, 2009, 06:58:05 am
is there a free host to get the server running without my computer always being on ?
just asking :p
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 11, 2009, 07:30:04 am
who would you think would have a pc/server on 24 hours a day sucking power, do maintenance and not ask for a fee.

just question yourself that :P

I gone run mine on the private server of my online community, if I can get it to work :p
Title: Re: [XP] RMX-OS
Post by: fugibo on December 11, 2009, 04:28:07 pm
Quote from: Jackolas on December 11, 2009, 07:30:04 am
who would you think would have a pc/server on 24 hours a day sucking power, do maintenance and not ask for a fee.

just question yourself that :P

I gone run mine on the private server of my online community, if I can get it to work :p



Note that you'll most likely need to have an ISP with decent upload speeds for that. Mine, at least, does not, so I can't host a server of any kind and have people outside my LAN access it in any decent amount of time.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 14, 2009, 08:18:07 pm
it really is too bad that you can't run the $network stuff in another thread. it would fix a lot of bugs, i think, if you could...
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 15, 2009, 03:50:15 am
That would create more problems than solve, trust me. xD
Title: Re: [XP] RMX-OS
Post by: element on December 16, 2009, 02:12:21 pm
quick question.
Is RMX-Os already compatible with Blizz abs ?
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 16, 2009, 02:33:27 pm
nope.... not yet

I think blizz is working on it
Title: Re: [XP] RMX-OS
Post by: Pragz on December 17, 2009, 12:06:32 am
So does anyone have a working MMO I can take a look at? I'm not asking for a complete game, just a little setup I can join to view how it works. Would be wonderful if someone does! :D
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 17, 2009, 02:20:36 am
sorry. only have the basics done of mine.

if you want an almost finished 1 I suggest looking at this:
http://forum.chaos-project.com/index.php/topic,2291.0.html
downside is you will only see the finished product. not how its done.
Title: Re: [XP] RMX-OS
Post by: Nerd101 on December 18, 2009, 09:44:08 pm
Blizzard, I have a few questions about this?

-Does it work with Blizz-ABS?
-For the server for your game to run, does your computer have to be constantly on to run the server, or does it run itself without any constant input from a seperate user?
Title: Re: [XP] RMX-OS
Post by: edwardthefma on December 18, 2009, 10:08:48 pm
Nerd101
the answer to you question is no rmx-os is not compatible with blizzabs

yes you server client has to be running constontly for rmx-os to be working
thare are alternatives tho you can use rmx-os with a deban linux shell
but good luck finding a free shell most are pay and thave rules thay say you cant run any kind of game server
just make shur it has the right requirements for rmx-os  ruby1.9.1 and a mysql

http://forum.chaos-project.com/index.php/topic,5055.0.html
thare you will find the fix to make it work with linux
Title: Re: [XP] RMX-OS
Post by: tipsta on December 20, 2009, 12:40:03 am
Hey,

Blizzard this is some awesome stuff, had it working in 5 mins.

But sometimes i walking in to different maps and none of the events show up.

I also used variables to update my quest system if i need to change anything.
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 20, 2009, 07:38:47 am
Quote
I also used variables to update my quest system if i need to change anything.

variables are stored on the server. so thats not a problem and should work

QuoteBut sometimes i walking in to different maps and none of the events show up.

I bet you are checking the game over and over again with the same account.
try login in with a new 1. I bet the events work again.

remember that the server is saving stuff.. so if you add things and the saver saved something than it will not work.
atm I'm in my game to the debug127 account
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 20, 2009, 09:50:57 am
Quote from: Nerd101 on December 18, 2009, 09:44:08 pm
Blizzard, I have a few questions about this?

-Does it work with Blizz-ABS?
-For the server for your game to run, does your computer have to be constantly on to run the server, or does it run itself without any constant input from a seperate user?


As Ed already said...
Blizz-ABS doesn't work with it yet, I didn't have the time to make is work so far.
Yes, the server needs to be constantly running. It's a server after all.

Quote from: tipsta on December 20, 2009, 12:40:03 am
Hey,

Blizzard this is some awesome stuff, had it working in 5 mins.

But sometimes i walking in to different maps and none of the events show up.

I also used variables to update my quest system if i need to change anything.


Have you tested your game offline first? Besides that, pretty much what Jackolas said.
Title: Re: [XP] RMX-OS
Post by: tipsta on December 20, 2009, 11:41:32 pm
Hey,

It would be cool to have the ability to make dungeons that your could party with other people and see them
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 21, 2009, 04:42:48 am
I'm not sure I understand what you mean.
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 21, 2009, 05:06:15 am
he means party system with other players
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 21, 2009, 05:09:41 am
I got the impression that he wanted people to be able to make their own dungeons.
Title: Re: [XP] RMX-OS
Post by: tipsta on December 21, 2009, 05:45:25 am
No,

Say blizzard and tipsta want to go and do a dungeon together (just killing things with a final boss)would be awesome, and a party system (100% for the above, And you would have a HUD for each player in your party,  party or group)
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 21, 2009, 06:34:06 am
The party system (which will include the party chat command as well) will be included in the RMX-OS + Blizz-ABS plugin. Custom Blizz-ABS HUDs could work out with RMX-OS and Blizz-ABS just like that. I need to test if I can implement it the way I thought I could.
Title: Re: [XP] RMX-OS
Post by: tipsta on December 21, 2009, 06:40:12 pm
Awesome,

This is an epic project.
Title: Re: [XP] RMX-OS
Post by: Lost King on December 21, 2009, 10:42:37 pm
Not to be nosey/pushy, but do you have any expected date for when the Blizz ABS plugin is gonna be done/released? What exactly do you have to do to make it work?
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 22, 2009, 04:11:27 am
It will be out before Feb 1st, that's all I can say for now.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on December 22, 2009, 02:08:57 pm
kool i cant wate
Title: Re: [XP] RMX-OS
Post by: nirahiel on December 24, 2009, 06:30:36 am
Hi all,
i got a problem when running the server (on linux)
I have this error :
./mysql.so: ./mysql.so: invalid ELF header - ./mysql.so (LoadError)
   from RMX-OS.rb:22


Any help please ?
Thanks.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 24, 2009, 09:53:57 pm
hey Blizz I was wondering
did you ever consider having the client send its server messages to a relay client on the same computer that would then send the messages to the server?

like when you start the game it starts a outside program that the clients sends the messages to instead of the server and then that program will forward the messages to the server. and the server will send messages to the program and then they will be forwarded to the client. If I'm right all messages send between the client and the local program will be nearly instant and the program will be able to send messages to the server with out having the script is hanging problem.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on December 25, 2009, 04:08:41 pm
nirahiel you can fix that buy using a replacement mysql.so that has bean configerd using linux and ruby
you can find it hear and also instrutions on using it hear as well
http://forum.chaos-project.com/index.php/topic,5055.0.html
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 27, 2009, 01:01:50 pm
Quote from: nirahiel on December 24, 2009, 06:30:36 am
Hi all,
i got a problem when running the server (on linux)
I have this error :
./mysql.so: ./mysql.so: invalid ELF header - ./mysql.so (LoadError)
   from RMX-OS.rb:22


Any help please ?
Thanks.


You haven't "installed" Ruby 1.9.1 properly after you have installed Ruby 1.8.7. If you do what Ed said, you'll risk a high performance drop because Ruby versions before 1.9 didn't have real multithreading.

Quote from: Ryexander on December 24, 2009, 09:53:57 pm
hey Blizz I was wondering
did you ever consider having the client send its server messages to a relay client on the same computer that would then send the messages to the server?

like when you start the game it starts a outside program that the clients sends the messages to instead of the server and then that program will forward the messages to the server. and the server will send messages to the program and then they will be forwarded to the client. If I'm right all messages send between the client and the local program will be nearly instant and the program will be able to send messages to the server with out having the script is hanging problem.


I thought about that already. Except if I did it in plain C/C++, people would have to install god-knows-what to make their game work.
Title: Re: [XP] RMX-OS
Post by: nirahiel on December 27, 2009, 04:33:33 pm
Quote from: Blizzard on December 27, 2009, 01:01:50 pm
Quote from: nirahiel on December 24, 2009, 06:30:36 am
Hi all,
i got a problem when running the server (on linux)
I have this error :
./mysql.so: ./mysql.so: invalid ELF header - ./mysql.so (LoadError)
   from RMX-OS.rb:22


Any help please ?
Thanks.


You haven't "installed" Ruby 1.9.1 properly after you have installed Ruby 1.8.7. If you do what Ed said, you'll risk a high performance drop because Ruby versions before 1.9 didn't have real multithreading.

So i just need Ruby 1.9.1 ?
Title: Re: [XP] RMX-OS
Post by: Ryex 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.
Title: Re: [XP] RMX-OS
Post by: Jackolas on December 27, 2009, 05:00:20 pm
QuoteSo i just need Ruby 1.9.1 ?

Nirahiel, I suggest you go back to the manual and read true it again. because I think you missed something.
Let me quote something in the manual Blizzard wrote:
QuoteBut the server does require you to install Ruby. The recommended version is 1.9.1.

my question is why did you NOT install version 1.9.1?
If you don't follow the suggestions the creator of this awesome code had given, why should we help you fix simple problems?

go back to the manual and do the step for step setup.
if you followed it to the letter than we can help you with problems.
Title: Re: [XP] RMX-OS
Post by: 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.
Title: Re: [XP] RMX-OS
Post by: fugibo on December 27, 2009, 06:21:38 pm
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").
Title: Re: [XP] RMX-OS
Post by: nirahiel on December 27, 2009, 06:22:53 pm
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]
Title: Re: [XP] RMX-OS
Post by: fugibo on December 27, 2009, 06:26:01 pm
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.
Title: Re: [XP] RMX-OS
Post by: nirahiel on December 27, 2009, 06:41:38 pm
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.
Title: Re: [XP] RMX-OS
Post by: fugibo on December 27, 2009, 06:48:05 pm
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)
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 27, 2009, 07:13:38 pm
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.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 27, 2009, 07:30:30 pm
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
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 28, 2009, 10:03:49 am
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.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 28, 2009, 12:23:58 pm
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.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 28, 2009, 12:26:32 pm
But there's still one problem. The user can't edit the server scripts anymore.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 28, 2009, 12:34:18 pm
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
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 28, 2009, 12:53:50 pm
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.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 28, 2009, 01:18:45 pm
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.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 28, 2009, 02:37:31 pm
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. ._.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 28, 2009, 03:17:46 pm
I suppose your right.
and so I go back to my earlier wish that RMXP could be multi threaded... like that is gonna happen.
Title: Re: [XP] RMX-OS
Post by: fugibo on December 28, 2009, 03:20:04 pm
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.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 03, 2010, 10:07:10 am
v1.08 is out.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on January 03, 2010, 01:26:42 pm
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'
]



Title: Re: [XP] RMX-OS
Post by: Blizzard on January 03, 2010, 01:42:06 pm
*points to the Global DNS topic where he said that there is a new version that works with RMX-OS 1.08* -_-
Title: Re: [XP] RMX-OS
Post by: edwardthefma on January 03, 2010, 03:33:16 pm
ok it is working now and evry thing is going good
Title: Re: [XP] RMX-OS
Post by: jayje on January 15, 2010, 09:15:12 am
this may already have been answered before(there's alot of pages)is there a simplified version of this where i can have pvp battles?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 15, 2010, 10:19:59 am
"Simplified version" and "with PvP battles" are contradictory. -_- It's like saying "Do you have a smaller apple that's bigger?"
As I already said 258273456734609342831356345 times, I will make a Blizz-ABS plugin very soon. It really wouldn't have hurt to read the last 5 pages or so.
Title: Re: [XP] RMX-OS
Post by: fugibo on January 15, 2010, 10:39:21 am
Quote from: Blizzard on January 15, 2010, 10:19:59 am
"Simplified version" and "with PvP battles" are contradictory. -_- It's like saying "Do you have a smaller apple that's bigger?"
As I already said 258273456734609342831356345 times, I will make a Blizz-ABS plugin very soon. It really wouldn't have hurt to read the last 5 pages or so.


I think he means a stripped-down version that allows for him to include a PvP arena-style system into a single-player game.
Title: Re: [XP] RMX-OS
Post by: jayje on January 15, 2010, 12:33:25 pm
Longfellow has it right i'm just looking to connect to one other player and battle pokemon style if possible. an abs is not what i need
Title: Re: [XP] RMX-OS
Post by: edwardthefma on January 15, 2010, 01:01:07 pm
you can find a eggdrop bot script for a irc egg drop bot that works with rmx-os hear
http://forum.chaos-project.com/index.php/topic,5394.0.html
pepol need to read thru the enter thred :(
Title: Re: [XP] RMX-OS
Post by: jayje on January 15, 2010, 01:29:25 pm
an irc bot has no bearing AT ALL to what i asked for.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 15, 2010, 01:38:21 pm
Ed just posted randomly. He does that from time to time and it's annoying. It has nothing to do with your script.
If you want something like a simplified version, I can't help you. This system is pretty much just the network code plus some rather simple functions to control the system. The system is as minimalistic as it gets.
Title: Re: [XP] RMX-OS
Post by: jayje on January 15, 2010, 01:46:49 pm
dang! i thought it would be an easy find or something. well thanks anyway
Title: Re: [XP] RMX-OS
Post by: G_G on January 15, 2010, 06:31:52 pm
What encryption does RMX-OS use for passwords? I'm trying to figure out how to do this in PHP so people can register on the site instead of in-game.
Title: Re: [XP] RMX-OS
Post by: Ryex on January 15, 2010, 10:57:43 pm
php's string.crypt function is the same encryption as RMX-OS
Title: Re: [XP] RMX-OS
Post by: G_G on January 15, 2010, 11:09:22 pm
Actually its not. I already tried the crypt method and it gave me this.
$1$O7/oPEhy$EQbImZw7sRwIwY4y9SOKr.

here's my code.
$pass = $_POST['entrypass'];
$password = crypt($pass);

And that code gave me the first code box.
Title: Re: [XP] RMX-OS
Post by: Ryex on January 15, 2010, 11:32:59 pm
RMX-OS now uses ruby's string.crypt function and php's Crypt is the same. i think... *tests*

Code: Ruby

string = 'entrypass'
string.crypt('PN')

yeilds
Code: result
PNucLKbRpieMw

Code: PHP
<?php
$pass = 'entrypass';
$password = crypt($pass, 'PN');
echo $password
?>

yeilds
Code: result

PNucLKbRpieMw

wate are those the same? by god I think they are!

note the extra string used in the method call, this is the salt, the string off which the password is encrypted.

also note that RMX-OS also removes the first two letters of the string as they are the salt (the string used to encrypt the string in this case 'PN')

RMX-OS's method
Code: Ruby

    def encrypt_password(password)
     # encrypting password
     encrypted = password.crypt(RMXOS::Options::ENCRYPTION_SALT)
     # removing first two characters which actually are the salt for safety
     return encrypted[2, encrypted.size - 2]
   end

in order to do it correctly you will need the salt that the game in question uses

Title: Re: [XP] RMX-OS
Post by: G_G on January 15, 2010, 11:38:52 pm
Wait nevermind, I have an outdated version of rmx-os

EDIT:
Well I updated and everything but they still dont match.

Here's the PHP Crypt
$1$4XYdiukm$TagL70tWoLKajBWnKqbie0
Here's the Ruby
[code]AgDxwFb7RVo


The word is qwerty.[/code]
Title: Re: [XP] RMX-OS
Post by: Ryex on January 15, 2010, 11:50:45 pm
I edited my post look at it again
Title: Re: [XP] RMX-OS
Post by: G_G on January 16, 2010, 12:05:18 am
Okay so afterwards in RMX-OS instead of looking like this
PNucLKbRpieMw

It'll look like this?
ucLKbRpieMw


It makes more sense now. But how would we take the first two letters off in PHP then?

EDIT:
How come when I'm doing exactly what you're doing I never get the same code.
I did the PHP thing with entrypass and got this
XSv/865igJMXM

My php code is this.
<?php
$pass = 'entrypass';
$string = crypt($pass, 'XS');
echo $string;
?>


What am I doing wrong?

EDIT 2: Changed Salt to PN instead of XS. But I still need to know how to knock off the first two letters.

EDIT 3: Nevermind. Found the 'substr' method. And I finally got it working! WOO! What this page does that I made is you can login, view your stats, and change your password. The change password is almost done, but I was having troubles with the login part.

Once I finish that, then I'll make my register page.
Title: Re: [XP] RMX-OS
Post by: Ryex on January 16, 2010, 12:28:09 am
Code: PHP

<?php
$pass = 'entrypass';
$password = crypt($pass, 'PN');
$saltless = substr($password, 2);
echo $saltless
?>


you know I'm just looking this stuff up and that you can do the same right?
Title: Re: [XP] RMX-OS
Post by: G_G on January 16, 2010, 12:33:16 am
I did, *points at edited post* I already figured it out xD

Maybe we should stop going off topic -_-
Ryex look out for a PHP Help thread, I will need your help
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 16, 2010, 05:12:27 am
Remember that RMX-OS has a technical documentation (where it says that is cuts off the first two characters of the encrypted string). :P
Title: Re: [XP] RMX-OS
Post by: holy416m on January 25, 2010, 09:35:45 am
Hi! I've followed your manual and downloaded your GUI tool... After I configured all my server's things, I started the GUI tool... All was fine... EXCEPT when I press "Run - Run the RMX-OS server", the "Server Status" shows "Running" for a second or two then... *ping*! It went back to "Server not running"  :(... And when I went to my game and chose the server, it takes a few seconds then "Server did not respond"... anyone help me plz???
Title: Re: [XP] RMX-OS
Post by: edwardthefma on January 25, 2010, 12:19:51 pm
maby you shoud try running rmxos with out the gui untill you have it down
and have learned how to use it also post problemes with the gui in the gui post
Title: Re: [XP] RMX-OS
Post by: Ryex on January 25, 2010, 02:53:49 pm
well for one thing I made the GUI not Blizz, second if it says the there server isn't running it means that the process closed on it's own. either something on you computer is closing it or it is getting an error, enable error logging and run the server again then check your logs to see if ther is anything in them.

if there is an error run the server strait from the rmxos.rb file and watch the out put
Title: Re: [XP] RMX-OS
Post by: Jackolas on January 25, 2010, 05:26:13 pm
maybe stupid question but it fits the problem you say

Did you install ruby at all?
Title: Re: [XP] RMX-OS
Post by: holy416m on January 25, 2010, 07:48:05 pm
Quote from: edwardthefma on January 25, 2010, 12:19:51 pm
maby you shoud try running rmxos with out the gui untill you have it down
and have learned how to use it also post problemes with the gui in the gui post

No I mean, it's not the GUI's problem... O,o... I tried not using gui but it also doesn't works... and the gui is just a tool that helps us to more easily configure the server, starting the server bla bla bla... so I think it won't do any harm to my sever anyway...  :)... but I still can't get it to work?!
Title: Re: [XP] RMX-OS
Post by: holy416m on January 25, 2010, 07:54:10 pm
Quote from: Ryexander on January 25, 2010, 02:53:49 pm
well for one thing I made the GUI not Blizz, second if it says the there server isn't running it means that the process closed on it's own. either something on you computer is closing it or it is getting an error, enable error logging and run the server again then check your logs to see if ther is anything in them.

if there is an error run the server strait from the rmxos.rb file and watch the out put
Quote from: Jackolas on January 25, 2010, 05:26:13 pm
maybe stupid question but it fits the problem you say

Did you install ruby at all?

Ryexander@okay... I checked the error log... nothing... I ran the rmxos.rb file... it popups for a second or two and then closed automatically by itself... oh no...
Jackolas@Erm... yeah I think... the rb file format can be read... and the icon is a google-chrome-like diamond with a cmd window behind it right???
Title: Re: [XP] RMX-OS
Post by: Ryex on January 25, 2010, 08:05:52 pm
did you follow the guide for how to install ruby?
Title: Re: [XP] RMX-OS
Post by: Jackolas on January 26, 2010, 02:39:32 am
QuoteJackolas@Erm... yeah I think... the rb file format can be read... and the icon is a google-chrome-like diamond with a cmd window behind it right???


that dos not mean that you installed Ruby correct.
Title: Re: [XP] RMX-OS
Post by: holy416m on January 26, 2010, 07:42:47 am
Quote from: Jackolas on January 26, 2010, 02:39:32 am
QuoteJackolas@Erm... yeah I think... the rb file format can be read... and the icon is a google-chrome-like diamond with a cmd window behind it right???


that dos not mean that you installed Ruby correct.
Quote from: Ryexander on January 25, 2010, 08:05:52 pm
did you follow the guide for how to install ruby?


Ryexander@Oh... I don't think I have ^^"... so can you give me the link to the guide? and... I need to uninstall it and reinstall it right???
Jackolas@Oh? Then how is it supposed to be when I installed correctly???
Title: Re: [XP] RMX-OS
Post by: Jackolas on January 26, 2010, 08:43:28 am
first install the Ruby 1.8.6 installer, you can get it here: http://www.ruby-lang.org/en/downloads/
You want the Ruby 1.8.6 One-Click Installer

after you installed that 1 you need to patch it to make it work with RMX-OS

download the Ruby 1.9.1 package. you can get it here: http://rubyforge.org/frs/?group_id=167
You want the ruby-1.9.1-p243-doc-chm-rc1.7z

extract the Ruby 1.9.1 package into the installation folder of the Ruby 1.8.6
overwrite everything.

now Ruby should work.

this is btw the first chapter of the manual you get with RMX-OS
Title: Re: [XP] RMX-OS
Post by: holy416m on January 27, 2010, 07:11:25 pm
Quote from: Jackolas on January 26, 2010, 08:43:28 am
first install the Ruby 1.8.6 installer, you can get it here: http://www.ruby-lang.org/en/downloads/
You want the Ruby 1.8.6 One-Click Installer

after you installed that 1 you need to patch it to make it work with RMX-OS

download the Ruby 1.9.1 package. you can get it here: http://rubyforge.org/frs/?group_id=167
You want the ruby-1.9.1-p243-doc-chm-rc1.7z

extract the Ruby 1.9.1 package into the installation folder of the Ruby 1.8.6
overwrite everything.

now Ruby should work.

this is btw the first chapter of the manual you get with RMX-OS

Okay... I followed everything you said but... when I extract the files in the Ruby 1.9.1 package into the installation folder, nothing was overwrote... and now I can't even open the rb files... help?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 28, 2010, 05:23:19 am
If you can't run .rb files on click, then you haven't installed Ruby 1.8.7 properly.
Title: Re: [XP] RMX-OS
Post by: holy416m on January 28, 2010, 09:09:10 am
Quote from: Blizzard on January 28, 2010, 05:23:19 am
If you can't run .rb files on click, then you haven't installed Ruby 1.8.7 properly.

At first, I can... but after following Jackolas's guide, I can't... so... any ideas? please???
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 29, 2010, 05:27:09 am
I think you messed up real bad. Uninstall Ruby, install Ruby 1.8.6, REMEMBER THE INSTALLATION LOCATION, get Ruby 1.9.1 and overwrite the files in the installation folder of 1.8.6.
Title: Re: [XP] RMX-OS
Post by: holy416m on February 02, 2010, 09:05:58 am
Quote from: Blizzard on January 29, 2010, 05:27:09 am
I think you messed up real bad. Uninstall Ruby, install Ruby 1.8.6, REMEMBER THE INSTALLATION LOCATION, get Ruby 1.9.1 and overwrite the files in the installation folder of 1.8.6.

I did this but... it's just the same  :(
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 03, 2010, 04:38:00 am
Have you tried it on another PC?
Title: Re: [XP] RMX-OS
Post by: holy416m on February 03, 2010, 08:13:07 am
Quote from: Blizzard on February 03, 2010, 04:38:00 am
Have you tried it on another PC?

But I only have this PC... :( :( :(
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 03, 2010, 08:34:01 am
I meant on the PC of a friend or something like that.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on February 03, 2010, 01:28:19 pm
have you tried reinstalling mysql you might not have it installed properly
8)
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 03, 2010, 03:50:10 pm
This is a great script. For only having been messing around with it for about 3 hours and just now getting it to work. Server is on my linux box thanks to edwardthefma for the mysql.so fix. Only problem i have is when i exit the game it doesn't update the server in case i decided to go right back in really quick for something. Took about 5 minutes for server to realize i logged out. But meh i can deal with that.

Great job Blizzard. Now to get some other scripts to work with it.

(EDIT: Is there a way to password protect a server. Like if i have two servers have one passworded so only testers/admind/mods could join?)
Title: Re: [XP] RMX-OS
Post by: edwardthefma on February 03, 2010, 08:48:44 pm
Quote from: crzyone9584 on February 03, 2010, 03:50:10 pm
This is a great script. For only having been messing around with it for about 3 hours and just now getting it to work. Server is on my linux box thanks to edwardthefma for the mysql.so fix. Only problem i have is when i exit the game it doesn't update the server in case i decided to go right back in really quick for something. Took about 5 minutes for server to realize i logged out. But meh i can deal with that.

Great job Blizzard. Now to get some other scripts to work with it.

(EDIT: Is there a way to password protect a server. Like if i have two servers have one passworded so only testers/admind/mods could join?)


thare is no way to password protect a server
Title: Re: [XP] RMX-OS
Post by: Aqua on February 03, 2010, 08:54:57 pm
Um... I'm pretty sure you can...
Just have the server select screen go to a new scene that asks for the password for the protected server.

Of course, it'd require an edit.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 03, 2010, 11:48:11 pm
Quote from: Aqua on February 03, 2010, 08:54:57 pm
Um... I'm pretty sure you can...
Just have the server select screen go to a new scene that asks for the password for the protected server.

Of course, it'd require an edit.


I figured it would require a edit. I'm just not good with ruby and rgss. Then again i could have it go to a blank map ask for the password through events till i find a scripter. But i was just wondering so once i have a decent amount of a game that I'm just now starting i could have a dev server for like admins and few beta testers to test out new things until the bugs are worked out.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 04, 2010, 03:48:05 am
There's no need. Just make two clients. One that has in the configuration the normal server and another one that has the normal server and the test server. People with the configured connection to the normal server simply won't have access to the other server and that's that. We're practically doing the same while working on Remexos.
Title: Re: [XP] RMX-OS
Post by: holy416m on February 04, 2010, 08:06:17 am
Quote from: Blizzard on February 03, 2010, 08:34:01 am
I meant on the PC of a friend or something like that.
Quote from: edwardthefma on February 03, 2010, 01:28:19 pm
have you tried reinstalling mysql you might not have it installed properly
8)

Blizzard@Err... no...
edwardthefma@how's the proper way to install it...? :???:
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 04, 2010, 10:03:19 am
Quote from: Blizzard on February 04, 2010, 03:48:05 am
There's no need. Just make two clients. One that has in the configuration the normal server and another one that has the normal server and the test server. People with the configured connection to the normal server simply won't have access to the other server and that's that. We're practically doing the same while working on Remexos.


I was trying to make it easer on me so i wouldnt have to worry about to two clients. but i guess that two clients would be the easier way to though.
Title: Re: [XP] RMX-OS
Post by: whitespirits on February 04, 2010, 11:23:45 am
Quick question is a pvp script due out obv with abs ? thanks
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 04, 2010, 01:17:04 pm
Not with the first version of the Blizz-ABS plugin. I'll either update the plugin later or make a separate PvP plugin.
Title: Re: [XP] RMX-OS
Post by: ShadowIce on February 04, 2010, 02:59:23 pm
AHHHH! PLEASE help me! I have tried
port forwarding on my router, and it doesn't work when I try to use my external IP. >< Here, I made a pic so u can see I'm doing it right or not:

http://i406.photobucket.com/albums/pp148/DarkShadowWing/pf.png

Can u tell me the name of the app I am port forwarding as well as what I'm doing wrong and how to fix it?

Here's my config:

NAME = 'RMX-OS Server'
HOST = 'myextip'
PORT = 50000
RMXOS_VERSION = 1.08

LOG_MESSAGES = false
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 = '127.0.0.1'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'mypass'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [
]


(RMX-OS) Options:

#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# RPG Maker XP Online System (RMX-OS)
#------------------------------------------------------------------------------
# Author: Blizzard
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#   
#  This work is protected by the following license:
# #----------------------------------------------------------------------------
# # 
# #  Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
# #  ( http://creativecommons.org/licenses/by-nc-sa/3.0/ )
# # 
# #  You are free:
# # 
# #  to Share - to copy, distribute and transmit the work
# #  to Remix - to adapt the work
# # 
# #  Under the following conditions:
# # 
# #  Attribution. You must attribute the work in the manner specified by the
# #  author or licensor (but not in any way that suggests that they endorse you
# #  or your use of the work).
# # 
# #  Noncommercial. You may not use this work for commercial purposes.
# # 
# #  Share alike. If you alter, transform, or build upon this work, you may
# #  distribute the resulting work only under the same or similar license to
# #  this one.
# # 
# #  - For any reuse or distribution, you must make clear to others the license
# #    terms of this work. The best way to do this is with a link to this web
# #    page.
# # 
# #  - Any of the above conditions can be waived if you get permission from the
# #    copyright holder.
# # 
# #  - Nothing in this license impairs or restricts the author's moral rights.
# # 
# #----------------------------------------------------------------------------
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information:
#
#   There is a documentation for this system. Read it in order to learn how to
#   use this system. A server also comes with this system.
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

#==============================================================================
# module RMXOS
#------------------------------------------------------------------------------
# Main module for all RMX-OS classes and procedures.
#==============================================================================

module RMXOS
 
  #============================================================================
  # module RMXOS::Options
  #----------------------------------------------------------------------------
  # Contains options used for the game that can be set up.
  #============================================================================

  module Options
 
    SERVERS = []
    SAVE_DATA = {}
    CREATION_DATA = {}
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Server / Connection Settings
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    SERVER_REFRESH = 200
    SERVER_TIMEOUT = 200
    SERVERS.push(['Localhost', 'myextip', 50000])
    #SERVERS.push(['Me', '5.133.77.216', 54269])
    #SERVERS.push(['BlizzDev', '161.53.76.80', 54269])
    #SERVERS.push(['My Server', 'www.myserver.net', 54269])
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Security
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    RESERVED_USERNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
        'none']
    RESERVED_GUILDNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
        'none']
    ENCRYPTION_SALT = 'XS'
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Network
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    PING_TIMEOUT = 2
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # System
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    USERPASS_MIN_LENGTH = 3
    USERPASS_MAX_LENGTH = 16
    CHATINPUT_WIDTH = 480
    CHATBOX_WIDTH = 480
    CHATBOX_LINES = 8
    CHATINPUT_MAX_LENGTH = 200
    PM_MAX_LENGTH = 200
    GUILDNAME_MAX_LENGTH = 32
    CHAT_BUBBLES = true
    REMEMBER_LOGIN = true
    DISABLED_CHAT_COMMANDS = []
    AUTOSAVE_FREQUENCY = 30
    EXTENDED_AUTOSAVE = false
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Save Data
    # - see the documentation to learn how to set up which data is being saved
    #   by RMX-OS.
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # save container variable definitions
    SAVE_CONTAINERS = [
        '$game_system',
        '$game_switches',
        '$game_variables',
        '$game_self_switches',
        '$game_party',
        '$game_actors',
        '$game_map',
        '$game_player'
    ]
    # general save data setup
    SAVE_DATA['Graphics.frame_count'] = []
    SAVE_DATA[Game_System] = ['@timer', '@timer_working', '@menu_disabled']
    SAVE_DATA[Game_Switches] = ['@data']
    SAVE_DATA[Game_Variables] = ['@data']
    SAVE_DATA[Game_SelfSwitches] = ['@data']
    SAVE_DATA[Game_Party] = ['@gold', '@steps', '@actors', '@items',
        '@weapons', '@armors']
    SAVE_DATA[Game_Actors] = ['@data']
    SAVE_DATA[Game_Map] = ['@map_id']
    SAVE_DATA[Game_Player] = ['@x', '@y', '@real_x', '@real_y',
        '@character_name', '@encounter_count']
    SAVE_DATA[Game_Actor] = ['@actor_id', '@name', '@character_name',
        '@character_hue', '@class_id', '@weapon_id', '@armor1_id',
        '@armor2_id', '@armor3_id', '@armor4_id', '@level', '@exp', '@skills',
        '@hp', '@sp', '@states', '@maxhp_plus', '@maxsp_plus', '@str_plus',
        '@dex_plus', '@agi_plus', '@int_plus']
    # for all classes that must have default arguments specified
    CREATION_DATA[Game_Actor] = '1'
 
  end
 
end


Thanks!
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 04, 2010, 03:09:20 pm
The point of ports is that you don't have to know the app using the port but only the port. You need to configure it for 50000 (since that's the one you're using in your configuration). If you really think the application part is going to make a difference, you can try "ruby" or "rubyw". In any case, you should rather try www.portforward.com
Title: Re: [XP] RMX-OS
Post by: ShadowIce on February 04, 2010, 03:17:19 pm
the problem with my router is that u HAVE to add a name to the application. it sucks, i know. but its what i have to do unfortunately
Title: Re: [XP] RMX-OS
Post by: ShadowIce on February 04, 2010, 03:21:02 pm
i just tried what u said and it still didnt work

i also tried the port checker php file i made and it returned this:


The address "127.0.0.1:50000" is closed and cannot be used at this time


even though i had the server on
Title: Re: [XP] RMX-OS
Post by: ShadowIce on February 04, 2010, 03:41:18 pm
anyone? this is REAL frusterating

i already KNOW how to port forward..

i just cant get it to be used with my external ip ><

it says 127.0.0.1:50000 is open

BUT it says that w.x.y.z:50000 (my ext ip) is closed..
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 04, 2010, 05:03:17 pm
Quote from: ShadowIce on February 04, 2010, 03:41:18 pm
anyone? this is REAL frusterating

i already KNOW how to port forward..

i just cant get it to be used with my external ip ><

it says 127.0.0.1:50000 is open

BUT it says that w.x.y.z:50000 (my ext ip) is closed..


Ok so its the same with me but im still able to connect. For the server put the computers internal address as the host. in the game client just put the external. Or how i did it was us no-ip.com if you dont have static address See if it works. it works for me.

My problem is i keep getting this error trying to login.
QuoteMySQl server has gone away
./Data/Action_Handler.rb:57:in 'query'
./Data/Action_Handler.rb:57:in 'try_login'
./Data/Client.rb:111:in 'check_connection'
./Data/Client.rb:47:in 'handle'
./Data/Server.rb:173:in 'block in run'


I restart server and it will be ok for the first two connects then it throws that error again. I've tried both my linux box and my windows box. both throw exact errors. Any suggestions?
Title: Re: [XP] RMX-OS
Post by: ShadowIce on February 04, 2010, 05:27:10 pm
Internal IP didnt work man.

Any other ideas?
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 04, 2010, 05:43:14 pm
QuoteNAME = 'RMX-OS Server'
HOST = 'shouldbeinternal not ex'
PORT = 50000 (is your port correctly forwarded to the right internal? ex 192.168.x.a and not x.b?
RMXOS_VERSION = 1.08

LOG_MESSAGES = false
LOG_ERRORS = 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 = '127.0.0.1'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'mypass'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [
]


look at my qoutes. thats what happened to me. figured out i had use internal of the computer i was using to find that out open up command line (if vista type cmd in the search box on start menu hit enter) type ipconfig in the cmd. write down the 192.168.x.x number then double check you forward your ports right. I forwarded both tcp and upd to be on save side. Then for the RMX-OS option script do this

Go to no-ip.com sign up for free. on the server computer download their free program set up a host. Then run their program will update ip when it needs to be. Then in the option script put the name of the host you made. If you need help with this just hit me up on aim: kir royale 9584 and we can see whats the problem with your server. Also double check that your mysql is correct to.
Title: Re: [XP] RMX-OS
Post by: whitespirits on February 04, 2010, 07:50:24 pm
Special request can some 1 upload rxm-os with all current scripts from abs to global etc my critp implement in failing im just rubbish lol
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 04, 2010, 08:39:08 pm
i can give ya everything except the abs. im having issues with it lol.
Title: Re: [XP] RMX-OS
Post by: whitespirits on February 05, 2010, 07:03:56 am
same its quite boring without abs to play with :D i can only talk to friends on game for so long lol
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 05, 2010, 10:09:05 am
you dont need the abs. just make mosters. grant it idk if your team would be able to battle with you. but it still better than nothing.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2010, 10:48:35 am
@ShadowIce: Your IP needs to be 192.168.X.Y. 127.0.0.1 is not open toward outside.

@crzyone9584: The MySQL connection died. O_o Try a low DATABASE_CONNECTION_TIMEOUT setting (i.e. 1 which means it will reconnect every minute).

@whitespirits: It's really easy. Put all Blizz-ABS plugins below Blizz-ABS and all RMX-OS plugins below RMX-OS. Add the server extensions to the extensions folder and add their filenames to the EXTENSIONS array in the config. That's it.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 05, 2010, 12:08:02 pm
Thanks blizzard. I just installed a local mysql to my Linux box. and now i dont have that issue. figured it be faster that way lol.
Title: Re: [XP] RMX-OS
Post by: Ryex on February 06, 2010, 12:56:54 am
Quote from: Blizzard on February 05, 2010, 10:48:35 am
@ShadowIce: Your IP needs to be 192.168.X.Y. 127.0.0.1 is not open toward outside.

@crzyone9584: The MySQL connection died. O_o Try a low DATABASE_CONNECTION_TIMEOUT setting (i.e. 1 which means it will reconnect every minute).

@whitespirits: It's really easy. Put all Blizz-ABS plugins below Blizz-ABS and all RMX-OS plugins below RMX-OS. Add the server extensions to the extensions folder and add their filenames to the EXTENSIONS array in the config. That's it.


or you can use the Rmx-os GUI to generate a configuration
Title: Re: [XP] RMX-OS
Post by: ShadowIce on February 07, 2010, 11:14:03 am
where is this gui u speak of?
Title: Re: [XP] RMX-OS
Post by: lilbrudder917 on February 07, 2010, 12:27:56 pm
Quote from: ShadowIce on February 07, 2010, 11:14:03 am
where is this gui u speak of?


I suggest you use this (http://forum.chaos-project.com/index.php?action=search) from now on before asking where things are.

The GUI is here. (http://forum.chaos-project.com/index.php/topic,4786.0.html)
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 08, 2010, 05:02:21 pm
Is it possible to get the server to send out a message when its restarting so others will know? Also is it possible to have it push out messages about certain events that are happening?

Also how can i hide the  chat window while talking to npc?
Title: Re: [XP] RMX-OS
Post by: edwardthefma on February 08, 2010, 05:39:32 pm
try the f5 key
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 08, 2010, 06:01:06 pm
Quote from: edwardthefma on February 08, 2010, 05:39:32 pm
try the f5 key


i know that f5 hides it but what i mean is is there a command i can call that will auto hide it while talking to an npc? because pushing f5 will get annoying after a while.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on February 08, 2010, 06:12:52 pm
oyu might be able to do that with a script edit but i dont know how
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 09, 2010, 03:41:39 am
Quote from: crzyone9584 on February 08, 2010, 05:02:21 pm
Is it possible to get the server to send out a message when its restarting so others will know? Also is it possible to have it push out messages about certain events that are happening?


As admin you can use global chat (just refer to the manual). Just send a global message to everybody that the server will restart in 5 minutes or something like that. That's one of the things that command was intended for. :)

Quote from: crzyone9584 on February 08, 2010, 05:02:21 pm
Also how can i hide the  chat window while talking to npc?


It's in the manual. Just check the "Special Commands" chapter. You can even completely deactivate it so the player can't press F5 to make it show during an event.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 09, 2010, 10:05:24 am
Quote from: Blizzard on February 09, 2010, 03:41:39 am

As admin you can use global chat (just refer to the manual). Just send a global message to everybody that the server will restart in 5 minutes or something like that. That's one of the things that command was intended for. :)

i know the global command i was just wondering if it could be done automatically. But i guess global is fine.

Quote from: Blizzard on February 09, 2010, 03:41:39 am
It's in the manual. Just check the "Special Commands" chapter. You can even completely deactivate it so the player can't press F5 to make it show during an event.

I most of missed this. I will recheck this after noon and see what i can do.

EDIT: Wondering while planning features for my game:

Would any of these be possible with your system blizzard?

Trade system
Personal guild maps.
Guild Ranks
Guild Banks - Bank system for each guild
Click on player to see Stats (health lvl MP)
Title: Re: [XP] RMX-OS
Post by: Ryex on February 09, 2010, 10:28:20 pm
the trade system is planned
and everything else is possible with an add-on and good eventing
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 09, 2010, 11:12:14 pm
Ok thanks. I figured the bank and everything could be obtained by eventing. Its the maps and trading. Is PVP and PVE planned? I haven't read the entire 20 some odd pages yet but getting there. Can only read so much before i get bored.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 10, 2010, 03:02:02 am
Quote from: crzyone9584 on February 09, 2010, 10:05:24 am
Trade system


Erm, that's already supported. O_o *points at trade chat command*

Quote from: crzyone9584 on February 09, 2010, 10:05:24 am
Personal guild maps.


Can you explain that a bit?

Quote from: crzyone9584 on February 09, 2010, 10:05:24 am
Guild Ranks


I see no reason why this can't be done outside of the game. i.e. a guild organizes its own ranks within the game as they like it. There is no connection to the game whatsoever.

Quote from: crzyone9584 on February 09, 2010, 10:05:24 am
Guild Banks - Bank system for each guild


Can be made with eventing.

Quote from: crzyone9584 on February 09, 2010, 10:05:24 am
Click on player to see Stats (health lvl MP)


Just get a CMS or a HUD.

Quote from: crzyone9584 on February 09, 2010, 11:12:14 pm
Its the maps and trading. Is PVP and PVE planned? I haven't read the entire 20 some odd pages yet but getting there. Can only read so much before i get bored.


PVE is already possible with Blizz-ABS and the Blizz-ABS plugin. The full version of the plugin will have PVP as well.
You don't need to read the entire topic. Only the last 20 pages of the topic are somehow relevant since most older stuff is outdated, reported bugs that have already been fixed, etc..
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 10, 2010, 03:28:26 am
A personal map for each guild. So a guild can go to their own "castle" like in guild wars. For the ranks i was figuring that if the game supported ranks certain people would have access to certain things in guilds. Like new members wouldn't be able to access guild funds with out asking.

For the trade i must of missed it. I'll have to re read the entire documentation.

For the banking system i would just assign a variable to each guild would i not? Well i guess that question is a little off topic lol. Well i guess im off to get blizz abs to work correctly lol. Just need to config everything.

But how about getting scripts to save into the mysql system? Still not sure how to get that to work.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 10, 2010, 05:25:56 am
You need to add the additional variables and classes to the configuration. I think I haven't added a detailed explanation of how the saving system works, but the setting for the save data is explained in the manual.

Then all that stuff can be done with eventing with combination of a few script calls (i.e. to check the guildname, etc.).
Title: Re: [XP] RMX-OS
Post by: Lost King on February 10, 2010, 01:15:24 pm
I haven't checked through the manual or read through the Global Variable plugin, but is it possible to add Guild specific variables? Something like reputation so you can compare them to other guilds in the world, or are the variables only for individual characters? Another thought might be just adding to the player variables depending on what guild they're in. Anyways, is this possible already? I think I might've worded it confusingly.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 10, 2010, 01:55:16 pm
Quote from: Blizzard on February 09, 2010, 03:41:39 am
It's in the manual. Just check the "Special Commands" chapter. You can even completely deactivate it so the player can't press F5 to make it show during an event.


Ok so one hides the names of the sprites and other script call just hides the chat bubbles. I want to hide what is on the inside of the red lines.

Spoiler: ShowHide
(http://i576.photobucket.com/albums/ss210/crzyone9584/how.png)


This is the script call im using but it wont hide.

$game_temp.chat_sprites = false

Then my game just hangs. Or should i have that in a different event than the one im using to talk to people.
Title: Re: [XP] RMX-OS
Post by: Aqua on February 10, 2010, 01:59:16 pm

$game_temp.chat_sprites =
false
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 10, 2010, 02:20:01 pm
Why does false need to be on a new line?

@Blizzard - the chapters for all data setting in my manual all says "This chapter needs to be written yet." Thats data storage chapter and Data model chapter. Unless save data information is in a different location.

also
$game_temp.chat_sprites = 
false


Does not hide the chat window. I'm thinking it only hides the bubbles above the head. (refer to post above a few with picture to see what i want to hide during a text/cutscene
Title: Re: [XP] RMX-OS
Post by: Lost King on February 10, 2010, 02:54:25 pm
Something about the way Ruby does stuff with code. I'unno, Blizz could probably explain it, I just know that whenever you want to make something true/false in a script call, it needs to be on a new line.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 11, 2010, 02:33:46 am
Quote from: crzyone9584 on February 10, 2010, 02:20:01 pm
Why does false need to be on a new line?


Because RMXP has a problem with the false assignment of variables in one line. Either that or get Juan's Interpreter fix.

Quote from: crzyone9584 on February 10, 2010, 02:20:01 pm
@Blizzard - the chapters for all data setting in my manual all says "This chapter needs to be written yet." Thats data storage chapter and Data model chapter. Unless save data information is in a different location.


As I said, I didn't explain how it works. That chapter is intended for that. SAVE_DATA in the server configuration (chapter 2.2 or 2.3) explains how to set it up.

Quote from: crzyone9584 on February 10, 2010, 02:20:01 pm
also
$game_temp.chat_sprites = 
false


Does not hide the chat window. I'm thinking it only hides the bubbles above the head. (refer to post above a few with picture to see what i want to hide during a text/cutscene


chat_active hides the chat. Just refer to the manual for all script calls you need.

Quote from: Lost King on February 10, 2010, 01:15:24 pm
I haven't checked through the manual or read through the Global Variable plugin, but is it possible to add Guild specific variables? Something like reputation so you can compare them to other guilds in the world, or are the variables only for individual characters? Another thought might be just adding to the player variables depending on what guild they're in. Anyways, is this possible already? I think I might've worded it confusingly.


The manual has no information on the plugins. It's kinda obvious. :P
You can do all that with global switches/variables and by using the script calls to check the guilds. I said that already. Of course it would be less of a hassle to include a guild variable in the database.

I'm not going to add any guild-related features because they are unnecessary for a basic game. If you want to make a good MMO with RMXP, you won't get anywhere without a scripter anyway. So get somebody else to do it.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 11, 2010, 03:12:32 am
Thanks blizzard. I must re-read the documentation. Because i just skimmed it right now and still didn't see that chat_active. I'll read it tomorrow though. Also thanks for having the patience to deal with all these questions.
Title: Re: [XP] RMX-OS
Post by: whitespirits on February 14, 2010, 03:02:46 pm
is there any news for the next realese version maybe a estimated date?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 15, 2010, 05:06:57 am
After I release the Blizz-ABS plugin v1.0, I'll see if I can either finish v1.1 of this (mostly documentation to be done) or make 1.09 with some additional stuff which will go with a new version of the plugin because I found a way to implement data transfer better.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 15, 2010, 05:56:01 am
Can't wait for the more complete documentation. What will be added to the documentation? The one thing Im looking for is the save methods. Been looking at the scripts that save but still don't understand yet. Hopefully more looking and attempting it will help me.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 15, 2010, 02:56:36 pm
The client model, how saves are organized and that's pretty much it for now.

EDIT: 1.09 is out.
Title: Re: [XP] RMX-OS
Post by: whitespirits on February 17, 2010, 02:59:57 pm
are there any featrues implemented like abs? i cant see any scripts or extensions
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 17, 2010, 04:06:06 pm
Edit: Just saw what you said in another thread Blizzard. It has to do with one of my scripts.  It saves just fine with no other scripts. Time to find which one it is.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 17, 2010, 04:54:24 pm
Did you add additional save data? If the creation of those classes requires arguments, then you need to create default create data as well. i.e. Game_Actor can't be instantiated just like that. Game_Actor.new will give you exactly the same error you are getting. Game_Actor.new(0) will work, though. That's why there is CREATION_DATA[Game_Actor] = '0'.

@whitespirits: Have you thought about getting glasses? You know, those things that make you see better.

Spoiler: ShowHide
(http://img695.imageshack.us/img695/8296/snap171.png)
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 17, 2010, 05:17:49 pm
Not my scripts. Just did a fresh build by inserting one script at a time. All works fine. Most have to do with an event or something.

Is there a proper way to allow a player to select their class/actor sprite other than this way

Spoiler: ShowHide
Text: I'm a Medic. Would you like to choose me?
Show Choices: yes, No
When[Yes]
Change Actor Graphic: [Arshes],029_Cleric05,0,,0
Chnage Actor Class: [Arshes],[Medic]
When [No]
Text: Well ok then


Thats is what is most likely jacking up my saves. Would there be a character/Class plugin coming anytime soon?
Title: Re: [XP] RMX-OS
Post by: jcsnider on February 17, 2010, 05:31:45 pm
Kinda off topic, but an idea.
Make a small extension for RMX-OS server that will add a function for CTRL+X or similar that will
1. Start a 30 Second Shutdown Timer
2. Every 5 seconds post a global message in the chat box saying
            "The server is shutting down. Please Log-Off. (X) Seconds remaining.
                                       or
    Call something in client so that a information box comes up like this...
Spoiler: ShowHide
http://i.zdnet.com/blogs/vho0101_slmgr_activation_status.png

I fount this on google! (If it is incriminating in any way)


So instead of the server randomly shutting down, it warns people automatically. (Just an idea, past game engines I used had this)
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 17, 2010, 05:37:59 pm
I repeat: RMX-OS is supposed to provide a good base system. It is very extensible so you should make use of it. I'm not going to add every single possible feature into it.

@crzy: That actually shouldn't be messing up your saves. :/ Have you tried a fresh new account?
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 17, 2010, 05:50:39 pm
Quote from: Blizzard on February 17, 2010, 05:37:59 pm
@crzy: That actually shouldn't be messing up your saves. :/ Have you tried a fresh new account?


Would the account have that much control over the saving? Ill redo my entire table and see.
Title: Re: [XP] RMX-OS
Post by: G_G on February 17, 2010, 06:01:55 pm
Quote from: jcsnider on February 17, 2010, 05:31:45 pm
Kinda off topic, but an idea.
Make a small extension for RMX-OS server that will add a function for CTRL+X or similar that will
1. Start a 30 Second Shutdown Timer
2. Every 5 seconds post a global message in the chat box saying
            "The server is shutting down. Please Log-Off. (X) Seconds remaining.
                                       or
    Call something in client so that a information box comes up like this...
Spoiler: ShowHide
http://i.zdnet.com/blogs/vho0101_slmgr_activation_status.png

I fount this on google! (If it is incriminating in any way)


So instead of the server randomly shutting down, it warns people automatically. (Just an idea, past game engines I used had this)


I'll try to do this. I need to mess roung with RMX-OS a lot first. And take this into consideration, I may not be able to do this and if I am able to I may not get to it for awhile.
Title: Re: [XP] RMX-OS
Post by: jcsnider on February 17, 2010, 06:11:01 pm
Dont worry about it much, like I said, I thought it would be a good feature to warn the plays a little  :P
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 18, 2010, 06:01:24 pm
Not sure if this was answered I didn't see it.

Is this supported/ would it work?

http://forum.chaos-project.com/index.php?topic=5161.0

Thats Blizzards Continuous Maps.
Title: Re: [XP] RMX-OS
Post by: lilbrudder917 on February 18, 2010, 07:06:38 pm
Nope. That was answered on the first page.

Quote from: Ryexander on December 14, 2009, 08:16:52 pm
do you come up with a way for it to be compatible with RMX-OS?  :naughty:


Quote from: Blizzard on December 15, 2009, 03:48:41 am
Making it compatible with RMX-OS would require to change the server itself and I'm not going to do that.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 18, 2010, 07:31:20 pm
Quote from: lilbrudder917 on February 18, 2010, 07:06:38 pm
Nope. That was answered on the first page.

Quote from: Ryexander on December 14, 2009, 08:16:52 pm
do you come up with a way for it to be compatible with RMX-OS?  :naughty:


Quote from: Blizzard on December 15, 2009, 03:48:41 am
Making it compatible with RMX-OS would require to change the server itself and I'm not going to do that.



Ahh sure enough it was. Maybe i should read all 20 some odd pages. Be good for me to know what works and doesn't. and why would the server need to be rewritten?
Title: Re: [XP] RMX-OS
Post by: lilbrudder917 on February 18, 2010, 08:16:36 pm
Lol, I meant the first page of the Continuous Maps page, not the first RMX-OS page. As for why the server would need to be rewritten, you'd probably need to ask Blizzard that.
Title: Re: [XP] RMX-OS
Post by: Ryex on February 18, 2010, 09:34:27 pm
because of the way the server handles map transitions. for one the server only sends data for the players that are on the current map. this would have to change for that script.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on February 18, 2010, 09:45:07 pm
i have bean seeing a problem with rmx-os spawning processes
recently it has bean causing my host  shell to become forked some times
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 19, 2010, 02:41:03 am
RMX-OS runs up to 4 threads: Main, Self-Maintenance, Anti-Zombie and Ruby Prompt. Each connected client creates one more thread. There's no way around that.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on February 19, 2010, 10:37:32 am
well i geuss shellium cant handal it after all  :'( :'( :'(
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 23, 2010, 02:04:41 am
Is there any way we can add out own custom commands? like /lvl user 5  where user is the user u want to lvl and 5 being the lvl you want them to be set?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 23, 2010, 02:35:21 am
As admin you can use /eval and /geval. i.e.

/geval $game_party.actors[0].exp += 10000 if $network.user_id == 12


You've just given player with user ID 12 10000 EXP.

/geval $game_party.gain_gold(10000) if $network.username == 'Blizzard'


You've just given player with username Blizzard 10000 gold.

But if you want real custo commands, you'll have to code them yourself. You can take a look at the Blizz-ABS Controller plugin how the additional commands are added. Keep in mind that you won't be able to do much if you can't script or if you don't know RMX-OS well as system.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 23, 2010, 02:48:25 am
Scripting and know RMX-OS is one of my problems. Still working on getting to know RMX-OS's system But with /geval adn /eval can i use any $game_party command. Also side note i don't know all the $game_party commands. Is there a place i could read about the commands for $game_Party?

And to disable commands would it be like this?

DISABLED_CHAT_COMMANDS = [gcreate, gnewpass]


QuoteDISABLED_CHAT_COMMANDS
Defines built-in chat commands that cannot be used during the game at all.


The info didn't really tell me how to put the commands in there.

Title: Re: [XP] RMX-OS
Post by: Blizzard on February 23, 2010, 03:48:50 am
I'm usually assuming that you know the very least of scripting to know what a string and an array is. I know, it's not something I should assume, but without that knowledge it's impossible to configure 50% of all scripts.

DISABLED_CHAT_COMMANDS = ['gcreate', 'gnewpass']


Or:

DISABLED_CHAT_COMMANDS = ["gcreate", "gnewpass"]


I suggest using the first variant if you don't need specific string features (i.e. non-printable characters or variable embedding), because single quoted strings are processed faster by Ruby.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 23, 2010, 03:53:47 am
You are in your right to assume that i know things about ruby and rgss. Even though i know more in vb.net. I should learn to use the languge that the system im using to create games in use. lol

Any plans for a global weather system?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 24, 2010, 02:21:35 am
Just use Global Switches and Variables. -_-
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 24, 2010, 02:29:16 am
true true. Still don't understand that. how do i set them? while in game? like using a debug menu? but im looking into using this system AWS- Advanced Weather System figured i'd use the global variables/switches to make it ran or snow when i want.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 24, 2010, 02:44:42 am
Just make a common event that handles everything and use switches and variables to determine the current weather.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 24, 2010, 02:59:40 am
Sounds easy enough. Well thanks again blizz. You come through for everything.

(Also I think i figured out eh save data system. (thanks to G_G)
Title: Re: [XP] RMX-OS
Post by: whitespirits on February 24, 2010, 08:51:37 am
a quick question ive been playing alot with friend latelyan there is quite a jumppy lag when walking around viewing another player, its not very smooth, is it possible in future releases this will be developed?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 24, 2010, 08:57:05 am
As I already said a couple of pages ago, I'm going to add an option to allow either smooth (like Netplay+) or consistent (actual player position) movement. Currently the system is using consistent movement.
Title: Re: [XP] RMX-OS
Post by: whitespirits on February 24, 2010, 11:50:33 am
so it netplay + one quite buggy like dosent show exact location? i remeber having to jump in an outta maps to find some 1 an then they would vanish :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 25, 2010, 02:21:18 am
That one's a bug in the Blizz-ABS Controller.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 25, 2010, 02:31:59 am
So is it possible to get names above NPC in the future?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 25, 2010, 03:22:27 am
You can simply use a custom script for that. It will work fine with RMX-OS.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on February 25, 2010, 03:26:58 am
Hmmm. I must search for this script. see if one exists!
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 25, 2010, 07:05:00 am
Sephiroth Spawn made one, but it's SDK dependent. Another possibility would be if somebody wants to take the RMX-OS implementation of the player sprites and use it for events. It's probably a 15-30 minutes job. Writing the instructions and filtering a name (i.e. \n[NAME] in an event's name) should take the most time.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 03, 2010, 09:21:48 pm
hi, i'm new to this site. Anyway, I'm using version 1.08 and have experienced some bugs. If these are fixed in version 1.09 then please tell me and I'll switch to that.

Bugs:
Pressing the "x" key to enter the menu or exit something doesn't work
You can trade with yourself. It might be a bug with the actual trade system, but this causes a crash
After logging out and then re-logging in, your battle graphics for your actors are not saved. I'm using the standard battle system btw

Thanks for listening and I hope you can fix these. I love the actual script though.

Oh and is there anyway that you can make some items non-tradable as trading quest items can help you progress ahead in quests without actually doing it. Thanks.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 04, 2010, 03:17:05 am
Thanks for the bug reports. I don't think any of the bugs have been fixed yet. I'll look into them.

The only thing that is not a bug are the battle graphics. You need to add @battler_name and @battler_hue in the SAVE_DATA[Game_Actor] array.

As for the non-tradable items, I'll simply change it so you can't trade items that have a price of 0 (it works the same way with non-sellable items in shops).
Title: Re: [XP] RMX-OS
Post by: Jragyn on March 06, 2010, 01:20:43 am
So, err...
I managed to function a testplay with the scripts given for RMX-OS, I logged in and did all that jazz, can even wander the maps and kill enemies...

But what steps do I need to take to make it so someone else can wander these maps too?
I can imagine it has to do with the cfg.ini + RMX-OS(options) + my IP, but umm, I didn't see anything about the methods in the manual, maybe I missed it?

If not, can someone explain it briefly to me?
I dunno if its similer, but I've managed to set up my own WoW server, but RMX-OS is just curbstomping my face X_X


--JeR
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 06, 2010, 06:35:54 am
You set it up like every other server. You need an external IP, you set that IP up as the server host IP and you put the same IP in the connection data in the client. Done.
Title: Re: [XP] RMX-OS
Post by: jcsnider on March 07, 2010, 10:37:03 am
I dont know of you want me to report it here or through PM Blizz, but Rmx-Os has another memory leak somewhere. I have made sure of it before posting this...
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 08, 2010, 03:14:55 am
Technically RMX-OS can't have a memory leak because it doesn't use external components and Ruby has a garbage collector. I'd need to know when the "memory leak" occurs.
Title: Re: [XP] RMX-OS
Post by: Kett Shee on March 10, 2010, 09:50:17 pm
um...it seems the new command you added in 1.09 clashes with the database(or server, not exactly sure which). :P
(http://i865.photobucket.com/albums/ab217/CaitSith19/untitled2.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 11, 2010, 02:49:10 am
You use an old configuration file. You need to configure the new file rather than replacing it with your old file because new options have been added.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 11, 2010, 07:24:43 pm
Not quite sure whats causing this, but help would be appreciated. When I give the game to my firends to play, when it gets to the server selection page they get a "script is hanging" error. S, I myself downloaded the version I gave them, but have no problems with it. Why are they having it, but i'm not?

Thanks in advance
-Wizered67
Title: Re: [XP] RMX-OS
Post by: WhiteRose on March 11, 2010, 07:27:04 pm
Are you behind a router or firewall?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 11, 2010, 07:48:07 pm
Quote from: Flower Lady WhiteRose on March 11, 2010, 07:27:04 pm
Are you behind a router or firewall?


Um.... I'm not quite sure what you mean by that.... can you try to explain it to me differently.

Thanks and I'm sorry i'm such a pain. I'm not good at this stuff....
Title: Re: [XP] RMX-OS
Post by: WhiteRose on March 11, 2010, 07:50:18 pm
Quote from: Wizered67 on March 11, 2010, 07:48:07 pm
Quote from: Flower Lady WhiteRose on March 11, 2010, 07:27:04 pm
Are you behind a router or firewall?


Um.... I'm not quite sure what you mean by that.... can you try to explain it to me differently.

Thanks and I'm sorry i'm such a pain. I'm not good at this stuff....

No worries, everyone's new at things sometime or other. How are you connected to the internet? Are there other computers in your house that are also connected?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 11, 2010, 07:59:35 pm
ya, there are other computers connected. as far as i know, i am connected by a router....
Title: Re: [XP] RMX-OS
Post by: WhiteRose on March 11, 2010, 08:01:26 pm
Then in order for other people to connect to your network, you need to set up port-forwarding. I can help you with that if you can find the model number for your router.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 11, 2010, 08:04:27 pm
Quote from: Flower Lady WhiteRose on March 11, 2010, 08:01:26 pm
Then in order for other people to connect to your network, you need to set up port-forwarding. I can help you with that if you can find the model number for your router.


As far as i know, I have already done the portforwarding part. before that, nothing worked for even me, but once I did it, everything worked at least for me. Therefore, I don't think that's the problem.
Title: Re: [XP] RMX-OS
Post by: WhiteRose on March 11, 2010, 08:08:18 pm
What's your IP? I'll ping it and see if I can connect. If I can, that means that the error is in your script configuration, and not your router. If you don't feel comfortable posting it, PM it to me.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 11, 2010, 08:13:22 pm
ok, I pmed you
Title: Re: [XP] RMX-OS
Post by: Kett Shee on March 11, 2010, 08:52:07 pm
Quote from: Champion Blizzard on March 11, 2010, 02:49:10 am
You use an old configuration file. You need to configure the new file rather than replacing it with your old file because new options have been added.

um...i'm not sure how to do that.(this is when putting off to learn RGSS scripting comes back to haunt me) :(
Title: Re: [XP] RMX-OS
Post by: Ryex on March 11, 2010, 09:39:43 pm
get the new rmx-os config file from the download and configure the settings in the cfg.ini file to your needs. btu I don't think the GUI is compatible with v1.09 configuration.
Title: Re: [XP] RMX-OS
Post by: Kett Shee on March 11, 2010, 09:54:29 pm
ok, I see what happened now. Thanks and you guys have been such a big help. :) (goes and begins project)
Title: Re: [XP] RMX-OS
Post by: King_Ooga_TonTon on March 13, 2010, 04:20:18 pm
I've been having a problem that from what I read appears to be fairly "original," shall we say. My server is up and running fine, but as soon as I try and connect to it from the client, I get an error.


Script '(RMX-OS) Script' line 2556: Errno::ECCONNRESET occured.
An existing connection was forcibly closed by the remote host.


My computer is the host, so I'm not really sure what it means by that, but from what I can tell it runs the connection but then immediately terminates it. Does anyone have any idea what could be wrong? Or has anyone even gotten an error like this one before?

Btw great job on the script Blizzard, I know that might seem sarcastic since I'm asking for help but it's really sincere. You're a really good scripter.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 14, 2010, 12:43:50 pm
Hey, I got a little problem and I would appreciate help. I'm trying to convert to v1.09. Therfeore, i need to run that sql query thing. I remember that it can be found in the manual, but the manual of v.1.09 for me wont work. Can someone please post the query I need to run for 1.08-1.09.

Thanks
Title: Re: [XP] RMX-OS
Post by: Ryex on March 14, 2010, 02:34:44 pm
it is included in the database folder of the rmx-os download
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 14, 2010, 02:45:23 pm
thanks, I can't believe I missed that
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 15, 2010, 03:46:00 am
@King_Ooga_TonTon: Best you read the whole topic, several people have had the same problem. It's mainly either because you didn't set up port forwarding on your router properly or because you didn't set the RMX-OS server to be visible outside of your own PC (127.0.0.1 and localhost are within your PC only, you need to use your external network IP).
Title: Re: [XP] Can't open ruby files...
Post by: holy416m on March 20, 2010, 05:17:32 am
I can install RMX-OS and everything's ok... except for one... I can't open the ruby files... those .rb files... so I can't run the server and everything's ruined... Installed 1.91 ruby but still... can't open... when I open those files it just pop-up a cmd window for about half second then closed itself... anyone help please? I wanna get my game online...  :???:
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 20, 2010, 10:37:55 am
Are you sure you have the server set up right? I know for me that whenever I have it set up wrong, it opens and then quickly closes.....
Title: Re: [XP] RMX-OS
Post by: holy416m on March 20, 2010, 11:34:30 am
Quote from: Wizered67 on March 20, 2010, 10:37:55 am
Are you sure you have the server set up right? I know for me that whenever I have it set up wrong, it opens and then quickly closes.....

Then... what should I do...?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 20, 2010, 11:56:48 am
go to the cfg file and make sure everything is set up right....
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 20, 2010, 01:28:21 pm
If you can't run it via double click, uninstall Ruby and install it again. Seems that the installer didn't add ruby.exe/rubyw.exe as default application for .rb files.
Title: Re: [XP] RMX-OS
Post by: holy416m on March 21, 2010, 03:02:05 am
Quote from: Champion Blizzard on March 20, 2010, 01:28:21 pm
If you can't run it via double click, uninstall Ruby and install it again. Seems that the installer didn't add ruby.exe/rubyw.exe as default application for .rb files.

Well... I done it many times but still no improvements...

EDIT:
Quote from: Wizered67 on March 20, 2010, 11:56:48 am
go to the cfg file and make sure everything is set up right....

I set everything already... But I'm not sure about the host and the port... what should I type in? Coz when I type in my IP it won't work...

Please don't double post within 24 hours. Edit previous post instead ~ G_G
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 21, 2010, 11:54:06 am
the port should be the one you forwarded and the host should be your internal ip
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 22, 2010, 10:27:11 am
When are we looking at more updates for rmx-os and abs global addons?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 22, 2010, 12:30:04 pm
When I have time to work on it.
Title: Re: [XP] RMX-OS
Post by: boisei0 on March 22, 2010, 03:17:19 pm
Quote from: holy416m on March 21, 2010, 03:02:05 am
I set everything already... But I'm not sure about the host and the port... what should I type in? Coz when I type in my IP it won't work...


You should use the IP-address of your localhost, in most of the cases that is: 127.0.0.1
Title: Re: [XP] RMX-OS
Post by: zanakinz on March 23, 2010, 08:11:56 am
Right after i optimized the tables in mysql it says Unexpected error occured!

I dont think its connecting to mysql.. It said it did but then when its done optimizing it says Unexpected error.

Then it keeps saying:
RMX-OS Server is being terminated...
RMX-OS Server has been terminated.
Title: Re: [XP] RMX-OS
Post by: holy416m on March 23, 2010, 08:53:45 am
Quote from: boisei0 on March 22, 2010, 03:17:19 pm
Quote from: holy416m on March 21, 2010, 03:02:05 am
I set everything already... But I'm not sure about the host and the port... what should I type in? Coz when I type in my IP it won't work...


You should use the IP-address of your localhost, in most of the cases that is: 127.0.0.1

In most cases? Then if I'm not one of those "most"? How can I check my localhost... I'm new to these so... please forgive me... :shy:
Title: Re: [XP] RMX-OS
Post by: zanakinz on March 23, 2010, 09:13:22 am
It might be an error in server.rb.. Idk just try to help me out i'll be back in 6 hours.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on March 23, 2010, 09:44:20 am
Quote from: holy416m on March 23, 2010, 08:53:45 am
Quote from: boisei0 on March 22, 2010, 03:17:19 pm
Quote from: holy416m on March 21, 2010, 03:02:05 am
I set everything already... But I'm not sure about the host and the port... what should I type in? Coz when I type in my IP it won't work...


You should use the IP-address of your localhost, in most of the cases that is: 127.0.0.1

In most cases? Then if I'm not one of those "most"? How can I check my localhost... I'm new to these so... please forgive me... :shy:


Bring up your command prompt window. Type in ipconfig. Your local host will wither be 127.0.0.1 or more likely a 192.168.x.x ip Find the 192.168.x.x and put it in the config file.

(x.x. - is more numbers for your ip.)

I also suggest using no-ip or something like that to hide your external ip when you ship out your client.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 23, 2010, 04:03:30 pm
Quote from: zanakinz on March 23, 2010, 08:11:56 am
Right after i optimized the tables in mysql it says Unexpected error occured!

I dont think its connecting to mysql.. It said it did but then when its done optimizing it says Unexpected error.

Then it keeps saying:
RMX-OS Server is being terminated...
RMX-OS Server has been terminated.


You haven't set up the server right.
Title: Re: [XP] RMX-OS
Post by: zanakinz on March 23, 2010, 05:01:39 pm
Can you please help me set it up... ive looked at the manuel but it kinda didnt help.  It's just telling me the reasons for the scripts.

EDIT:  Now instead of getting the fatal error i figured out to put ExtensionSkeleton in the Extension place and now the command prompt opens and closes really fast.
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 23, 2010, 06:41:53 pm
Alright, I've just got to ask this..

Why is userdata in its own table?

It could easily (and much more convenient) in users, since there's no more than one instance in it anyway. It saves having to call two queries as well... (to get USER_ID and then GUILD_ID or so forth...)
Title: Re: [XP] RMX-OS
Post by: zanakinz on March 23, 2010, 07:10:41 pm
Okay now i put quotes into the extensions slot and it is still saying RMX-OS server is being terminated.  And i do not know what im doing wrong.
Title: Re: [XP] RMX-OS
Post by: Ryex on March 23, 2010, 07:46:11 pm
ya know it is IMPOSSIBLE to help you without knowing EXACTLY what error it is giving you. if the window is closing on you before you can then open command prompt and them past the full file path in the the cmd and press enter the server will run and it has a error it will tell you with out closeing. at that point you can copy it or screen shot it for us.

@Blizz I'm trying to build an extension for RMX-OS that when paired with my gui can provide functions one of the things I wanted it to do was print the loaded extensions and tell you when the server restarted even if the window is not visible. to do this I was going to connect to it as a client and send a special message that would make the extension recognize it as the GUI and then send it the list of extensions online clients ect.
here is the thing. I believe that the extensions can be printed from the keys in the @extensions hash. but is it possible to cache the restart command and send a message to the GUI? or for that matter a message when the server has a shutdown command at all?
or would I have to overwrite some methods for this.
Title: Re: [XP] RMX-OS
Post by: zanakinz on March 23, 2010, 08:32:22 pm
error:
Starting TCP Server at 'LOCALIP/STATIC IP:54269' ...
Connecting to MySQL databse 'rmxosdb' ...
optimizing database tables...
>Optimizing table 'buddy_list' ...
>Optimizing table 'guilds' ...
>Optimizing table 'inbox' ...
>Optimizing table 'save_data' ...
>Optimizing table 'user_data' ...
>Optimizing table 'users' ...
Unexpected error has occured!
uninitialized constant RMXOS::Server::PREVENT_ZOMBIE_CLIENTS
./date/server.rb:63:in 'start'
./RMX-OS.rb:56:in 'main'
./RMX-OS.rb:171:in '(main)'

RMX-OS Server is being terminated...
RMX-OS Server has been terminated.
Restart in: 5 4 3 2 1
Title: Re: [XP] RMX-OS
Post by: Ryex on March 23, 2010, 08:34:32 pm
are you using the GUI? if so then you should know that the GUI dose not work with that latest version of RMX-OS. you will have to manually create the cfg.ini file get the proper filer from the download and configure it your self with the manual as your guide.
Title: Re: [XP] RMX-OS
Post by: zanakinz on March 23, 2010, 08:37:46 pm
No im running it straight from the RMX-OS.rb file
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 23, 2010, 08:59:08 pm
Open config.ini

look for

PREVENT_ZOMBIE_CLIENTS =

it needs to be false/true
Title: Re: [XP] RMX-OS
Post by: zanakinz on March 23, 2010, 09:04:49 pm
Thank you so much fieldmaster it works now!
And thanks for all the rest that gave me some help!
Title: Re: [XP] RMX-OS
Post by: holy416m on March 23, 2010, 09:40:47 pm
Quote from: crzyone9584 on March 23, 2010, 09:44:20 am
Quote from: holy416m on March 23, 2010, 08:53:45 am
Quote from: boisei0 on March 22, 2010, 03:17:19 pm
Quote from: holy416m on March 21, 2010, 03:02:05 am
I set everything already... But I'm not sure about the host and the port... what should I type in? Coz when I type in my IP it won't work...


You should use the IP-address of your localhost, in most of the cases that is: 127.0.0.1

In most cases? Then if I'm not one of those "most"? How can I check my localhost... I'm new to these so... please forgive me... :shy:


Bring up your command prompt window. Type in ipconfig. Your local host will wither be 127.0.0.1 or more likely a 192.168.x.x ip Find the 192.168.x.x and put it in the config file.

(x.x. - is more numbers for your ip.)

I also suggest using no-ip or something like that to hide your external ip when you ship out your client.

Okay... Is it the "IP Address"? If yes, I can't make it work... if I type my IP in the cfg.ini, should I use the same one in my SQL server? Coz when I type my IP(192.168.1.3) in the SQL, it says
Spoiler: ShowHide
Could not connect to the specified instance.

MySQL Error Number 2003
Can't connect to MySQL server on '192.168.1.3'(10061)

If you want to check the network connection, please click the Ping button.

So... I think I've messed up everything... can any of you guys gimme a more simple and clear guide on how to set up the server? I think I'm gonna start another clean set of RMX-OS...  :(
Title: Re: [XP] RMX-OS
Post by: Ryex on March 23, 2010, 09:46:26 pm
use the ipadress of the mysql server for the mysql server if is running your the same computer it should be a local address
Title: Re: [XP] RMX-OS
Post by: holy416m on March 23, 2010, 10:16:21 pm
By the way... what's a localhost?
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 23, 2010, 10:33:39 pm
localhost is... a local server (hosted by you)
hence: localhost
Title: Re: [XP] RMX-OS
Post by: WhiteRose on March 23, 2010, 10:34:38 pm
It means your own computer. Basically, connecting to localhost is connecting to your own computer without using or requiring any sort of networking transmission media; you don't even need to have a working internet connection. All that is required, as far as I know, is that you have the TCP/IP Protocol suite installed, and that comes with all popular operating systems. The IP Address for localhost is always 127.0.0.1.

(EDIT: Feildmaster beat me to it. :))
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 24, 2010, 02:33:56 am
@Ryex: Communication of different applications can be done in different ways and the easiest is probably simply communication through a file. You should make a server extension that goes with your GUI and then simply alias the required methods in RMX-OS so it writes the extensions to a file when the server shuts down. Simply check with the GUI every second if that file exists. If it does, open it, read it, close it, delete it and display the read data.
Title: Re: [XP] RMX-OS
Post by: holy416m on March 24, 2010, 08:33:22 am
Still can't make it to work... who can list the the things that I may have done wrong? I can't launch RMX-OS.rb cuz when I double-clicked it, it opened for about 1 second or so then closed automatically... Suggestions? It's best that someone could gimme a list of what I may have done wrong and then I can try everything out... hehe... thanks...  :^_^':
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on March 24, 2010, 12:28:02 pm
Quote from: holy416m on March 24, 2010, 08:33:22 am
Still can't make it to work... who can list the the things that I may have done wrong? I can't launch RMX-OS.rb cuz when I double-clicked it, it opened for about 1 second or so then closed automatically... Suggestions? It's best that someone could gimme a list of what I may have done wrong and then I can try everything out... hehe... thanks...  :^_^':


I had the same problem when i first started with 1.08. Your best option is to post in the quote tags your config file. I found out I had it totally jacked up and thats why it didn't run.
Title: Re: [XP] RMX-OS
Post by: Grunje on March 24, 2010, 05:33:51 pm
First : Sorry for my bad english if i use it. I'm brazilian, and i don't speek very well.

Anyway, i need help from someone about this online system.
The problem is on the server have connected but the client not (it said "offline" to me).
See this :

(http://img687.imageshack.us/img687/2121/serverus.jpg)

Ok, very good ! The server is running ! Best !!...but...

(http://img651.imageshack.us/img651/410/offlined.jpg)

OMG! This fail ! Why ?

MySQL is running perfectly, the configuration of Server and Client is the same and the ports are unlockeds.

MySQL Config :
(http://img265.imageshack.us/img265/4728/mysqlc.jpg)

Server Config :
(http://img121.imageshack.us/img121/9435/configuratione.jpg)

Client Config :
(http://img149.imageshack.us/img149/1390/clientvo.jpg)


I have already tested all thinks. But the single problem is this :
The server and database is connected, but client not.
I would be very grateful if someone could help me.

That's it.
Title: Re: [XP] RMX-OS
Post by: Ryex on March 24, 2010, 05:37:09 pm
did you portforward?
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on March 24, 2010, 10:55:29 pm
change your server ip to your internal ip address. Then you should be ok. Also make sure your ports are forwarded correctly.
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 25, 2010, 12:47:42 am
Oh I had assumed he put the database on another computer... Stupid assumptions.

The IP (200.149.100.248) is your network or connection IP (im not sure which its listing as)

Use 127.0.0.1 or Localhost

127.0.0.1 lets you connect to the computer its on, from that same computer.

200.149.100.248, is either your network IP or the IP to let others connect to your server.
Title: Re: [XP] RMX-OS
Post by: Grunje on March 25, 2010, 03:25:03 pm
Quote from: Professor Ryexander Elm on March 24, 2010, 05:37:09 pm
did you portforward?


Yep. All ports (3306 and 54259) is opened in modem, router and firewall.

QuoteUse 127.0.0.1 or Localhost

127.0.0.1 lets you connect to the computer its on, from that same computer.

200.149.100.248, is either your network IP or the IP to let others connect to your server.

I use the localhost ip in the server configuration and internal ip (200.149.100.248) in the configuration of the client?

Ok, i will test it. But I'm not sure that this will work out.
If this fail i'll return here.
Thanks very much.



Argh ! I have tested to put the 200.149.100.248 ip on client and 127.0.0.1 on server/mysql, but it fail  :'(
Please, i really need help.
Title: Re: [XP] RMX-OS
Post by: Ryex on March 25, 2010, 06:40:17 pm
you have to use the Ip that is visible from the outside not an internal IP.
go to portforward.com the ip that they show as yours is the one you use.
Title: Re: [XP] RMX-OS
Post by: G_G on March 25, 2010, 07:09:45 pm
Here
(http://img121.imageshack.us/img121/9435/configuratione.jpg)

Change HOST to your internal IP.
Change your SQL_HOSTNAME to '127.0.0.1'
Title: Re: [XP] RMX-OS
Post by: holy416m on March 25, 2010, 08:35:47 pm
Quote from: crzyone9584 on March 24, 2010, 12:28:02 pm
Quote from: holy416m on March 24, 2010, 08:33:22 am
Still can't make it to work... who can list the the things that I may have done wrong? I can't launch RMX-OS.rb cuz when I double-clicked it, it opened for about 1 second or so then closed automatically... Suggestions? It's best that someone could gimme a list of what I may have done wrong and then I can try everything out... hehe... thanks...  :^_^':


I had the same problem when i first started with 1.08. Your best option is to post in the quote tags your config file. I found out I had it totally jacked up and thats why it didn't run.

You mean quote my config file? If so... then here it is:
NAME = 'Lost Time'
HOST = '192.168.1.3'
PORT = 54269
RMXOS_VERSION = 1.01

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_USERNAME = 'root'
SQL_PASSWORD = '4161051710'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [
''
]
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 25, 2010, 09:15:29 pm
Your using quite an old version of the OS there...

1.01
Title: Re: [XP] RMX-OS
Post by: Grunje on March 25, 2010, 10:18:55 pm
I have changed the HOST for my visible ip (on portforward.com) and have changed the SQL to 127.0.0.1 ;
Obs : I'm using a "ip variable" dial-up connection.
Obs 2 : I don't forget to change the ip of client.

Finally :
(http://img87.imageshack.us/img87/891/seez.jpg)

The client answer offline yet.
>:(
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 25, 2010, 10:31:41 pm
Grunje: I have to know.

Is the computer where the server is, the same as where you are playing on?

Are you trying to get other people to connect or just you?

If it's only you, and its all on the same computer, please change all instances of 201.5.246.167 to 127.0.0.1 (in cfg and in RPG maker)

If you want to make it so other people can connect... That requires the 201 IP, and depending on your routers, you yourself may not be able to connect to your own internet IP (it's like that for me)
Title: Re: [XP] RMX-OS
Post by: G_G on March 25, 2010, 10:34:17 pm
the host needs to be the internal ip, go to the command prompt and type in ipconfig it'll be like 192.168.1.x or something along those lines then you need the 201 ip in the client.
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 25, 2010, 10:52:12 pm
Oh right.. Port forwarding makes the internal IP better than using the actual IP...

xd
Title: Re: [XP] RMX-OS
Post by: holy416m on March 26, 2010, 12:08:09 am
Quote from: Feildmaster on March 25, 2010, 09:15:29 pm
Your using quite an old version of the OS there...

1.01

So... is that a problem? :???:
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on March 26, 2010, 01:01:03 am
Quote from: holy416m on March 26, 2010, 12:08:09 am
Quote from: Feildmaster on March 25, 2010, 09:15:29 pm
Your using quite an old version of the OS there...

1.01

So... is that a problem? :???:


First I'd update the OS to the current version of 1.09. And see if it fixes. You should always use the newest version of a program that is released. Then only touch the Host and SqlHost options in the config and see if it works.
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 26, 2010, 01:32:24 am
Oh right, blizz.

Teh current version gives an error:
OS Script line 3776:System Stack Error
Stack Level too deep,

for scene_map initialize, after logging out, and trying to log back in...

*will go back to see if this ever happened before tomorrow*
Title: Re: [XP] RMX-OS
Post by: Grunje on March 26, 2010, 02:49:26 am
Quote from: Feildmaster on March 25, 2010, 10:31:41 pm
Grunje: I have to know.

Is the computer where the server is, the same as where you are playing on?

Are you trying to get other people to connect or just you?

If it's only you, and its all on the same computer, please change all instances of 201.5.246.167 to 127.0.0.1 (in cfg and in RPG maker)

If you want to make it so other people can connect... That requires the 201 IP, and depending on your routers, you yourself may not be able to connect to your own internet IP (it's like that for me)

The server and the MySQL is on my computer.
But i want to make connection of ohters players to me.

Quotethe host needs to be the internal ip, go to the command prompt and type in ipconfig it'll be like 192.168.1.x or something along those lines then you need the 201 ip in the client.

I don't use routers ! I don't have stable ip ! I'm using a dial connection on server !

See :
(http://img87.imageshack.us/img87/7474/prompte.jpg)

My ip is always somethinks like 200.xxx.xxx.xxx or 201.xxx.xxx.xxx, because i'm  using a variable and dial up connection on the server.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 26, 2010, 03:45:20 am
You are using a dial up connection for internet? You don't seriously expect the server to work normally on an unreliable type of connection such as dial-up?! If you want to test the server locally, use localhost (or 127.0.0.1). If you want to run it so others can see it, you need an external server.
Title: Re: [XP] RMX-OS
Post by: Feildmaster on March 26, 2010, 04:13:45 am
I second what blizzard said. :^_^':
Title: Re: [XP] RMX-OS
Post by: holy416m on March 26, 2010, 08:23:41 am
Quote from: crzyone9584 on March 26, 2010, 01:01:03 am
Quote from: holy416m on March 26, 2010, 12:08:09 am
Quote from: Feildmaster on March 25, 2010, 09:15:29 pm
Your using quite an old version of the OS there...

1.01

So... is that a problem? :???:


First I'd update the OS to the current version of 1.09. And see if it fixes. You should always use the newest version of a program that is released. Then only touch the Host and SqlHost options in the config and see if it works.

Okay... so now it can be launched... but... it still have a problem...
It says:
> Starting TCP Server at 'localhost:3306'...
Unexpected error occured!
Only one usage of each socket address <protocol/network address/port> is normally permitted. - bind<2>
./Data/Server.rb:78:in 'initialize'
./Data/Server.rb:78:in 'new'
./Data/Server.rb:78:in 'start_socket'
./Data/Server.rb:56:in 'start'
./RMX-OS.rb:56:in 'main'
./RMX-OS.rb:171:in '<main>'
RMX-OS Server is being terminated...
RMX-OS Server has been terminated.
Restart in: 5 4 3 2 1

It keeps repeat and repeat... so... any suggestions?
Title: Re: [XP] RMX-OS
Post by: Ryex on March 26, 2010, 08:39:27 am
restart your computer and try again. if it still happens then change the port number.
Title: Re: [XP] RMX-OS
Post by: holy416m on March 26, 2010, 08:45:28 am
Oh yeah!!! Finally successfully connected to the server... but the problem is... when I tried pressing "Register", type in the username and password, press "Submit", it pop-up a thing saying "You have been disconnected."... so... what now?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 26, 2010, 08:57:21 am
Delete your database and create it again. If it still happens, check the server log. If the it's a server-side problem, the log should have caught the error.
Title: Re: [XP] RMX-OS
Post by: Grunje on March 26, 2010, 10:30:05 am
Quote from: Champion Blizzard on March 26, 2010, 03:45:20 am
You are using a dial up connection for internet? You don't seriously expect the server to work normally on an unreliable type of connection such as dial-up?! If you want to test the server locally, use localhost (or 127.0.0.1). If you want to run it so others can see it, you need an external server.

All netplays i have tested all, except your, worked successfully with dial up.
Dial up connection isn't a problem. I think until everything is working perfectly on the server/mysql.
The "Offline" appears so fast, that i think wich the problem is in the Client.

Obs : I have tested use localhost (127.0.0.1) and the Client continues to show me Offline
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 27, 2010, 10:42:59 am
Then you haven't configured something right.

I didn't say that RMX-OS doesn't work with a dial-up connections, you didn't read my post properly.

Quote from: Champion Blizzard on March 26, 2010, 03:45:20 am
You don't seriously expect the server to work normally on an unreliable type of connection such as dial-up?![/b]


Dial-up connections are not steady, connection timeouts are very frequent and they are slow on top of all. You might be able to support a few clients online and that's that. Dial-up connections usually work on 56kbps connections which means 7kB transfer rate per second. Technically (e.g. when using pixel movement in Blizz-ABS) 7kB per second is the network traffic that can be generated by just one single client.
Title: Re: [XP] RMX-OS
Post by: Ryex on March 27, 2010, 12:15:06 pm
Quote from: Champion Blizzard on March 27, 2010, 10:42:59 am
that's that. Dial-up connections usually work on 56kbps connections which means 7kB transfer rate per second. Technically (e.g. when using pixel movement in Blizz-ABS) 7kB per second is the network traffic that can be generated by just one single client.

wow 7kB? that not much at all? mot MMO's have 5-8 times that. even the 2D ones like maple story! but ya Dial-up connections and MMO's DON'T work, have you ever wondered why the minimum for most multi-player games is a broadband connection? for ONE client? you likely would have a hard time sporting more than two users... oh and did i forget to tell you that Dial-up connections LOVE to break data streams? the data the client receives has a good chance of being incomplete. that means glitches and errors.
Title: Re: [XP] RMX-OS
Post by: holy416m on March 28, 2010, 11:32:11 pm
Oh yeah... finally... all worked... but I have a request... You see, everyone's appearance on my game is the same... Is there a script that can let people choose their eyes, hair, mouth etc. in order to create a custom character? Like most games, they can let people choose their own appearance and type in their name... do you have a script like that, Blizzard?
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on March 28, 2010, 11:55:20 pm
Quote from: holy416m on March 28, 2010, 11:32:11 pm
Oh yeah... finally... all worked... but I have a request... You see, everyone's appearance on my game is the same... Is there a script that can let people choose their eyes, hair, mouth etc. in order to create a custom character? Like most games, they can let people choose their own appearance and type in their name... do you have a script like that, Blizzard?


So far from what i know the only way to have different characters is to make a starting map where users may choose a avatar and then with an event change the character avatar. Other than that there is no way to customize a user to my knowledge as far what you want.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 29, 2010, 03:33:20 am
The only way to do it is the same way we're doing it in Remexos: multiple sprites for each selected character piece.
And no, I don't have a script for that, at least not one that I have released.
Title: Re: [XP] RMX-OS
Post by: holy416m on March 29, 2010, 04:18:22 am
Can you, by any chance, create a script like that? Well... I know... probably no... then could you explain to me what you were saying? About that sprite...
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 29, 2010, 04:51:52 am
Quote from: Champion Blizzard on March 29, 2010, 03:33:20 am
at least not one that I have released.


And I am not going to release it. It's for Remexos exclusively.
The system with the sprites is simple, it works the same way a visual equipment script does. It displays several sprites for one character (i.e. one sprite for the body, one for the hair, etc.).
Title: Re: [XP] RMX-OS
Post by: holy416m on March 29, 2010, 05:15:13 am
Quote from: Champion Blizzard on March 29, 2010, 04:51:52 am
Quote from: Champion Blizzard on March 29, 2010, 03:33:20 am
at least not one that I have released.


And I am not going to release it. It's for Remexos exclusively.
The system with the sprites is simple, it works the same way a visual equipment script does. It displays several sprites for one character (i.e. one sprite for the body, one for the hair, etc.).

So... the multiple sprites thing... are there any guide or tutorial about it? Or can you teach me how to do it?  :^_^':
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 29, 2010, 07:42:35 am
Quote from: Champion Blizzard on March 29, 2010, 04:51:52 am
it works the same way a visual equipment script does.
Title: Re: [XP] RMX-OS
Post by: holy416m on March 29, 2010, 09:43:19 am
Quote from: Champion Blizzard on March 29, 2010, 07:42:35 am
Quote from: Champion Blizzard on March 29, 2010, 04:51:52 am
it works the same way a visual equipment script does.


What does that means? So how...?
Title: Re: [XP] RMX-OS
Post by: holy416m on March 29, 2010, 10:40:13 am
Okay... Never mind that...(But it's okay if you wanna teach me xD)... Now I got a problem... I have some of your scripts installed in my game... and these are the list AND the order of the scripts:
~Default Scripts~
Tons of Add-ons 1
Tons of Add-ons 2
Tons of Add-ons 3
(RMX-OS) Options
(RMX-OS) Script
Blizz-ABS 1
Blizz-ABS 2
Blizz-ABS 3
EXP in HUD for Blizz-ABS
Quick Weapon Switch for Blizz-ABS
Blizz-ABS Controller for RMX-OS
Advanced Time and Environment System
Global Day-and-Night System
Continuous Maps
Mouse Controller
Unlimited Levels
Full Reflection System
-<:::RMX-OS Main:::>-

Then I playtest it, everything went fine... Went in the server, typed my username and password...
*popup* Script 'Blizz-ABS 3' line 6345: NoMethodError occured.
            undefined method '>' for nil:NilClass                            *popup*
and line 6345 is this:
    if BlizzABS::Config::MINIMAP && $game_system.minimap > 0

Dang... so now what? Champion Blizzard... please help me...  :(
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 30, 2010, 02:45:14 am
1. Continuous Maps don't work with RMX-OS. I have said that in the Continuous Maps thread.
2. How many times do I have to repeat that Blizz-ABS (among other scripts) corrupts the save data?!
Title: Re: [XP] RMX-OS
Post by: Lost King on March 31, 2010, 09:04:04 pm
Yo, quick problem ;D

So I've decided to try my hand at messing with my RMX-OS project again only to find this error whenever I try to connect:

Script '(RMX-OS) Script' line 2556: Errno::ECONNREFUSED occured.
No connection could be made because the target machine actively refused it.

The game has worked before, I'm using version 1.09 of RMX-OS, last time I used it was in February, I tried deleting the database and remaking it, which I'm pretty sure got me to this error, before I couldn't manage to get the server to say it was online even when connecting to 127.0.0.1. I haven't changed any parts of the script since I last had it working and I've got the GUI running as well as Hamachi as my server connection thing. Any help?
Title: Re: [XP] RMX-OS
Post by: holy416m on March 31, 2010, 11:26:21 pm
Quote from: Lost King on March 31, 2010, 09:04:04 pm
Yo, quick problem ;D

So I've decided to try my hand at messing with my RMX-OS project again only to find this error whenever I try to connect:

Script '(RMX-OS) Script' line 2556: Errno::ECONNREFUSED occured.
No connection could be made because the target machine actively refused it.

The game has worked before, I'm using version 1.09 of RMX-OS, last time I used it was in February, I tried deleting the database and remaking it, which I'm pretty sure got me to this error, before I couldn't manage to get the server to say it was online even when connecting to 127.0.0.1. I haven't changed any parts of the script since I last had it working and I've got the GUI running as well as Hamachi as my server connection thing. Any help?

Have you ran RMX-OS.rb???
Title: Re: [XP] RMX-OS
Post by: Lost King on April 01, 2010, 02:30:15 am
I said in my post that I'm using the GUI, but yes, I did also run the .rb file, which gave me the zombie error, which I forgot whether or not showed up last time. But I do know that the GUI worked before.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 01, 2010, 02:46:44 am
As I already said, when you upgrade RMX-OS, DO NOT KEEP YOUR OLD CONFIGURATION FILE. Configure the server again instead. It's possible that I added new options and when you don't use a new configuration file, the server will crash because some configurations didn't exist earlier.
Title: Re: [XP] RMX-OS
Post by: Lost King on April 01, 2010, 03:00:48 am
Thing is, I haven't updated since the last time I used it, when it still worked. I've had version 1.09 working before, but now I get that error.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 01, 2010, 03:10:36 am
As I said, get a fresh config file and configure your server again.
Make sure your configuration of the client and the server is correct. If it worked before than that is the only possible problem that there could be.
Title: Re: [XP] RMX-OS
Post by: Lost King on April 01, 2010, 03:17:43 am
Ahh, that worked, thanks ;D

I really need to make notes somewhere on how to make it work, there's always something that screws me up whenever I get back to working on it.

EDIT: Alas, if only for a second >..>
The error is back, and now I'm lead to believe it's something to do with the extensions. I'm using ATES and the Blizz-ABS Controller, back when I started the project they both worked, and without them enabled the server works, but when I include them in either the box in the GUI or the brackets in the cfg file I get the error from before. They're both up to date, and I spelled the file names correctly, I'm not exactly sure I organized them right in the cfg file, but even when using the GUI it gave me the error, trying to run the .rb file itself instead of the GUI gave me the Prevent_zombie_clients message.

Any help?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 01, 2010, 06:07:40 am
Quote from: Professor Ryexander Elm on March 23, 2010, 08:34:32 pm
you should know that the GUI dose not work with that latest version of RMX-OS. you will have to manually create the cfg.ini file get the proper filer from the download and configure it your self with the manual as your guide.
Title: Re: [XP] RMX-OS
Post by: holy416m on April 01, 2010, 09:53:31 pm
It's me again... Yeah i know i'm annoying but my game just keep giving me errors( it's not my game actually... it's me who is too dumb... :<_<: )... Okay, now no script errors... but it says "Unable to find file Data/Map006.rxdata"... What the...?! I don't have a Map006 and it still wants one? How do I fix it...?
Title: Re: [XP] RMX-OS
Post by: WhiteRose on April 01, 2010, 09:55:26 pm
Quote from: holy416m on April 01, 2010, 09:53:31 pm
It's me again... Yeah i know i'm annoying but my game just keep giving me errors(it's not my game actually... it's me who is too dumb... :<_<:)... Okay, now no script errors... but it says "Unable to find file Data/Map006.rxdata"... What the...?! I don't have a Map006 and it still wants one? How do I fix it...?

This doesn't sound like an RMX-OS issue. It sounds like the Data files for your game are either corrupted, or a few are missing. If you want to check for yourself, look in the Data subfolder of your project folder.
Title: Re: [XP] RMX-OS
Post by: Tyril132 on April 01, 2010, 10:05:40 pm
...Did you have a Map 6 and delete it at some point?

You'll get this error if you have an event or script which specifically calls for it (like a transition event, where you move the character to a different map) and the game can't find it anymore. Typically, this means you deleted the map (or made a copy of it) and didn't update your event.
Title: Re: [XP] RMX-OS
Post by: holy416m on April 01, 2010, 10:20:40 pm
Okay... now I fixed that... but the old error came back...
Quote*popup* Script 'Blizz-ABS 3' line 6345: NoMethodError occured.
            undefined method '>' for nil:NilClass                            *popup*
and line 6345 is this:
   
if BlizzABS::Config::MINIMAP && $game_system.minimap > 0

Any suggestions?
Title: Re: [XP] RMX-OS
Post by: Tyril132 on April 01, 2010, 10:39:13 pm
That depends. Under what conditions are you experiencing the error?

Are you loading from a previously saved game?

Did you change the order of any of your scripts "fixing" the previous issue?
Title: Re: [XP] RMX-OS
Post by: holy416m on April 01, 2010, 10:42:05 pm
Quote from: Tyril132 on April 01, 2010, 10:39:13 pm
That depends. Under what conditions are you experiencing the error?

Are you loading from a previously saved game?

Did you change the order of any of your scripts "fixing" the previous issue?

Um... no... I just connected to a server, logged in and this error came out... and the order of my script is not custom and is following "The script order of Blizzard's scripts" http://forum.chaos-project.com/index.php/topic,23.0.html...
Title: Re: [XP] RMX-OS
Post by: Tyril132 on April 01, 2010, 11:01:10 pm
Data saving and loading with RMX-OS doesn't work the same way as it would with a typical game. As this is not a specific area of expertise for me, I welcome someone with more experience to correct me if I make a mistake here:

It is my understanding that RMX-OS saves client data to the SQL database that you assign when setting up the server. Thus, "logging in" to your account is loading this data from the SQL database and passing it to the client, where it interprets this data and then performs a "load game" function. Put simply, logging in is roughly the same thing as loading your game, the data just gets sent to/from a different place.

If you are using a pre-existing account with data that was previously saved, that data already exists in the SQL database. Hence, any saves you made when you were originally experiencing the issue are still corrupt. Changes saved after loading from those files should also be corrupt.

Unless you manually deleted the data from the SQL database or logged in on an account that has no existing data, you're probably getting the same error because the data was never deleted. I don't know enough about the inner workings of RMX-OS to make an accurate statement on whether or not you could still get a corruption issue loading from a new account in a database that has "incompatible" older data, but I would tend to think it would be okay for that particular client.
Title: Re: [XP] RMX-OS
Post by: holy416m on April 02, 2010, 12:38:55 am
Okay... now it worked but I tried to use an add-on, that is to have the ability to create a custom person... it worked all right in it's demo, but failed in my game...  When I put it above Blizz-ABS and below RMX-OS, it won't pop the menu out before the game. But if I put it below RMX-OS and Blizz-ABS, it says
Script 'Easy Character Creator' line 332: ArgumentError occurred.
wrong number of arguments(2 for 1)

Here is the script: http://www.decisive-games.com/DGgames/CharacterCreator.zip
I think it's a Blizz-ABS problem... But I'm not sure...
Title: Re: [XP] RMX-OS
Post by: WhiteRose on April 02, 2010, 01:06:20 am
Quote from: holy416m on April 02, 2010, 12:38:55 am
Okay... now it worked but I tried to use an add-on, that is to have the ability to create a custom person... it worked all right in it's demo, but failed in my game...  When I put it above Blizz-ABS and below RMX-OS, it won't pop the menu out before the game. But if I put it below RMX-OS and Blizz-ABS, it says
Script 'Easy Character Creator' line 332: ArgumentError occurred.
wrong number of arguments(2 for 1)

Here is the script: http://www.decisive-games.com/DGgames/CharacterCreator.zip
I think it's a Blizz-ABS problem... But I'm not sure...

I may be mistaken, but I don't think the Character Creator is compatible with Blizz-ABS.
Title: Re: [XP] RMX-OS
Post by: Jackolas on April 02, 2010, 07:21:48 am
its the way Babs uses the grafics.
the Character Creator you linked up will never work
Title: Re: [XP] RMX-OS
Post by: holy416m on April 02, 2010, 08:52:59 am
Could anyone help me to find one which is compatible with RMX-OS AND Blizz-ABS??? But I think the answer's probably no...
Title: Re: [XP] RMX-OS
Post by: Jackolas on April 02, 2010, 09:03:08 am
I can save you to look for one..

there is none. nobody ever made one that works wit Babs.
if you need it than someone needs to create a new one.
best bet is the script request section
Title: Re: [XP] RMX-OS
Post by: Ryex on April 02, 2010, 10:42:57 am
this however is a VERY advanced request as it is basically a visual equipment system but it has to transmit the data necessary for the other clients to recreate the players sprite.
Title: Re: [XP] RMX-OS
Post by: holy416m on April 02, 2010, 10:22:38 pm
Okay I'll forget about this... I have another question... If I made an online game, and I changed something in the game, I have to let other people who plays my game to update their clients right? If so, how do I do that? I wanna make a patching thing that could block anyone not with the latest patch, and until they patch theirs, otherwise they could not get in the game...  :???:
Title: Re: [XP] RMX-OS
Post by: Tyril132 on April 02, 2010, 11:24:27 pm
I don't believe that a patch/file verification service is something that is realistically achievable through scripting. It's technically possible, but not feasible.
You would basically have two, possibly three, options.

1) Use a file synchronization tool, like SVN.
2) Develop a stand-alone patching tool using a real programming language.
3) It might be technically possible to have the user client send a "version number" through a global variable and have RMX-OS check this number against the server's variable for a match (ie: the client sends a hard-coded number that you manually change with each release; if it's a different number from the "live" version there will be a mismatch,) but someone with more experience working with RMX-OS would have to weigh in on that.

The first method is the easiest of the three by a pretty big margin.

Edit: Clarification.
Title: Re: [XP] RMX-OS
Post by: Ryex on April 03, 2010, 02:35:06 am
Quote from: Tyril132 on April 02, 2010, 11:24:27 pm
3) It might be technically possible to have the user client send a "version number" through a global variable and have RMX-OS check this number against the server's variable for a match (ie: the client sends a hard-coded number that you manually change with each release; if it's a different number from the "live" version there will be a mismatch,) but someone with more experience working with RMX-OS would have to weigh in on that.


this is already implemented with the VERSION variable in the CFG if the clients number is less that the server number it won't let them connect.
Title: Re: [XP] RMX-OS
Post by: holy416m on April 03, 2010, 02:39:35 am
Quote from: Professor Ryexander Elm on April 03, 2010, 02:35:06 am
Quote from: Tyril132 on April 02, 2010, 11:24:27 pm
3) It might be technically possible to have the user client send a "version number" through a global variable and have RMX-OS check this number against the server's variable for a match (ie: the client sends a hard-coded number that you manually change with each release; if it's a different number from the "live" version there will be a mismatch,) but someone with more experience working with RMX-OS would have to weigh in on that.


this is already implemented with the VERSION variable in the CFG if the clients number is less that the server number it won't let them connect.

What??? Can you teach me how to do it??? Step by step? Please...?
Title: Re: [XP] RMX-OS
Post by: Tyril132 on April 03, 2010, 02:45:47 am
It's in the manual.

2.1 - Server Configuration:
QuoteRMXOS_VERSION
Defines the server version. It's used for version checking of clients connecting. It should be less or equal to a client's version in order to make the client able to connect. This is mainly used to prevent older clients from connecting to a newer server.


...You should already have been in the config file while setting up the server, check for the RMXOS Version and set it manually.

Change it when you push an update.

You need to change it in both the server configuration file, and in the individual script that is included in the game client.
Title: Re: [XP] RMX-OS
Post by: holy416m on April 03, 2010, 03:12:45 am
Quote from: Tyril132 on April 03, 2010, 02:45:47 am
It's in the manual.

2.1 - Server Configuration:
QuoteRMXOS_VERSION
Defines the server version. It's used for version checking of clients connecting. It should be less or equal to a client's version in order to make the client able to connect. This is mainly used to prevent older clients from connecting to a newer server.


...You should already have been in the config file while setting up the server, check for the RMXOS Version and set it manually.

Change it when you push an update.

You need to change it in both the server configuration file, and in the individual script that is included in the game client.

Wait...
Quoteless or equal to a client's version

Shouldn't it be equal ONLY? If less than the client's version can connect, then the older versions can connect too right? The version keep increasing ex.1.01, 1.02, 1.03... then what do i do if i want only the equal ones can connect? And by the way, if I change it in both my cfg file and my script, i'm changing my client, not the server right? Even if I changed it, can the server detect others whose client is older and ask them to update?
Title: Re: [XP] RMX-OS
Post by: Tyril132 on April 03, 2010, 03:48:56 am
QuoteShouldn't it be equal ONLY? If less than the client's version can connect, then the older versions can connect too right? The version keep increasing ex.1.01, 1.02, 1.03... then what do i do if i want only the equal ones can connect?


The wording is little tricky. I understand how it can be a little confusing, as it threw me for a loop when I read it the first time, too.

Notice it says less than or equal to the client, not the server.

If the client's version is 1, and the server's version is 1: the server is the same as the client, so the client can connect.
If the client's version is 1, and the server's version is 2: the server is GREATER THAN the client. The client cannot connect.

The only way it's possible for a client's version to be higher than the server's version is if the client's version number is changed and the server's is not. This isn't possible unless you let the users edit the project file directly or you forget to update both version numbers when you push the client update.

QuoteAnd by the way, if I change it in both my cfg file and my script, i'm changing my client, not the server right? Even if I changed it, can the server detect others whose client is older and ask them to update?


If you change your server cfg.ini file, you are updating the server version number.
If you change your script VERSION (line 63,) you are updating the client version number.

...Make your changes to a duplicate copy of your project (updated maps, additional scripts, whatever.) When you're done, update the version in the script. Now you have the "old version" which is the one that's currently live, and the "new" version which is your working version.

When you're ready to release your working version, make it available to your players and change the version in your server configuration file to match it.
Title: Re: [XP] RMX-OS
Post by: holy416m on April 03, 2010, 04:32:23 am
Wow... that made everything clear! Thanks a bunch! *lvl up*!  :D
Title: Re: [XP] RMX-OS
Post by: holy416m on April 03, 2010, 05:15:00 am
Okay... last question... Why everyone on my server's starting is lv 50?!
Title: Re: [XP] RMX-OS
Post by: Subsonic_Noise on April 03, 2010, 05:58:28 am
Double post is a cool guy. Eh posts two times in 24 hours and doesn't afraid of anything.
Title: Re: [XP] RMX-OS
Post by: Tyril132 on April 03, 2010, 06:00:19 am
Sorry, I'm on my way out for the night... but...

Did you check your actors' starting levels in the database?

If those are initialized to level 1, then your level is probably being modified by an event in play. Have you created any "debugging" events that you forgot to switch off?
Title: Re: [XP] RMX-OS
Post by: holy416m on April 03, 2010, 06:17:25 am
Quote from: Tyril132 on April 03, 2010, 06:00:19 am
Sorry, I'm on my way out for the night... but...

Did you check your actors' starting levels in the database?

If those are initialized to level 1, then your level is probably being modified by an event in play. Have you created any "debugging" events that you forgot to switch off?

My actors' starting levels are 1 and... no... no events...  :O.o:
Title: Re: [XP] RMX-OS
Post by: Ryex on April 03, 2010, 06:29:54 pm
Hey Blzz I have noticed a very strange error with add ons, for some reason they will randomly stop responding, this is very common with addons that have their own server thread ie the global ATES. I was testing it to day and for some reason it just stopped sending the time and the ates didn't update.
the server also seems to have a tendency to not notice when some one logs off. when this happens the chat usually locks up too and any messages you send won't appear in the chat box, and sometimes when that happens saving when you cross maps stops working too. any idea what is going on?

the more I look at this it seems like the threads the server is using are falling asleep and not being picked back up. but that is just a guess and I really don't know what is going on.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 03, 2010, 11:35:22 pm
whenever I try to trade, when I do confirm or abort, I get an undefined method error on line 4024. the line is
@trade_wait_window.set_text(RMXOS::Data::TradeNoPlayer)

Since I figured out this is to check if the other player is there, I tried commenting it out and it works when I try to trade with myself. However, it still gives the same error otherwise....


edit: I fixed the error where the X key didnt work by getting tons custom controls. Also, for custom controls, can you change what button is equal to f6, because whenever I do, it doesnt act as if I had used f6.
Title: Re: [XP] RMX-OS
Post by: Thebluejester on April 06, 2010, 12:03:07 am
Hello Blizz + Everyone :P

I am having an error with your script :(. When I run the server it just opens then closed right away, if I used "SciTE" it tells me:
"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
>Exit code: 3"

Any ideas? When I use the GUI, it tells me that the database is fine, the connection is working and the settings are fine, but when I start the server I get the same error?

I am using 1.09 by the way.

Any help would be greatly appreciated, this script looks totally amazing!
Title: Re: [XP] RMX-OS
Post by: Kett Shee on April 06, 2010, 12:17:45 am
Quote from: Thebluejester on April 06, 2010, 12:03:07 am
I am using 1.09 by the way.


I'm pretty sure the GUI doesn't work with 1.09 currently.
Title: Re: [XP] RMX-OS
Post by: WhiteRose on April 06, 2010, 12:22:58 am
Quote from: Thebluejester on April 06, 2010, 12:03:07 am
Hello Blizz + Everyone :P

I am having an error with your script :(. When I run the server it just opens then closed right away, if I used "SciTE" it tells me:
"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
>Exit code: 3"

Any ideas? When I use the GUI, it tells me that the database is fine, the connection is working and the settings are fine, but when I start the server I get the same error?

I am using 1.09 by the way.

Any help would be greatly appreciated, this script looks totally amazing!


Are you sure you installed and updated Ruby correctly? Do other Ruby scripts run properly?
Title: Re: [XP] RMX-OS
Post by: Thebluejester on April 06, 2010, 06:50:28 am
It doesn't work with or without the GUI, which does seem to work. And I do have ruby installed and I have been using it for quite a while. But yes I am starting to think it something wrong with my computer. Any kind of networking or TCP stuff with ruby is not working, I checked after I posted, I can get ruby scripts to connect but can not send or receive anything. If I connect to the net with a ruby script e.g. a time server, it works fine, but if I connect to my own pc in any way no messages get through. So I suppose its my pc, so I will have to try and sort out whats going on there. Thanks for you help WhiteRose and Cait Sith. :D
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 06, 2010, 09:27:59 am
Quote from: Ryex on April 02, 2010, 10:42:57 am
this however is a VERY advanced request as it is basically a visual equipment system but it has to transmit the data necessary for the other clients to recreate the players sprite.


O_o It already does. The weapon ID and the armor IDs of the other players are transmitted via the Blizz-ABS plugin. Visual Equipment just makes sure that it displays everything.

Quote from: Ryex on April 03, 2010, 06:29:54 pm
Hey Blzz I have noticed a very strange error with add ons, for some reason they will randomly stop responding, this is very common with addons that have their own server thread ie the global ATES. I was testing it to day and for some reason it just stopped sending the time and the ates didn't update.
the server also seems to have a tendency to not notice when some one logs off. when this happens the chat usually locks up too and any messages you send won't appear in the chat box, and sometimes when that happens saving when you cross maps stops working too. any idea what is going on?

the more I look at this it seems like the threads the server is using are falling asleep and not being picked back up. but that is just a guess and I really don't know what is going on.


I'm not sure what's causing this. Could you turn on all log options and try to see if the server can catch something?

Quote from: Wizered67 on April 03, 2010, 11:35:22 pm
whenever I try to trade, when I do confirm or abort, I get an undefined method error on line 4024. the line is
@trade_wait_window.set_text(RMXOS::Data::TradeNoPlayer)

Since I figured out this is to check if the other player is there, I tried commenting it out and it works when I try to trade with myself. However, it still gives the same error otherwise....


edit: I fixed the error where the X key didnt work by getting tons custom controls. Also, for custom controls, can you change what button is equal to f6, because whenever I do, it doesnt act as if I had used f6.


I'll look into it.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on April 06, 2010, 12:27:17 pm
blizzard if you need a a place to test rmx-os on your own
out side your own server i can get you access to shelliums shmmo
shell for you to test with outside your own server
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 06, 2010, 04:58:17 pm
Quote from: Ryexander on April 03, 2010, 06:29:54 pm
Hey Blzz I have noticed a very strange error with add ons, for some reason they will randomly stop responding, this is very common with addons that have their own server thread ie the global ATES. I was testing it to day and for some reason it just stopped sending the time and the ates didn't update.
the server also seems to have a tendency to not notice when some one logs off. when this happens the chat usually locks up too and any messages you send won't appear in the chat box, and sometimes when that happens saving when you cross maps stops working too. any idea what is going on?

the more I look at this it seems like the threads the server is using are falling asleep and not being picked back up. but that is just a guess and I really don't know what is going on.


I'm not quite sure if this is what he's talking about, but sometimes ATES time will be like 13:32 when it should be 13:53. However, restarting the server fixes this...

Oh and sometimes, when I send messages, it will appear at the very bottom of the chatbox even if there have been no other messages so far...
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on April 06, 2010, 06:23:27 pm
Quote from: Wizered67 on April 06, 2010, 04:58:17 pm
Oh and sometimes, when I send messages, it will appear at the very bottom of the chatbox even if there have been no other messages so far...


How I've seen the chat system work is that if you type a message it will go to the bottom. When a new message is arrived the old message moves up. The chat system is in a reverse state from a regular chat system in mmo where new chats are at top and older ones are on the bottom.

EDIT* Just read blizz retired... I know kinda late on reading that! But with his retirement will anyone pick up RMX-OS? Add new features work out bugs and what not?
Title: Re: [XP] RMX-OS
Post by: Ryex on April 06, 2010, 08:41:27 pm
Blizz said him self that he will continue to support RMX-OS for at least a little while longer until he can be sure that the errors are gone.
Title: Re: [XP] RMX-OS
Post by: crzyone9584 on April 06, 2010, 09:14:22 pm
Quote from: Ryexander on April 06, 2010, 08:41:27 pm
Blizz said him self that he will continue to support RMX-OS for at least a little while longer until he can be sure that the errors are gone.


So he will basically just fix the errors. Man that is a total bummer.
Title: Re: [XP] RMX-OS
Post by: Kett Shee on April 06, 2010, 09:59:21 pm
Well you gotta kind of give the guy a break, Blizz has been working on RMXP for a while so if anything he deserves retirement.
Title: Re: [XP] RMX-OS
Post by: Ryex on April 06, 2010, 11:07:30 pm
@Blizz I'm almost sure that the errors are caused by threads sleeping and not waking up (strange as that sounds) how ever I'm unable to do any more meaning full testing as i do not under stand the subject.

I give you the results
I edited the code a bit to log a message just before a thread went to sleep.
i placed these log points in the matnence and anti_zombie threads as well as the main thread for the ATES addon
I then proceed to test the server.
the first time I started the server the threads making the logs hung after the first sleep command. there was only one message in the files and it stayed that way
the second time it worked normally, the files grew in size as the messages kept getting printed
the third time it hung again.
it worked fine for the next 20-30 times then it hung again and then worked for another 50 or so times.
I have no idea what is causing this and I did not run the server for any length of time so I can't say if it would of hung latter.
I did look up some info on 1.9 threading modal it appears that it creates green threads and then links them to system threads but controls them with a global interpreter lock allowing only one to execute at a time could this setup be causing strange problems? causing the threads to hang? if so it would explain a lot of behavior, including the ATES not sending time updates, and the BABS add-on suddenly ceasing to control monsters.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 07, 2010, 02:22:33 am
Do you think it's possible the anti-zombie thread accidentally kills threads it shouldn't?
Title: Re: [XP] RMX-OS
Post by: Ryex on April 07, 2010, 10:28:11 am
it might be possible but then why would the add-on threads hang?
Title: Re: [XP] RMX-OS
Post by: edwardthefma on April 07, 2010, 10:51:34 am
:) i maid 2 new php scripts for a addon to rmx-os with some help and advice from my good friend drummer
user profiles  and a top ten best players script can now be displayed on a web page blizzard i want to know what  do you think of what i have finished so far
userprofiles
http://forum.chaos-project.com/index.php/topic,6051.0.html
topten
http://forum.chaos-project.com/index.php/topic,6052.0.html
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 07, 2010, 11:43:30 am
Here is what I can show from when the server is "sleeping".
At this time my computer overall is slow. But the server ends up taking quite a bit of ram and is FULL of errors. I went to check the messages.log but it was too large to open 200mb.
Spoiler: ShowHide
(http://i43.tinypic.com/25q6n9t.png)

Title: Re: [XP] RMX-OS
Post by: Blizzard on April 08, 2010, 02:24:39 am
That's a weird error... How long has the server been running to cause it?
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 08, 2010, 09:10:09 am
Truthfully, it seems to just be happening more and more often.... According to the picture it looks like it had been running 45 minutes BUT, I do not know when in that 45 minutes the server started with that error.
Title: Re: [XP] RMX-OS
Post by: Nordom on April 10, 2010, 11:44:35 pm
Alright, i have been trying for a few days now to get this to work properly... but i cannot

I can get the Client to work on my Machine and a Friends Machine, but anyone else who tries to get into the server from the Client, it either Hangs on the Server Select Screen, the Login Screen, or it just Closes Straight out... (i cannot figure out why) all of these errors happened on the same machine, with the same client

is there any explanation or suggestion as to how to keep this from happening?

i have the ports forwarded... and everything setup as it should be... but it still hangs...
Title: Re: [XP] RMX-OS
Post by: WhiteRose on April 11, 2010, 12:17:57 am
Quote from: Nordom on April 10, 2010, 11:44:35 pm
Alright, i have been trying for a few days now to get this to work properly... but i cannot

I can get the Client to work on my Machine and a Friends Machine, but anyone else who tries to get into the server from the Client, it either Hangs on the Server Select Screen, the Login Screen, or it just Closes Straight out... (i cannot figure out why) all of these errors happened on the same machine, with the same client

is there any explanation or suggestion as to how to keep this from happening?

i have the ports forwarded... and everything setup as it should be... but it still hangs...

Is your friend's machine within your local network?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 11, 2010, 12:38:51 am
The cause for my game hanging was that in the script options part, I accidentaly put my internal ip instead of external. Just like for you, it worked for me, but no one else. Make sure that isn't the problem or if you have it going through local host.
Title: Re: [XP] RMX-OS
Post by: Nordom on April 11, 2010, 09:43:51 am
Quote from: WhiteRose on April 11, 2010, 12:17:57 am
Is your friend's machine within your local network?


No it is not in my local Network... neither of them are... but one will work... but the other hangs...

this is my problem... otherwise there is nothing wrong that i can think of...
Title: Re: [XP] RMX-OS
Post by: WhiteRose on April 11, 2010, 11:03:39 am
Quote from: Nordom on April 11, 2010, 09:43:51 am
No it is not in my local Network... neither of them are... but one will work... but the other hangs...

this is my problem... otherwise there is nothing wrong that i can think of...


Hmm. I believe that somewhere in the script (I don't recall if it's in the Client RGSS script or the Ruby Server script, but I'm fairly certain it's in the Server script configuration,) there is a line for limiting maximum users. I believe the default is 50. Are you sure that is greater than two?

Another possibility is that there is something wrong with your second friend's computer; maybe try and get a third person to try it and see if it works for them.
Title: Re: [XP] RMX-OS
Post by: Ryex on April 11, 2010, 11:21:52 am
that would not be the problem
ask you friend to be sure he run the game as admin and make sure that his fire wall is not blocking it
Title: Re: [XP] RMX-OS
Post by: Nordom on April 11, 2010, 10:42:55 pm
@white
The current Cap of the Server is at 100... so i dont think that is the problem...

@Ryexander
When it first started happening, i told him to run it as administrator, but he kept getting the same problems
And i Never thought of the Firewall...

*Edit*
Firewall Wasnt the Problem, Problems persisted after Being allowed on Firewall
Title: Re: [XP] RMX-OS
Post by: nathmatt on April 12, 2010, 07:41:43 pm
i think there is a problem with getting pms its says i have a pm waiting put when i put in /pmall nothing happens
Title: Re: [XP] RMX-OS
Post by: Feildmaster on April 13, 2010, 03:10:07 am
When you log in and the server notifies you of PM's, the chat glitches.

Simply press "down" and the messages will show. (it will fix after the lines are filled up)

This only happens with the PM messages.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 13, 2010, 04:02:39 am
Noted. I'll look into that.
Title: Re: [XP] RMX-OS
Post by: nathmatt on April 13, 2010, 08:17:28 am
ok i have a problem not 100% sure if it is RMX-OS related or not but anyway if i use
$network.players.each_value {|player| player.username == something)}

through a script call does fine put if i try to do it in a window its doesn't work am i missing something?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 13, 2010, 08:22:47 am
"each_value" is an iteration method. What you are looking for is probably "values.any?".
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 16, 2010, 07:49:33 pm
With an idea from me and the smarts from Ryex. I ran several commands through the Ruby Prompt in RMX-OS.

These commands I tried included

print Thread.list.inspect (first)

It came up with Thread 0, 1, 2, and 4 sleeping while only thread[3] was running.

Continuing doing what Ryex had come up with, we ended up with knowing the thread[3] happens to me Thread.current too.

Basically only the current thread seems to be running while all the others sleep as if RMX-OS doesn't multi thread.

Not sure if this will help at all but it may turn out to be a large discovery. Ryex also tried this on his PC and got the same results. It is NOT just PNO.
Title: Re: [XP] RMX-OS
Post by: Ryex on April 16, 2010, 08:00:47 pm
also I can confirm that thread 0 in the socket or the database not sure which. thread 1 is maintenance, thread 2 ins anti_zombie, the running thread (3) is the prompt thread and any other threads are the addons or the players connection
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 16, 2010, 08:08:53 pm
by the way, am I the only one that gets an error with trading, or does anyone else? I feel like im alone on this boat  :'(
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 16, 2010, 08:11:53 pm
Well, my game dosnt even have trading of items due to it being pokemon so I cant say...
Title: Re: [XP] RMX-OS
Post by: Ryex on April 16, 2010, 08:12:45 pm
just telling us you have an error dose no good what so ever. you have to tell us WHAT the error is.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 16, 2010, 08:14:49 pm
I already posted it and blizz said he noted it, but it seems like I'm the only one getting it. The error is

undefined method 'set_text'
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 16, 2010, 08:16:47 pm
If Blizz says he noted it, that means it will be worked on. But I doubt it will be fixed until there is a new version of RMX-OS
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 16, 2010, 08:18:25 pm
ok, thanks. It just seemed like no one besides me gets it because on Nathmatts character drop down menu, trading is one of the options.
Title: Re: [XP] RMX-OS
Post by: nathmatt on April 16, 2010, 09:38:40 pm
here search for class Window Button

and replace the class with this

#==============================================================================
# Window_Button
#------------------------------------------------------------------------------
# Wraps the command window into a button-like appearance.
#==============================================================================

class Window_Button < Window_Selectable
 
  #----------------------------------------------------------------------------
  # Initialization.
  #  x       - x coordinate
  #  y       - y coordinate
  #  width   - window width
  #  command - command to be displayed
  #----------------------------------------------------------------------------
  def initialize(x, y, width, command)
    super(x, y, width, 64)
    self.x, self.y = x, y
    self.index = -1
    #self.active = false
    @command = command
    self.contents = Bitmap.new(width - 32, 32)
    refresh
  end
  #----------------------------------------------------------------------------
  # Change text.
  #----------------------------------------------------------------------------
  def set_text(text)
   @command = text if @command != text
   refresh
  end
  #----------------------------------------------------------------------------
  # Refreshes the display.
  #----------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.font.color = normal_color
    self.contents.draw_text(0, 0, width - 32, 32, @command, 1)
  end

end


he just forgot to define the set_text
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 16, 2010, 09:46:52 pm
oh my gosh! Thank you so much! I can finally trade! Thank you! Thank you! I bow before your majesty!  :bow: :bow: :bow:
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 17, 2010, 09:31:59 am
Here is an update on the thread situation...

Basically sometime last night the server went into its sleep mode.

So this morning I tested the threads like last night, I tested thread 4 or thread [3] due to starting count at 0 and it was running. Then I did a thread.list.inspect and there were ALOT of threads.
screenie: ShowHide
(http://i44.tinypic.com/25aom7t.png)



I am not sure if this is a bug or not, but it dosnt look right XD.
Title: Re: [XP] RMX-OS
Post by: Ryex on April 17, 2010, 10:19:50 am
well Blizz I did some tests of my own and normally when you log out your removed form the $clients array and they connection thread closes so i have no clue why the server is sitting with 31 threads. there was certainly never 27 people online
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 17, 2010, 02:31:19 pm
Ok I have been monitoring the RMX-OS server like a hawk today and I think I have fount some good information which was prove RMX-OS innocent of any bugs/errors...

Basically I had fount that the server would get no errors, then it would get 2 errors at a time saying connection forcably closed...

When this happend I checked how many clients were connected. The answer was 9. Basically whenever the users were getting over 10, it would kick one or two of them.

I didnt look at how many threads there were, I had already taken the server down but my theory is that when the connection is forceably closed it dosn't close the thread? Maybe?

Now, hooking all of this together... Windows 2000 has a 10 concurrent connection limit (Found by Ryex) so it may turn out to be the 10 connection limit.

Anyways, the second I can I plan to
1. Install Win2000 Server
or
2. Install Ubuntu server

And that will prove the problem :p

I will then report back.
Title: Re: [XP] RMX-OS
Post by: nathmatt on April 17, 2010, 03:26:21 pm
i have a question what is called on my end when some1 sends me a trade/party/guild invite i want to make a small yes/no window for it but don't know where i would call it
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 18, 2010, 05:22:09 pm
Trust me, I'm just happy that trading works, but is there any reason that you can only trade items? I think it would be a lot better if you could trade weapons and armour also.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 19, 2010, 02:56:29 am
Does the thread problem happen on every PC? I'll take a deeper look at that. It's possible that Ruby is having problems. I know that I never had problems with other threads being inactive.
Title: Re: [XP] RMX-OS
Post by: SBR* on April 19, 2010, 02:58:49 am
Hello all,
I already made a message like this, but my log in time passed out, so I have to rewrite it  :'(, so I will keep this short.

I find this an awesome script, but I keep on getting tons of errors when I try to run the queries:
I tried to run the RMX-OS SQL Datababase file and after that the update files, but it didn't work.
When I try to run the Database file, I get this error:
Script line: 11   Cannot delete or update a parent row: a foreign key constraint fails
It's on the line that says it has to drop down guilds.
When I try to run the 0.83 to 0.84 file, I get this error:
Script line: 7   You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
When I try to run the 0.87 to 0.9 file, I get this error:
Script line: 8   Table 'guilds' already exists
But I guess that's because I first ran the RMX-OS SQL Database file.
However, the 1.01 to 1.08 file gives no problems.
I'm using MySQL Query Browser.

And I've got another question: Where should I use Localhost and where my real IP? When I try to use my real IP in the script, the script is hanging.

I know these are alot of questions, but I hope you can still answer them  :^_^:.

Uhm, short, yeah, right...  :^_^':

Oh, and Blizz, you're the best!

-SBR*
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 19, 2010, 06:57:28 am
When Ryex tested RMX-OS on his computer he had 4 threads and yes, only 1 was running.

Also, I have an Ubuntu computer up and running. It had the same error with the 10 current connection because it is virtual and the host was 2000 pro. I have run a hack and it will now allow more than 10 connections. I will see if everything is working when I get home.

If so, it was a win2000 thing.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 19, 2010, 06:59:36 am
That's very likely. >.<
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 19, 2010, 07:02:21 am
I believe so too. But 1 time the server gave a out of connections error or something similar it never happened again.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 19, 2010, 08:07:02 am
XP's limited to 50 connections, that may be it.
Title: Re: [XP] RMX-OS
Post by: SBR* on April 19, 2010, 12:08:15 pm
Hmmm, well, now he does nothing anymore >.<. When I try to connect, he doesn't accept Localhost or 127.0.0.1 as host... Strange O.o. Yesterday it worked fine...
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 19, 2010, 04:17:22 pm
I let the server run all day today while I was at school. When I came back, I logged on and was able to use the chatbox and save. The ATES however was not working properly.

Anyways. The Ubuntu server and the host win2000 hack seemed to work. I have requested my father to bring the server home and I will install Ubuntu as the main operating system which will remove a limit of connections what so ever.

The only weird thing I have left though, is that even though 6 people were online. When I tried to use print Thread.list.inspect over 50 threads came up. O.o

I am not sure if this means anything, from in-game the server looked fine. Overall I am okay if it stays that way but I am concerned that it maybe consuming ram or maybe a bug of not closing the threads completely.

Other than that everything is now fine and it seems like it was just windows blocking the server.
Title: Re: [XP] RMX-OS
Post by: Ryex on April 19, 2010, 08:25:59 pm
Quote from: jcsnider on April 19, 2010, 04:17:22 pm

The only weird thing I have left though, is that even though 6 people were online. When I tried to use print Thread.list.inspect over 50 threads came up. O.o


this will most definitely end up as a problem if the sever runs for more than a few days. perhaps wee need some sort of thread controller in the main operation thread to make sure threads close and run properly.
Title: Re: [XP] RMX-OS
Post by: SBR* on April 21, 2010, 11:55:11 am
Sorry for the second time I post this, but nobody replied to my other post  :^_^':.

Well, I'm trying to make my RMX-OS game work, but I have got a problem: Two days ago it still worked fine. Well, fine, I was at least able to log into the MySQL Query Browser. I tried to run the queries, but they gave errors. The next day (yesterday) I wasn't able to log into MySQL Query Browser anymore at all. The strange thing is: Nothing responds to Localhost or that other numbers that equal Localhost. MySQL, the RMX-OS GUI, everywhere the computer says that Localhost isn't allowed to connect to the MySQL server. The exact error:


Could not connect to the specified instance.

MySQL Error Number 1130
Host 'localhost' is not allowed to connect to this MySQL server

If you want to check the network connection, please click the Ping button.


That's the error for the MySQL Query Browser. For the GUI:


The object reference is not set to a copy of this object.


Thanks in advance!

-SBR*
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 22, 2010, 07:09:26 am
It is a MySql user problem. Considering it isn't working with your query browser and what not you can determine that it is NOT a RMX-OS error so just google it.
Title: Re: [XP] RMX-OS
Post by: SBR* on April 22, 2010, 02:30:05 pm
Quote from: jcsnider on April 22, 2010, 07:09:26 am
It is a MySql user problem. Considering it isn't working with your query browser and what not you can determine that it is NOT a RMX-OS error so just google it.


I googled it (yay!) and I found half of the solution. I first stopped the MySQL service, then cd'd a prompt to the bin folder and use 'mysqld --stop-grant-tables'. In an other prompt, cd'd to the bin folder, I use 'mysqld --update-check --all-databases --auto-repair' and I can log in. I go to the command line client and use 'CREATE USER 'root'@'localhost' IDENTIFIED BY "MY PASSWORD (I WON'T TELL YOU!)"', but it says that it can't do that, because the MySQL server is running with --skip-grant-tables. I tried to google how to stop --skip-grant-tables, but I couldn't find it. Anybody has a solution? Thank you in advance!

-SBR*
Title: Re: [XP] RMX-OS
Post by: Ryex on April 23, 2010, 12:42:14 am
@Blizz JC got the server running under Ubuntu today and within four hours with about 15 avg connections the server crashed/stopped responding  with 64 threads in the Thread.list array. there were only 16 clients in the $clients array at the time.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 23, 2010, 03:22:17 am
I never had problems like that on Windows XP. :/ I wonder if Ubuntu's Ruby version has problems with multi-threading.
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 23, 2010, 06:53:17 am
For ubuntu I got the ruby package by typing "sudo apt-get install ruby1.9.1-full" into the terminal. That is strait from the Ruby website. That version and the windows version should be the same.

Edit: Here is a picture of the threads... the server THINKS there is 50 people online. There are 74 threads though. Which is nothing compared to 15 people with 60 something threads like yesterday
Spoiler: ShowHide
(http://i39.tinypic.com/swpao8.png)

Title: Re: [XP] RMX-OS
Post by: Blizzard on April 23, 2010, 07:40:50 am
Did you say that you had the ANTI_ZOMBIE_CLIENT option on or off?
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 23, 2010, 07:42:24 am
Prevent Zombie CLients is true
Title: Re: [XP] RMX-OS
Post by: Ryex on April 23, 2010, 08:43:14 am
and if I remember right we had the same problem with the threads on windows too
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 23, 2010, 09:08:01 am
I hope that I can reproduce the bug. If I can, there is nothing in my way fixing it.

EDIT: Nope. :/ I couldn't reproduce it whatever I tried. I put up v1.1 which has a slightly different disconnection method, maybe that will solve the problem. In any case, you should try it.
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 23, 2010, 04:53:07 pm
"Server did not respond." Is the error I am getting when I try to hit the enter key on the server list... any ideas?


Edit: I just re-tried and it worked...
Title: Re: [XP] RMX-OS
Post by: Ryex on April 24, 2010, 08:30:07 pm
well it appears that the threads are no longer sticking around when successful disconnects. thats one problem down. however the server can still go into a "sleep like" state where it doesn't notice disconnections and the chat box doesn't respond (any messages sent do not appear in that chat box) etc. sometimes you can change maps a few times but most of the time the script will hang on a map change.
new users can still join and login to which is weird. as those messages are process in the same thread as the client right? so if the client thread is not processing messages why can users still log in? thought the login screen dose not seem to time out and disconnect as it should
as there is no visible flaw in the flow of the code for RMX-OS that could cause this. I'm lead to believe that the thread the client is running under stops executing at some point meaning that messages aren't processed.
could this be a threading problem? the fact that Threads.list produces a list off all thread but only the thread from which the command is called in running while all other sleep still seems strange to me. if they are really thread and not green thread (which are pointless for a server application as I understand it) then at least one of thous 15 odd threads should be running also.
Global Interrupter Lock perhaps?
ruby only runs one thread (http://www.infoq.com/news/2007/05/ruby-threading-futures)
Title: Re: [XP] RMX-OS
Post by: arialks on April 25, 2010, 09:17:06 am
wow I'm trying to install MySQL but everytime I do it asks for a premession for everything and wont let me use anything ><"
I need to "Choose Detailed Configuration." I have no idea how, IDK how to use the MySQL ><"
Title: Re: [XP] RMX-OS
Post by: SBR* on April 25, 2010, 09:29:59 am
Quote from: arialks on April 25, 2010, 09:17:06 am
wow I'm trying to install MySQL but everytime I do it asks for a premession for everything and wont let me use anything ><"
I need to "Choose Detailed Configuration." I have no idea how, IDK how to use the MySQL ><"


In the first installation, you just have to keep on clicking, then it asks you if you want to configure now or later. Choose 'configure now' and you can do the detailed configuration  :haha:. Good luck!
Title: Re: [XP] RMX-OS
Post by: arialks on April 25, 2010, 01:16:46 pm
doesn't shopw me, you know there is a chance I'm just not downloading the right thing, is this what I'm suppose to download?
http://dev.mysql.com/downloads/mirror.php?id=387772#mirrors if not can you please give me the correct download? thanks :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 25, 2010, 02:01:11 pm
Quote from: Ryexander on April 24, 2010, 08:30:07 pm
well it appears that the threads are no longer sticking around when successful disconnects. thats one problem down. however the server can still go into a "sleep like" state where it doesn't notice disconnections and the chat box doesn't respond (any messages sent do not appear in that chat box) etc. sometimes you can change maps a few times but most of the time the script will hang on a map change.
new users can still join and login to which is weird. as those messages are process in the same thread as the client right? so if the client thread is not processing messages why can users still log in? thought the login screen dose not seem to time out and disconnect as it should
as there is no visible flaw in the flow of the code for RMX-OS that could cause this. I'm lead to believe that the thread the client is running under stops executing at some point meaning that messages aren't processed.
could this be a threading problem? the fact that Threads.list produces a list off all thread but only the thread from which the command is called in running while all other sleep still seems strange to me. if they are really thread and not green thread (which are pointless for a server application as I understand it) then at least one of thous 15 odd threads should be running also.
Global Interrupter Lock perhaps?
ruby only runs one thread (http://www.infoq.com/news/2007/05/ruby-threading-futures)



It works like this. When you use p Thread.list in the prompt, the currently executing thread is the Ruby prompt thread while all the others have to be asleep.

I think Thread.list only displays the internal application threads within your currently running instance of the Ruby Interpreter. All other threads are mostly irrelevant anyway.

BTW, v1.11 is up. I forgot to fix the trading bug the last time.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 25, 2010, 03:29:39 pm
well, i've tried the newest version and I have noticed one thing for sure

before, the ates would work at first but then later stop updating time. However, now this occurs immediatley. I'm not quite sure why this is, but could it be that when you updated something you need to now update the ates pluggin?

edit: the user logger isnt working also

edit 2: Out of curiosity, if someone was playing my game, would they be able to go through the server to hack my computer?
Title: Re: [XP] RMX-OS
Post by: arialks on April 25, 2010, 08:40:52 pm
wow why did I even try ><" this is so messed up, it installed MySQL wrong or something, whatever, but it blocks me like I dont have premmision to that folder, now I can delete it
means I can't freacking reinstall it as well, and I have that useless folder in program files, that wont give me an acces to it
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 25, 2010, 08:42:02 pm
Well, stop the mysql service and then it should let you edit the files it uses.
Title: Re: [XP] RMX-OS
Post by: arialks on April 25, 2010, 09:20:32 pm
yeah here is another thing, in the services program, I can't find the MySQL =\
it's just not there, like wtf?
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 25, 2010, 09:21:25 pm
well overall this is not a RMX-OS error so you are probably better of using google... I do not know much about this...
Title: Re: [XP] RMX-OS
Post by: arialks on April 25, 2010, 10:08:49 pm
ok nvm I kind of got rid of it and reinstalled it S:
in the manual it tells me to "Choose Detailed Configuration." now S:
but it doesnt really explain how., I'm trying to open "MySQL Server Instance config wizard"
but then it installs me something and when it's dont nothing happens X-x

Edit:Never mind! lol I'm just loaded with computer errors S:, thanks for the help tho!


Edit: got New error when I'm trying to start the MySQL service,
QuoteWindows could nto start the MySQL service on the local computer
Error 2:the system could not find the file specified.

what do I do? S:
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 26, 2010, 12:22:26 pm
v1.12 is up with 2 bug fixes.
Title: Re: [XP] RMX-OS
Post by: Subsonic_Noise on April 26, 2010, 02:40:17 pm
Quote from: Blizzard on April 26, 2010, 12:22:26 pm
v1.12 is up with 2 bug fixes.

YOU'RE NOT ALLOWED TO DO THAT YOU'RE RETIRED.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 26, 2010, 03:30:42 pm
I said I'll fix the last bugs in RMX-OS and finish the documentation. :P
Title: Re: [XP] RMX-OS
Post by: legacyblade on April 26, 2010, 03:34:41 pm
The link is broken for the demo.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 26, 2010, 04:02:51 pm
Because I am an idiot who forgot to upload it. :=
Title: Re: [XP] RMX-OS
Post by: arialks on April 26, 2010, 06:07:03 pm
arghhh I hate MySQL!!!!!!!!!!!!!!!!!!!
I'm trying to install it but the service wont start, doesnt matter how many times I reinstall it!!!!!!!!!!
this is the error that pops out when I'm trying to start the service
Quote(http://img175.imageshack.us/img175/3931/58306060.jpg)
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 26, 2010, 06:48:37 pm
what were the bugs you fixed?
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 26, 2010, 07:32:07 pm
It says it in the manual....

But the bugs that are fixed are trading with self and buddying with self.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 26, 2010, 07:34:56 pm
oh, i didnt know that. thanks
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 27, 2010, 02:33:00 am
Quote from: arialks on April 26, 2010, 06:07:03 pm
Quote(http://img175.imageshack.us/img175/3931/58306060.jpg)



Even though I said EXPLICITLY IN THE MANUAL that one should use version 5 of MySQL? Just lol.
Title: Re: [XP] RMX-OS
Post by: wacKaylie on April 27, 2010, 08:13:50 am
hmm I'm using 5.1 S:, I can't find a download for 5.0 anywhere ><"
the MYSQL is so hard X:
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 27, 2010, 08:17:48 am
I'm using 5.1 myself and it's working fine. I said version 5, not 5.0.
Title: Re: [XP] RMX-OS
Post by: wacKaylie on April 27, 2010, 08:33:39 am
well I use 5.1 and I get the same error S:
but sometimes it fixes it self S:, anyway for the MySQL Manager is
"SQL Manager Lite for MySQL" good enough? S: cause I have no idea what am I doin ><"
if it is I have it all woeking right, I made a database, but I have no Idea what to do with it ><"
it tells me to apply ALL queries, No idea how S: I never worked with this before ><" there is nothing that says "apply queries"
in the program S:
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 27, 2010, 08:54:58 am
I personally use phpmyadmin, but then again I'm running a webserver locally so this isn't really an option for you.

Aqua, what did you say you were using again?
Title: Re: [XP] RMX-OS
Post by: Ryex on April 27, 2010, 10:57:41 am
Quote from: wacKaylie on April 27, 2010, 08:33:39 am
well I use 5.1 and I get the same error S:
but sometimes it fixes it self S:, anyway for the MySQL Manager is
"SQL Manager Lite for MySQL" good enough? S: cause I have no idea what am I doin ><"
if it is I have it all woeking right, I made a database, but I have no Idea what to do with it ><"
it tells me to apply ALL queries, No idea how S: I never worked with this before ><" there is nothing that says "apply queries"
in the program S:


in the manual it tell you you need to open the script file with the queries located in the database folder on the download just use you admin program to open it and you should see a button that says start or something and it will set up the data base
Title: Re: [XP] RMX-OS
Post by: arialks on April 27, 2010, 12:40:31 pm
S: uhhh..
this is so confusing, I'm trying to understand what to do,
I made a database in the MySQL manager, now what S: I'm reading the manual S:
but I still dont understand what to do with the data base, and the files in the folder, I opened it with text document and idk what to do with the codes it gives there
Title: Re: [XP] RMX-OS
Post by: wacKaylie on April 27, 2010, 05:39:35 pm
Man I'm so close to be done but S:
I'm starting the game but is shows the server is still offline ><"
means I did something wrong, so I downloaded RMX-OS GUI to help me with this S:
I put my IP as the server address
then the user name for the database and password, and then the database's name
it says, connection working
I clicked run server, and it says Running for a second and then it's back to server not running, S:
man I hate MySQL stuff

Im stuck at 1.4.7! ><" I can't understand it, it talks generaly for all MySQL managers, and I dont even know how to use mine S:!
there is nothing that says "apply queries" in this manager, "running an SQL query" how S:? I made a database
asked for: host name, user name, password, Database name and port.. and after I make the database, there is no options of adding
something except more databases and stuff. want a picture of how it looks like?
http://img442.imageshack.us/img442/3466/99397098.jpg
I'm trying to make it work for 3 days now o-o!
and I just can't figure out how to do this, feels like I tried everything
Title: Re: [XP] RMX-OS
Post by: Ryex on April 27, 2010, 08:22:17 pm
if your having this much trouble then you should consider giving up and finding something less technically involved, running a server is going to be a huge challenge for you if you know this little about using a computer.
in answer to your question. have your tried maybe looking at the help file your your manager? I can guarantee you that you will find a section about running SQL queries. one you find the interface you need just copy paste the code from the file into the editor and press start or execute or what ever your manager has.

OR have you even tried going to "file, open" if you find an option that says "sql script" then use it, navigate to the database sql script and open it. it should then bring up an interface to run the script.

if you can figure this out then you should REALLY consider giving up. this is the VERY VERY EASY part of running a server.

also the IP address you use in your Config will either need to be 127.0.0.1 if you plan on using it on your computer or you EXTERNAL IP if you want others to be able to connect.
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 27, 2010, 08:28:21 pm
Quote from: Ryexander on April 27, 2010, 08:22:17 pm
if your having this much trouble then you should consider giving up and finding something less technically involved, running a server is going to be a huge challenge for you if you know this little about using a computer.
in answer to your question. have your tried maybe looking at the help file your your manager? I can guarantee you that you will find a section about running SQL queries. one you find the interface you need just copy paste the code from the file into the editor and press start or execute or what ever your manager has.

OR have you even tried going to "file, open" if you find an option that says "sql script" then use it, navigate to the database sql script and open it. it should then bring up an interface to run the script.

if you can figure this out then you should REALLY consider giving up. this is the VERY VERY EASY part of running a server.

also the IP address you use in your Config will either need to be 127.0.0.1 if you plan on using it on your computer or you EXTERNAL IP if you want others to be able to connect.


I agree with this completely. Although, I remember my first time trying to use Netplay 2.0 O.o, Blizz and I were in a convo for over 2 hrs and he was trying to walk me though how to set up MySql... I think we finally got it working and I didnt like it XD.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 28, 2010, 02:46:50 am
I remember. In fact I was doing most of it on your PC via Remote Desktop. xD
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 28, 2010, 07:44:22 am
Yup :D.
I know we talked about the battle system you said it would be awhile before you could do but do you know if you will have any time in the near future to work out the thread errors?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 28, 2010, 08:22:28 am
I can't reproduce the errors so I see no chance to fix it. :/
Title: Re: [XP] RMX-OS
Post by: Ryex on April 28, 2010, 10:39:21 am
well next week when I finally have the time. I will try to run an test involving keeping track of the time stamps when a tread runs by saving a message to a file every minute or so. if Jc cooperates perhaps we can find out what is going on.
Title: Re: [XP] RMX-OS
Post by: jcsnider on April 28, 2010, 04:15:45 pm
Sounds great :D.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 30, 2010, 12:09:41 am
when are you planning on updating the user logger and ATES plugging so that they work with the new version?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 30, 2010, 03:01:17 am
I already have.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 30, 2010, 06:53:09 pm
oh, thanks!
Title: Re: [XP] RMX-OS
Post by: Wizered67 on April 30, 2010, 11:16:35 pm
I don't mean to sound impatient, but do you know when you're going to release your updater?
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 01, 2010, 12:24:08 pm
After I finish the documentation.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on May 01, 2010, 01:54:12 pm
ok, sounds good. I'll be waiting
Title: Re: [XP] RMX-OS
Post by: edwardthefma on May 06, 2010, 08:11:59 pm
---------------------------
Eris online
---------------------------
Script 'Blizz-ABS Controller for RMX-OS' line 765: NoMethodError occurred.

undefined method `damage' for nil:NilClass
---------------------------
OK   
---------------------------
with the newest ver of rmx os  with blizz abs controler
Title: Re: [XP] RMX-OS
Post by: Feildmaster on May 16, 2010, 02:47:13 pm
Okay...
Since there are people with errors for MYSQL...

1- UNINSTALL, Apache AND Mysql... (EVERY PROGRAM OF IT)
2- Clean the computer. (By using a program like this: CCleaner (http://filehippo.com/download_ccleaner/))
2.1- After downloading and installing select {Run Cleaner} (it deletes unnecessary files)
2.2- Click on Registry
2.3- Scan for Issues
2.4- Fix Selected Issues
2.5- Select no to backup registry (its a pain, and you wouldn't know what to do with the backup anyway)
2.6- Fix All Issues
2.7 Repeat 2.3-2.6 until no issues are found
2.8 Restart your computer (IMPORTANT, When uninstalling things, people never do this, when they SHOULD, [creates errors])
2.7 Do process 2.3-2.6 to make sure there are no issues
3- Download the EASIEST server package in the world... WampServer (Windows) (http://www.wampserver.com/en/download.php)
4- Install it. It comes complete with every other program you need.

There, that should help EVERYONE that has problems with mysql. -_-
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 16, 2010, 04:02:53 pm
WAMP/XAMP is definitely an option. I'm just letting people figure that out by themselves. :P
I included it in the manual for the next version, though. I'm getting sick of stupid questions even though I specifically said in the FAQ not to ask me how to set up a working network. -_-
Title: Re: [XP] RMX-OS
Post by: nathmatt on May 19, 2010, 03:27:16 pm
your script no longer checks to see if the user is already a buddy and causes the server to crash when you try to add them again
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 19, 2010, 04:52:57 pm
Are you 100% sure about that? You are using the most recent versions, right?
Title: Re: [XP] RMX-OS
Post by: nathmatt on May 19, 2010, 05:17:52 pm
yea im using the most recent version from what i could tell from the log see
Spoiler: ShowHide
2010-05-19 19:18:58 UTC; 2 (nathan) - Error:
Duplicate entry '1-2' for key 'PRIMARY'
./Data/Action_Handler2.rb:139:in `query'
./Data/Action_Handler2.rb:139:in `execute_buddy_add'
./Data/Action_Handler1.rb:121:in `execute_yes'
./Extensions/Blizz-ABS.rb:354:in `execute_yes'
./Data/Client.rb:477:in `check_normal_commands'
./Data/Client.rb:50:in `handle'
./Data/Server.rb:253:in `block in run'

errors because of the duplicate entry
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 20, 2010, 02:11:09 am
I'll fix it.
Title: Re: [XP] RMX-OS
Post by: G_G on May 20, 2010, 06:34:03 pm
I'm working on a plugin. How do I make it detect that the server is shutdown or is being shutdown. Its going to be an extension but I also had an idea, I was just going to alias a couple of methods in Server.rb and place it in its own .rb and add it to an extension. Would that work?
Title: Re: [XP] RMX-OS
Post by: nathmatt on May 20, 2010, 06:46:23 pm
check out the extensoin skeleton
Spoiler: ShowHide

def self.main
 # while server is running
  while RMXOS.server.running
    self.server_update #server is running
    sleep(0.1) # 0.1 seconds pause, decreases server load
  end
  # server is shut down
end


the only way i can think of to tell if you hit the x to close it thought would be to have a parallel program running to check the server
Title: Re: [XP] RMX-OS
Post by: G_G on May 20, 2010, 07:23:30 pm
Well I managed a simple Online Status plugin. However the plugin only sets it Offline if you press CTRL + C to shutdown the server. If you shut it down by clicking X then it doesn't change it.
Title: Re: [XP] RMX-OS
Post by: Magus on May 20, 2010, 07:39:33 pm
Okay... the HTML help file is unclear. It doesn't explain hosting very well, so I'm stuck at the moment.
Like.. how do I make it, so that other people, such as my friends can play.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on May 20, 2010, 07:44:55 pm
um..... you give them the game.......

Well, I don't know what you have and haven't done, but you have to forward the port and put in your ip in the options stuff.
Title: Re: [XP] RMX-OS
Post by: Magus on May 20, 2010, 08:03:02 pm
Edit:

I was kidding. I have it downpacked..
Title: Re: [XP] RMX-OS
Post by: G_G on May 20, 2010, 10:57:10 pm
Okay, well I've got something else I'm working on. I need to know how to access a clients party, or give a client gold. Might as well tell you what I plan. I'm making a Random Gold extension.

After so many configurable minutes, it'll randomly choose a connected client. It'll give that person a random amount of gold between Min and Max. Then it sets Last_user to the client's name just so that same client can't get gold twice in a row. Then waits another configurable minutes.

EDIT: I know the idea sounds stupid, but its mostly for practice. I practically know nothing about Rmx-os. So it makes sense making silly small plugins for it.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 21, 2010, 02:58:13 am
Quote from: Nawm on May 20, 2010, 07:39:33 pm
Okay... the HTML help file is unclear. It doesn't explain hosting very well, so I'm stuck at the moment.
Like.. how do I make it, so that other people, such as my friends can play.


Have you ever heard of the Internet and the information that is out there, my friend?

@G_G:

The method nathmatt posted:


def self.main
 # while server is running
  while RMXOS.server.running
    self.server_update #server is running
    sleep(0.1) # 0.1 seconds pause, decreases server load
  end
  # YOUR CODE BEFORE SHUTDOWN GOES HERE
  # server is shut down
end


Clicking X kills the server and I don't think there's a way around that. The only actual way I could think of would be that the server writes to a file every 5 seconds and if the file hasn't been modified for more than 10 seconds, everything outside of RMX-OS knows that RMX-OS isn't running anymore.

As for the other plugins...
RMX-OS is not related to the game in any way. There is almost not game data on the server. The only game data that is on the server while it's running is the data that is required for other clients to know where the client is standing, etc. You can't give people gold on the server and expect it to appear in game. RMX-OS is a server, not a client. It synchronizes clients. It does not run a messed up copy of the game like Netplay (hence RMX-OS runs a lot faster than Netplay).

You can always use the message code EVA when sending clients a message that they should interpret.

client.send("EVA$game_party.gain_gold(1000)")

Title: Re: [XP] RMX-OS
Post by: G_G on May 21, 2010, 08:11:13 am
I tested that code out and it worked perfectly. However here's my code and how its setup but it doesn't seem that the its actually being updated. Here's my code.
module RMXOS

#------------------------------------------------------------------
# Passes the extension's main module to RMX-OS on the top
# level so it can handle this extension.
# Returns: Module of this extension for update.
#------------------------------------------------------------------
def self.load_current_extension
return RandomGold
end

end

#======================================================================
# module ExtensionSkeleton
#======================================================================

module RandomGold

VERSION = 1.0
RMXOS_VERSION = 1.11
SERVER_THREAD = true

# :::: START Configuration
TIME_WAIT = 10 # In Minutes : Must be whole number
  GOLD_MIN = 1
  GOLD_MAX = 500
# :::: END Configuration

#------------------------------------------------------------------
# Initializes the extension (i.e. instantiation of classes).
#------------------------------------------------------------------
def self.initialize
    @last_user = ""
    @time = 0
    @clients = []
end
#------------------------------------------------------------------
# Calls constant updating on the server.
#------------------------------------------------------------------
def self.main
# while server is running
while RMXOS.server.running
                                  self.server_update
sleep(1) # 1 seconds pause, decreases server load
end
end
#------------------------------------------------------------------
# Handles the server update.
#------------------------------------------------------------------
def self.server_update
# - YOUR SERVER CODE HERE
    @time += 1
    puts "Random Gold: #{TIME_WAIT - @time}"
    if @time >= TIME_WAIT
      gold = rand(GOLD_MAX) + GOLD_MIN
      client = rand($clients.size)
      $client[client].send("EVA$game_party.gain_gold(#{gold})")
      @time = 0
    end
end
#------------------------------------------------------------------
# Handles updating from a client.
# client - Client instance (from Client.rb)
# Returns: Whether to stop check the message or not.
#------------------------------------------------------------------
def self.client_update(client)
# - YOUR CLIENT MESSAGE CODE HERE
return false
end

end


But it doesn't seem to be updating. I waited ten seconds and then it should've chosen a random client to give gold to. I can't say for sure it is actually updating or If I'm doing something wrong. But I've waited several seconds and I didn't get any gold.
Title: Re: [XP] RMX-OS
Post by: Magus on May 21, 2010, 09:07:57 am
Quote from: Blizzard on May 21, 2010, 02:58:13 am
Quote from: Nawm on May 20, 2010, 07:39:33 pm
Okay... the HTML help file is unclear. It doesn't explain hosting very well, so I'm stuck at the moment.
Like.. how do I make it, so that other people, such as my friends can play.


o.o That quote is old. If you read my next post afterwards, you should be able to dismiss it
Have you ever heard of the Internet and the information that is out there, my friend?

@G_G:

The method nathmatt posted:


def self.main
  # while server is running
   while RMXOS.server.running
     self.server_update #server is running
     sleep(0.1) # 0.1 seconds pause, decreases server load
   end
   # YOUR CODE BEFORE SHUTDOWN GOES HERE
   # server is shut down
end


Clicking X kills the server and I don't think there's a way around that. The only actual way I could think of would be that the server writes to a file every 5 seconds and if the file hasn't been modified for more than 10 seconds, everything outside of RMX-OS knows that RMX-OS isn't running anymore.

As for the other plugins...
RMX-OS is not related to the game in any way. There is almost not game data on the server. The only game data that is on the server while it's running is the data that is required for other clients to know where the client is standing, etc. You can't give people gold on the server and expect it to appear in game. RMX-OS is a server, not a client. It synchronizes clients. It does not run a messed up copy of the game like Netplay (hence RMX-OS runs a lot faster than Netplay).

You can always use the message code EVA when sending clients a message that they should interpret.

client.send("EVA$game_party.gain_gold(1000)")


Title: Re: [XP] RMX-OS
Post by: G_G on May 21, 2010, 09:15:15 am
Nawm, what are you trying to say here?
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 21, 2010, 09:22:50 am
Quote$clients[client].send("EVA$game_party.gain_gold(#{gold})")


I think I forgot to add the code that detects crashed extensions. O_o
Title: Re: [XP] RMX-OS
Post by: G_G on May 21, 2010, 07:10:22 pm
Quote from: Blizzard on May 21, 2010, 09:22:50 am
Quote$clients[client].send("EVA$game_party.gain_gold(#{gold})")


I think I forgot to add the code that detects crashed extensions. O_o


YES it fixed it! Here's what the server does. It counts down from X seconds. (Will be minutes) Then when it reaches TIME_WAIT it gives a random client a random amount of gold. In the server itself, it out puts this.
p "Time Left Til Gold: #{TIME_WAIT - @time}"


When it prints 0, it means @time is at TIME_WAIT, @time is set to 0 after it gives the gold, however it doesn't start counting down again and on top of that it doesn't print the client's name who got the gold.

Here's my new script.
http://pastebin.com/E4mcS5S8

Any help is appreciated thanks BLizz!
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 21, 2010, 07:17:53 pm
Why don't you just set the sleep time to the number of seconds which the server will wait and just keep running the gold distro in the main loop? xD
Title: Re: [XP] RMX-OS
Post by: G_G on May 21, 2010, 07:35:50 pm
Just tried it, now nothings working D:
	def self.main
# while server is running
while RMXOS.server.running
if @time >= TIME_WAIT
gold = rand(GOLD_MAX) + GOLD_MIN
client = rand($clients.size)
$clients[client].send("EVA$game_party.gain_gold(#{gold})")
puts "#{$client[client].player.username} gained #{gold}"
@time = 0
else
@time += 1
end
puts "Time Left Til Gold: #{WAIT_TIME - @time}"
sleep(1)
end
end
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 21, 2010, 07:40:34 pm
	def self.main
# while server is running
while RMXOS.server.running
self.server_update
sleep(WAIT_TIME)
end
end

def self.server_update
gold = rand(GOLD_MAX) + GOLD_MIN
client = $clients[rand($clients.size)]
client.send("EVA$game_party.gain_gold(#{gold})")
puts "#{client.player.username} gained #{gold}"
end


;)
Title: Re: [XP] RMX-OS
Post by: G_G on May 21, 2010, 07:44:59 pm
Again, it works only one time. Then its like it stops updating. I set the time wait to 10 seconds. Sat there for 10, got 227 gold, then sat for another 10 and I didn't get anything. And the message wasn't getting printed either.  D:

EDIT: Typo on WAIT_TIME xD didn't realize, its supposed to be TIME_WAIT, works perfectly now <3 Sorry for bugging you !
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 21, 2010, 08:04:31 pm
No problem. I just uploaded RMX-OS 1.13 which properly reports extension bugs. Now errors like this won't happen anymore. xD
Title: Re: [XP] RMX-OS
Post by: G_G on May 21, 2010, 08:24:33 pm
Small update if you dont mind .__.

Random Gold makes sure that no player gets gold randomly twice in a row.
Got all wanted features built in. Except one (keep reading, maybe you can help me)
-Set Wait Time in seconds before gifting gold
-Set gold minimum and maximum
-Set log gold messages
-Never picks same person twice
-Set error messages to what you want

Feature I wanted.
-When client gets the gold, I want a message to appear in the chatbox. I only want him to see it, is it possible?
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 22, 2010, 04:22:42 am
This here would be a full fletched extension making use of the skeleton and RMX-OS as system.

module RMXOS

def self.load_current_extension
return Goldy
end

module Data
PlayerGotLucky = 'You got lucky! You won AMOUNT gold from the server!'
GoldyGotLucky = '\'PLAYER\' got \'AMOUNT\' gold.'
end

end

#======================================================================
# module Goldy
#======================================================================

module Goldy

VERSION = 1.0
RMXOS_VERSION = 1.13
SERVER_THREAD = true

# START Configuration
SERVER_DISPLAY = true # show log in command prompt screen
LOG_FILENAME = './logs/goldy.log' # leave empty if no log file should be created
DELETE_LOG_ON_START = true
WAIT_TIME = 30
MIN_GOLD = 1000
MAX_GOLD = 10000
# END Configuration

def self.initialize
@lucky_user_ids = []
end
 
def self.main
while RMXOS.server.running
self.server_update
sleep(WAIT_TIME)
end
end

def self.server_update
logged_in_clients = $clients.find_all {|client| client.player.user_id > 0}
unlucky_clients = logged_in_clients.find_all {|client| !@lucky_user_ids.include?(client.player.user_id)}
if unlucky_clients.size > 0
client = unlucky_clients[rand(unlucky_clients.size)]
@lucky_user_ids.push(client.player.user_id)
gold = rand(MAX_GOLD - MIN_GOLD + 1) + MIN_GOLD
client.send("EVA$game_party.gain_gold(#{gold})")
message = RMXOS::Data::PlayerGotLucky.sub('AMOUNT') {gold.to_s}
color = RMXOS::Data::ColorOK
client.send("CHT#{color}\t0\t#{message}")
message = RMXOS::Data::GoldyGotLucky.sub('PLAYER', client.player.username).sub('AMOUNT', gold.to_s)
self.log(message)
end
end

def self.client_update(client)
return false
end

def self.log(message)
puts message if SERVER_DISPLAY
if LOG_FILENAME != ''
file = File.open(LOG_FILENAME, 'a')
file.write(message + "\n")
file.close
end
end

end


You realize, though, that this is generally a stupid idea? (I saw that you posted a topic.) Each time the server crashes, the queue would be emptied and everybody could get gold again.
Title: Re: [XP] RMX-OS
Post by: G_G on May 22, 2010, 08:18:33 am
Quote from: game_guy on May 20, 2010, 10:57:10 pm
EDIT: I know the idea sounds stupid, but its mostly for practice. I practically know nothing about Rmx-os. So it makes sense making silly small plugins for it.


Mostly for practice. Its meant so that someone can get gold more then once. He just won't ever get it twice in a row.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 22, 2010, 09:45:08 am
I know, that's why I am confused that you posted it. O_o
Title: Re: [XP] RMX-OS
Post by: G_G on May 22, 2010, 10:07:19 am
I dunno. xD I can always remove it, it does seem pretty useless. .__.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 22, 2010, 10:53:05 am
I think you should. xD It's almost as stupid as "Character dies when SP reach zero". xD
Title: Re: [XP] RMX-OS
Post by: Magus on May 22, 2010, 11:28:56 am
reporting something you're probably aware of already:

Whenever 2 players (me and my brother) are on the same map, the animations sometimes stop working o,o
(this belong to the blizz-abs controller area. But yeah, the other guy mentioned it in a more detailed way)
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 22, 2010, 04:00:59 pm
Which animations? Graphics animations of sprite animations? Do you mean that your characters stop moving? If yes, then yes, I already know of that problem.
Title: Re: [XP] RMX-OS
Post by: jcsnider on May 22, 2010, 04:01:49 pm
I was going to say, last I check the flowers in my Pokemon game were still moving....

But, I do not use Blizz ABS in my game either XD
Title: Re: [XP] RMX-OS
Post by: achille911 on May 24, 2010, 08:37:42 am
Hi all, i have a problem, i start the server whitout problem, it says the server run good.
If i play the original project, it start, connect, and i can play, but if i modify anything in the client project i cant connect couse he say "server offline" in the login screen of the game.
I try to add a object, add only a tree, delete the "option script" and paste the original, but all time i modify 1 thing on the client project he say "offline".
Why, there are any solution?

Sorry for my bad english but i'm italian :)

PS : Blizzard, nice work, this is the best script i have ever see.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2010, 08:42:00 am
Read the manual (especially the FAQ).
Title: Re: [XP] RMX-OS
Post by: achille911 on May 24, 2010, 08:45:32 am
I've read it, i install all in the right way, i made all things, but i can play only whit the original unmodified project, if i try to make one, modify the original or else, it say "localhost" "offline", but its online couse mysql server run good!
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2010, 09:09:54 am
Spoiler: ShowHide
(http://img175.imageshack.us/img175/5411/snap241.png)


Spoiler: ShowHide
(http://img441.imageshack.us/img441/9548/snap243.png)

If you don't know how to set up a network, either learn it or give up.
Title: Re: [XP] RMX-OS
Post by: achille911 on May 24, 2010, 09:10:44 am
Damn sorry, havent this version of manual, but i dont have router, and the server is running ok, and no network problem, i'm confused.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2010, 09:27:03 am
That must've been in the manual since version 0.9. -_-

Hence you are supposed to google. I can't predict all possible network setups and give a solution for them.
Title: Re: [XP] RMX-OS
Post by: achille911 on May 24, 2010, 09:44:20 am
Oke, but i think its not a network problem, but a script problem, couse all work great, except for the game whit the script.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2010, 12:57:31 pm
Look, if the server is RUNNING and you DO NOT see it online from a remote client, it's 100% a network problem or you haven't set up the configuration properly (which technically causes a network problem). The server is RUNNING, it is NOT a script problem. The only two possibilities left are that you have not configured the server or the client properly or that your network is not set up properly.
Title: Re: [XP] RMX-OS
Post by: achille911 on May 24, 2010, 01:09:03 pm
NO, all configuration is ok, the server run fine, i can see it online and play 10000 time if i dont modify the project, i'm not stupid.
It isn't work only if i modify the project, such as add a tree, add a chara, an event, a new object, i save, close, and when i run i cant see the server online whit the client game, but the server IS online, no network problem, cause before the modify it works fine!
I can play but only whit the original client game, i dont modify script, i reinstall the server 5 time, but all time work only whit original, if i modify anithing in the project, cant see the server online.

EDIT : I try to run the server and play the original client (work fine), and the modify client game (i add a map, dont work).
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2010, 01:35:45 pm
Let me explain this to you again the hard way.

An IP address is a virtual address of a PC on a network. In a completely open network every PC can "see" all the other PCs by sending a message saying "Hi. I am X.X.X.X. Who else is there?" (called a broadcast in networking). Then each PC who received the message will reply to X.X.X.X with "Hello. I am Y.Y.Y.Y.". Completely open networks usually don't exist because they are highly insecure so people use firewalls (which you can literally imagine as walls that don't let anything through) and network configurations that tell the PC how to behave in certain situations and how to respond. You can easily configure your PC not to reply to another PC when it asks who else is in the network. The other PC won't even know your PC is there. Sometimes even firewalls block the calls and your PC virtually never receives the broadcast message. It is even possible that the PC who sent the broadcast in the first place was configured that it doesn't receive any replies from other PCs so it thinks that it's alone in the network.

When you have a server running, there are 2 things that are important. The first is the server IP address and port. The server needs to know where he is located in order to be able to receive. The second is the client's information about the IP address and port of the server. In other words, it needs to know the server's location in the network. Naturally if you run your server on 192.168.0.2:5000 and tell your client to connect to 192.168.0.3:5000, it won't work. Neither will 192.168.0.2:5001. Only AND ONLY 192.168.0.2:5000 will work. The client HAS TO connect to 192.168.0.2:5000 or else the server will not be visible to the client. On top if your server is not configured to answer to broadcast messages (or even direct connections to the IP address) or a router is not configured to forward a connection to a port on your PC, the client will not be able to see the server online either. The server does not answer, because either it was configured not to answer or somebody in between in the network (e.g. a router) doesn't forward answers (because it was not configured properly).

I've shown by now you what the problems are altogether three times (including this post) and you still refuse to follow my advice. On top you are being a dick after I've explained to you what your problem is and what you need to do. If you're so much smarter, go ahead. Figure it out your yourself. I, personally, won't give you any more support.
Title: Re: [XP] RMX-OS
Post by: achille911 on May 24, 2010, 02:20:37 pm
Yes you explane me 3 times, but you dont read my problem omg or else?
I made a server, configured 127.0.0.1:54269, i dont have any firewall turned on, no router, and i can login in the server whit other programs (such online database editing, online mysql monitor), but CANT whit a MODIFIED PROJECT.
I repeat that, i'm not stupid and i know what is IP, what is TCP, router, firewall, port etc...
But i say your script run really good, but only whit the unmodified project, like this :
-Download
-Extract
-Run the server
-Run client
This run whit no problems, but this:
-Download
-Extract
-Add a map on the game (only a map, or a tree in a existing map)
-Run server
-Run client
This will not work, and the client see the server offline, for the 4th time, i dont modify the script, the IP and the port are correctly setted and work, havent firewall and router, try to help me and stop saying it is a network problem, couse it isn't.
You are the only one can help me, no one can find the problem.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2010, 03:44:22 pm
You don't have to restart the server each time.
There is no reason for it not to work when you change something in the game. I don't know what you are doing wrong.
Title: Re: [XP] RMX-OS
Post by: Juan on May 24, 2010, 04:52:03 pm
Did you modify the cfg.ini for the server and if it matches the server your trying to connect to?
Title: Re: [XP] RMX-OS
Post by: achille911 on May 25, 2010, 05:09:12 am
Yep, i try to restart the server after modify, to leave it open, but all time the client see it offline, me too can't find the problem, i reinstall the server 4 times, read the manual, but the problem are all time the game, the cfg.ini is ok, match perfectly whit the game option script.
Have a question, when i modify the client game, i must modify some in the server to match whit a new map, new chara or some else? I don't think the server must be modified when u edit the game.
I try different version of RMX-OS, same problem, work whit original, dont work with the custom game.
Thanks for help, and sorry for my replies before, but i try to make work this by 2 days.

Again sorry if i have bad english.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2010, 06:49:55 am
It is a server, it has nothing to do with the game. Nobody else so far had that problem, and frankly, the problem is technically impossible. The maps affect in absolutely no way the server or the connection data from the client.
Title: Re: [XP] RMX-OS
Post by: achille911 on May 25, 2010, 09:07:00 am
Yes, i know that, but all time i made a modify, won't work, i don't know why, but don't work.
I know modify the game dont modify in any way the script, the server or the connection, but when i'm going to do this, he won't work.
There are a solution sure, but i can't found it, i try 1000 time, modify the server, reinstall, change the host, but no way to correct this problem, is possible that i have a older or too newer version of rpg maker xp, and modify whit a wrong version cause this bug?

Edit : Yeah i found the solution, lol.
I modify the game whit rpg maker english version (before i use the italian version) and it work perfectly!
Thanks to all for the support, now i can play whit this fantastic script!
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2010, 09:58:37 am
Just lol.
Title: Re: [XP] RMX-OS
Post by: achille911 on May 25, 2010, 10:11:16 am
I finally try the script, whit a short game.
Blizzard, this script is absolutely fantastic.
Very good stability, no lag, great adds such guilds, buddy and more.
Epic project!
Title: Re: [XP] RMX-OS
Post by: jcsnider on May 25, 2010, 04:08:10 pm
Quote from: Blizzard on May 25, 2010, 09:58:37 am
Just lol.


Agreed.

But, this is something to remember for the next person that has this problem.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2010, 04:58:12 pm
Definitely.
Title: Re: [XP] RMX-OS
Post by: holy416m on May 28, 2010, 03:59:25 am
Hi I'm making a game but I have a problem...

When I playtest my game, it launched, I choose the server, and a thing pops-up...
Script '(RMX-OS) Script' line 2556: Errno::ECONNRESET occured.
An existing connection was forcibly closed by the remote host.


Any idea? If you need more info, keep reading.

cfg.ini
NAME = 'Lost Time'
HOST = '127.0.0.1'
PORT = 3306
RMXOS_VERSION = 1.09

LOG_MESSAGES = false
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_USERNAME = 'root'
SQL_PASSWORD = '4161051710'
SQL_DATABASE = 'Lost Time'

INBOX_SIZE = 10

EXTENSIONS = [
'GlobalSwitchesVariables.rb',
'GlobalDay-NightSystem.rb'
]


(RMX-OS) Options
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# RPG Maker XP Online System (RMX-OS)
#------------------------------------------------------------------------------
# Author: Blizzard
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#   
#  This work is protected by the following license:
# #----------------------------------------------------------------------------
# # 
# #  Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
# #  ( http://creativecommons.org/licenses/by-nc-sa/3.0/ )
# # 
# #  You are free:
# # 
# #  to Share - to copy, distribute and transmit the work
# #  to Remix - to adapt the work
# # 
# #  Under the following conditions:
# # 
# #  Attribution. You must attribute the work in the manner specified by the
# #  author or licensor (but not in any way that suggests that they endorse you
# #  or your use of the work).
# # 
# #  Noncommercial. You may not use this work for commercial purposes.
# # 
# #  Share alike. If you alter, transform, or build upon this work, you may
# #  distribute the resulting work only under the same or similar license to
# #  this one.
# # 
# #  - For any reuse or distribution, you must make clear to others the license
# #    terms of this work. The best way to do this is with a link to this web
# #    page.
# # 
# #  - Any of the above conditions can be waived if you get permission from the
# #    copyright holder.
# # 
# #  - Nothing in this license impairs or restricts the author's moral rights.
# # 
# #----------------------------------------------------------------------------
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information:
#
#   There is a documentation for this system. Read it in order to learn how to
#   use this system. A server also comes with this system.
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

#==============================================================================
# module RMXOS
#------------------------------------------------------------------------------
# Main module for all RMX-OS classes and procedures.
#==============================================================================

module RMXOS
 
  #============================================================================
  # module RMXOS::Options
  #----------------------------------------------------------------------------
  # Contains options used for the game that can be set up.
  #============================================================================

  module Options
 
    SERVERS = []
    SAVE_DATA = {}
    CREATION_DATA = {}
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Server Connection Settings
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    SERVER_REFRESH = 200
    SERVER_TIMEOUT = 200
    SERVERS.push(['Yolex', '127.0.0.1', 3306])
    #SERVERS.push(['Me', '5.133.77.216', 54269])
    #SERVERS.push(['BlizzDev', '161.53.76.80', 54269])
    #SERVERS.push(['My Server', 'www.myserver.net', 54269])
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Security
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    RESERVED_USERNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
        'none']
    RESERVED_GUILDNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
        'none']
    ENCRYPTION_SALT = 'XS'
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Network
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    PING_TIMEOUT = 2
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # System
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    USERPASS_MIN_LENGTH = 3
    USERPASS_MAX_LENGTH = 16
    CHATINPUT_WIDTH = 480
    CHATBOX_WIDTH = 480
    CHATBOX_LINES = 8
    CHATINPUT_MAX_LENGTH = 200
    PM_MAX_LENGTH = 200
    GUILDNAME_MAX_LENGTH = 32
    CHAT_BUBBLES = true
    REMEMBER_LOGIN = true
    DISABLED_CHAT_COMMANDS = []
    AUTOSAVE_FREQUENCY = 30
    EXTENDED_AUTOSAVE = false
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Save Data
    # - see the documentation to learn how to set up which data is being saved
    #   by RMX-OS.
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # save container variable definitions
    SAVE_CONTAINERS = [
        '$game_system',
        '$game_switches',
        '$game_variables',
        '$game_self_switches',
        '$game_party',
        '$game_actors',
        '$game_map',
        '$game_player'
    ]
    # general save data setup
    SAVE_DATA['Graphics.frame_count'] = []
    SAVE_DATA[Game_System] = ['@timer', '@timer_working', '@menu_disabled']
    SAVE_DATA[Game_Switches] = ['@data']
    SAVE_DATA[Game_Variables] = ['@data']
    SAVE_DATA[Game_SelfSwitches] = ['@data']
    SAVE_DATA[Game_Party] = ['@gold', '@steps', '@actors', '@items',
        '@weapons', '@armors']
    SAVE_DATA[Game_Actors] = ['@data']
    SAVE_DATA[Game_Map] = ['@map_id']
    SAVE_DATA[Game_Player] = ['@x', '@y', '@real_x', '@real_y',
        '@character_name', '@encounter_count']
    SAVE_DATA[Game_Actor] = ['@actor_id', '@name', '@character_name',
        '@character_hue', '@class_id', '@weapon_id', '@armor1_id',
        '@armor2_id', '@armor3_id', '@armor4_id', '@level', '@exp', '@skills',
        '@hp', '@sp', '@states', '@maxhp_plus', '@maxsp_plus', '@str_plus',
        '@dex_plus', '@agi_plus', '@int_plus']
    # for all classes that must have default arguments specified
    CREATION_DATA[Game_Actor] = '1'
 
  end
 
end


I changed the Main to -<:::RMX-OS Main:::>-...
And yes, I executed the SQL thingy...

And this the order of my scripts:
-(Original System Scripts)-

Advanced Weather

(RMX-OS) Options
(RMX-OS) Script

Blizz-ABS 1
Blizz-ABS 2
Blizz-ABS 3

EXP HUD Blizz-ABS

Quick Weapon Switch Blizz-ABS

Visual Eq. for Blizz-ABS

Blizz-ABS Controller RMX-OS

Advanced Time Environment System

Global Day-and-Night System

Mouse Controller

Mouse Path Finder Add-on

Unlimited Levels

Global Switches Variables

RO Skill System

-<:::RMX-OS Main:::>-

Easy Character Creator

Tons of Add-ons 1
Tons of Add-ons 2
Tons of Add-ons 3

Continuous Maps


So, any ideas? Please reply ASAP, thanks
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 28, 2010, 04:20:19 am
Read the FAQ in the Manual.
Title: Re: [XP] RMX-OS
Post by: holy416m on May 29, 2010, 08:54:06 am
Doesn't seems to help me much...  :O.o:
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 29, 2010, 09:28:51 am
Quote from: Blizzard on May 24, 2010, 09:09:54 am
Spoiler: ShowHide
(http://img175.imageshack.us/img175/5411/snap241.png)


Spoiler: ShowHide
(http://img441.imageshack.us/img441/9548/snap243.png)

Title: Re: [XP] RMX-OS
Post by: holy416m on May 29, 2010, 10:11:35 am
Oh... I don't have those in my manual... xD

Um okay, I port forwarded, and added Ruby as an exception... but it's still the same... sure nothing wrong about the script order???
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 29, 2010, 02:31:21 pm
Are you getting any error messages on the server? If not, then it's a network problem. It can be just the firewall messing with you or god knows what complicated problem.

EDIT: RMX-OS 1.14 is out.
Title: Re: [XP] RMX-OS
Post by: AliveDrive on May 30, 2010, 03:45:24 am
Quote from: Blizzard on May 28, 2010, 04:20:19 am
Read the FAQ in the Manual.


aha. *level*
Title: Re: [XP] RMX-OS
Post by: holy416m on May 31, 2010, 11:01:22 am
Quote from: Blizzard on May 29, 2010, 02:31:21 pm
Are you getting any error messages on the server? If not, then it's a network problem. It can be just the firewall messing with you or god knows what complicated problem.

EDIT: RMX-OS 1.14 is out.

No error messages on server... Does the version of RMX-OS matters??? Because last time I used an older one but I won't work but when I changed into a newer version it worked...
Title: Re: [XP] RMX-OS
Post by: Wizered67 on May 31, 2010, 12:54:23 pm
Is there a way to check if you're the only player on a map?
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 31, 2010, 02:19:55 pm
$network.map_player.size == 0


@holy416m: I release new versions to fix bugs, improve performance or add new features. You should update because newer versions will probably run better. If you don't have the error with a new version, then it's great, lol!
Title: Re: [XP] RMX-OS
Post by: G_G on June 24, 2010, 11:38:25 pm
If you feel like adding this to the manual, it'll remove a step or two. Creators of ruby made a one click installer for ruby 1.9.1 http://rubyforge.org/frs/download.php/71078/rubyinstaller-1.9.1-p378.exe There it is. Might be helpful to at least include.

However the new installations for all versions dont have that cool script editing program with it. =\ I liked it
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 25, 2010, 03:03:41 am
I don't like. Notepad++ is much better IMO.
I'll add it.
Title: Re: [XP] RMX-OS
Post by: G_G on June 25, 2010, 11:38:01 am
Ooooh. Notepad++ is so awesome <3 screw Scite
Title: Re: [XP] RMX-OS
Post by: matzz22 on June 29, 2010, 11:10:22 pm
Can someone please help me? Thank you...
I have been having a problem once start the game, the server shows "Online" , but when i click "Enter" to join or like start the game it shows this error:
(http://i563.photobucket.com/albums/ss76/acebelowzero/Capture-6.png)

By the way this is a great script! :)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 30, 2010, 02:55:01 am
Empty your database.
Title: Re: [XP] RMX-OS
Post by: matzz22 on June 30, 2010, 04:44:17 am
Thank u , it helped but then another error came up :(
(http://i1004.photobucket.com/albums/af162/matzz22/Capture-1.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 30, 2010, 08:46:49 am
Make sure you are running the newest version of the client and the server and make sure that the server and client configuration is set up right. Also, check the server for error messages.
Title: Re: [XP] RMX-OS
Post by: dudenextdoor on July 02, 2010, 05:19:06 pm
Hello all

I've been trying your script (looks awsome from what i read), i installed every thing on your manual, read it some 3 or 4 times, configured the INI file using the GUI, then modified it manualy, and etc, from this side of the screen, i think I did all i'm suposed to, but when i launch the server, it goes 'Running' and immedialy (not even 1 sec) it goes down, i got all firewalls off, got router unpllugged (18+Mb cable connection direct plugged) and continues same thing

the actual .ini i'm using (after trying add the manual commands the GUI dont create) is this:

Spoiler: ShowHide

NAME = 'TESTE'
HOST = 'localhost'
PORT = 54269
RMXOS_VERSION = 1.14

LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

DEBUG_MODE = true

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 30
AUTO_RESTART = false
RESTART_TIME = 5

PREVENT_ZOMBIE_CLIENTS = true

OPTIMIZE_DATABASE_ON_STARTUP = true
DATABASE_CONNECTION_TIMEOUT = 60

SQL_HOSTNAME = 'localhost'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'testing'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [
''
]


i'm using your latest version (found on 1st post of this topic), have the latest MySQL 5x+, created database using a SQL Manager Lite something (shareware) then installed WAMP (as suggested on page 34+ of this topic) and launchhed phpMyAdmon wich can access the database (after i add the password on the config_inc.php)

i used the PFPPortChecker.exe to check the ports (as suggested on page 20+) and the 54269 is open

on the GUI .exe i 'test' the database and it says is working, but as i said, when i click 'Run Server' it blinks runing and goes off immedialy


I imagine you be tired of many posts about people getting this issue, but  i googled, i read all the posts of this topic and even did a Search on this forum, but couldn't find the sollution, since it just dont launch, and i never had problems in host servers, so any ideas?

thank you.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 02, 2010, 07:11:39 pm
This is a very informative post and all, but you didn't give me the error message that the server displayed to you. xD
Title: Re: [XP] RMX-OS
Post by: dudenextdoor on July 02, 2010, 07:20:18 pm
i launch the server using the GUI file (i realy cant find the info for use through cmd.exe) and i dont get any message, all the GUI do is 'Runing' then 'Not Runing' no matter how many times i click 'Run Server' it just dont go on

this why i'm having dificulties find a sollution, if i could get server to run and get some error message would be easier to solve, but right now, i dont get anay errors, it just dont boot, and all the 'checks' i do it seems be properly set...
Title: Re: [XP] RMX-OS
Post by: WhiteRose on July 03, 2010, 01:04:44 am
I haven't used RMX-OS for a while, but try running the server without the GUI tool and see if that helps at all. If I remember correctly, the GUI was built for an older version of RMX-OS and may no longer be completely compatible.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 03, 2010, 02:50:56 am
What WhiteRose said. You should run RMX-OS manually.
Title: Re: [XP] RMX-OS
Post by: luchs on July 04, 2010, 02:52:02 pm
Hi,

I have two problems with the RMX-OS Script. I use the latest Version. My English is not good, so i have created a small video

http://www.youtube.com/watch?v=jHd5hgGzHrs

problem 1:
the game lags when another player connect and move around.

problem 2:
when Player 1 go to another map. player 2 is shown at the other map too.

can anyone help me?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 04, 2010, 04:16:39 pm
These problems cannot happen with the current version except if you are running it with Blizz-ABS in which case the bugs were reported weeks ago already. And I can't get to find the cause and fix it because it's impossible to track down the bug with one PC connected to the server.

As for the lag, make sure the network connection speed is adequate. You can't expect a server to run smoothly on a modem or ISDN connection.
Title: Re: [XP] RMX-OS
Post by: luchs on July 04, 2010, 05:02:13 pm
okay...

i use it with blizz-abs.

network-connection is over vdsl (20Mbit/s). the server has a 100Mbit/s uplink.

rly strange... i will check it without blizz-abs.

Thanks for help!

Title: Re: [XP] RMX-OS
Post by: luchs on July 05, 2010, 11:24:40 am
@Blizzard, without blizz-abs and the controller it works rly perfect!

can i help u to find the bug?

btw... a game-client with rmx-os works great under linux with wine! tested by me xD
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 05, 2010, 03:07:07 pm
Glad to hear it's running on wine. xD

It's a bit tricky. I first need to buy a new laptop before I can do anything.
Title: Re: [XP] RMX-OS
Post by: [Luke] on July 06, 2010, 11:20:42 am
Quote from: dudenextdoor on July 02, 2010, 07:20:18 pm
i launch the server using the GUI file (i realy cant find the info for use through cmd.exe) and i dont get any message, all the GUI do is 'Runing' then 'Not Runing' no matter how many times i click 'Run Server' it just dont go on

this why i'm having dificulties find a sollution, if i could get server to run and get some error message would be easier to solve, but right now, i dont get anay errors, it just dont boot, and all the 'checks' i do it seems be properly set...

Here comes the error message from my case, quite the same symptoms.
Spoiler: ShowHide
>ruby RMX-OS.rb
RMX-OS.rb:103:in `require': no such file to load -- ./Extensions/.rb (LoadError)
   from RMX-OS.rb:103:in `block in load_extensions'
   from RMX-OS.rb:98:in `each'
   from RMX-OS.rb:98:in `load_extensions'
   from RMX-OS.rb:169:in `<main>'
==========================================================================
RMX-OS Server v1.14
==========================================================================
Loading extensions...
>Exit code: 1

I bet that's the " EXTENSIONS = [''] " part from the cfg file that's guilty.

Oookey, and I'm pretty sure I'll be posting here some "how-to-add-that-script" questions.
Title: Re: [XP] RMX-OS
Post by: stripe103 on July 06, 2010, 12:42:44 pm
I believe it is. Have you tried to change it to:
EXTENSIONS = [""]
Title: Re: [XP] RMX-OS
Post by: [Luke] on July 06, 2010, 04:44:00 pm
Quote from: stripe103 on July 06, 2010, 12:42:44 pm
I believe it is. Have you tried to change it to:
EXTENSIONS = [""]


Yep. Hasn't changed anything. The problem is, probably, that somehow this line don't work.
if EXTENSIONS.size > 0

I'm quite new to RUBY, so: where the heck is the value of EXTENSIONS.size coming from?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 07, 2010, 02:06:49 am
Eh, you shouldn't edit the code of RMX-OS. That condition checks whether there are extensions so it can skip extension initialization and hence speed up the start up a but if there are not extensions.
Title: Re: [XP] RMX-OS
Post by: [Luke] on July 07, 2010, 03:34:52 am
Quote from: Blizzard on July 07, 2010, 02:06:49 am
Eh, you shouldn't edit the code of RMX-OS. That condition checks whether there are extensions so it can skip extension initialization and hence speed up the start up a but if there are not extensions.

You know, I've already figured that out - maybe I'm not an RGSS god like you, but that's not the first language I'm facing.
New error code.
>ruby RMX-OS.rb
C:/usr/RMX-OS 1.14/RMX-OS Server/Data/Server.rb:338:in `log': uninitialized constant RMXOS::Server::DEBUG_MODE (NameError)
from C:/usr/RMX-OS 1.14/RMX-OS Server/Data/Server.rb:391:in `force_shutdown'
from RMX-OS.rb:70:in `main'
from RMX-OS.rb:171:in `<main>'
==========================================================================
RMX-OS Server v1.14
==========================================================================
Loading extensions...
'BlizzABS.rb' v1.02 loaded and initialized.
Unexpected error occured!
uninitialized constant RMXOS::Server::DEBUG_MODE
./Data/Server.rb:338:in `log'
./Data/Server.rb:56:in `start'
RMX-OS.rb:56:in `main'
RMX-OS.rb:171:in `<main>'
>Exit code: 1

I've skipped the previous error just by adding an extension (Blizz-ABS one, in this place I'd like to give you one more hail from your humble worshipers).
Once again: I didn't change a thing. What is the problem anyway?

EDIT: SOLUTION!
Dudenextdoor, I bet that's your problem, too. In the first case, the guilty is the default GUI setting, which is
EXTENSIONS = [
''
]

while it should be
EXTENSIONS = [
]

The second error is caused by the lack of this line in cfg.ini, most probably it's GUI's fault again:
DEBUG_MODE = false


And that's it. Thank you Blizzard for wasting your precious time ;)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 07, 2010, 04:19:03 am
I didn't know you had coding experience. But it's better to report a bug rather than trying to fix it on your own since even though you may be a programmer, you don't know the system as such. Hack-fixes will only hurt you in the long run or even break other things in the short run.
I'm glad you got it working anyway.
Title: Re: [XP] RMX-OS
Post by: [Luke] on July 07, 2010, 06:08:01 am
Is that a bug or does RMXOS not save the player position? Whenever I log on, my character appears in the [1,1] position on the current map and as I checked, there is no row in the database in save_data that runs that.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 07, 2010, 06:10:12 am
Since you have edited the save data (as I saw in the other topic), you can't expect it to work. Told you that you shouldn't fix the system with hacks but first attempt to set it up properly.
Title: Re: [XP] RMX-OS
Post by: [Luke] on July 07, 2010, 06:58:16 am
Blizzie, you're gonna love this: I've just wrote down an twenty-line log of what I've done to ask you what else I should have done with those errors, and I stopped on this one:
QuoteThen, because I'm not an idiot, I've inserted all the ABS scripts UNCHANGED and ABOVE the RMXOS ones.

When I've read this, I fell on the floor laughing :D Looks I'm an idiot anyway :P

I would feel extremely uncomfortable and being nothing but pain in the ass now if I hadn't helped that "dudenextdoor" guy with config.ini. I feel like an idiot anyway, for wasting your precious time and misreading The Script Order despite reading it 4 times :D


PS. How to make sure that ABS controls [WSAD, ZXC] will be overwritten by typing, anyway?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 07, 2010, 09:34:47 am
Meh, it's alright. We all make mistakes.

The Blizz-ABS Controller will handle the typing problem. I didn't have time to implement it yet.
Title: Re: [XP] RMX-OS
Post by: [Luke] on July 07, 2010, 04:06:16 pm
Supposing you have more time for the Blizz-ABS Controller, would you consider adding the mouse? Well, just "adding" is something that even I could do, but what I mean is: moving at the mouse move (well, not that neccessary, and there are some scripts for that), clicking at the F5-chatbox, hotkeys and menu (the same - possible to do basing on existing scripts), and, what is beyond my scripting imagination, using mouse in the combat - at least as a target-select pointer (that would solve the online problem with the "Homing" and "Direct" skills and probably could change the AoE of Bow weapon category). But that would be an awesome plugin for Blizz-ABS itself, which I've heard you've retired from. So please call your padawans and tell them "hey, there's some n00b suggesting us making the Blizz-ABS looking like some outstanding WoW shit, go and slap him in the face 'cuz he's annoying... and start implementing that stuff if you can".

At the moment I'm working on a HUD and my game's skilltree database, but when I'm done I'll try to make an open-PVP plugin. Consisting not only open PVP on selected maps, which will be quite easy, but also "factions" of players and NPCs on those battlegrounds, which will probably beat me and my loosy Ruby scripting skills.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 07, 2010, 04:10:24 pm
Lol! It's already planned that I will make Blizz-ABS work properly with the Mouse Controller and RMX-OS.
Title: Re: [XP] RMX-OS
Post by: G_G on July 07, 2010, 04:14:17 pm
And we keep luring him into and pulling him back! Its actually working! HA!
Title: Re: [XP] RMX-OS
Post by: element on July 11, 2010, 03:04:24 pm
Don't know if this is suggested or planned yet but it looks like a cool idea to me for when you chat in the chat window when u type and send something the thing u say appeares above you in a speach bubble, It doesn't looks that hard to make... i think :p lol
Title: Re: [XP] RMX-OS
Post by: Wizered67 on July 11, 2010, 03:07:43 pm
Check the system section of the options script
CHAT_BUBBLES = true
Title: Re: [XP] RMX-OS
Post by: XxxZEROxxX on July 13, 2010, 06:50:41 pm
i can never turn the server and i looked in the help files :(
Title: Re: [XP] RMX-OS
Post by: WhiteRose on July 13, 2010, 06:58:24 pm
Quote from: XxxZEROxxX on July 13, 2010, 06:50:41 pm
i can never turn the server and i looked in the help files :(

I'm sorry, but your question isn't very clear. You're not going to get much help if you don't explain the problem a little more.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on July 13, 2010, 07:33:17 pm
To turn on the server, run the ruby program under "server" in the download.
Title: Re: [XP] RMX-OS
Post by: element on July 14, 2010, 05:39:54 am
Quote from: Wizered67 on July 11, 2010, 03:07:43 pm
Check the system section of the options script
CHAT_BUBBLES = true



Nice....  :haha:
Title: Re: [XP] RMX-OS
Post by: silverwind on July 15, 2010, 03:45:48 pm
Hi, this system looks very interesting.
Is there's a PvP battle system that works with it?
Title: Re: [XP] RMX-OS
Post by: stripe103 on July 15, 2010, 05:27:48 pm
If you use Blizz-ABS with it, yes. Be sure to use the "Blizz-ABS controller for RMX-OS"(search the script database).
Title: Re: [XP] RMX-OS
Post by: Trider250 on July 16, 2010, 04:19:53 pm
I have been trying to figure out something for about a year now. I gave up, but now I decided to try and ask this time.

I gave my friend the client to test the game to see if it would connect to my IP(Which I made static) He says it says offline. I can't figure out why it won't let him connect. In a older version of RMX-OS it would Say "Script Hanging" But it doesn't do that anymore. Can anyone help?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 16, 2010, 05:05:11 pm
RTFM. (Read the manual and FAQ, especially the FAQ.)
Title: Re: [XP] RMX-OS
Post by: Trider250 on July 16, 2010, 08:17:51 pm
I figured it out, Just had to open up the port. Thanks :)
Title: Re: [XP] RMX-OS
Post by: edwardthefma on July 23, 2010, 05:07:29 pm
uninitialized constant Action_Handler::USE_IP_BANNING
./Data/Action_Handler1.rb:70:in `try_login'
/home/gruadon/RMX-OSServer/Data/Client.rb:111:in `check_connection'
/home/gruadon/RMX-OSServer/Data/Client.rb:47:in `handle'
/home/gruadon/RMX-OSServer/Data/Server.rb:275:in `block in run'

im getting this every time 1 of my users trys to login

im using the newst ver of rmxos
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 23, 2010, 05:37:48 pm
You are not using the new cfg file.
Title: Re: [XP] RMX-OS
Post by: edwardthefma on July 23, 2010, 05:46:37 pm
 :^_^': thanks  :^_^':
Title: Re: [XP] RMX-OS
Post by: Magicks on August 09, 2010, 02:09:14 pm
have a little problem... if i open the trade window the chara moves when i click on some item
using --> Mouse Controller and Mouse Controller Enhancement
Title: Re: [XP] RMX-OS
Post by: WhiteRose on August 09, 2010, 02:16:11 pm
Quote from: Magicks on August 09, 2010, 02:09:14 pm
have a little problem... if i open the trade window the chara moves when i click on some item
using --> Mouse Controller and Mouse Controller Enhancement


I think you'll find more help with that issue in the Mouse Controller Thread, which you can find here:
http://forum.chaos-project.com/index.php/topic,4710.0.html
Title: Re: [XP] RMX-OS
Post by: Milo on August 15, 2010, 08:19:30 am
how do you trade in this? i tried but i cant figure it out :(

EDIT:
sorry for doublepost but, "I have retired from RMXP! Please do not send me PMs or e-Mails asking for support!"
does that mean blizzard is no longer supporting this online system he made?

Please don't double post. Go back and edit instead. ~ game_guy
Title: Re: [XP] RMX-OS
Post by: stripe103 on August 15, 2010, 08:32:34 am
I think that that is the only thing that he still support. He don't want to leave to many questions and problems about it.
Title: Re: [XP] RMX-OS
Post by: G_G on August 15, 2010, 10:09:35 am
He still supports all of his scripts. And tries to answer any question he can. And don't double post. Instead go back and edit your post.
Title: Re: [XP] RMX-OS
Post by: luchs on August 15, 2010, 10:59:59 am
hi,

how can i use different backgroundpictures in scene_servers?

lg
kanade
Title: Re: [XP] RMX-OS
Post by: G_G on August 15, 2010, 11:50:11 am
Just change the title screen in the database. Go to your Database, then go to the systems tab.
Title: Re: [XP] RMX-OS
Post by: Trider250 on August 15, 2010, 03:55:52 pm
How do I get the title screen to play BGM?, I can't figure it out.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 15, 2010, 04:10:46 pm
It's in the systems tab of the database. It's the title BGM.

@Milo: You should read the manual. It's the chat command "/trade USERNAME".
Title: Re: [XP] RMX-OS
Post by: Wizered67 on August 15, 2010, 04:24:53 pm
Actually Blizz, it doesn't play the title music. You have to add this line to Scene_Servers.
$game_system.bgm_play($data_system.title_bgm)
Title: Re: [XP] RMX-OS
Post by: Trider250 on August 15, 2010, 09:20:59 pm
thanks that worked :)
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 16, 2010, 03:01:16 pm
I must've forgotten it. I'll add it.
Title: Re: [XP] RMX-OS
Post by: Trider250 on August 16, 2010, 03:46:52 pm
How do I remove the password encryption for the game? I want to connect it to my websites db, but when I sign up on my website and try to log on to game it says wrong password. Or can I make it so the password is MD5 encrypted? That would be more preferable.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 16, 2010, 03:58:25 pm
You can alter the code if you want another password encryption. You can't turn it off. I mean you can by just editing that same piece of code, but that is really not a good idea.
As I said, you can simply implement your own encryption. Make sure to update the table users to allow more than 11 characters as password hash.
Title: Re: [XP] RMX-OS
Post by: Trider250 on August 16, 2010, 04:00:38 pm
ok, I think I found the part that creates the hash
Title: Re: [XP] RMX-OS
Post by: stripe103 on August 17, 2010, 03:18:29 am
I am thinking of installing Ubuntu on my server and was wondering if RMX OS work with it. I have seen that you can install Ruby on it but is there programs for MySQL Databases? Does anyone use Ubuntu or Linux in total to run RMXOS?
Because I can't get the current RMX-OS server to run on it so I thought I'd try with Ubuntu.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 17, 2010, 07:14:18 am
edwardthefma made a topic where he explained how to make RMX-OS run on Linux. Just look for it in the RGSS/RGSS2 section.
Title: Re: [XP] RMX-OS
Post by: Trider250 on August 20, 2010, 10:56:55 am
How would you make it so when you type a message and you press enter, it doesn't stay in the message box, cause it gets annoying to having to keep clicking F6. I tried to do it myself, only knowing PHP and JAVA, I tried to make it so if it is active and the user presses enter it makes it unactive. But it never works :/
Title: Re: [XP] RMX-OS
Post by: stripe103 on August 20, 2010, 12:30:52 pm
There we go. I can't find any more bugs.. for now.
Title: Re: [XP] RMX-OS
Post by: jrbault on August 23, 2010, 09:24:34 pm
Hey small problem. Whenever i start a new project with this when i try the game it doesn't show my characters. Anybody got an idea?
Title: Re: [XP] RMX-OS
Post by: Ryex on August 23, 2010, 11:10:56 pm
you will have to be more descriptive of you problem....
Title: Re: [XP] RMX-OS
Post by: jrbault on August 24, 2010, 10:36:16 pm
Never mind. For some reason i have to make the map slightly bigger then default because the characters don't start where you place the player start event.(whats up with that) anyway at least now i can work around it for now.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 25, 2010, 02:27:54 am
Starting a new game means you need to register a new account. If you change the scripts in the game (such as adding or removing Blizz-ABS) and use an older account, you WILL get unexpected behavior such as coordinate offset.
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 25, 2010, 07:26:41 pm
When configuring My SQL server after I press execute I get this error

"Error Nr. 1045
Access denied for user 'root'@''localhost' (using password: YES)
Title: Re: [XP] RMX-OS
Post by: Ryex on August 25, 2010, 07:32:15 pm
did you put the correct password in? is root even using a password?

that error is MySQL related NOT RMX-OS make sure the user information for the MySQL database is correct we can't help you with that
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 25, 2010, 07:34:31 pm
Quote from: Ryexander on August 25, 2010, 07:32:15 pm
did you put the correct password in? is root even using a password?

that error is MySQL related NOT RMX-OS make sure the user information for the MySQL database is correct we can't help you with that


I don't have a database setup yet. I installed My SQL and ran the config and that it the error I got.

edit: got it to work. Now I am having a problem with getting the server to work. I gone through all the steps and I am at the cfg part. I can't seem to get the GUI to find the SQL database.
Title: Re: [XP] RMX-OS
Post by: Ryex on August 26, 2010, 12:44:11 am
I've said this more than once and i'll say it again, if the Gui can't find the database the server won't, YOUR CFG IS WRONG, you have to point it to the correct ip, correct database AND use the right username and password. if you do all that, it will work, no exceptions.

also, just to let you know, if your having problems with the gui this is not the topic, the gui is developed independently and problems with it should be reported in the gui's topic. similarly problems with RMX-OS should be reported here
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 26, 2010, 02:50:03 am
The default configuration regarding the database is pretty much all you need. You only need to set up the username and password to be able to connect to the database.
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 26, 2010, 11:06:28 am
Quote from: Ryexander on August 26, 2010, 12:44:11 am
I've said this more than once and i'll say it again, if the Gui can't find the database the server won't, YOUR CFG IS WRONG, you have to point it to the correct ip, correct database AND use the right username and password. if you do all that, it will work, no exceptions.

also, just to let you know, if your having problems with the gui this is not the topic, the gui is developed independently and problems with it should be reported in the gui's topic. similarly problems with RMX-OS should be reported here


No need to be rude, it your going to help me and be a "teacher" then you have to have patience.

Blizzard thank you, your response was adult.  

Edit: Thanks Blizzard got it to work. Awesome!
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 26, 2010, 11:53:27 am
Actually Ryex had a good reason to get mad since you disregarded his advice (at least from what your posts make it sound like).
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 26, 2010, 03:37:14 pm
I have RMX-OS all setup and working correctly. After which I decided to add scripts and following  some trial n' error I got the game to load correctly and with no start up errors. However, now I am getting this when trying to connect to the the server.

"Error! Your Client is out of date! Client Version: 1.15; Server Version: 1.15"

Spoiler: ShowHide
(http://img841.imageshack.us/img841/3489/25368872.png)



This is a list of scripts I am using and their order;

Spoiler: ShowHide
# Item Storage/Author game_guy/Version 1.2
# Mouse Map Menu/Nathmatt/Version: 1.14
# Achievements Script/Game_guy
#Tons of Add-ons/Blizzard/Version: 7.39b
# RMX-OS/Options/Version: 1.15
# RMX-OS/Script/Version: 1.15
# Global Switches and Variables/Blizzard/Version: 1.01
# Blizz-ABS/Blizzard and winkio/Version: 2.79
# Versioning/Blizzard/Version: 1.0
# Item Storage RMX-OS addon/Author game_guy/Version 1.2
# Weapon Training System/NAMKCOR
# Critical for Blizz-ABS/Blizzard/Version: 1.0
# Secondary Weapon for Blizz-ABS/Blizzard/Version: 1.0b
# EXP in HUD for Blizz-ABS/Blizzard/Version: 1.01b
# Auto-Targeting for Blizz-ABS/Blizzard/Version: 1.11b
# Blizz-ABS Controller for RMX-OS/Blizzard/Version: 1.02
# Advanced Time and Environment System (ATES)/Blizzard/Version: 0.4
# Global Day-and-Night System for RMX-OS/Blizzard/Version: 1.03
# Continuous Maps/Blizzard/Version: 1.0
# Mouse Controller/Blizzard/Version: 2.0b
# Mouse Controller Enhancement Script/Nathmatt/Version: 1.43
# DREAM controller for Save Files/Blizzard/Version: 3.0b
# Quest Log System/Author game_guy/Version 3.0
# Quest Log System addon for RMX-OS/Author game_guy/Version 3.0
# RMX-OS Main



Edit: Has to do with Versioning am checking into it now to see what I didn't do.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 26, 2010, 03:46:18 pm
There are a lot of things wrong there (order is not one of them xD).

1. When you use Versioning, make sure that the version specified in the server extension AND in the client plugin match. By default both should be on version 1.

2. Continuous Maps does not work with RMX-OS (and it never will). In fact it's buggy right even without RMX-OS, I didn't have time to fix it yet. When you fix the version bug, the game will either automatically crash or start behaving weird before it crashes. It might not crash, but it will definitely not work with RMX-OS.

3. You don't need DREAM when using RMX-OS. The save data is on the server anyway.

4. Achievements will probably not work as it uses a local file for that.

5. Make sure your additional scripts have additional configuration for save data for RMX-OS or configure it yourself (such as Weapon Training, etc.).
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 26, 2010, 04:09:33 pm
I went ahead and removed versioning for now since I don't even have the game runnning or created yet. I removed a few other scripts that weren't setup for RMX-OS, deal with them later. Now I can load the game log in, make account, etc. once I login to my user name the game goes to a screen the shows the loading background and the word loading, game just sits there. I've been letting it sit, but has done anything. What did I do lol?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 26, 2010, 05:03:37 pm
Consider the database as your save data. If you add or remove scripts, the ones that say that they will corrupt save data will corrupt your database and you need to empty it. You could say that the save data from the accounts that were created before you removed the scripts aren't compatible with the game anymore. It will either stay in the loading screen or it will enter the game but behave in a weird way immediately or later and probably cause a crash eventually.
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 26, 2010, 05:12:49 pm
I deleted the whole database and recreated it and still have the same problem.

Edit:

Steps I took;

1. Downloads RMX-OS/My SQL/Navicat Lite

2.Use manual to install/setup:RMX-OS and My SQL

3. Run test/log into game/create new account

4. Download additional scripts/added them to client game

5. Deleted database/Created new database

This is where I am now. I can't get the client game after logging in to go past a screen the saying loading....

I am sure it is a simple fix, I hope, I did delete the database in case of save data corruption.

This is what I have running on my desktop

Spoiler: ShowHide
(http://img201.imageshack.us/img201/6899/60037084.png)


Edit:

Could it have to do with the extensions? I installed them by opening notepad copy&past then save as filename.rb. I was looking in the manual and I don't think that is the correct way to do it, but I can't open the ExtensionSkeleton in rudy or other program to "install" them that way. Could that be my problem?
Title: Re: [XP] RMX-OS
Post by: Ryex on August 26, 2010, 07:39:09 pm
actually you created the files correctly by that is not the problem... the loading screen means that it is retrieving you save data from the server is it if gets stuck there that means that it is not receiving data...
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 26, 2010, 07:49:24 pm
Quote from: Ryexander on August 26, 2010, 07:39:09 pm
actually you created the files correctly by that is not the problem... the loading screen means that it is retrieving you save data from the server is it if gets stuck there that means that it is not receiving data...


What should I do to fix that? I cleared out the database and even tried to make a new user name and log in and it was still doing the same thing. So do I need to reinstall My SQL or something?
Title: Re: [XP] RMX-OS
Post by: Ryex on August 26, 2010, 08:18:58 pm
your could try restarting the server, but other than that there is no fix.
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 26, 2010, 08:29:28 pm
Quote from: Ryexander on August 26, 2010, 08:18:58 pm
your could try restarting the server, but other than that there is no fix.



I've restarted it a few times. That seems to be a rather large hole it the functionally of the system. I can use a unchange version, without added scripts, and it will connect and load fine. So does it have something to do with the added scripts? I have them all in the right order and they all seem to be functioning right. Do I need extensions for all of the added scripts? They are all made by blizzard and most of them are either designed for RMX-OS or have an extension for it.  

edit: I fixed the problem everything works just fine now. It was the global switches and variables script, once I removed it I had no more problems. Not sure why it was causing it.

*edit: How can I make it that the chat box is on the top of the screen instead of the bottom?

**edit: I am using One-Man CMS everything is working just find, but the players name plate is still shown through the CMS. How can I change that to where it doesn't show through?

Spoiler: ShowHide
(http://img828.imageshack.us/img828/7392/15747521.png)



Link to the CMS
Spoiler: ShowHide
http://forum.chaos-project.com/index.php?topic=1138.0
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 27, 2010, 02:15:39 am
The Global Switches and Variables server extension intercepts the initial loading sequence and doesn't let it finish until the switch and variable data is sent back to the client. The client plugin expects the extension to send data and doesn't finish the loading until it gets the data. That's why it kept freezing.

To fix the graphic bug, try increasing the Z coordinates of the windows in the CMS.
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 27, 2010, 07:55:38 am
Alright I get it now, the more I think about it I don't know if I had the Extension for the Global switch and variable in the extensions folder or not, prolly why is wasn't working. Anyways, thanks for the help with the CMS I will try when I get home from work today to see if I can get it to work. Also is there a way to get the chat box to be on the top left hand side of the screen instead of the bottom left? I have the HUD at the bottom and it sort looking odds when you first load into the game that they are overlaping. Thank you again.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 27, 2010, 08:53:23 am
Find where Frame_Chat is created and change the x coordinate to 0.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on August 28, 2010, 01:10:20 am
I think I'm on the right track, but how do you add a message to the chatbox?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 28, 2010, 05:06:14 am
What do you mean? You type in a message in the chat input box.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on August 28, 2010, 12:09:29 pm
Nevermind.
Title: Re: [XP] RMX-OS
Post by: Trider250 on August 30, 2010, 06:16:25 pm
If I wanted to display the users level to everyone in their username? would it be easily possible?
here is an example:

Trider250 [lvl 3]
Blizzard [lvl 58]
etc.

Like I know I would have to find the lvl variable
but where is the area in the script that the username is displayed?
Title: Re: [XP] RMX-OS
Post by: ojp2010 on August 30, 2010, 07:10:30 pm
Is there a way to disable other direct keys when typing is on. To better explain would be I am using direct hotkeys to call scene, I have a help screen 'H' calls the scene. When I press 'F6' and start typing if I press 'H' it calls the help scene. So I am wanting that once you hit F6 all controls disable so that you can type without calling scenes.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 31, 2010, 02:40:00 am
The next version of the Blizz-ABS Controller will have that problem fixed.

@Trider250: I think that takes away the fun in the game. I played once an MMO a few years ago and it was fun to dress up with noob equipment and kill off PKers when they attacked me or the noobs around me that were grinding EXP. In fact it was hilarious. I couldn't have done that if my level was displayed above my head all the time. D:
Title: Re: [XP] RMX-OS
Post by: [Luke] on September 04, 2010, 07:12:33 am
Okay, I'm trying to make a plugin for Scene_Waypoints script...
#==============================================================================
#   Diablo 2 Waypoints
#   by arevulopapo
#   Feb 9th 2007
#
#
#   To call the Waypoint scene use the "Call script" event command:
#   $scene = Scene_Waypoint.new(parameter)
#   where 'parameter' is the index of the waypoint you're using.
#
#   If you want to activate a waypoint without "touching" it
#   call a script like this:
#   $game_system.waypoints_active << index
#   where 'index' is the index of the waypoint you want to activate.
#
#   See the comments in the Game_System section (right below)
#   for informations on how to customize.
#
#==============================================================================
class Game_System
  #--------------------------------------------------------------------------
  attr_accessor :waypoints
  attr_accessor :waypoints_active
  attr_accessor :waypoint_sound
  #--------------------------------------------------------------------------
  alias game_system_initialize initialize
  #--------------------------------------------------------------------------
  def initialize
    #--------------------------------------------------------------------------
    # Here you can change the sound played while teleporting
    #--------------------------------------------------------------------------
    @waypoint_sound = "Audio/SE/020-Teleport03"
    #--------------------------------------------------------------------------
    @waypoints = []
    #--------------------------------------------------------------------------
    # Here you add new waypoints. The formula is like this
    # ["Name", map_id, player_x, player_y]
    #--------------------------------------------------------------------------
    @waypoints << ["Drasgora", 5, 143, 76] # This is the first waypoint. Its index is 0
    @waypoints << ["Admin Hideout", 4, 13, 14] # This is the second waypoint. Its index is 1
    @waypoints << ["Train Ground", 14, 24, 18] # 2, monster testing zone
    #--------------------------------------------------------------------------
    @waypoints_active = []
    game_system_initialize
  end
  #--------------------------------------------------------------------------
end
#==============================================================================
#==============================================================================
class Window_Waypoint_Name < Window_Base
  #--------------------------------------------------------------------------
  def initialize(waypoint_name)
    super(0,0,320,64)
    self.contents = Bitmap.new(288,32)
    self.back_opacity = 160
    @waypoint_name = waypoint_name
  refresh
  end
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    self.contents.draw_text(0,0,288,32,@waypoint_name.to_s,1)
  end
  #--------------------------------------------------------------------------
end
#==============================================================================
#==============================================================================
class Window_Waypoint_List < Window_Selectable
  #--------------------------------------------------------------------------
  def initialize
    super(0, 64, 320, 416)
    self.back_opacity = 160
    refresh
    self.index = 0
  end
  #--------------------------------------------------------------------------
  def refresh
    if self.contents != nil
      self.contents.dispose
      self.contents = nil
    end
    @item_max = $game_system.waypoints.size
    self.contents = Bitmap.new(288, @item_max * 32)
    for i in 0..@item_max - 1
      draw_item(i)
    end
  end
  #--------------------------------------------------------------------------
  def draw_item(index)
    x = 0
    y = (index) * 32
    if $game_system.waypoints_active.include?(index)
      self.contents.font.color = normal_color
    else
      self.contents.font.color = disabled_color
    end
    self.contents.draw_text(x, y, 288, 32, $game_system.waypoints[index][0].to_s, 1)
  end
  #--------------------------------------------------------------------------
end
#==============================================================================
#==============================================================================
class Scene_Waypoint
  #--------------------------------------------------------------------------
  def initialize(waypoint)
    @waypoint = waypoint
    $game_system.waypoints_active << @waypoint unless $game_system.waypoints_active.include?(@waypoint)
  end
  #--------------------------------------------------------------------------
  def main
    @spriteset = Spriteset_Map.new
    @name_window = Window_Waypoint_Name.new($game_system.waypoints[@waypoint][0])
    @list = Window_Waypoint_List.new
    if $game_player.screen_x < 320
      @name_window.x = 320
      @list.x = 320
    end
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @spriteset.dispose
    @name_window.dispose
    @list.dispose
  end
  #--------------------------------------------------------------------------
  def update
    @list.update
    if Input.trigger?(Input::C)
      if $game_system.waypoints_active.include?(@list.index)
        Audio.se_play($game_system.waypoint_sound)
        $game_screen.start_flash(Color.new(255,255,255,160), 5)
        $game_map.setup($game_system.waypoints[@list.index][1])
        $game_player.moveto($game_system.waypoints[@list.index][2], $game_system.waypoints[@list.index][3])
        $game_player.straighten
        $game_map.update
        $game_map.autoplay
        $scene = Scene_Map.new
        Graphics.transition(20)
      else
        $game_system.se_play($data_system.buzzer_se)
      end
    end
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Map.new
    end
  end
  #--------------------------------------------------------------------------
end


Script works fine, nut doesn;t save visited waypoints.
The variable which saves visited waypoints is $game_system.waypoints_active, so I thought it will be enough to make this plugin for RMX-OS:
module RMXOS
  module Options
    SAVE_DATA[Game_System].push('@waypoints_active')
  end
end

Of course the plugin is BELOW RMX-OS script.
Unfortunately, it raises an error whenever I call Scene_Waypoint...
Script 'Waypoints'line 107: NoMethodError occured.
undefined method 'include?' for nil:NilClass

Looks like I screwed something up.
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 04, 2010, 07:23:50 am
Quote from: Blizzard on August 26, 2010, 05:03:37 pm
Consider the database as your save data. If you add or remove scripts, the ones that say that they will corrupt save data will corrupt your database and you need to empty it. You could say that the save data from the accounts that were created before you removed the scripts aren't compatible with the game anymore. It will either stay in the loading screen or it will enter the game but behave in a weird way immediately or later and probably cause a crash eventually.
Title: Re: [XP] RMX-OS
Post by: nathmatt on September 04, 2010, 09:47:04 am
im trying to make a controller for my Battle Dome script but my problem is i can't get it to send the information to the other clients im using this in the script

Spoiler: ShowHide
alias check_game_battle_dome check_game
def check_game(message)
  case message
  when /\ABC(.+)\t(.+)\t(.+)\t(.+)\t(.+)\t(.+)/
    if !self.party.include?($1) && @map_players.has_key?(get_user_id($1))
      @events.push($game_map.events[$2.to_i])
      $game_map.events.detete($2.to_i)
    elsif @map_players.has_key?(get_user_id($1))
      @battle_starter = get_user_id($1)
       $game_map.events[$2.to_i].location = $3.to_i,$4.to_i,$5.to_i,$6.to_i
    end
    return true
  end
  return check_game_battle_dome(message)
end
 
def send_battle_callers_data(event_id,m,x,y,d)
   self.send("BC#{@user_name}/t#{event_id},/t#{m}/t#{x},/t#{y},/t#{d}")
end
   
def get_user_id(user)
  @players.each{|player|
   if player.username == user
     return player.user_id
   end}
end


and this in the extension

Spoiler: ShowHide
def self.client_update(client)
  case client.message
  when /\ABC(.+)\t(.+)\t(.+)\t(.+)\t(.+)\t(.+)/
    return true
  end
return false
end
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 04, 2010, 09:59:22 am
Look, you'll have to figure this one out on your own. There's lots of things involved and I can't really see anything that is right with that extension. For beginners, there are no variables @players or @map_players or @user_name for that matter. I don't even know why this hasn't crashed your server yet. The extension probably died during runtime without you even noticing.
Title: Re: [XP] RMX-OS
Post by: nathmatt on September 04, 2010, 10:20:22 am
that was the only thing i really changed in the skeleton besides the name on the extension

edit:  i was doing everything client side so i was trying to just tell the server to send the message
edit2:i have that in the RMXOS::Network class where those variables are defined but i cant get it to send the message that's really all im asking i can fix the rest when i get the message to be sent
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 04, 2010, 10:37:13 am
Ah, alright. I thought that one was serverside.

You should be able to send that message. Turn on message logging on the server and check if the message arrived. If you sent it, it WILL arrive (unless the connection breaks down). So if the message is not arriving on the server, the error is somewhere else. Probably that Network::send you used is never called.
Title: Re: [XP] RMX-OS
Post by: nathmatt on September 04, 2010, 11:45:29 am
ok the log says its being sent so it has to be on my client side thx at least i know the message is being sent i will play around with it to see what im messing up on the client
Title: Re: [XP] RMX-OS
Post by: Billy on September 05, 2010, 07:16:36 pm
My 'RMX-OS Manual' doesn't work. Whenever I open it says 'Navigation to the webpage was cancelled'  :( Could someone maybe send me a copy that works, or paste it onto a WordPad or Notepad document...or maybe get mine to work?

Would appreciate your help a lot :D
Title: Re: [XP] RMX-OS
Post by: bradhawk on September 06, 2010, 01:26:23 am
@billy
Quote from: Blizzard
Author's Notes

If you have problems opening the .chm manual file, please read this article: http://blogs.technet.com/seanearp/archive/2007/05/28/can-t-read-chm-compiled-help-on-vista-xp-2003.aspx
The solution is at the bottom, you don't need to read the whole article.



well, blizzy .. im looking for new update for the controller :D
Title: Re: [XP] RMX-OS
Post by: Billy on September 06, 2010, 04:16:28 pm
Thanks bradhawk, feel stupid for missing that  :shy:

**EDIT**
I've got everything running (I think) but when I try to log in i get a message saying "Server did not respond."
Sorry for all the questions but I just want to know what i'm doing wrong. My server status is Online, and i have the database set up.

P.S; If I try logging in after getting that message I get an error message saying;

Script '(RMX-OS) Script' line 2285: Errno::ECONNABORTED occurred.
An established connection was aborted by the software in your host machine.
Title: Re: [XP] RMX-OS
Post by: ojp2010 on September 06, 2010, 07:06:06 pm
You need to register a new log in name if you are logging in for the first time.
Title: Re: [XP] RMX-OS
Post by: stripe103 on September 07, 2010, 03:05:22 am
Quote from: ojp2010 on September 06, 2010, 07:06:06 pm
You need to register a new log in name if you are logging in for the first time.

It would say that the username is not registered.

Did you set up all script extensions right?
Title: Re: [XP] RMX-OS
Post by: ojp2010 on September 07, 2010, 09:07:52 am
If I empty all my tables and try to log in with nothing in the username and password fields, I get that return. I don't know thought it may help. lol. Let you guys figure it out. :)
Title: Re: [XP] RMX-OS
Post by: Billy on September 07, 2010, 09:15:25 am
It works now, thanks for the help. After creating 3 accounts it finally let me log in without the error  :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 07, 2010, 10:58:24 am
Your network must have been slow then.
Title: Re: [XP] RMX-OS
Post by: ojp2010 on September 09, 2010, 07:43:25 pm
I am having a problem setting up my server to the public. Here is what I have done so far.

RMX-OS Options Script:
Spoiler: ShowHide

     #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Server Connection Settings
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    SERVER_REFRESH = 400
    SERVER_TIMEOUT = 200
    SERVERS.push(['Localhost', '75-107-249-128.cust.wildblue.net', 55781])
    #SERVERS.push(['Me', '5.133.77.216', 54269])
    #SERVERS.push(['BlizzDev', '161.53.76.80', 54269])
    #SERVERS.push(['My Server', 'www.myserver.net', 54269])
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


RMX-OS Config:
Spoiler: ShowHide
NAME = 'RMX-OS Server'
HOST = '75-107-249-128.cust.wildblue.net'
PORT = 54269
RMXOS_VERSION = 1.15

LOG_MESSAGES = false
LOG_ERRORS = true
LOG_ACTIONS = true

DEBUG_MODE = false

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 30
AUTO_RESTART = true
RESTART_TIME = 5
USE_IP_BANNING = true
PREVENT_ZOMBIE_CLIENTS = false
RUBY_PROMPT = false
OPTIMIZE_DATABASE_ON_STARTUP = true
DATABASE_CONNECTION_TIMEOUT = 60

SQL_HOSTNAME = 'localhost'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'andreavnn10'
SQL_DATABASE = 'rmxosdb'


What is happening when I start the server:
Spoiler: ShowHide
(http://img683.imageshack.us/img683/7984/91723193.png)


Port Checker:
Spoiler: ShowHide
(http://img72.imageshack.us/img72/6347/77763883.png)


EDIT: Client is working, but the server isn't.  Still getting the same error with it.
Title: Re: [XP] RMX-OS
Post by: Ryex on September 10, 2010, 01:52:40 am
*facepalm* dude, look backwards in the topic there is at least three cases of this being fixed, the problem is that the host address you set up is wrong. look backwards and find the information for the proper setup (I don't feel like finding it for you)
Title: Re: [XP] RMX-OS
Post by: ojp2010 on September 10, 2010, 07:49:42 am
Quote from: Ryexander on September 10, 2010, 01:52:40 am
*facepalm* dude, look back wards in the topic there is al least thee cases of this being fixed, you host. the problem is that the host address you set up is wrong. look backwards and find the information for the proper setup (I don't feel like finding it for you)



Thanks I will have to check. I just don't have time to troll or search for stuff anymore. I barely get time to even work on my porject cause of work and school. I get stuck and just post log off and sleep. Thanks again, I will check back. Sorry for being an inconvenience.
Title: Re: [XP] RMX-OS
Post by: Ryex on September 14, 2010, 03:30:40 pm
Hey Blizz, look what I found! http://lthzelda.wordpress.com/2010/04/28/rm-4-tcp-sockets-in-rpg-maker-vx/ (http://lthzelda.wordpress.com/2010/04/28/rm-4-tcp-sockets-in-rpg-maker-vx/)
they guy used code from RMX-OS to do something similar in VX, however he managed to get the server on the client side threaded and thread safe via a Mutex block.
its in the "Game Prototype 2: An Online Community" section
might want to check it out.
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 14, 2010, 04:33:04 pm
I took a quick look at it. I'm not sure if VX can use threads properly, but unless it uses Ruby 1.9.x, it can't. The threads are not real threads and hence one shouldn't bother with synchronization since everything is running sequentially anyway. He might as well use a normal sequential code. The other main reason why I didn't do it is because WinAPI calls are always blocking. They can't be non-blocking. And even if you use virtual-threaded Ruby code, it will freeze in the whole application when it comes across an API call.
I am going to make the data exchange system a bit better and more generic so it's easier to add additional data. I'm having in mind the same subsystem that I used in the Blizz-ABS Controller. The interest algorithms for data exchange he is mentioning can heavily improve performance. Currently the only actual interest areas are maps. But that can be changed. It will increase server load, but it should decrease network load.

As for the rest, by all means, if he can reuse more RMX-OS code, he should. I tried to design specific aspects generically so the very core of RMX-OS can be easily transferred onto VX (pretty much the Network class and everything inside module RMXOS).

He's got a lot figured out already after all. Even why I used tab characters as parameter delimiters in the network communication protocol. xD

An interesting remark I have noticed is the socket code coming from Ruby 1.8.1. Honestly, that's the same way I found it. I couldn't find the original in Ruby 1.8.1 either. O_o

EDIT: Yay, I posted a comment. xD As soon as the moderation staff approves of the comment, you should be able to see it.
Title: Re: [XP] RMX-OS
Post by: Magus on October 01, 2010, 09:49:32 pm
UPDATING PROBLEM:
Seriously, this is annoying...  
Spoiler: ShowHide
(http://i55.tinypic.com/zx31hs.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 02, 2010, 05:23:26 am
You have added a plugin into the client and not added the server extension or vice versa.
Title: Re: [XP] RMX-OS
Post by: Magus on October 02, 2010, 09:17:50 pm
OKay, I require a little assistance here.

I need to make it so people can actually connect to the server. I have two laptops, so testing this is much easier.

I included in the installation:  rtp standard, rgss10e.dll.  And of course the game.exe, audio data graphics,


What else... How do I make it so that they're able to connect?
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 03, 2010, 06:38:54 am
http://forum.chaos-project.com/index.php/topic,41.0.html

I think that this is all, though.
Title: Re: [XP] RMX-OS
Post by: Magus on October 05, 2010, 02:01:56 pm
Okay, this is bad. Very bad. My clients are UNABLE to save in Rmx-mos. The autosave is working fine for me, but not the client O_O

Edit: it would be nice if someone cooked up a script in which someone could load their game within the game. Much like the "save game" feature, but instead, you're loading the game. A call script for this would be nice.
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 05, 2010, 03:11:26 pm
Just log out and then back in. It takes almost the same amount of time.
Title: Re: [XP] RMX-OS
Post by: Magus on October 05, 2010, 06:57:14 pm
No, I mean literally, it makes the Client start the game all the way back over. As in level 1..
Title: Re: [XP] RMX-OS
Post by: Wizered67 on October 05, 2010, 07:07:09 pm
If thats happening, then there is something wrong with you database probably.
Title: Re: [XP] RMX-OS
Post by: nathmatt on October 06, 2010, 11:21:24 am
what color format are you using in the server i tyed to send a msg using Color.new  but it didn't sent it it does it i use 1 of the colors you made so i just wanted to know what format that was
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 06, 2010, 02:38:18 pm
I am using raw byte data in form of a string to transmit the message. On the client you can simply use this:

$network.send_chat_message(message, color)


This will automatically translate it into a format that the server and other clients can read.
On the server you have to use something else.

client.send("CHT\xFF\x7F\x00\t0\tThis is a message")


This one would send the message "This is a message" from the server (hence ID 0 after the first tab character) in an orange color (FF7F00 color code encoded with \xFF\x7F\x00 into the string).
Title: Re: [XP] RMX-OS
Post by: Magus on October 06, 2010, 06:39:35 pm
Okay, I have a slight problem here. I updated one of my clients  recently and now, he's unable to log in: even though his account still exists in the database. Is there anyway I could recover his account? Maybe there should be a script that goes with the "user logging" system that documents both username and password
Title: Re: [XP] RMX-OS
Post by: Ryex on October 06, 2010, 06:49:55 pm
the GUI can change passwords. also before the password leaves the client it is always hashed and can't be recovered, you can only change it
Title: Re: [XP] RMX-OS
Post by: Magus on October 06, 2010, 07:13:00 pm
I can't get GUI to work D: It closes automatically :/


Edit:
nvm, I got GUI to work xD

Edit 2:
Okay, GUI gives me an error whenever I attempt to load the user list. Fail. ;_;
Title: Re: [XP] RMX-OS
Post by: Ryex on October 06, 2010, 08:18:23 pm
dose it give an error before that?
Title: Re: [XP] RMX-OS
Post by: Magus on October 06, 2010, 08:38:17 pm
It works fine until I attempt to load the user list. I wish there was another way I could find a user's password D:
Title: Re: [XP] RMX-OS
Post by: Wizered67 on October 06, 2010, 08:42:58 pm
There is an in-game command for admins to change passwords if that would help.
Title: Re: [XP] RMX-OS
Post by: Ryex on October 06, 2010, 08:55:50 pm
Quote from: Magus on October 06, 2010, 08:38:17 pm
It works fine until I attempt to load the user list. I wish there was another way I could find a user's password D:


no, no
it will give a SQL error or other exception that displays before it says it can't load the list, what dose the THAT error say?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on October 25, 2010, 04:50:32 pm
Hey Blizz, I know you're retired, but I think I found a glitch.
When you send a global message, everyone will get it, but instead of saying your username first, it only says ': mymessagehere' and no name. However, if you send a global message while you are on the same map as the other person it will show your name and even if you change maps from that point on it will show their name....
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 25, 2010, 04:53:37 pm
So if you enter the game in another map and send a message before getting together into the same map of the player, there is no name?
Title: Re: [XP] RMX-OS
Post by: nathmatt on October 25, 2010, 05:36:02 pm
sounds like hes saying when you send global messages the only players that see the senders name is the players on the same map or maps you have been on
Title: Re: [XP] RMX-OS
Post by: Wizered67 on October 25, 2010, 05:40:07 pm
Quote from: Blizzard on October 25, 2010, 04:53:37 pm
So if you enter the game in another map and send a message before getting together into the same map of the player, there is no name?

Ya, pretty much.
Title: Re: [XP] RMX-OS
Post by: Ryex on October 25, 2010, 07:18:47 pm
Quote from: Wizered67 on October 25, 2010, 04:50:32 pm
Hey Blizz, I know you're retired, but I think I found a glitch.
When you send a global message, everyone will get it, but instead of saying your username first, it only says ': mymessagehere' and no name. However, if you send a global message while you are on the same map as the other person it will show your name and even if you change maps from that point on it will show their name....


its because the client cant find a reference to the client id that sent the chat message, I tried to get around it in my rewrite of the chat system by sending that name along with the message but it still failed some times.

one of these days I'm planning to write a channeled chat system plugin and overhaul the entire system
Title: Re: [XP] RMX-OS
Post by: Wizered67 on October 25, 2010, 07:21:59 pm
So there isn't anything I can do about it..... Oh well.

edit: Oh darn, I just noticed it does that with whispering also.
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 26, 2010, 02:44:45 am
I think the bugfix is very simple here. I probably use @map_players instead of @players to get the username.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on October 26, 2010, 10:25:33 am
Where would I be able to change that?
Title: Re: [XP] RMX-OS
Post by: Blizzard on October 26, 2010, 10:34:30 am
It seems to be doing that already actually. You'll have to wait until I find the time to look into it.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on October 26, 2010, 03:43:34 pm
Ok, thanks for looking into it.
Title: Re: [XP] RMX-OS
Post by: wingish on November 18, 2010, 10:46:50 am
I cannot get Blizz-ABS to work with RMX-OS. Enemies are inactive, I cannot attack them,and they don't move around.
I do not think that the Event is considered as a enemy, although I have added the \e[#X].
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 18, 2010, 11:17:18 am
http://forum.chaos-project.com/index.php/topic,23.0.html
Title: Re: [XP] RMX-OS
Post by: wingish on November 18, 2010, 07:24:56 pm
My scripts are in order, however the enemy remains inactive.
Title: Re: [XP] RMX-OS
Post by: Ryex on November 18, 2010, 08:06:37 pm
are you sure that the BABS plugin is on? it will tel you when you start the server if it loaded it
Title: Re: [XP] RMX-OS
Post by: Noob on November 23, 2010, 04:36:55 pm
Hey, as the name suggests, I'm a noob and don't know much about servers, etc. But I got mySQL, Navicat, and Ruby, and could somebody please tell me a free site/program that can give a server URL or IP Address or account or SOMETHING so that my computer doesn't have to be the server and be turned on 24/7 and not let me do anything because all its power is being devoted to running my game? Thanks!  :)
Title: Re: [XP] RMX-OS
Post by: Ryex on November 23, 2010, 09:09:47 pm
it doesn't exist. you could get a VPS for about $20 a month that could do what you wanted for a very small amount of people but really unless you build or get another computer to be the server you have to buy space
Title: Re: [XP] RMX-OS
Post by: wingish on December 05, 2010, 12:07:19 am
How do I replace the chat window with a picture?
Title: Re: [XP] RMX-OS
Post by: Ryex on December 05, 2010, 12:12:25 am
you learn RGSS. the process isn't a simple add a few lines of code here and boom, so unless you know RGSS there is no simple answer.
Title: Re: [XP] RMX-OS
Post by: wingish on December 05, 2010, 12:14:35 am
I would just like to know where the creation of the window would be. I thought it would be like the hud, where it just displays a color.
I would like to know where/how the window is created, and how to get rid of it without removing the chat functions. Basically I want the chat on the map so I can put a picture underneath it to replace it.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on December 05, 2010, 02:03:49 am
I can't really help you, but I can point you in the right direction. If you look, you will see that the chatbox is based off of FrameChat. You may also notice that this is based off of Frame. From there I noticed a method called create_backround_sprite. You try to take it from there, that's as far as I can go.
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on December 05, 2010, 02:15:17 am
Place this under "RMX-OS (Script)", or at the end of it.

class Frame

  def create_background_bitmap
    @background.bitmap = Bitmap.new(FILENAME_OF_YOUR_PIC)
  end
end


If you have the pic in your pictures folder, set the filename as:
RPG::Cache.picture('FILENAME')
Title: Re: [XP] RMX-OS
Post by: wingish on December 05, 2010, 03:39:54 am
Thank you both for your help. The script you provided me didn't work, however the information Wizered provided me did.
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on December 05, 2010, 03:54:14 am
Its the same thing. I just added a way to change what bitmap is used. If it doesn't work. you didn't do it right.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 05, 2010, 04:01:23 am
OH SNAP! i retract my previous statement as I completely forgot about that

also note that doing what Zero0 said will change ALL frames to use that background picture so it would be best to do this


class Frame_Chat

  def create_background_bitmap
    @background.bitmap = RPG::Cache.picture('<FILENAME FOR MAIN CHAT WINDOW>')
  end
end

class Frame_ChatInput

  def create_background_bitmap
    @background.bitmap = RPG::Cache.picture('<FILENAME FOR CHAT INPUT WINDOW>')
  end
end



simply replace <FILENAME FOR CHAT INPUT WINDOW> and <FILENAME FOR MAIN CHAT WINDOW>  with the file name of the picture you wish to use in the images folder
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 05, 2010, 05:47:13 am
Hey, I did quite a nice job making this modular. :self-absorbed:
Title: Re: [XP] RMX-OS
Post by: Ryex on December 05, 2010, 05:48:43 am
yes you did Blizz, yes you did. :parsing-Blizz:
Title: Re: [XP] RMX-OS
Post by: wingish on December 05, 2010, 05:57:58 am
Quote from: Blizzard on December 05, 2010, 05:47:13 am
Hey, I did quite a nice job making this modular. :self-absorbed:


Your ego is getting to big. If it gets any bigger, your intelligence and ego will take up to much space and your head will explode :D
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 05, 2010, 06:40:59 am
That will never happen because my intelligence is nonexistent. I sold it along with my soul for a big ego. Since my intelligence is gone I'm not even questioning if that was a good decision. :V
Title: Re: [XP] RMX-OS
Post by: Weasel on December 08, 2010, 10:57:14 pm
Thank you for making this Blizzard, it's a really awesome script. I have a question though.

When I get two players connected, there's obviously a small lag spike, but the main issue I have is that the other player looks like they're jumping around from space to space and you can't really see them walking(it looks like they're lagging). However, my character is running fine. From the other player's perspective it looks like I'm lagging and they're running fine.

So, i'm wondering if this has to do with my server machine, which is currently running off a windows xp desktop with nothing else running on it. Or if this is just one of the unavoidable things that happens to everyone no matter how the server machine is set up.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 08, 2010, 11:23:56 pm
this is a side effect of the client server modal and can't be "fixed" per say as it isn't a bug.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 09, 2010, 03:41:27 am
As Ryex said, this is one of the disadvantages of client-server architectures. There are sophisticated methods of interpolation between data to allow smoother (even though actually inaccurate) transitions. But this kind of calculation is usually difficulty to implement or requires additional CPU power. The normal way of players just "jumping" to another position is significantly less CPU intense for both client and server.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 09, 2010, 12:25:17 pm
the one way I could think to fix it wold be to have the server handle every ones movement and report positions to players instead of having the players handle movement and report their positions to the server.  this will of course put more load on the server.  and even though the movement would be smother it would also be inacurite as the position shown by the clients would often not be the players true position. I think it works just fine the way it is.
Title: Re: [XP] RMX-OS
Post by: swick on December 13, 2010, 10:51:36 am
Server and everything starts up fine, game says the server is online, but is there any specific reason as to why every time I try to register, and click "Submit", something pops up saying "You have been disconnected"? The first time around I thought that it was supposed to happen after creating new user. But then I went to log in with the same user name and password and I got the same error.This is what comes up in the error log:

2010-12-13 18:47:34 UTC; -1 () - Error:
User 'root' has exceeded the 'max_questions' resource (current value: 10)
./Data/Action_Handler1.rb:32:in `query'
C:/Users/Swick/Desktop/RMX-OS/RMX-OS Server/Data/Action_Handler1.rb:32:in `try_register'
C:/Users/Swick/Desktop/RMX-OS/RMX-OS Server/Data/Client.rb:127:in `check_connection'
C:/Users/Swick/Desktop/RMX-OS/RMX-OS Server/Data/Client.rb:47:in `handle'
C:/Users/Swick/Desktop/RMX-OS/RMX-OS Server/Data/Server.rb:275:in `block in run'

^ Jibberish to me.

Something to do with my internet maybe?
Title: Re: [XP] RMX-OS
Post by: [Luke] on December 13, 2010, 11:34:25 am
Re-install the SQL database engine, it's not Internet, it's your database. Try WebServ, it works perfect for me.
Title: Re: [XP] RMX-OS
Post by: swick on December 13, 2010, 11:36:40 am
Aand the database engine in my case would be Navicat Lite(thats what I was using), am I correct?
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 13, 2010, 03:40:42 pm
Navicat is a databse management software. MySQL is a database engine.
Title: Re: [XP] RMX-OS
Post by: Noob on December 31, 2010, 02:05:27 pm
I'm going using the free plan of www.000webhost.com to provide my server, because I don't want to use my own computer for it. But, seeing as I'm such a noob at this, as the name suggests, I can't even tell if it would work. Could someone please look at 000webhost.com's free plan and tell me if it would do all the things that are needed to successfully make an MMORPG? Thanks! :)

EDIT:
A second quesiton: I've got two popular games on the internet that have 200ish-1000+ ppl playing them. They are made with default RMXP. If I were to make RMX-OS versions of both of these games, would there be a way/script to allow people that previously played non MMO versions be able to keep there old save data, or would they have to start over in the RMX-OS version? Thanks!

Don't double post within a 24 hour period ~ Ryex
Title: Re: [XP] RMX-OS
Post by: Ryex on December 31, 2010, 02:56:03 pm
the answer for both of your questions is no. 000webhost will not work for hosting the ruby server, and there is no way for you to really import save data like that. on another note why in the world would you want to may a previously single player game into a MMO? it wouldn't work.
Title: Re: [XP] RMX-OS
Post by: Noob on January 02, 2011, 04:53:45 pm
Please help. I followed all the installation instructions. My game has all of the default scripts except Main. I replace it with RMX-OS main. The bottom of my script database looks like this, in order of highest to lowest: RMX-OS Options, RMX-OS Script, RMX-OS Main, Blizz-ABS 1, Blizz-ABS 2, Blizz-ABS 3, RMX-OX Versioning, RMX-OS Blizz-ABS Plug-in. When I login, I can walk around, but I have some major problems: if I run my chatbox activation script, I become unable to move, even when I run my chatbox deactivation script. All the BLizz-ABS controls are disabled, even though I set them as enabled. My select key has become enter, and my menu key is esc., but it doesn't bring up the Blizz-ABS menu. When I try setting the HUD, nothing happens. When I run a script to turn on Blizz-ABS controls, I get a gigantic error log and the program fails. WHAT AM I DOING WRONG!?!?!? PLEASE HELP!!!!!
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 02, 2011, 05:01:45 pm
http://forum.chaos-project.com/index.php?topic=938.0
Title: Re: [XP] RMX-OS
Post by: Noob on January 02, 2011, 05:09:34 pm
same problem. the script you gave me a link to didn't help.  :???:
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 02, 2011, 08:05:27 pm
Did you actually set up the game controls properly? Did you configure Blizz-ABS properly? Have you made sure that you have wiped the database before/after you added Blizz-ABS? If it's not working, then you have made a mistake because by default everything works.
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 02, 2011, 09:58:57 pm
Hey Blizz, I'm having some troubles setting this up (I bet you're sick of hearing that, huh?  :shy:)

Anyways, I got the SQL database set up fine. The query worked and all that good stuff. But for some reason when I go into the OS GUI and click 'Test Connection' for the MySQL server, I get this weird error message.

QuoteUnhandled exception has occured in your application. If you click continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Could not load file or assembly 'MySql.Data. Version=6.1.20. Culture=neutral. PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.


Then there's a details box that says this;
Spoiler: ShowHide
QuoteSee the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Data, Version=6.1.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
File name: 'MySql.Data, Version=6.1.2.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
   at RmxosGUI.RMX_OS_GUI.buttonConnect_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
RMX-OS GUI
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Users/Max/Desktop/Bloodlines/OS/RMX-OS%20Server/RMX-OS%20GUI.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
Title: Re: [XP] RMX-OS
Post by: Ryex on January 03, 2011, 03:31:30 am
Quote from: mroedesigns on January 02, 2011, 09:58:57 pm
Hey Blizz, I'm having some troubles setting this up (I bet you're sick of hearing that, huh?  :shy:)

Anyways, I got the SQL database set up fine. The query worked and all that good stuff. But for some reason when I go into the OS GUI



Blizz dose NOT maintain the GUI I do. any errors you have with the GUI should be reported in the GUI's thread not here.

as for the error, make sure you extract the entire fucking archive in the GUI download to the rmxos directory not just the exe.
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on January 03, 2011, 03:37:02 am
Quote from: Ryex on January 03, 2011, 03:31:30 am
Quote from: mroedesigns on January 02, 2011, 09:58:57 pm
Hey Blizz, I'm having some troubles setting this up (I bet you're sick of hearing that, huh?  :shy:)

Anyways, I got the SQL database set up fine. The query worked and all that good stuff. But for some reason when I go into the OS GUI



Blizz dose NOT maintain the GUI I do. any errors you have with the GUI should be reported in the GUI's thread not here.

as for the error, make sure you extract the entire fucking archive in the GUI download to the rmxos directory not just the exe.


soooo...when can Blizz update the GUI? :V
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 03, 2011, 03:38:55 am
Quote from: Ryex on January 03, 2011, 03:31:30 am
Blizz dose NOT maintain the GUI I do. any errors you have with the GUI should be reported in the GUI's thread not here.

as for the error, make sure you extract the entire fucking archive in the GUI download to the rmxos directory not just the exe.


Thanks for being a complete dick about it. The over sized text really showed me, huh? That 'fucking' was totally necessary, too.  :<_<:
Title: Re: [XP] RMX-OS
Post by: Ryex on January 03, 2011, 03:45:20 am
Quote from: mroedesigns on January 03, 2011, 03:38:55 am
Quote from: Ryex on January 03, 2011, 03:31:30 am
Blizz dose NOT maintain the GUI I do. any errors you have with the GUI should be reported in the GUI's thread not here.

as for the error, make sure you extract the entire fucking archive in the GUI download to the rmxos directory not just the exe.


Thanks for being a complete dick about it. The over sized text really showed me, huh? That 'fucking' was totally necessary, too.  :<_<:


I reserve all rights to be a dick when I feel that a question and questioner are stupid. you have your answer, if you don't like the manner in which it was delivered, then deal.
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on January 03, 2011, 03:48:31 am
 :O_O:
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 03, 2011, 03:50:50 am
Quote from: Ryex on January 03, 2011, 03:45:20 am
I reserve all rights to be a dick when I feel that a question and questioner are stupid. you have your answer, if you don't like the manner in which it was delivered, then deal.


First of all you have no right to call me stupid. You have no idea who I am. Second of all, the question may be stupid to you because you know the answer. But to me it's a perfectly valid question. I had an issue and I simply asked a question.

Good to know who the local assholes are, though.
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on January 03, 2011, 03:54:01 am
 :offtopic:
Title: Re: [XP] RMX-OS
Post by: Starrodkirby86 on January 03, 2011, 04:26:19 am
Yeaaaah. No.

mroedesigns: Don't take it too personal. Ryexander did answer your question, after all! He could have also presented his answer to something even more worse and bitter. Before asking a question though, as innocuous as it may be, you should probably research as much as you can first. This could have been averted had you posted in the RMX-OS GUI thread, for instance. But what's done is done. Lesson learned for the future, all right?

Ryexander: Whoa, haven't seen you worked up like that. :< Anytime there's a Bug Reports or Support section, there's always going to be users who haven't researched fully enough (No offense mroedesigns xD). I would know, I check the osu! forums a lot and see really moronic questions of help. As "stupid" it may seem to you, at least take your tone from bitter to neutral or something. I know you're a nice guy, so yeah, please calm... (Though I think I can relate to your frustration indirectly, I seen similar events with peppy, the creator of osu!, and some bugs, feature requests, and whatever)

You two play nice now. +w+

Quote from: ForeverZer0 on January 03, 2011, 03:37:02 am
soooo...when can Blizz update the GUI? :V


Oh oh Blizz, can you update RMX-OS too!?!?!?!?!? There's not enough online access to Croatia.  :'(
Title: Re: [XP] RMX-OS
Post by: Ryex on January 03, 2011, 04:35:09 am
meh, I suppose I should apologize, being a dick really isn't in my character. I blame the mussel spazzem in my back that is currently making it impossible to sleep because of the pain...
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 03, 2011, 04:38:11 am
Quote from: Ryex on January 03, 2011, 04:35:09 am
meh, I suppose I should apologize, being a dick really isn't in my character. I blame the mussel spazzem in my back that is currently making it impossible to sleep because of the pain...


Thank you. :] You did answer my question, and I am thankful for that. I just think calling me stupid was a bit out of line.
Things happen though, and I'm not going to be all butthurt about it.

Now to figure out why I can't register any accounts D;
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 03, 2011, 04:59:09 am
@mroedesigns: Yes, don't take Ryex personally. He's still in the phase where he can't yet deal with the frustration that people ask the same stupid question over and over. ._. Heck, even I get still get pissed off by that sometimes. Just recently somebody asked me about Blizz-ABS and since I have been retired for over 8 months now, I told them to go the forum. But the guy kept asking a few more times. At one point I pretty much answered very harshly. ._. Usually when I'm about to post shit, I usually just don't post anything and ignore the post.

As for the accounts, if I remember right, the GUI and the current RMX-OS version aren't compatible. In any case, try registering an account through the game to see if it works.
Title: Re: [XP] RMX-OS
Post by: Ryex on January 03, 2011, 05:05:37 am
Quote from: Blizzard on January 03, 2011, 04:59:09 am
@mroedesigns: Yes, don't take Ryex personally. He's still in the phase where he can't yet deal with the frustration that people ask the same stupid question over and over. ._. Heck, even I get still get pissed off by that sometimes. Just recently somebody asked me about Blizz-ABS and since I have been retired for over 8 months now, I told them to go the forum. But the guy kept asking a few more times. At one point I pretty much answered very harshly. ._. Usually when I'm about to post shit, I usually just don't post anything and ignore the post.

As for the accounts, if I remember right, the GUI and the current RMX-OS version aren't compatible. In any case, try registering an account through the game to see if it works.


no actually they work, I upgraded the GUI in the last year to work with the latest RMX-OS and to have database capabilities, it can register users and change the ban state, password, and user group of existing users
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 03, 2011, 05:19:39 am
Quote from: Blizzard on January 03, 2011, 04:59:09 am
As for the accounts, if I remember right, the GUI and the current RMX-OS version aren't compatible. In any case, try registering an account through the game to see if it works.


That's what I was doing :/ The game says the server is online, but if I click register (or any of the buttons for that matter) it does nothing. I've tried both with my game and with the unedited client that comes with the package. I also tried manually putting user data in the MySQL tables but it gave me an incorrect username/password if I tried to use those.

I dunno what it could be
Title: Re: [XP] RMX-OS
Post by: Ryex on January 03, 2011, 05:24:58 am
manually putting data into the sql tables would't work as the passwords are hashed. you can use the GUI to register users but the game should work too.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 03, 2011, 05:30:41 am
Are you sure, you are doing it right? You are supposed to select Register to open the registration menu, then type in your username and password and finally select Submit. Then you should get a message on top that the server is being contacted about your registration. After a moment, it should transfer you into the game.
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 03, 2011, 05:33:01 am
Figured it out.

:roll:
I need to go to bed, it's apparently too late for my brain to function :V
Title: Re: [XP] RMX-OS
Post by: Noob on January 04, 2011, 08:36:46 pm
Please help. After an earlier post, Blizzard told me I might have made a mistake configuring something. Turns out I did. I went into configuration and saw I had forgotten to specify my extensions! I specified the Blizz-ABS extension for RMX-OS. I then had both things that were said to be required for Blizz ABS with RMX-OS: the script that I put in the game, and the plugin extension. I ran my game again, and triggered the event that runs the script to turn on Blizz-ABS. I got the exact same error as before. It says: undefined method: blizzabs= 'for#game system<(random numbers and letters), then it shows interpreter errors, Scene_Map errors, and RMX-OS errors in script and main. PLEASE HELP!!!!!
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on January 04, 2011, 08:46:29 pm
There are a lot of people who are willing to help you who are pretty good. None as far as I know are mind-readers, though. You gotta be a lttle more specific on what errors you are getting. The random numbers and letters are simply that. They are just the "address" of the instance that is throwing the error. They hold no relevance to how to solve your problem.
Title: Re: [XP] RMX-OS
Post by: Noob on January 04, 2011, 09:01:04 pm
ok, heres what it said when I ran the script that was supposed to activate Blizz-ABS. I tried to run it just before an event transfered the character to a PvP map. This is the error message(I'm not including apostrephes to save time, because it wouldn't let me copy the error message nor would it let me upload the screenshot I took of it):
no method error occured while running script
undefined method blizzabs= 'for#game system<ox3e56758
interpreter 7: 272: in command 355
interpreter 2: 215: in eval
interpreter 7: 272: in command 355
interpreter 2: 215: in execute command
interpreter 1: 199: in update
interpreter 1: 113: in loop
interpreter 1: 204: in update
Scene_Map 55: update rmxos_later
Scene_Map 49: loop
Scene_Map 70: update rmxos_later
RMX-OS Script:3548 in update
Scene_Map 25: main rmxos_later
Scene_Map 19: loop
Scene_Map 30: main rmxos_later
RMX-OS Script:3521: in main
RMX-OS Main:46
Note: I had one party member and caterpillar was off. All my scripts are default except the bottom few. The non default scripts are arragned this way, in order from top to bottom:

RMX-OS Options
RMX-OS Script
RMX-OS Main
Blizz-ABS 1
Blizz-ABS 2
Blizz-ABS 3
Blizz-ABS for RMX-OS
RMX-OS Versioning

Also, I made server extensions for my blizz-abs and versioning, and I specified them both in configuration. WHAT AM I DOING WRONG??  :wacko:
Title: Re: [XP] RMX-OS
Post by: Wizered67 on January 04, 2011, 09:02:37 pm
Lol. RMX-OS main replaces the old "main" script and goes at the bottem.
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on January 04, 2011, 09:09:09 pm
For one reason or another (I'm not familiar with all the methods in BABS and RMX-OS), in event is using a script call with something like this:
$game_system.blizzabs = WHATEVER


Either the method is misspelled, not even a method, or you don't have an attr_accessor in Game_System for "blizzabs". Either way, the method/variable "blizzabs" is not defined in Game_System, or at the very least not accessible by an outside class.
Title: Re: [XP] RMX-OS
Post by: Noob on January 04, 2011, 09:12:19 pm
LOL!!! Just goes to show I truly am a noob, as my username says. But now I have another error. But after following your suggestion for fixing it, I get another error message when I connect to my server, which IS onlie. The message says:
error, your client version is out of date. Client version:1.15; Server Version:1.15 (Doesn't look out of date to me :P. Then it follows up with another error message, which says "The server did not respond." Please help?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on January 04, 2011, 09:14:23 pm
If I recall, this is caused by the versioning script for RMX-OS, but I can't remember why. Check your configuration and make sure it is correct.
Title: Re: [XP] RMX-OS
Post by: Noob on January 04, 2011, 09:17:06 pm
My configuration is fine, as far as I can tell. I did CTRL + F in RMX-OS script and found the text that was displayed in the error message....any other ideas?

EDIT: It did involve the versioning script, and as an experiment i temporarily removed it. Now I get this error after I hit login:
*babsrmxos=the name I gave my Blizz-ABS rmxos script.
undefined method '>' for nil: NilClass
Blizz-ABS Part 3:6574:in 'main_blizzabsrmxos_later'
babsrmxos*:1051:in 'main'
RMX-OS Main:46

Please don't doublepost unless your last post was done 24 hours ago. Thanks~! ~Love, Starrodkirby86
Title: Re: [XP] RMX-OS
Post by: Wizered67 on January 04, 2011, 09:23:52 pm
I'm not really sure to be honest. Maybe a more experienced scripter can help you, although it sounds like you just messed something up.
Title: Re: [XP] RMX-OS
Post by: Noob on January 04, 2011, 09:26:25 pm
Okay, well thanks for your help anyway. you got me through some of those errors. someone experienced? Please help? Blizzard? someone?  :???: :wacko: :???: :wacko:
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on January 04, 2011, 09:46:57 pm
In an aliased method of main, a nil element (something not defined) is attempting to use a comparison method, most likely to a number.

Have you tried the manual? Following the directions EXACTLY? Those are things that need to be done.
Blizzard is retired, in case the bright red bold text in his sig that has been there for many months did not give you a clue.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on January 04, 2011, 10:56:29 pm
Have you added all of the extensions? That could(although I doubt it) be the problem.
Title: Re: [XP] RMX-OS
Post by: Noob on January 04, 2011, 11:01:01 pm
yes(i suppose i could hav screwed up the babs+rmxos one...all u hav 2 do is make the .rb xtension, specify it in config, and add the script above main, rite?), and im sure i followed the rmx-os instructions correctly. i think i followed the blizz-abs 1s right also. i think my only other option now is 2 delete my blizz abs scripts and put the default things in. bilzz told me if i had everything at default and my config was right,it would work. so im assuming tht since my config is correct, and the only things i changed in rmxos was the server display name and the ip adress, the problem must be in blizzabs. if default babs with 99.999999999% default rmxos fails....:,(
one other thing (im assuming this problem is still there, althoguh currently i cant get past the load screen due 2 errors i described in earlier posts), when i turn on chatbox my character freezes and cant walk. when i turn it off again he remains like that and i hav 2 hit F12.
Title: Re: [XP] RMX-OS
Post by: Noob on January 05, 2011, 04:37:06 pm
Nvm my earlier posts. I've got a new problem. Whenever I use a common event, all other players on the map crash, and vice versa.
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 05, 2011, 05:15:38 pm
For some reason my chat box isn't working :/ I can show/hide it with the F5 key like usual, but I can't type anything in it or use any chat commands. I looked through the manual but I couldn't find anything on how to fix it.
Title: Re: [XP] RMX-OS
Post by: Noob on January 05, 2011, 05:42:17 pm
That stumped me for a while 2. U have to press F6 to activate it, F5 to deactivate.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 05, 2011, 05:53:58 pm
*points to manual that says F5 is for showing/hiding and F6 is for activating/deactivating* Why do people figuratively refuse to read the manual or at least open it? ._.
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 05, 2011, 05:58:13 pm
Quote from: Blizzard on January 05, 2011, 05:53:58 pm
*points to manual that says F5 is for showing/hiding and F6 is for activating/deactivating* Why do people figuratively refuse to read the manual or at least open it? ._.


Quote from: mroedesigns
I looked through the manual but I couldn't find anything on how to fix it.


sorry I missed it.
Title: Re: [XP] RMX-OS
Post by: Noob on January 05, 2011, 06:00:51 pm
Same. I read the manual, the whole thing. Except that sentence. Could either of you answer the other question i have plz? (i asked in the section for BABS with RMXOS)
Title: Re: [XP] RMX-OS
Post by: mroedesigns on January 05, 2011, 06:05:13 pm
Quote from: Noob on January 05, 2011, 04:37:06 pm
Whenever I use a common event, all other players on the map crash, and vice versa.


What does the event that youre trying to run do?
Try running a common event that does nothing but show some text and see if that still creates an issue.
Title: Re: [XP] RMX-OS
Post by: Noob on January 05, 2011, 06:06:42 pm
It runs a script, also does transfer player. But it doesn't matter anymore.
(I was using it to open the cbox before I found out how on my own by looking at the script)
Title: Re: [XP] RMX-OS
Post by: Noob on January 09, 2011, 09:25:02 pm
im not using my computer for the server, instead im using a web/server hosting site. the site has ruby on rails instead of ruby. will this be ok, or will ruby on rails not run the server file?
Title: Re: [XP] RMX-OS
Post by: Ryex on January 09, 2011, 10:24:36 pm
it should work. rails is just an extra library for ruby like RGSS it is still ruby so it will work.
Title: Re: [XP] RMX-OS
Post by: [Luke] on January 10, 2011, 11:47:15 am
Noob: Could you tell me the name of the server? I have problems with my router (even though I've set up port configuration properly, it still doesn't work) and I'm seeking for another options.

To anybody who's using router: Should it be enough to set up the port 54269 forwarding to my laptop? It works for port 80 - I've set this port and typing my router's IP into a browser, you can see the proper webpage (I'm using WebServ) but setting same thing for port 54269 (default configuration) doesn't make my server visible for the client.
Title: Re: [XP] RMX-OS
Post by: Futendra on January 10, 2011, 12:40:47 pm
I can't see the Manual!
Title: Re: [XP] RMX-OS
Post by: WhiteRose on January 10, 2011, 02:30:18 pm
Quote from: Futendra on January 10, 2011, 12:40:47 pm
I can't see the Manual!


That's strange. Can you be a little more specific about your problem?
Title: Re: [XP] RMX-OS
Post by: Futendra on January 10, 2011, 03:25:26 pm
Quote from: WhiteRose on January 10, 2011, 02:30:18 pm
Quote from: Futendra on January 10, 2011, 12:40:47 pm
I can't see the Manual!


That's strange. Can you be a little more specific about your problem?


I solved it now, and now I got trouble getting my server up, I'm testing it out now, using Hamachi, Im confused about how to set up a server, I editted the cfg and I put in everything in the scripts, but its not working, it says it is offline all the time!
Title: Re: [XP] RMX-OS
Post by: Noob on January 10, 2011, 06:58:55 pm
I'd say try it out on your own machine locally before attempting to test it globally with another site, so that you can be sure your game is working. Once you've got that worked out, just make sure that you have the IP Adress and port correct. If you're using a server hosting website, their ruby port is sometimes different than the defualt RMX-OS one and you need to chagne it.
Other suggestions:
-Make sure you uploaded all the necessary files to the server host.
-Make sure you ran the mySQL query and configured the instance properly.
-Make sure you ran the server.
Title: Re: [XP] RMX-OS
Post by: Noob on January 10, 2011, 11:39:51 pm
I've encountered another problem  :???:. After registering for a free server hosting site (www.vlexofree.com) with Ruby on Rails and mySQL database, I successfully configured everything, and actually got the game to say the server was online. However, when I try to enter the server to play, I get a message saying that the server did not respond. I looked in FAQs and it said I would have to allow Ruby on my firewall. So I modified the OS firewall to allow ruby TCP/UDP communications with the server at the specified server port. I'm not sure how to modify my NAT. What protocol does the server use to communicate with the client? Am I making any errors that you can tell? Any other suggestions? Thanks!
Title: Re: [XP] RMX-OS
Post by: Starrodkirby86 on January 11, 2011, 12:23:57 am
Quote from: WhiteRose on January 10, 2011, 02:30:18 pm
Quote from: Futendra on January 10, 2011, 12:40:47 pm
I can't see the Manual!


That's strange. Can you be a little more specific about your problem?


Mayyybe it was related to this problem.

http://blog.crowe.co.nz/archive/2007/04/13/719.aspx

I was itching to post that link sometime, but I never really followed it through. But I guess it's a good opportunity right now. xD Of course, this would be null if Futendra does not have a Vista computer.
Title: Re: [XP] RMX-OS
Post by: Futendra on January 11, 2011, 01:07:34 am
Quote from: Starrodkirby86 on January 11, 2011, 12:23:57 am
Quote from: WhiteRose on January 10, 2011, 02:30:18 pm
Quote from: Futendra on January 10, 2011, 12:40:47 pm
I can't see the Manual!


That's strange. Can you be a little more specific about your problem?


Mayyybe it was related to this problem.

http://blog.crowe.co.nz/archive/2007/04/13/719.aspx

I was itching to post that link sometime, but I never really followed it through. But I guess it's a good opportunity right now. xD Of course, this would be null if Futendra does not have a Vista computer.
I got an XP and I am new to mySQL, I dont understand mysql...
Title: Re: [XP] RMX-OS
Post by: Ryex on January 11, 2011, 01:09:32 am
wtf dose mysql have to do with seeing the manual
Title: Re: [XP] RMX-OS
Post by: Noob on January 11, 2011, 09:13:14 am
could someone please help? what port is the server communicating with the client at? i know the client is communicating with the server at 54269, but i have a NAT firewall and i need to know what port to allow the incoming messages to get to.
Title: Re: [XP] RMX-OS
Post by: Futendra on January 11, 2011, 12:31:21 pm
Quote from: Ryex on January 11, 2011, 01:09:32 am
wtf dose mysql have to do with seeing the manual


Nothing...
Quote from: FutendraI solved it now, and now I got trouble getting my server up, I'm testing it out now, using Hamachi, Im confused about how to set up a server, I editted the cfg and I put in everything in the scripts, but its not working, it says it is offline all the time!
Title: Re: [XP] RMX-OS
Post by: Noob on January 11, 2011, 11:46:07 pm
supposing that for some reason i have to use a port other than the default rmxos port, are their any additional changes i need to make? does the client send and listen for/receive messages on the exact same port, or is their another port? (port forwarding on the NAT requires me to specify an in port, out port, & port map)
Title: Re: [XP] RMX-OS
Post by: Starrodkirby86 on January 11, 2011, 11:56:53 pm
Quote from: Noob on January 11, 2011, 11:46:07 pm
supposing that for some reason i have to use a port other than the default rmxos port, are their any additional changes i need to make? does the client send and listen for/receive messages on the exact same port, or is their another port? (port forwarding on the NAT requires me to specify an in port, out port, & port map)


There's a section in the script where you can specify the name, host and port.

SERVERS.push(['NAME', 'HOST', PORT])


And as the manual says:

Quote from: Blizzard's blood and sweatServers are defined by 3 parameters: NAME, HOST and PORT. NAME is the name that will be displayed during connection. HOST is either an IP address or an URL. PORT is a number between 0 and 65535. RMX-OS default port is 54269 and you should keep using it except if you want to run multiple servers on one computer at once. For more information about ports, look it up on the internet.


You're free to use another port, but 54269 was probably chosen for a reason. That saying, if you wanted a different port number, make sure it doesn't conflict with other important programs. For example, the port for IRC would be 6667. You don't want to be using that port for RMX-OS, methinks.
Title: Re: [XP] RMX-OS
Post by: Ryex on January 12, 2011, 12:33:13 am
no reason other than it is an obscure port and thus free for use.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 12, 2011, 02:58:51 am
The ACTUAL reason is actually 3 reasons.

1. Ports over 50000 are rarely used, often free (what Ryex already said).

2. 42 because it's the answer to life, the universe and everything.

3. 69 because it's a sex position.

=> 54269
<3

Remexos uses 56969, because it's the double amount of 69.
54269 is also a secret message meaning "Nobody is aware of this (port over 50000), but the meaning of life (42) is to survive and reproduce (69)."
Title: Re: [XP] RMX-OS
Post by: Noob on January 12, 2011, 05:03:04 pm
But using a different port wouldn't mess anything up as long as it's not taken by another program, right?
Title: Re: [XP] RMX-OS
Post by: Ryex on January 12, 2011, 06:07:08 pm
correct, but really there is no reason to change that port other than if it is already in use. ie your running two servers on the same computer one of themm will have to use a different port
Title: Re: [XP] RMX-OS
Post by: [Luke] on January 12, 2011, 07:43:52 pm
Also, everybody, check out if the Windows built-in firewall isn't blocking ruby.exe (my issue) :D
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 13, 2011, 03:18:10 am
Actually I mentioned that in either that installation guide and/or the FAQ. xD
Title: Re: [XP] RMX-OS
Post by: Noob on January 14, 2011, 10:23:42 pm
Another question  :P So I'm using a free server hosting website, and they support mySQL as well as Ruby on Rails. I've seen the message that my server is online, but as far as I know, my client has never connected to the server. I created a Ruby on Rails app, and uploaded all the necessary files. I ran the SQL query successfully, etc. But where do I put the server scripts? Do I put them in the app file itself? Also, the server host has a rewrite function. Do I instead need to use this function to rewrite incoming clients to the RMXOS script? If so, what would I remap to? rmxos.rb? A folder with all the server scripts in it? Thanks :)
Title: Re: [XP] RMX-OS
Post by: Futendra on January 15, 2011, 04:56:07 am
Quote from: Noob on January 14, 2011, 10:23:42 pm
Another question  :P So I'm using a free server hosting website, and they support mySQL as well as Ruby on Rails. I've seen the message that my server is online, but as far as I know, my client has never connected to the server. I created a Ruby on Rails app, and uploaded all the necessary files. I ran the SQL query successfully, etc. But where do I put the server scripts? Do I put them in the app file itself? Also, the server host has a rewrite function. Do I instead need to use this function to rewrite incoming clients to the RMXOS script? If so, what would I remap to? rmxos.rb? A folder with all the server scripts in it? Thanks :)

What scripts are you using? And the RMX-OS Scripts has to be inside your game, so does the Options script :O.o:
Title: Re: [XP] RMX-OS
Post by: Noob on January 15, 2011, 09:05:35 am
well i know that....i got it to work when i tested it locally. and im using rmxos, blizzabs, and chat filter. but i think i may have finally learned the source of the problem. the website doesnt have ruby, it has ruby on rails, which is meant for webapplications. someone here told me that RoR will ssuffice instead of ruby, but im beginning to doubt that. are you all 100% sure that RoR will actually work? it seems to be meant for web applications...
Title: Re: [XP] RMX-OS
Post by: Ryex on January 15, 2011, 01:09:36 pm
it will work, you have to set it up properly though. not sure how you would do that.
Title: Re: [XP] RMX-OS
Post by: Futendra on January 16, 2011, 05:07:06 am
How do you put BGM in the title???
Title: Re: [XP] RMX-OS
Post by: [Luke] on January 16, 2011, 06:29:58 am
Find class Scene_Servers in RMX-OS Script. At the end of setup_scene method add line

$game_system.bgm_play($data_system.title_bgm)

and then set the proper title BGM in database.
Title: Re: [XP] RMX-OS
Post by: Futendra on January 16, 2011, 07:58:49 am
I had a problem with the chat window overlapping the comment window, I got that fixed, but the chat text still overlaps it, where do I find the text z cordinates?
Title: Re: [XP] RMX-OS
Post by: Noob on January 18, 2011, 09:01:10 pm
Hey, I'm using vlexofree.com to server as a server host for my server. It supports Ruby on Rails, but I couldn't even get the server to start with that so instead I used a cron job to find the actual Ruby program (NOT rails) and run it with that. For some reason or another (it may be on a linux machine >.<) the ./ filepath would generate lots of errors, so any time I found the ./ path, I had to change it to the full path.
Example:
load '~/RMX-OS_Server/Data/Action.rb'

Rather than:
load './Data/Action.rb'


Also, no matter what I did for the mysql.so file, it continued to give errors, so I had to modify the server to load ruby gems. The beginning of the script now looked like this:
# loading Ruby's libraries
require 'socket'
## loads RubyGems (needed to load mysql?)
require 'rubygems'
# loading external libraries
require 'mysql'

After applying this modification, and the other one I mentioned with the filepath, I ran the server. I got no feedback whatsoever. Also, when I tried to connect it told me that the server was offline. When I put a filepath back to ./ as an experiement, it began giving feedback again, error feedback.
At one point, this appeared in the feedback:

==========================================================================
RMX-OS Server v1.15
==========================================================================
Loading extensions...

But that was all. It appeared to have stopped after it ftried loading the extension, which was still at the ./ path. I changed it and......nothing. please help.
Title: Re: [XP] RMX-OS
Post by: Noob on January 19, 2011, 10:05:01 am
also, along with my previous question, i have another simpler one. is the mysql.so file in the server folder a generic one, or a specially edited rmxos one? and could it be used with a linux? (you'll see above that i instead used the generic LINUX mysql file, not the rmxos one. was this incorrect? if so, how could i make it work with linux, which was giving errors when i left it as the mysql.so file in the server folder.)
please anwswer this, and if you can, the above question.
THANKS :)
Title: Re: [XP] RMX-OS
Post by: Futendra on January 19, 2011, 10:17:54 am
Is there a way to put in a "Futendra production" Image for some seconds before the server choice comes up?

I want to make a picture like this:

"Demora Online

(Some logo)


Made by Futendra"

and I want that to show up right before the server screen
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 19, 2011, 10:28:39 am
@Noob: This should be what you are looking for: http://forum.chaos-project.com/index.php/topic,5055.0.html
Title: Re: [XP] RMX-OS
Post by: Noob on January 19, 2011, 05:15:30 pm
Instead of F5, try F6 to bring it up, and F5 to dismiss.
Title: Re: [XP] RMX-OS
Post by: Noob on January 19, 2011, 10:19:09 pm
Hey Blizzard thanks for that link, but I have a small problem. The file at the link is designed for a 32bit computer, while the vlexofree.com servers are 64bit. Is there a 64bit version? Is there another change I could make instead? Anyone? Thanks! :)
Title: Re: [XP] RMX-OS
Post by: Ryex on January 19, 2011, 11:41:35 pm
you would have to compile the file your self. is there a reason that the 32bit version wouldn't work? cause it really shouldn't matter
Title: Re: [XP] RMX-OS
Post by: Noob on January 20, 2011, 12:24:48 am
its a 64bit machine that im trying to run it on. i have no idea how to do it myself.........any suggestions? or a way to get it to work? i get this invalid elf 32 error thing or something like that when i try running it....
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 20, 2011, 09:29:36 am
Actually 64 bit Windows can run 32 bit programs and DLLs without problems. IDK about how Linux does it, maybe 64 bit Linux doesn't support 32 bit programs and SOs. :/
Title: Re: [XP] RMX-OS
Post by: Noob on January 20, 2011, 06:16:38 pm
ok so i will try compiling it for a 64 bit....blizzard could you (or someone else with access to it) give me the compileable source code for the mysql.so file? thanks very much:)
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 20, 2011, 09:07:47 pm
Sorry, I don't have it. You can find it online, though.
Title: Re: [XP] RMX-OS
Post by: Noob on January 20, 2011, 09:36:08 pm
ok...what should i google?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 21, 2011, 05:03:02 am
MySQL source obviously.
Title: Re: [XP] RMX-OS
Post by: Futendra on January 21, 2011, 12:30:49 pm
Hey, is there a possibility to show an animation if typing in the chat?

Because I want it to show up a bubble with ... in it (like the ! and ? marks)
Title: Re: [XP] RMX-OS
Post by: tSwitch on January 21, 2011, 12:44:32 pm
JFTR every time I see this thread I think RPG Maker XP - Operating System.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 22, 2011, 04:39:01 pm
Alright, here's an update after quite some time. I did one of the two last remaining thing that I wanted to do to finish this system. I have changed the data exchange subsystem. The last thing that needs to be done is finishing the documentation. This will be v1.2 which will be the final version.
Title: Re: [XP] RMX-OS
Post by: Noob on January 25, 2011, 09:49:33 pm
Lately I've been getting this error when I try running the server:
==========================================================================
RMX-OS Server v1.15
==========================================================================
Loading extensions...
'blizzabsrmxos.rb' v1.1 loaded and initialized.
--------------------------------------------------------------------------
> Starting TCP Server at '69.10.56.122:12025'...
> Connecting to MySQL database 'test_rmxos'...
Unexpected error occured!
Can't connect to MySQL server on '127.0.0.1' (111)
./RMX-OS_Server/Data/Server.rb:93:in `new'
./RMX-OS_Server/Data/Server.rb:93:in `connect_to_database'
./RMX-OS_Server/Data/Server.rb:60:in `start'

./RMX-OS_Server/rmxos.rb:58:in `main'
./RMX-OS_Server/rmxos.rb:173


RMX-OS Server is being terminated...
RMX-OS Server has been terminated.
Restart in: 5 4 3 2 1

Then I get that same text repeating over and over until I close it. Any ideas?
Title: Re: [XP] RMX-OS
Post by: Ryex on January 25, 2011, 11:11:41 pm
is your sql server running?, is the configuration for the sql server right?
Title: Re: [XP] RMX-OS
Post by: Noob on January 25, 2011, 11:17:36 pm
My SQL configuration in the cfg. file was at 127.0.0.1. So I changed it to vlexofree.com's shared IP address, and it still didn't work. Do you think I just need to find out the IP address of vlexo's SQL server?

I take it you were running it on your computer and it worked but it stopped working when you moved the server to a host? then the answer is yes. you can usually find the IP in the mysql config section of Cpanel or whatever the host gives you for maintaining your site.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on January 25, 2011, 11:43:47 pm
I'm pretty sure you don't need to change the database ip if you're still hosting the data base.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 26, 2011, 02:27:22 am
Does your host allow remote SQL connections? If not, you won't be able to connect.
If you have the server running on a host on the database is also on that host, then you still have to use 127.0.0.1 as SQL host IP. After all, the database is on the same server where RMX-OS is executed.
Title: Re: [XP] RMX-OS
Post by: Noob on January 26, 2011, 04:31:27 pm
Okay, that could be problematic.....I asked about it on vlexo's support forums. Here's what I said:

My server program needs to locate the mySQL database I made on vlexo using either an IP adress of the machine the database is located on, or a URL that will re-direct to the database. What IP Adress or URL should I enter that will redirect it to my account's mySQL database? (I tried 127.0.0.1 and the shared IP 69.10.56.122). Any suggestions? Thanks! 

And here's what they replied:

All access to mysql must be done within the server. Access to it outside the server is blocked for security reasons.
If you want access to it within the server use "localhost".

So does that mean it won't work with vlexo? If so, would it work with a linux shell that includes mySQL and ruby?
If not (meaning it still might work with vlexo), then what am I doing wrong?
Thanks! :)
Title: Re: [XP] RMX-OS
Post by: Ryex on January 26, 2011, 04:37:44 pm
no just change the mysql ip to localhost thats what they said
Title: Re: [XP] RMX-OS
Post by: Noob on January 26, 2011, 05:42:45 pm
But localhost is 127.0.0.1.....isn't it?
Title: Re: [XP] RMX-OS
Post by: Ryex on January 26, 2011, 06:14:55 pm
yes, but try it anyway. make sure that the mysql port is right too
Title: Re: [XP] RMX-OS
Post by: Noob on January 26, 2011, 06:37:55 pm
Well the error describes something being wrong with the IP Address rather than the port, and are you certain that even with the resctrictions I told you about it would still work. blizz said if there wasn't remote mySQL access permitted it wouldn't work. Isn't this saying that there isn't remote mySQL access permmitted?:

Quote from: Noob on January 26, 2011, 04:31:27 pm
I asked about it on vlexo's support forums. Here's what I said:

My server program needs to locate the mySQL database I made on vlexo using either an IP adress of the machine the database is located on, or a URL that will re-direct to the database. What IP Adress or URL should I enter that will redirect it to my account's mySQL database? (I tried 127.0.0.1 and the shared IP 69.10.56.122). Any suggestions? Thanks! 

And here's what they replied:

All access to mysql must be done within the server. Access to it outside the server is blocked for security reasons.
If you want access to it within the server use "localhost".

So does that mean it won't work with vlexo? If so, would it work with a linux shell that includes mySQL and ruby?
If not (meaning it still might work with vlexo), then what am I doing wrong?
Thanks! :)



Title: Re: [XP] RMX-OS
Post by: Ryex on January 27, 2011, 02:39:40 am
if your running the server on their server and try to access the mysql server there is no reason that it shouldn't work. if your running the server on your computer and trying to access their mysql server then that is NOT going to work. run the server on their shell and set the IP for the sql server to be the localhost. also make sure that the port for the sql server is right and if you still have errors either your an idiot or their shell service isn't going to work. not sure which would be preferable.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 27, 2011, 03:08:55 am
I guess it is time somebody put together a proper how-to guide for this problem. It will probably be me and it will probably be in the manual. >.<
Title: Re: [XP] RMX-OS
Post by: Ryex on January 27, 2011, 03:34:02 am
but nobody reads the manual what good is it to put it in there? :V:
Title: Re: [XP] RMX-OS
Post by: Noob on January 27, 2011, 08:53:37 am
i definitely would read it. please make a guide like that. and ryex, im doing everything you said, i think, but i'll check again. its the server file that actually accesses the database, right? the user doesnt directly access it (remotely)...or do they?
Title: Re: [XP] RMX-OS
Post by: Ryex on January 27, 2011, 12:38:56 pm
Quote from: Noob on January 27, 2011, 08:53:37 am
i definitely would read it. please make a guide like that. and ryex, im doing everything you said, i think, but i'll check again. its the server file that actually accesses the database, right? the user doesnt directly access it (remotely)...or do they?


yes. the server dose all the database access, it would be stupid for the users to have access to the database. BTW I don;t think you've shared your specific error (or have you?) doing so will help in the event that your not setting things up right.
Title: Re: [XP] RMX-OS
Post by: Noob on January 27, 2011, 05:53:47 pm
I did it's on page 52 of the replies. Here it is:
Quote from: Noob on January 25, 2011, 09:49:33 pm
==========================================================================
RMX-OS Server v1.15
==========================================================================
Loading extensions...
'blizzabsrmxos.rb' v1.1 loaded and initialized.
--------------------------------------------------------------------------
> Starting TCP Server at '69.10.56.122:12025'...
> Connecting to MySQL database 'test_rmxos'...
Unexpected error occured!
Can't connect to MySQL server on '127.0.0.1' (111)
./RMX-OS_Server/Data/Server.rb:93:in `new'
./RMX-OS_Server/Data/Server.rb:93:in `connect_to_database'
./RMX-OS_Server/Data/Server.rb:60:in `start'

./RMX-OS_Server/rmxos.rb:58:in `main'
./RMX-OS_Server/rmxos.rb:173


RMX-OS Server is being terminated...
RMX-OS Server has been terminated.
Restart in: 5 4 3 2 1

Title: Re: [XP] RMX-OS
Post by: Noob on January 29, 2011, 01:37:49 pm
So I got my server up on vlexofree.com. I actually was in the game. a depressingly huge  amount of problems then arose. The problems include:
-Can't talk
-Can't fight Blizz-ABS battles
-If you exit the game window, you cant log back in unless you shut down the server and restart it.
-If you down the server and restart it, then try logging back in, your user data is not there and you have to start over.
-I'm thinking this means user data is not being saved or something..............
Are you all absolutely certain that the client doesn't have to communicate directly with the mySQL database?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 29, 2011, 01:41:17 pm
Why would the client communicate with the database directly? That's a gigantic security hole.
Title: Re: [XP] RMX-OS
Post by: Noob on January 29, 2011, 02:02:53 pm
Ok. so what can I do to solve this?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 29, 2011, 02:27:57 pm
It looks to me that for some reason the network traffic into one direction is cut off. Since data never gets saved, I assume the server doesn't really get the info from the client. Were there any error messages on the server (there's a log file)?
Title: Re: [XP] RMX-OS
Post by: Noob on January 29, 2011, 04:06:05 pm
No error messages in the log, but I can give you a bit more information about the problem. I looked in the database, and found that the username and IP Address were logged. Also, when you talked no words appeared above your head, nor did they appear in the chatbox, even after refreshing it. Nor could this first account see other players. However, nothing was logged in the save_data part of the database, so in essence you have to start over every time you log in. So then I tried creating a new account. All data logging worked fine with it. I created three more new accounts, and everything worked fine with all of them. But when I went into a stage with Blizz-ABS enemies, they just stood there like normal events, but did have lifebars. And I could use attack skills on them, but the skills did nothing except show the animation and drain my SP.

So then I thought I might have accidentally screwed up blizzabs because, so I made a brand new database. Again, data logging was screwed up for the first account created, and again it worked perfectly for the second account. For the next three accounts it failed like the first one. And the blizzabs problem was not fixed.

So I went back to my original database, because in it I at least had the data logging working. To my surprise, blizzabs actually worked for a couple seconds when I went back. I tried a few regular attacks, and then i used a skill and all the enemies froze up and became un-damageable. So then I tried to talk. That didn't work anymore. Then I realized that datalogging also didn't work anymore, for any of the accounts. So I deleted that database and started with yet another new one. On this one datalogging never worked, nor did blizzabs.

Please help me fix this problem. If it's any help to you, I'm working with RMXOS v1.15, Blizz-ABS v2.79, and RMX-OS babs controller v1.1. With this exact setup I got the game to run perfectly when I ranu the server locally, off my PC. I know you may tell me to update my RMXOS and Blizz-ABS, and I would prefer not to do that unless it is actually necessary for solving the problem, rather than just to update.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 29, 2011, 04:21:52 pm
The old versions of those scripts were buggy already if you didn't know. That is, the Blizz-ABS Controller had a few problems.
Title: Re: [XP] RMX-OS
Post by: Noob on January 29, 2011, 04:24:27 pm
Okay............I'll update them then..........hopefully that solves it. Do you know why they'd be this buggy globally but work completely fine locally?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 29, 2011, 04:25:55 pm
They never worked fine locally in the first place. For some reason you didn't experience any problems and maybe you just went around them each time, but the controller script was never fully functional.
Title: Re: [XP] RMX-OS
Post by: Noob on January 30, 2011, 12:11:22 am
okay. i guess i may have just gotten lucky. are the server scripts mostly the same for rmxos 1.16?
because i had to do a couple of minor modifications to the rmxos.rb file to make it run un the unix machine. i think i showed them in an earlier post.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 30, 2011, 05:19:16 am
Yeah, the server scripts are mostly the same. Only the data exchange subsystem is different but apart from that there were no significant changes.
Sadly I don't have any experience with running RMX-OS on a Linux machine so you might be on your own. :/
Turn on message logging and try to connect with a client. You should also change the path for your logs (because of the ./ path error that you were having). I am curious whether the server freezes because of this like it used to on startup.
Title: Re: [XP] RMX-OS
Post by: Noob on January 31, 2011, 06:58:58 pm
I never experienced it freezing....anyway, I updated the scripts, copying and pasting in all the new scripts except not the configuration parts because I already had configured them and I figured they wouldn't be any different in the new scripts. So i did that, and updated all the server scripts, and made sure to set up the extension and everything, I did NOT run the new mySQL query because I found everything to be the same. I got some lovely error about the host machine terminating my connection when I tried logging in. So I made a completely new account and got the same thing when I registered it. The messge in the error log looked like this:
Mon Jan 31 17:52:52 Central Standard Time 2011:
undefined method `damage' for nil:NilClass
babsmxos:663:in `update'
Blizz-ABS Part 2:3796:in `update_moving'
Blizz-ABS Part 2:3796:in `each'
Blizz-ABS Part 2:3796:in `update_moving'
Blizz-ABS Part 3:2087:in `update_blizzabsrmxos_later'
babsmxos:662:in `update'
Scene_Map:56:in `update_rmxos_later'
Scene_Map:49:in `loop'
Scene_Map:70:in `update_rmxos_later'
RMX-OS Script:3633:in `upd_blizzabs_later'
Blizz-ABS Part 3:6805:in `update'
Scene_Map:25:in `main_rmxos_later'
Scene_Map:19:in `loop'
Scene_Map:30:in `main_rmxos_later'
RMX-OS Script:3606:in `main_blizzabs_later'
Blizz-ABS Part 3:6713:in `main_blizzabsrmxos_later'
babsmxos:942:in `main'
RMX-OS Main:46

EDIT: btw, this was when i tried it locally on my windows pc. i didnt delete my earlier database or anything. i just updated all the new scripts except the configuration parts of them, and when i logged in or when i registered my account, it displayed the starting map for a fraction of a second before giving a message telling about how the server had terminated connections. im fine with updating the configurations if need be. if this is unfixable, i guess i'll go back to the other versions and "debug." i almost had them fully working at 1 point. but if these work, i'll certainly use them. please help!! thanks :)
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 01, 2011, 02:29:31 am
In future, please don't double post. Use the "Modify" function instead.

You should try wiping the database anyway. It shouldn't have anything to do with it, but it might help solve the problem.
This problem actually shouldn't be happening, it doesn't make any sense. That's why I think it's odd. Pretty much nothing's unfixable, don't worry about that.
Title: Re: [XP] RMX-OS
Post by: Noob on February 01, 2011, 08:44:16 pm
Kk I won't double post anymore. so I got around my previous error (I'd forgotten to configure version number, what a dumb mistake....) and now I'm faced with a new problem: I get this error immediately upon registering, or sometimes after I progress through one line of text and name my first character:
undefined method `damage' for nil:NilClass
babsmxos:663:in `update'
Blizz-ABS Part 2:3796:in `update_moving'
Blizz-ABS Part 2:3796:in `each'
Blizz-ABS Part 2:3796:in `update_moving'
Blizz-ABS Part 3:2087:in `update_blizzabsrmxos_later'
babsmxos:662:in `update'
Scene_Map:56:in `update_rmxos_later'
Scene_Map:49:in `loop'
Scene_Map:70:in `update_rmxos_later'
RMX-OS Script:3633:in `upd_blizzabs_later'
Blizz-ABS Part 3:6805:in `update'
Scene_Map:25:in `main_rmxos_later'
Scene_Map:19:in `loop'
Scene_Map:30:in `main_rmxos_later'
RMX-OS Script:3606:in `main_blizzabs_later'
Blizz-ABS Part 3:6713:in `main_blizzabsrmxos_later'
babsmxos:942:in `main'
RMX-OS Main:46


Also, the system still isn't logging all of the user data......
EDIT: Just to let you know, it logs IPs, users, and user data, but nothing else, whic makes gameplay kind of impossible.

Another EDIT: I went back to the blizz-abs controller v1.1. Now I can get the game to start, but again players cannot talk, and it's having wierd random save data errors. I'm assuming this is due to the abs controller being v1.1, so any advice on fixing my original error with 1.2 (above) so that I can return to the less glitchy 1.2 would be greatly appreciated. Also any advice on how to make the game write and read save data to/from the mySQL database would be extremely helpful, because the client just isn't doing it.

Yet Another EDIT: Just to let you know, there are a few other problems as well. The major ones that make it impossible for you to play the game are: the game appears to be unable to read save data, therefore, even if it did manage to write it, which it rarely does, it can't read it, so it doesn't matter. Also, enemies don't work. They just stand in a fixed position with the lifebar above their head. They can't attack you, you can't attack them. Also, if you exit the game window, then try logging back in, it says you're already logged in, therefore the only way to log back in is shut down the server and then try it. Obviously this wouldn't work. One final piece of information that I may have already mentioned: being able to talk, and being able to see other players appears to be directly linked to being able to wirte save data. If it's successfully writing the data, I can talk and see other players. If I can't do any one of those, I also can't do the other two. So......a few bugs. Please help.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on February 01, 2011, 10:57:09 pm
D you only get this when you host it on the website you mentioned? I don't have any of these problems.....
Title: Re: [XP] RMX-OS
Post by: Noob on February 02, 2011, 12:17:47 am
EDIT: Okay, well blizzard, you reminded me about the zombie client option, and this has solved my problem with users not logging out correctly and also the problem with them not writing data, and the problem with them sometimes not talking. I've at least got that much working consistently. But a few new problems have appeared. I get this SyntaxError sometimes when during events that show text. It first occured during some of the default text that runs shortly after starting the game. It occured before all the text could be completed. If the user logs back in, they find themself in the middle of the event, and they get the error again. This only occured for some accounts. Here's what showed up in the error log:

Wed Feb 02 20:31:18 Central Standard Time 2011:
(eval):1:in `check_game'compile error
(eval):1: unterminated string meets end of file
(eval):1: syntax error
{"@direction"=>2, "@real_x"=>9600, "@x"=>75, "@real_y"=>5632, "@battler|@states"=>[], "@ai|@negative"=>[1, 3, 5, 6], "@y"=>44, "@character_name"=>"BlackCat", "@ai|@view_range"=>5, "@ai|@altered_alignment"=>false, "@ai|@positive"=>[2], "@ai|@neutral"=>
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 03, 2011, 02:17:41 am
This is a weird error, but very helpful. I will see if I can take a better look at this today. I might have an idea what's going on.

EDIT: v1.17 is out. Together with the new Blizz-ABS Controller the problems should be solved.
Title: Re: [XP] RMX-OS
Post by: Noob on February 03, 2011, 04:39:23 pm
thank you SO MUCH. I will update right away and report any problems I find. Thanks again! :)
EDIT: No changes to the client code, right? Just some of the server files?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 03, 2011, 05:25:13 pm
Update both of them to be sure. At least the version constant has been updated in the client scripts and you need that one so plugins can detect the proper version. You don't have to update the options script (but you can remove '@anime_count' from the EXCHANGE_VARIABLES to make it run better if you want).

I had no problems with synchronization between clients. But then again, I wasn't able to test it fully active and only locally. Remember that you have to make sure your host works normally. Most of the errors you were getting seemed to me that your host doesn't allow proper communication between server and client. It's as if the server would sometimes cut off part of the client message.
Title: Re: [XP] RMX-OS
Post by: Noob on February 03, 2011, 05:49:14 pm
Blizzard, everything seems to work except the enemies. It's the same problem I had earlier: they seem to count as enemies (appearing as enemies on the map, displaying lifebars, and allowing my character to use the hotkey-registered skills within range) but they don't move or attack, and my skills and regualr attacks do nothing to them, just use up my SP. any ideas on this strange problem?
EDIT: Here's some additional info on this problem for if you decide to pursue it: i got it to work once, but only once, globally. It works perfectly locally. the one time I got it to work globally, everything was going as it normally should. I used some regular attacks on the enemies. Then when I used a skill, all the enemies suddenly froze up and reverted to the state I described above. It seems to me like you're really close to solving this problem. the enemies seem to be all loaded up and everything, but not "activated?" I don't know much about ruby, that's just how it appears to me. good luck, and thanks.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 04, 2011, 02:56:02 am
What do you mean with "globally" and "locally"? If there is a bug in the system itself, it won't work if you have a remote server or if you run the server locally on your own PC. If there is a problem in your network, it will work on your PC, but it won't work if you connect to a remote server. If there is a problem in the scripts, then enemies won't work globally if you have the Blizz-ABS Controller in your scripts, but it will work "locally" if your enemies aren't actually global for all players but each player has his own enemies.
Generally, if you have the former problem, it is, again, your server that is not working right. If your RMX-OS works when run on your PC and doesn't work on a remote PC, then you didn't set up the remote PC properly. The enemies work fine on my PC which means the problem is not in the script. I can attack enemies where other players act as global processor without problems and enemies move around just fine.
Title: Re: [XP] RMX-OS
Post by: Noob on February 04, 2011, 11:01:28 pm
Besides my other problem with enemies not attacking, I've noticed another really wierd thing. to me, it's way lower priority than the blizz-abs problem, because blizz-abs is crucial to my game and this is just a random rare glitch, but I thought i'd report it anyway. What happens is, the game will occasionally delete some events for no reason, and create others. It then removes the event code from some of the events it deleted and puts it in the new events it created. So I get an entirely new event that I never made with event commands that I did write, but for a different event. But please fix the blizz-abs rmxos problem first. This otehr thing rarely happens, and isn't much of a problem. It never takes away anything important.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2011, 03:39:39 am
Neither Blizz-ABS not RMX-OS does anything to your events so it's not possible that either of those scripts are responsible.
Title: Re: [XP] RMX-OS
Post by: Futendra on February 05, 2011, 05:16:49 am
Quote from: Blizzard on February 05, 2011, 03:39:39 am
Neither Blizz-ABS not RMX-OS does anything to your events so it's not possible that either of those scripts are responsible.


Im having this: From the moment Im on the same map with a different player, an error occurs, it can also be caused by window swapping during gameplay, because I did that too, also I have a question: Is there a possibibity to make a "Collection Lost" Window when the connection is lost?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2011, 05:26:55 am
There IS a "You have been disconnected" window when you get disconnected.
Title: Re: [XP] RMX-OS
Post by: Futendra on February 05, 2011, 05:30:41 am
Quote from: Blizzard on February 05, 2011, 05:26:55 am
There IS a "You have been disconnected" window when you get disconnected.


Yes but I mean can you customize it?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2011, 05:51:25 am
That's not what you asked:

Quote from: Futendra on February 05, 2011, 05:16:49 am
Is there a possibibity to make a "Collection Lost" Window when the connection is lost?


And obviously you can. It's a script FFS. And there's a section where you can customize all the text used in RMX-OS. It's even mentioned in the manual.
Title: Re: [XP] RMX-OS
Post by: Futendra on February 05, 2011, 06:19:13 am
Quote from: Blizzard on February 05, 2011, 05:51:25 am
That's not what you asked:

Quote from: Futendra on February 05, 2011, 05:16:49 am
Is there a possibibity to make a "Collection Lost" Window when the connection is lost?


And obviously you can. It's a script FFS. And there's a section where you can customize all the text used in RMX-OS. It's even mentioned in the manual.


I tried it and I put the text to Oops! Connection Lost! and it gave an error cannot connect to RMX-OS server, or something like that
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2011, 06:54:06 am
Being disconnected at one point and not being able to connect at all is not the same thing.
Title: Re: [XP] RMX-OS
Post by: Futendra on February 05, 2011, 06:55:03 am
Quote from: Blizzard on February 05, 2011, 06:54:06 am
Being disconnected at one point and not being able to connect at all is not the same thing.


When I close the RMX-OS Server when playing, that shows up :0
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2011, 07:08:48 am
No. If you turn off the server while someone is playing, only two things can happen. Either a Windows messagebox shows up saying "You have been disconnected." and you return to the title screen or a Windows messagebox saying "An established connection was aborted by the software in your host machine." and the game crashes.
Title: Re: [XP] RMX-OS
Post by: Futendra on February 05, 2011, 07:21:25 am
Quote from: Blizzard on February 05, 2011, 07:08:48 am
No. If you turn off the server while someone is playing, only two things can happen. Either a Windows messagebox shows up saying "You have been disconnected." and you return to the title screen or a Windows messagebox saying "An established connection was aborted by the software in your host machine." and the game crashes.


The second one always happens
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2011, 08:29:39 am
Well, you shut down the server, what do you expect?
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 05, 2011, 11:42:55 am
hi there ive a lil question  :haha:
is there a script call to disable that rmx save data ??!
eg for intro, cutscenes or the character creation system i design so is there a way to do that or can anyone make pluginn ??
btw my character creation system is at ca 75% so i release it next week but without disableing save its not acually good to use it, and cutscene and intro and etc too, ok there is still the problem that you can see other players on some maps eg for instances like ingame house or dungeons or what else but thats a different prob  :naughty:
so i wish me an disable save call and a enable save call.
thx in advance  :^_^':
Title: Re: [XP] RMX-OS
Post by: Futendra on February 05, 2011, 11:52:07 am
Quote from: Blizzard on February 05, 2011, 08:29:39 am
Well, you shut down the server, what do you expect?


What do you think I ask?

IS THERE A BLOODY POSSIBILITY TO MAKE IT THE SAME AS THE 1st ONE?
Title: Re: [XP] RMX-OS
Post by: Noob on February 05, 2011, 12:40:42 pm
Griver, you're saying it's a problem that you can see and interact with other playerS? That's kinda the point of rmx-os........
about the save data, I don't know of a call script to enable/disable it...sorry. Blizzard to I have to delete the old log files (from testing on my P.C.) first and let it make new ones?
Title: Re: [XP] RMX-OS
Post by: nathmatt on February 05, 2011, 12:47:12 pm
is it possible to send and receive data externally by connecting a program to the server ?
Title: Re: [XP] RMX-OS
Post by: Noob on February 05, 2011, 12:54:30 pm
I don't know. Btw where did you get your avatar picture/animation thing nathmatt?
EDIT: Blizzard I think I found the cause for the problem you've been helping me with. The program continually fails to write the blizzabs log, which, as you said, causes blizzabs to crash. I tried putting in the filepaths that worked for the other problems I experienced (with starting the server), but for some reason they didn't work for the message log files. I'll ask about what the correct filepath is on the vlexofree.com support forums.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 06, 2011, 04:50:22 am
Quote from: Griver03 on February 05, 2011, 11:42:55 am
is there a script call to disable that rmx save data ??!


There is an event command for enabling/disabling saving.

Quote from: Futendra on February 05, 2011, 11:52:07 am
What do you think I ask?


I can't read minds and you didn't write down your question. You just wrote some rant and kept me guessing what you want. Again, I can't read minds.

Quote from: Futendra on February 05, 2011, 11:52:07 am
IS THERE A BLOODY POSSIBILITY TO MAKE IT THE SAME AS THE 1st ONE?


It's a Windows error message. Obviously you can't change what they say.

Quote from: nathmatt on February 05, 2011, 12:47:12 pm
is it possible to send and receive data externally by connecting a program to the server ?


Technically yes, but the only communication the server was coded for is communication with a client. You can make a program connect to the server simply using the proper connection settings that your client uses (IP and port).

EDIT: You can always make a server extension that handles some specific types of messages which you then use to communicate between the server and a custom program.
Title: Re: [XP] RMX-OS
Post by: Futendra on February 06, 2011, 04:53:33 am
Quote from: Blizzard on February 06, 2011, 04:50:22 am
Quote from: Futendra on February 05, 2011, 11:52:07 am
What do you think I ask?

Quote from: Futendra on February 05, 2011, 11:52:07 am
IS THERE A BLOODY POSSIBILITY TO MAKE IT THE SAME AS THE 1st ONE?


It's a Windows error message. Obviously you can't change what they say.


Why is it a windows error message? as far as I know it can't be...
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 06, 2011, 05:20:28 am
Quote from: Futendra on February 06, 2011, 04:53:33 am
Why is it a windows error message?


I don't even know how to answer that question.

Quote from: Futendra on February 06, 2011, 04:53:33 am
as far as I know it can't be...


Then prove to me that it's not a Windows error message. Go look around in the RMX-OS scripts and find that string.
Title: Re: [XP] RMX-OS
Post by: Futendra on February 06, 2011, 05:21:34 am
Quote from: Blizzard on February 06, 2011, 05:20:28 am
Quote from: Futendra on February 06, 2011, 04:53:33 am
Why is it a windows error message?


I don't even know how to answer that question.

Quote from: Futendra on February 06, 2011, 04:53:33 am
as far as I know it can't be...


Then prove to me that it's not a Windows error message. Go look around in the RMX-OS scripts and find that string.


What I mean is that why does windows show up a message of something that happens in a RMXP game?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 06, 2011, 05:26:56 am
I cannot express in words the severity of my facepalm for this question.
Title: Re: [XP] RMX-OS
Post by: Ryex on February 06, 2011, 05:36:53 am
why do you think an operating system exists? it provides an interface that a developer can use to create a program and have a user interact with it. when this program asks the operating system to do something and it can't the operation system will give the program an error. the program can either handle this error or die in a ball of fire. metaphorically speaking of course.
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 06, 2011, 07:38:28 am
ok sry for my bad english  :^_^':
i didnt mean its not good to see other players in rmx os , but in online games are always instances like ingame house or whatelse but thtas like i said another story  ;)
i just need the calls for disable save and enable save and if its exists a force save call ^^

example for me and my use for it:

startmap - here you start when you first login rmx os make a force save and then disable it after that you get teleportet on the next map.

character creation map - its self explaining... at the end when the player confirm his choice then i enable save and the game can start or an intro or whatelse...

so pls can you say me the calls pls ?!

PS: thx a lot for updating rmx-os even you retired  :D



EDIT: ah sry i oversee you had written EVENT COMMAND xD
but can i use it in rmx os so it actually it disables the call of the window i think not the function itself but i dont know i test it  :wacko:
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 06, 2011, 07:56:14 am
Yes. I have coded it so the auto-save doesn't work if you have disabled saving by using the event command. Of course, if the player logs out during that time, he will have to redo all the scenes.
Title: Re: [XP] RMX-OS
Post by: nathmatt on February 06, 2011, 09:52:33 am
yea thats what im doing of course i had alias 1 of the client check game messages so far i do have it to send me the an array containing the clients [uerer_id,username] so when im ready i can create a list with it im working on registering so you can prevent using this program to access someone else's server giving yourself control make the commands require admin status
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 06, 2011, 10:11:43 am
Oh, don't worry about that. A user cannot do any admin actions unless he's logged in. And to log in, the user MUST use the proper password. Additionally the server checks permissions as well. Basically if you use a hacked client and try to use an admin command with an account that is not an admin account, the server will prevent it. I thought of that.
Title: Re: [XP] RMX-OS
Post by: nathmatt on February 06, 2011, 10:19:11 am
no i mean im adding a login to my program so that when i create specific commands i can check for admin status otherwise my specific commands could be accessed by anyone with you ip and host which would be difficult to get but not impossible points at rgss extractors
Title: Re: [XP] RMX-OS
Post by: Futendra on February 06, 2011, 11:32:55 am
How do I make the level of the player shwo up next to their names?
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 06, 2011, 12:58:12 pm
@blizz - great thx really.

@Futendra: i want to see the level beneath the name too ^^

so the next question is is it possible to make instances ??
like when you add \Mapname, a script read this and make the map only for you...
i think its a easy thing for a ruby coder  :roll:
this would be a great enhancement for rmx-os.
Title: Re: [XP] RMX-OS
Post by: Noob on February 06, 2011, 01:16:42 pm
I was wanting to have a level by the name also, so I postead a request about it and I think someone made a script for it but idk if he relesaed it publicly or not.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 06, 2011, 02:14:44 pm
Here, add this piece of code below RMX-OS.
Keep in mind that it only works with Blizz-ABS.
Also, I haven't tested it at all.

#==============================================================================
# Sprite_Character
#==============================================================================

class Sprite_Character
 
 def update_name_sprite
   username = nil
   level = nil
   usergroup = nil
   if @character == $game_player
     username = $network.username
     level = ($game_party.actors[0] != nil ? $game_party.actors[0].level : nil)
   elsif @character.is_a?(Game_OnlineCharacter)
     username = @character.username
     usergroup = @character.usergroup
     level = (@character.valid? ? @character.battler.level : nil)
   end
   if username != nil && level != nil && (@name_sprite == nil ||
       @username != username || @usergroup != usergroup || @level != level)
     @username = username
     @level = level
     text = "#{username} Lv. #{level}"
     @usergroup = usergroup
     @name_sprite.dispose if @name_sprite != nil
     @name_sprite = Sprite.new
     @name_sprite.bitmap = Bitmap.new(1, 1)
     @name_sprite.bitmap.font.size = 21
     w = @name_sprite.bitmap.text_size(text).width + 4
     @name_sprite.ox = w / 2
     @name_sprite.oy = self.bitmap.height / 4 + 23
     @name_sprite.bitmap = Bitmap.new(w, 23)
     @name_sprite.bitmap.font.size = 21
     if usergroup == nil
       @name_sprite.bitmap.font.color = RMXOS::Data::COLORS['self']
     elsif RMXOS::Data::COLORS.has_key?(usergroup)
       @name_sprite.bitmap.font.color = RMXOS::Data::COLORS[usergroup]
     end
     @name_sprite.bitmap.draw_text_full(1, 1, w, 21, text, 1)
   end
   if @name_sprite != nil
     @name_sprite.x, @name_sprite.y, @name_sprite.z = self.x, self.y, self.z
   end
 end
 
end
Title: Re: [XP] RMX-OS
Post by: Futendra on February 07, 2011, 02:50:59 pm
Is there a username max lenght?

BTW: AWESOME BLIZZARD! It works fine! Lovely to see the lvl! its also nice with Animation of level up, it gives animations and afterwards its changes!
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 07, 2011, 02:53:07 pm
Yes, there is. Refer to the config and the manual.
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 08, 2011, 02:42:09 pm
yeah great when it works, im not at home so i can test it on tommorow  :roll:
n1 blizz like everytime  :naughty:
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 11, 2011, 08:08:40 am
hi again  :roll:
the script works fine and looks good !

but can it be that many rmx-os scripts dont work with 1.17 ??
i had many errors with some scripts that works fine with 1.15 so idk ^^
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 11, 2011, 08:19:28 am
Have you updated all your scripts?
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 11, 2011, 09:01:05 am
yep !
i had errors with who's online list,the abs controller and inividual kill counter...

and ates and global day and night didnt work right, but at this i was tired so i cant say 100% its a bug ^^

i use blizzabs 2.84, rmx-os 1.17 and controller 1.30 so yes  :uhm:
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 11, 2011, 10:19:23 am
I already replied in the Controller thread. I'll take a look at ATES and the GDNS script. As for the other scripts, post in their respective threads, I'm not the one who made them.
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 11, 2011, 10:25:51 am
big thx for checking the global daynight sys  and ates :haha:
and thx for replying
ill post the errors in those threads where they belong too.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 11, 2011, 10:40:42 am
I just checked ATES and GDNS and everything seems to be working fine. What is the problem you encounter?
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 11, 2011, 11:15:24 am
at first login te tinting works fine but after i relogged te screen was yellow like i didnt turn the tinting on but like i said i was tired ^^
so i try this night again to get this working :huh:
sry for that
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 11, 2011, 11:49:51 am
You didn't set up ATES properly if you don't get the right screen tinting.

I have uploaded RMX-OS 1.18. It might fix some problems that you were having so you should try it.
Keep in mind that you should update following plugins as well:

Title: Re: [XP] RMX-OS
Post by: Griver03 on February 11, 2011, 02:32:01 pm
ok thx for the next update ^^ and like the controller i try it tonight  :^_^':
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 13, 2011, 10:18:42 am
ok sry for that but this time you fail blizz  :roll:

1.18 is buggy !!!

when you login and then press F12 and relogin the error comes up...
when you login and close the client and then start it again and login the same bug...
when you create a char too...
yoo cant login more than one time and sometimes the bug comes even if you start the client and login or register a new user...

i tested it first with blizzz abs and controller after that only 1.18 and its the rmx-os not the controller or abs...

http://img837.imageshack.us/i/error1m.png/ (http://img837.imageshack.us/i/error1m.png/)
Title: Re: [XP] RMX-OS
Post by: Ryex on February 13, 2011, 03:41:24 pm
Stack Fail.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 13, 2011, 04:25:28 pm
Don't use F12. It causes problems with scripts that use aliasing. You can get a script that prevents F12 completely.
Title: Re: [XP] RMX-OS
Post by: Noob on February 13, 2011, 08:54:07 pm
hey, i was gonna tell u this a while back but 4got. common events dont work in rmxos. they crash all other players that are logged in. this occured both locally and globally.
Title: Re: [XP] RMX-OS
Post by: Griver03 on February 14, 2011, 09:58:19 am
but the error occurs too when i just close the client and then reopen it and login  :wacko:
Title: Re: [XP] RMX-OS
Post by: G_G on March 03, 2011, 07:49:40 pm
How do I get a client's $game_party? You said something about the network class had parties but I didn't find anything on it.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 04, 2011, 02:12:26 am
If you have the Blizz-ABS Controller, you can access $network.party that has an array of all usernames in the current party. I can't remember if it includes the current play as well (I think it doesn't).
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 11:27:02 am
Eh.
*MySql works
*Navicat works
*ruby.exe doesn't
*client doesn't as well

Ruby keeps terminating itself. I've tried all the solutions proposed to other people, but I assume I must not understand something. This is very annoying because I had read the FAQ and the Installation Guide up and down for 3 days and I still couldn't solve it. I've uninstalled and re-installed mysql and ruby 3 times. My ports are not blocked (I'm not using a router). MySql is up and running, and Navicat is obviously connected. I've no clue why my client nor ruby is connecting. I know you get this alot and I definitely tried to solve this on my own to no avail. This is my last  option. Perhaps someone can show me something I'm doing wrong or point me to some flaw in my workings.

cfg file: ShowHide
NAME = 'RMX-OS Server'
HOST = 'localhost'
PORT = 3306
RMXOS_VERSION = 1.18

LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

DEBUG_MODE = false

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 30
AUTO_RESTART = true
RESTART_TIME = 10
USE_IP_BANNING = true
PREVENT_ZOMBIE_CLIENTS = false
RUBY_PROMPT = true
OPTIMIZE_DATABASE_ON_STARTUP = true
DATABASE_CONNECTION_TIMEOUT = 60

SQL_HOSTNAME = 'localhost'
SQL_USERNAME = 'root'
SQL_PASSWORD = '12rosesfallingforyou'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [
]
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 06, 2011, 11:34:09 am
I could be wrong on this one, but isn't 3306 the port set for MySQL to use? If it is, the 2 can't both use the same port as far as I know.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 11:41:46 am
Quote from: Wizered67 on March 06, 2011, 11:34:09 am
I could be wrong on this one, but isn't 3306 the port set for MySQL to use? If it is, the 2 can't both use the same port as far as I know.


:| If you're right it'd definitely be a 'd'oh!' moment for me. All I need is confirmation now. FUUUUCK -.- it worked. I can tell Blizz is shaking his head in disgust now. I'm sorry, man...

Edit: Only problem now is rmxos client is not connecting (forcibly closed by the remote host) on 3306 and the server is offline on 54269.

SERVERS.push(['Localhost', '76.125.16.128', 3306])
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 12:46:07 pm
Got it to work -.- changed it to 127.0.0.1.
I guess only I can connect to my server.
Title: Re: [XP] RMX-OS
Post by: G_G on March 06, 2011, 01:40:52 pm
You have to open up the command prompt. type in ipconfig place the default gateway in the cfg.ini then go here http://whatismyip.com and use that ip in the client.

Then foward the port you used in cfg.ini
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 06, 2011, 02:41:21 pm
What G_G said.
I already said that I will put together a guide for that later and add it into the manual.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 03:27:45 pm
(http://i2.photobucket.com/albums/y18/TokyoAngel/Untitled-13.png)

I copied/pasted a new B-abs into the SDB and also downloaded the BABS controller/ extension. My extension config looks like this:

EXTENSIONS = ['UserLogger', 'Blizz-ABS'
]
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 06, 2011, 03:39:04 pm
Try wiping your database.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 04:18:24 pm
Now there is a problem with chat. The ABS somehow disables chat. I can use chat, yet I can not send messages.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 06, 2011, 04:23:43 pm
You still have to use F6 to activate/deactivate chat mode.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 04:38:09 pm
Quote from: Blizzard on March 06, 2011, 04:23:43 pm
You still have to use F6 to activate/deactivate chat mode.

I'm aware but it's not submitting the text. I can enter the text into the box but when I press enter it doesn't register.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 06, 2011, 04:41:47 pm
Did you update the Blizz-ABS Controller to v1.34? I posted it 2 hours ago.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 04:48:33 pm
Yes
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 06, 2011, 04:50:54 pm
I'll check this tomorrow then. I hope you can wait until then.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 07:05:37 pm
Is Visual Equip for B-abs and RMXOS compatible?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 06, 2011, 07:35:06 pm
Yes, it works very well.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 06, 2011, 10:59:46 pm
So you're able to make a character creation screen that can change gender and appearance?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 06, 2011, 11:07:10 pm
With some editing, you could probably convert the visual equipment to also show character appearance.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 07, 2011, 01:06:14 pm
The script call for closing the chatbox isn't working. It's basically disabling messages from NPC and leaving the chatbox open.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 07, 2011, 03:52:35 pm
Are you sure that you both disabled and hid the chatbox? Also, remember that RMXP causes problems with scripts calls that look like "abc = false" if you don't use the interpreter fix or put the "false" into the next line.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 07, 2011, 04:15:11 pm
How do I hide the chat box? I only know how to disable it (due to the manual).
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 07, 2011, 04:24:09 pm
I guess I forgot to include that one in the manual. D:
It's $game_temp.chat_enabled. I will change it to $game_temp.chat_visible.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 07, 2011, 07:59:46 pm
Quote from: Blizzard on March 07, 2011, 04:24:09 pm
I guess I forgot to include that one in the manual. D:
It's $game_temp.chat_enabled. I will change it to $game_temp.chat_visible.


$game_temp.chat_enabled = false causes a freeze and the other causes an error.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 08, 2011, 02:35:03 am
Quote from: Blizzard on March 07, 2011, 03:52:35 pm
Are you sure that you both disabled and hid the chatbox? Also, remember that RMXP causes problems with scripts calls that look like "abc = false" if you don't use the interpreter fix or put the "false" into the next line.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 08, 2011, 05:19:12 am
Quote from: Blizzard on March 08, 2011, 02:35:03 am
Quote from: Blizzard on March 07, 2011, 03:52:35 pm
Are you sure that you both disabled and hid the chatbox? Also, remember that RMXP causes problems with scripts calls that look like "abc = false" if you don't use the interpreter fix or put the "false" into the next line.



Tried that and it still froze the game.
(That is if you're telling me to try
abc =
false)
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 08, 2011, 06:03:52 am
Then get the interpreter fix instead.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 09, 2011, 03:15:38 am

That's very odd... I tested out the errors and it is weird. It doesn't error out when I have two clients open for some reason. I can open a menu and do things normally (like leave the map) but once I log off on one client the other one freezes. For some reason the ABS controller is basically glitching out because the client is saving the enemy in a spot that isn't it's default location.

I will bet money that the reason the client is erroring out and the server is crashing is either because A. the freeze when the menus are called because the menu clashes with the online system (because online gameplay is way different from offline and calling a menu is basically like pausing a heartbeat for a long time) or B. faulty saving... the server may be saving a negative (or dividing by zero). once the menu is up the player may be disconnected while still being connected.

No matter which (if any) of these it is the blatantly obvious is the BABS controller (and it's just that... I tested) is incompatible with menus, shops, its own hotkey script call, and any scene that freezes the game. The only way to basically solve that problem is to make a custom scene using pictures that doesn't freeze the game. The hotkey scene and such are annoying to re-make but noone said it'd be easy.

The biggest annoyance is the fact that the chatbox doesn't wory and the mouse system barely works (both are glitchy when the BABS controller is installed and works perfect without it.) Even with all the bugs is by far one of Blizz's most impressive creation. The customization and finesse involved in its birth is awe-inspiring to say the least. I've had a blast playing around with the system... such a blast that I forgot to eat for 2 days just staring at one map tinkering. I haven't felt this curious since christmas as a child.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 09, 2011, 03:23:02 am
As I said, I will look into the problems. I had other stuff to do so I couldn't work on it. I should have time today, though. Wish me luck.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 10, 2011, 02:39:17 pm
How would I keep make a conditional branch to trigger only when a certain player activates it? (Follow-up question) How would I assign the specific player to a variable? Example: If a specific player activates a switch and then logs off (assuming this is with global variables). How would I check to see if they are offline and turn off the switch that was activated.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 10, 2011, 03:44:40 pm
1. You can check the username with $network.username == 'Blizzard'.

2. $game_variables[VARIABLE_ID] = $network.user_id I suggest you don't assign the actual player but the current user ID. This is much more convenient.

3. $network.players.has_key?(USER_ID) This will return true if the player is logged on and false if he's not.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 10, 2011, 03:57:54 pm
Quote from: Blizzard on March 10, 2011, 03:44:40 pm
1. You can check the username with $network.username == 'Blizzard'.

2. $game_variables[VARIABLE_ID] = $network.user_id I suggest you don't assign the actual player but the current user ID. This is much more convenient.

3. $network.players.has_key?(USER_ID) This will return true if the player is logged on and false if he's not.


Is there a way to have it act like a self switch? Any user that activates a specific switch will be recorded and so forth..
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 10, 2011, 04:26:58 pm
Not really. But there is another way. You can add another variable into, let's say, Game_System and in the RMX-OS configuration you add that variable to the save data for Game_System. But other players couldn't be notified of the state of that variable.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 11, 2011, 02:59:10 pm
I don't want to notify the player I want to trigger a switch only when the player is online. I.E. a player pulls a switch which triggers a game_switch and opens a door for as long as the player is online (unless they turn the switch off) and if they log off the game_switch will turn off so they won't exploit the switch by locking everyone else out of the room. I know how dickish people can be and basically playtest with the mentality "as a troll player how would I abuse global switches and variables that acts as a boss room".

Edit: I'd like to show off the player's guild over their username (only when they're in a guild) and their position next to their guild...
Edit 2: If this is possible will guild icons be possible as well?
Something like


*icon*Valkyrie (G. Leader)
               RoseSkye
Title: Re: [XP] RMX-OS
Post by: G_G on March 13, 2011, 03:16:27 pm
I haven't been able to test this but does the player stay on the map even if he goes into a different scene? For example a person runs into a wild encounter, will other people still be able to see that player?
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 13, 2011, 03:34:48 pm
Yes
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 13, 2011, 03:56:21 pm
Ah, crap. ._.
Title: Re: [XP] RMX-OS
Post by: G_G on March 13, 2011, 04:03:20 pm
No don't change it. I want that D:

Also, how do I set the chat box in scene battle?

(I probably would be able to figure out but extremely lazy xD)
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 13, 2011, 04:05:40 pm
There is a piece of code in RMX-OS for Scene_Map. Just check it out, you should be easily able to just copy paste it and it will work.
Title: Re: [XP] RMX-OS
Post by: G_G on March 13, 2011, 05:16:36 pm
Any possible way to detect whether a client is in battle? Of course I'll probably have to make some modifications to the client class and battle processing interpreter.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 13, 2011, 05:32:24 pm
It depends on what "in battle" means to you.
Title: Re: [XP] RMX-OS
Post by: G_G on March 13, 2011, 05:35:25 pm
Scene_Battle. :P Using a modified DBS.
Blizz-ABS is so overrated :V
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 13, 2011, 05:39:17 pm
If you add a variable to Game_Actor that is the same value as $game_temp.in_battle, you could add that variable as an exchange variable. But you would also have to make sure that the variable is set and sent before entering battle because during battle there is no data transfer over the network (except for the server using keep-alive pinging).
Title: Re: [XP] RMX-OS
Post by: G_G on March 13, 2011, 05:41:27 pm
One more question, anyway to make all chat messages global? I know this feature seems stupid but I'm kinda getting paid from a friend to do this crap for him.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 13, 2011, 05:44:45 pm
Sure. Just make a server extension that make the CHT protocol command send a message to all users. Or just edit the default RMX-OS script Client#handle to send it to everybody instead of just the players on the map. Just check the interpretation of CHT.
Title: Re: [XP] RMX-OS
Post by: G_G on March 13, 2011, 05:48:53 pm
Not sure if this did it, waiting for my friend to get on so he can test it with me but I replaced the send_to_map in Client.rb on line 70 with send_to_all.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 13, 2011, 05:49:39 pm
That was exactly the line I was thinking of. It should do the trick. You gotta love how extensible and easily edited my scripts are. <3
Title: Re: [XP] RMX-OS
Post by: G_G on March 14, 2011, 08:43:47 am
So I tried modifying your visual equipment to work without the ABS. And for the most part it worked in a normal project. However all I see are a bunch of naked people running around. Heres the code, anything particular I did wrong?
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Visual Equipment for Blizz-ABS by Blizzard
# Version: 1.0b
# Type: Blizz-ABS Add-on
# Date: 1.2.2010
# Date v1.0b: 29.4.2010
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
#  This script is to be distributed under the same terms and conditions like
#  the script it was created for: Blizz-ABS.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information:
#
#   This script must be placed below Blizz-ABS and requires Blizz-ABS v2.57 or
#   higher to work properly. It will display equipment on the map. All sprites
#   are placed in the Graphics/Characters folder. Also keep in mind that using
#   this script can cause additional lag due to additional sprite display.
#   
#   
# Configuration:
#   
#   EXCLUDE_WEAPONS - weapons that should not be drawn
#   EXCLUDE_ARMORS  - armors that should not be drawn
#   DRAW_ORDER      - drawing order from first to last sprite (0 for weapon;
#                     1, 2, 3 and 4 for armor kinds)
#   PREFIX_WEAPON   - prefix for each spriteset file for weapons (can include
#                     a full path)
#   PREFIX_ARMOR    - prefix for each spriteset file for armors (can include
#                     a full path)
#   ACTOR_UNIQUE    - allows separate equipment files for every single actor
#   
#   
# Notes:
#   
#   - The default file naming convention is:
#     
#       WPREFIX + WID          - weapon files
#       APREFIX + AID          - armor files
#       WPREFIX + WID + SUFFIX - weapon action files
#       APREFIX + AID + SUFFIX - armor action files
#     
#       WPREFIX - by default "Equipment/w", but it can be changed
#       APREFIX - by default "Equipment/a", but it can be changed
#       WID     - weapon ID
#       AID     - armor ID
#       SUFFIX  - action suffix (i.e. _atk1, _skl, etc.)
#     
#     examples:
#       
#       Equipment/w3.png      - weapon ID 3
#       Equipment/a41.png     - armor ID 41
#       Equipment/w1_atk1.png - weapon ID 1, attack type 1
#       Equipment/a76_skl.png - armor ID 1, skill use
#     
#     If you are using the ACTOR_UNIQUE option, then the naming convention are:
#     
#       WPREFIX + BID + SEPARATOR + WID          - weapon files
#       APREFIX + BID + SEPARATOR + AID          - armor files
#       WPREFIX + BID + SEPARATOR + WID + SUFFIX - weapon action files
#       APREFIX + BID + SEPARATOR + AID + SUFFIX - armor action files
#       
#       BID       - actor ID
#       SEPARATOR - the character _ (underscore)
#     
#     examples:
#       
#       Equipment/w4_2.png      - actor ID 4, weapon ID 2
#       Equipment/a1_22.png     - actor ID 1, armor ID 22
#       Equipment/w77_7_def.png - actor ID 77, weapon ID 7, defending
#       Equipment/a3_8_atk5.png - actor ID 3, armor ID 8, attack type 5
#     
#     The default prefixes can be changed in the configuration, but the other
#     parts are fixed.
#     
#   - If you are not using the ACTOR_UNIQUE option and Blizz-ABS's action
#     animation frames other than the default, you have to adjust the action
#     animation frames. In this case all actors will use the same equipment
#     files for display and the files' frame number has to match the animation
#     frames number for every actor which also means that all actors need to
#     have the same number of action sprites for the various actions. i.e. All
#     actors have to have the same number of frames for attack type 1, the same
#     number of frames for attack type 2, the same number of frames for skill
#     use, the same number of frames for defending, etc.
#     
#   - Keep in mind that the dimensions of the spriteset and the equipment
#     sprite should match. i.e. If the actor spriteset is 192x192 pixels, then
#     the equipment for that sprite has to be 192x192 pixels as well. If you
#     have actors that use different spritesets among each other
#     
#   - You can disable / enable Visual Equipment for specific characters by
#     using a Call Script event command with the following code:
#       
#       $game_actors[ID].visual_equipment = true/false
#       $game_party.actors[POS].visual_equipment = true/false
#     
#     ID  - the actor's ID in the database
#     POS - the actor's position in the party (STARTS FROM 0, not 1!)
#     
#   - You can disable / enable Visual Equipment globally by using a Call Script
#     event command with the following code:
#       
#       $game_system.visual_equipment = true/false
#     
#   
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

#==============================================================================
# module BlizzCFG
#==============================================================================

module BlizzCFG
 
  #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  # START Configuration
  #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

  EXCLUDE_WEAPONS = []
  EXCLUDE_ARMORS = []
  DRAW_ORDER = [2, 3, 4, 1, 0]
  PREFIX_WEAPON = 'w'
  PREFIX_ARMOR = 'a'
  ACTOR_UNIQUE = false
 
  def self.equipment_offset(character_name)
    case character_name
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # START Equipment Sprite Offset
    #   
    #   Here you can define the equipment Y offset in pixels. This can be used
    #   to adjust the equipment sprites' position for smaller or tall
    #   character spritesets. Configure which spritesets have an offset:
    #   
    #     when NAME then return OFFSET
    #   
    #   NAME   - spriteset name
    #   OFFSET - offset in pixels
    #   
    #   Make sure you don't mispell the filenames.
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    when '011-Lancer03' then return -1
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # END Equipment Sprite Offset
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    end
    return 0
  end

  #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  # END Configuration
  #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 
  $blizzabs_visual_equipment = 1.01
 
end

#==============================================================================
# Game_System
#==============================================================================

class Game_System
 
  attr_accessor :visual_equipment
 
  alias init_blizzabsve_later initialize
  def initialize
    init_blizzabsve_later
    @visual_equipment = true
  end
 
end

#==============================================================================
# Game_Actor
#==============================================================================

class Game_Actor

  attr_accessor :visual_equipment
 
  alias init_blizzabsve_later initialize
  def initialize(actor_id)
    init_blizzabsve_later(actor_id)
    @visual_equipment = true
  end
 
  def weapons
    return (self.weapon_ids - BlizzCFG::EXCLUDE_WEAPONS - [0]) if defined?(G7_MS_MOD)
    return ([@weapon_id] - BlizzCFG::EXCLUDE_WEAPONS - [0])
  end
 
  def armors
    return (self.armor_ids - BlizzCFG::EXCLUDE_ARMORS - [0]) if defined?(G7_MS_MOD)
    return ([@armor1_id, @armor2_id, @armor3_id, @armor4_id] -
        BlizzCFG::EXCLUDE_ARMORS - [0])
  end
 
end

#==============================================================================
# Sprite_CharacterEquipment
#==============================================================================

class Sprite_CharacterEquipment < RPG::Sprite
 
  def initialize(viewport, character)
    super(viewport)
    @character = character
    update
  end
 
  def update
    super
    actor = $game_party.actors[0]
    weapons = actor.weapons
    armors = actor.armors
    if @weapons != weapons || @armors != armors ||
        @character_name != @character.character_name
      @weapons = weapons
      @armors = armors
      @character_name = @character.character_name
      self.create_bitmap
      @cw = self.bitmap.width / 4#@character.pattern_size
      @ch = bitmap.height / 4
      self.ox = @cw / 2
      self.oy = @ch
      self.src_rect.x = @character.pattern * @cw
      self.src_rect.width = @cw
    end
    self.visible = !@character.transparent
    sx = @character.pattern * @cw
    sy = (@character.direction - 2) / 2 * @ch
    self.src_rect.set(sx, sy, @cw, @ch)
    self.x = @character.screen_x
    self.y = @character.screen_y
    self.z = @character.screen_z(@ch)
    self.opacity = @character.opacity
    self.blend_type = @character.blend_type
    self.bush_depth = @character.bush_depth
  end
 
  def create_bitmap
    self.bitmap.dispose if self.bitmap != nil
    bitmap = RPG::Cache.character(@character_name, 0)
    self.bitmap = Bitmap.new(bitmap.width, bitmap.height)
    equipment = []
    a_id = (BlizzCFG::ACTOR_UNIQUE ? "#{@character.battler.id}_" : '')
    BlizzCFG::DRAW_ORDER.each {|index|
        if index == 0
          @weapons.each {|id|
              equipment.push("#{BlizzCFG::PREFIX_WEAPON}#{a_id}#{id}")}
        else
          @armors.each {|id|
              if $data_armors[id].kind == index - 1
                equipment.push("#{BlizzCFG::PREFIX_ARMOR}#{a_id}#{id}")
              end}
        end}
    sprite_name = ''#@character.character_name#.sub(
        #@character.character_name_org) {''}
    y = BlizzCFG.equipment_offset(@character.character_name)
    equipment.each {|name|
        b = RPG::Cache.character("#{name}#{sprite_name}", 0)
        self.bitmap.blt(0, y, b, Rect.new(0, 0, b.width, b.height))}
  end
 
end

#==============================================================================
# Control_Sprite_Character
#==============================================================================

class Sprite_Character
 
  alias update_blizzabsve_later update
  def update
    update_blizzabsve_later
    return if !@character.is_a?(Game_Player)
    actor = $game_party.actors[0]
    if $game_system.visual_equipment &&
        actor.visual_equipment &&
        (actor.weapons.size > 0 ||
        actor.armors.size > 0)
      if @equipment == nil
        @equipment = Sprite_CharacterEquipment.new(@viewport, @character)
      else
        @equipment.update
      end
    elsif @equipment != nil
      @equipment.dispose if !@equipment.disposed?
      @equipment = nil
    end
  end
 
  alias dispose_blizzabsve_later dispose
  def dispose
    dispose_blizzabsve_later
    @equipment.dispose unless @equipment == nil || @equipment.disposed?
    @equipment = nil
  end
 
end
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 14, 2011, 10:25:26 am
You might be missing an alias here or there, IDK. Maybe the equipment sprite never gets create or you didn't turn it actually on. *points to the last class in the VE script*
Title: Re: [XP] RMX-OS
Post by: G_G on March 14, 2011, 10:50:35 am
Well its getting created on myself. I see myself wearing armor but all other connected clients aren't wearing their armor. In fact I think I know what the problem is possibly.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 14, 2011, 11:16:52 am
I think that some IDs are not transmitted over the network. Maybe fixing up the exchange variables will do.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 19, 2011, 03:03:09 am
Question:
If a player edits the rmxp data clientside will it show up server-side? Like someone makes armor and weapons max stats and fiddles around with event commands and such.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 19, 2011, 05:54:39 am
Yes. The client sends the data if it changes.
Title: Re: [XP] RMX-OS
Post by: RoseSkye on March 19, 2011, 10:56:39 am
Theres nothing that can be done serverside to ban those who alter values clientside?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 19, 2011, 11:04:58 am
Not really, no. RMX-OS is a client-side processor which is not the best choice for strict security.
Title: Re: [XP] RMX-OS Question
Post by: KoenLemmen on March 19, 2011, 12:38:02 pm
Hi people,

I am new here on the forums.
I've got one question about this GREAT script!
Is it possible to post your game on your server (a site NOT your own PC) and run it with your PC off.
PM me pleas. I need to find a way to run my online game without keeping my pc on the hole time!  :wacko:

Koen

PS Maybe I typ bad English I am dutch.  8)
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 21, 2011, 06:08:34 pm
I released my game for some testing and I noticed this error in the server.
Spoiler: ShowHide
(http://i56.tinypic.com/23haxon.jpg)


I'm not sure what is causing it yet, but I can look into that. I thought I should mention that I just started using a new database, but I'm pretty sure I did everything that needed to be done. Basicallly, do you know what might be the cause. I can probably take it from there and test some stuff myself.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 22, 2011, 02:16:38 am
That's weird. I'm not sure what's causing it. It seems to me as if a client has gotten an invalid user ID.
Title: Re: [XP] RMX-OS
Post by: Rajaat99 on March 27, 2011, 11:13:04 am
I had to uninstall and reinstall everything, as I screwed something up and didn't know what. The first time I installed I had zero problems, but now I have a problem. Help please?
Spoiler: ShowHide
(http://img10.imageshack.us/img10/1847/problemqk.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 27, 2011, 12:09:54 pm
I think you accidentally messed up the scripts. Redownload the RMX-OS scripts and you should be fine.
Title: Re: [XP] RMX-OS
Post by: Rajaat99 on March 27, 2011, 12:18:34 pm
Quote from: Blizzard on March 27, 2011, 12:09:54 pm
I think you accidentally messed up the scripts. Redownload the RMX-OS scripts and you should be fine.

I don't know what I did, but it works now. Thank you Blizzard.
Title: Re: [XP] RMX-OS
Post by: doghusky on March 28, 2011, 02:58:07 pm
Okay, it's work good except when me and someone else are testing the game and i stay on the map and they zone. When they zone I get this error:
Mon Mar 28 07:15:48 Atlantic Daylight Time 2011:
undefined method `each_index' for nil:NilClass
(RMX-OS) Script:2383:in `rmxos_deserialize'
(RMX-OS) Script:2056:in `load_game'
(RMX-OS) Script:2052:in `each'
(RMX-OS) Script:2052:in `load_game'
(RMX-OS) Script:2046:in `each'
(RMX-OS) Script:2046:in `load_game'
(RMX-OS) Script:1062:in `check_loading'
(RMX-OS) Script:848:in `listen'
(RMX-OS) Script:844:in `each'
(RMX-OS) Script:844:in `listen'
(RMX-OS) Script:5999:in `update'
(RMX-OS) Script:5255:in `main'
(RMX-OS) Script:5252:in `loop'
(RMX-OS) Script:5257:in `main'
-<:::RMX-OS Main:::>-:46


the scripts I have are:
(RMX-OS) Options
(RMX-OS) Script

Global Switches and Variables

Blizz-ABS Script 2.84 Part 1
Blizz-ABS Script 2.84 Part 2
Blizz-ABS Script 2.84 Part 3
EXP in HUD for Blizz-ABS

Blizz-ABS Controller

Title: Re: [XP] RMX-OS
Post by: nathmatt on May 24, 2011, 07:21:53 pm
ok im having issues sending hash data but every time i go to receive the data i get a syntax error im doing it the same way you do the trade items

extension
when /\AGCD\Z/ 
  data = @data.inspect.gsub(' '){''}.gsub('{'){''}.gsub('}'){''}.gsub('='){''}
  client.send("SCD#{data}")
end


receive data
when /\ASCD(.+)/ # Data
  data = $1.gsub('>') {'=>'}
  $data = eval("{#{data}}")
end
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2011, 02:00:13 am
What kind of data are you sending? I only send integers and nothing else. Both keys and values are all integers. If you are trying to send strings, you have make sure that strings are enclosed in ".
I also use = as the key->value identifier. If any of your strings is using that, it will mess up your data.
Title: Re: [XP] RMX-OS
Post by: nathmatt on May 25, 2011, 10:14:09 am
I was trying to send file data I might try using the decryption method u used to combine the blizzabs methods
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2011, 10:41:51 am
You mean my method for passwords? That's a one way encryption, also called a hash function. It means that it can be encrypted and used for verification, but it cannot be decrypted.
Title: Re: [XP] RMX-OS
Post by: RyanGough on May 29, 2011, 04:11:14 pm
I'm having some issues. Can anyone help me?

I am only using RMX-OS and Blizz-ABS scripts.

1. The server is up and running and i can connect myself with no problems but my friend is having problems connecting. Some times it works and some times it dosen't.

2. When we are both connected some times one of us will randomly disconect with error message:

undefined method `x' for nil:NilClass
Game_Event:30:in `initialize'
ABS O:878:in `new'
ABS O:878:in `recreate_event'
ABS O:541:in `update_online_enemy'
ABS O:421:in `check_game'
(RMX-OS) Script:845:in `listen'
(RMX-OS) Script:844:in `each'
(RMX-OS) Script:844:in `listen'
(RMX-OS) Script:3618:in `upd_blizzabs_later'
ABS 3:6805:in `update'
Scene_Map:25:in `main_rmxos_later'
Scene_Map:19:in `loop'
Scene_Map:30:in `main_rmxos_later'
(RMX-OS) Script:3606:in `main_blizzabs_later'
ABS 3:6713:in `main_blizzabsrmxos_later'
ABS O:938:in `main'
-<:::RMX-OS Main:::>-:46

3. Another problem when we are both connected is that an invisble enemy will attack and kill us.

4. And the final problem is that when we die we cannot play again on that account because when it logs us in it says "game over".

so... any ideas?  :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 29, 2011, 04:39:35 pm
1. Make sure you are using the compatibility plugin for Blizz-ABS and RMX-OS.
2. Make sure you have all scripts in the right order.
3. Wipe your database after you have added all scripts. All scripts that "corrupt save data" require you to wipe your database because technically, the database contains all the save data.
4. If you keep getting a game-over screen, turn off the auto game-over option in Blizz-ABS and put together an own event system that will handle the game-over.
Title: Re: [XP] RMX-OS
Post by: RyanGough on May 29, 2011, 05:32:20 pm
Thanks for a quick reply i think you have solved my 3 and 4 problems.

But for problem 1 we both have the Blizz-ABS Controller for RMX-OS script and i have correctly added the extension. I have copied and paste the whole file so we both have the same files. Im not really too sure what i was doing with port forwarding, i read somewhere that is what i needed to do, but the thing that confuses me is sometimes it is ok and the server says online for both of us and we can see each other when logged on, (it even worked sometimes before i started messing around with port forwarding)?

And for problem 2 the scripts are in this order which i think is correct:

(RMX-OS) Options
(RMX-OS) Scripts
ABS 1
ABS 2
ABS 3
Blizz-ABS Controller for RMX-OS
-<:::RMX-OS Main:::>-
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 29, 2011, 05:46:37 pm
Yes, you have to set up the port forwarding properly. Otherwise you will have problems with online/offline status and visibility between clients.
Try resetting your router configuration and then set it up again.
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 04, 2011, 10:22:44 am
Hi Blizzard.
sorry if you already answered this question (maybe it should be in the faq) but what happens if the User saves his game and load it? I still don't understand everything what is saved in the mysql database (and some other rmx-os extensions save in a .dat).
I made some tests and the server saves so much that I only need to login. (great work) So I thought to disable the save menu.
Is that a good idea (data inconsistency if loading???) or is it better to save and load (don't think so).

Maybe I should study the manual better, because I'm not sure wich switches and variables are stored in the db (I think all).

If save is not recommended it would be nice if rmx-os disables that.

Ps: is there somewhere a api for the ruby commands in rmxp? my maker refuses to help me with f1  :<_<:
the last time I worked with RPG Maker was before I studied now I'm more interested in the script commands like player_actor.die or something like that ^^ but at least a command list would be nice..

thx alot
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 04, 2011, 11:16:22 am
Technically you should disable the save menu as it saves everything still in the normal RMXP save data format on the user's HDD (though RMX-OS disables the loading menu so it can't be loaded). I didn't make RMX-OS disable the saving since it's an option in the game menu. The game creator should take care of that (preferably get a custom menu without a save option at all).

RMX-OS saves by itself frequently enough. I have explained the saving subsystem thoroughly in the technical documentation of the manual if you want more information. Long story short, it use an alternate serialization process so data can be selectively saved (only changed data is being saved which reduces network load). The only thing that can cause inconsistency is the extended autosave option which is off by default.

Switches and variables are saved with the user save data, just like the normal save data. Global switches and variables are saved separately by the RMX-OS extension. I could have made it use the database as well, but I wanted to keep that script simple without the need to add an additional table and saving to a file is simple enough.

If you need documentation on Ruby, I suggest you just google for it. There's a API reference online. RMXP's default scripts were structured based on Ruby so the only way to find out if you can use something like player_actor.die is to check out the default scripts.
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 04, 2011, 05:21:58 pm
thx for your respond... I totally forgot that there isn't any Load Menu  :^_^':

And yes you could write it to the db, changing the tables wouldn't be that difficult but I think there is no need for a bunch of global variables.

Its a bit offtopic but I tried your Blizz-ABS with rmx-os and the needed extension.. it worked fine but it was very laggy with over 4 players.
Is that the current state of those modifications combined or did I something wrong?
But I don't need a ABS so urgent. I like the old FF battle systems. I hope there will be no problems with a sideview battle system and rmx-os. (I didn't tried yet.. I wonder what happens to other players if they go infight). But I want the Minimap from Blizz-ABS. I don't think it would be trivial to extract the code from your ABS and didn't find some minimap in the script database.. but maybe you can help me out with this.


Have a good weekend!
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 04, 2011, 05:44:35 pm
Tons of Add-ons has the Blizz-ABS Minimap script as a separate add-on.
I never had the conditions to properly stress-test the server with more than one player at a time so you're on your own here.
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 04, 2011, 10:23:22 pm
Oh ok.. Tons of Addons.. the name is adequate..

If you need some people for tests just let me know.. my friends/dev team and I will help you gladly.
our time zone is CEST / GMT+1.



Edit:
there is a bug if you use rmx-os with the seperate minimap. I don't remember this bug at Blizz-ABS but with this minimap I can switch with F5 between different views, not every view is updatet. I switched often that I get the chat and the Minimap..  but on a test with friends we realize that the chat isn't updated.. you just don't see any text.. again I click f5 to find a view which updates the chat.. but then the minimap isn't updated..


anyway I deactivated all unnecessary scripts.. it cause only lag.. (like global time & night) its not much but the amount counts..
tomorrow I should get my v-server.. I'm curious how the lag will be..

Title: Re: [XP] RMX-OS
Post by: Blizzard on June 08, 2011, 02:19:44 am
Just change the chat button in RMX-OS. It should be somewhere in the extended script configuration.
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 08, 2011, 06:42:48 pm
ok I will try that later..

I have some new problems.. I use Ubuntu 10.04lts with ruby 1.9.1 and mysql5

edit:
RMX-OS.rb:4:in `require': /home/rmxp/mysql.so: invalid ELF header - /home/rmxp/mysql.so (LoadError)
       from RMX-OS.rb:4:in `<main>'

maybe I need a different mysql.so for linux?  I will search..

edit2:
ok i found it here http://forum.chaos-project.com/index.php/topic,5055.0.html

but now i have this error
libmysqlclient.so.15: cannot open shared object file: No such file or directory - /home/rmxp/mysql.so 

I will search..



edit3:

I MADE IT MOTHER FU§§§ %"§%"..
apache, tomcat, mysql, java, ruby..  and now this shit.. 8 hours of my lifetime.. and now it works.. (I never want to be a linux admin)


For all Users with Ubuntu and MySql >5.1.x

first you need the modified version of mysql.so  from here http://forum.chaos-project.com/index.php/topic,5055.0.html
big thx @ edwardthefma

and then you need libmysqlclient15 (because 15 isn't existent since mysql5.1)  you can get it here http://automation.binarysage.net/?page_id=315
thats the last source wich is online and has these files!!  (here is the install tut http://automation.binarysage.net/?p=1311)

Just copy the file to your server, cd to this folder and type
dpkg -i libmysqlclient15off_5.1.30really5.0.75-0ubuntu10.5_i386


and then you can finally start RMX-OS..
Blizzard, pls distribute the libmysqlclient15 deb files or at least write that in the manual.. or update all your database stuff to use the new libmysqlclient.


have a nice day..

last edit: since rmx-os doesn't run with a daemon or something like that the RMX-OS Server will be closed after you close your Putty(SSH Session)..
with this behaviour you don't need a server if you always need to run putty on a computer..
But you can start the Ruby Script with a & at the end..

ruby RMX-OS.rb &

and it will be run as Orphan Process if you close the window..

pls add this to the faq or manual.

Title: Re: [XP] RMX-OS
Post by: Blizzard on June 09, 2011, 02:55:19 am
I will add this information and very likely the files to the next RMX-OS release. You are pretty much the first to properly made it run on a Linux system so you will be given special thanks for your contribution. :)
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 09, 2011, 01:43:10 pm
Quote from: James McCloud on June 09, 2011, 02:55:19 am
I will add this information and very likely the files to the next RMX-OS release. You are pretty much the first to properly made it run on a Linux system so you will be given special thanks for your contribution. :)


thx :) thats really cool  :shaft:
Title: Re: [XP] RMX-OS
Post by: element on June 09, 2011, 03:45:06 pm
Hi all,
I'm here with a question.

Today I was trying all day to run rmx-os and it works just perfectly untill i try changing it all from just localhost to my external ip and then trying to run the server.

To clear things out:
-All my ports are forwarded and work. (tested and confirmed)
-MySQL works fine
-I set up the SQL in Navicat
-There I set the server name/ip to localhost (tried all kinds of ips here, 192.164.1.1, my external...)
-The server works fine in localhost (I can connect and make an account and that works)
-I don't know what settings to change to the external ip and wich not to.
-I have no server extensions installed, just the default rmx-os folder.

I tried a lot of different combinations and after setting each one up i tried to run the server and it gives me this error:

Starting TCP Server at '*my external ip*:54269' . . .
Unexpected error occured!
The asked adress is not right in the context of the adress/ - bind<2>
then theres 6 lines of initialize, new, start_socket, start, main and <main>

RMX-OS Server is being teminated . . .



Now my question to you is, could there be some setting that im forgetting? Becouse it feels like im just forgetting one little detail.
Sorry if I'm asking stupid questions :D
Thank you
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 09, 2011, 04:06:25 pm
You don't do that. You run your server on your local IP (NOT localhost but an IP like 192.168.x.x) and forward the ports to your machine with that IP. In the client configuration of RMX-OS you enter the external IP.
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 09, 2011, 04:51:25 pm
Quote from: Blizzard on June 09, 2011, 04:06:25 pm
You don't do that. You run your server on your local IP (NOT localhost but an IP like 192.168.x.x) and forward the ports to your machine with that IP. In the client configuration of RMX-OS you enter the external IP.

you are always faster.. but I can confirm :) you need only to set up your lan IP. your port forwarding is appointed to a lan ip.. and thats the ip you need in the config.
Title: Re: [XP] RMX-OS
Post by: element on June 10, 2011, 01:15:06 am
aaaaah Ok
I'll try that later today.

Thank You ! ^^
Title: Re: [XP] RMX-OS
Post by: diagostimo on June 10, 2011, 02:15:38 am
hey, i have litrally got everything working on my own, the only thing i need help with is setting up this script--- http://forum.chaos-project.com/index.php?topic=3444.0

i have included the os add-on right below the item storage script, and these are below the two os scripts, i create a new user on the server it loads fine, i quit the game then reboot it loging in as same user, loads fine, i go to anpc that executed the item deposit and put some random items in there, quit then log back in and i get this error:

Script'(RM-OS) Script' line 2458: Argument Error occurred.

any idea what im doing wrong?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 10, 2011, 02:48:49 am
You should post that problem in the other topic. It seems to be an incompatibility problem.
Title: Re: [XP] RMX-OS
Post by: element on June 10, 2011, 03:13:35 pm
Ah so great!

It's totally working now.
I wanna thank you so much for making this and helping me blizz :)


Now let's get to creating epicness  :naughty:
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 11, 2011, 10:21:16 pm
Hey Blizz, do you have any ideas why the lag is variable on different maps?

I have some maps that lags so much that the game even slow downs if some other player moves around.
And on another map its nearly perfect sync without any lag. There are almost no scripts (we do only mapping at the moment) on both maps.. but why this huge difference?

Other Question, shoud I use Blizz Abseal? (i don't use blizz abs)

thx
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 12, 2011, 04:57:26 am
ABSEAL doesn't work well with RMX-OS. You can try, but it's likely that you have problems. I haven't really tested ABSEAL with RMX-OS, but I can see many potential problems.

What are the differences between your maps?
Title: Re: [XP] RMX-OS
Post by: mroedesigns on June 12, 2011, 04:59:22 am
Quote from: Blizzard on June 12, 2011, 04:57:26 am
ABSEAL doesn't work well with RMX-OS. You can try, but it's likely that you have problems. I haven't really tested ABSEAL with RMX-OS, but I can many potential problems.


if ABSEAL doesnt work well, are there any anti-lag systems that you would recommend?
Title: Re: [XP] RMX-OS
Post by: Wizered67 on June 12, 2011, 11:32:16 am
QuoteUsing a generic Anti-Lag system with RMX-OS might conceptually not be a good idea, because of online interaction between characters. Make sure your Anti-Lag system can work with RMX-OS properly without causing problems.


Here's what Blizzard said in the first post.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 12, 2011, 02:27:58 pm
As I said, I see many potential problems. But it wouldn't be the first time two of my scripts work together seamlessly without prior testing. xD Best you try it and see for yourself since I could be wrong.
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 12, 2011, 03:26:58 pm
Quote from: Blizzard on June 12, 2011, 04:57:26 am
ABSEAL doesn't work well with RMX-OS. You can try, but it's likely that you have problems. I haven't really tested ABSEAL with RMX-OS, but I can see many potential problems.

What are the differences between your maps?


I didn't realised any difference with Abseal or without.. but I will made some tests (not today, my head feels like it gonna expload)

I don't know the difference.. first I thought its about the map size.. but its not.. and also the script amount has no effekt.. (maybe coincidence).. tomorrow I hope my brain feels not like eaten by a zombie.. then I will make some tests..

good night..
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 12, 2011, 06:18:43 pm
Make a map 100x100 with ca. 200 normal events and event graphics. Run it once with ABSEAL on and once with ABSEAL off. You will see the difference.
You can also use the separate ABSEAL script in a new project if you wanna do this test.
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 15, 2011, 08:56:22 pm
On my PC see no difference ^^  but on my laptop.. omfg..  (rmxp uses only one core -.-)  unplayable without abseal.

for the multiplayer it makes no difference (didn't mention one).
Do Blizz-ABS use the same code to do the work of Abseal? (If I understand correctly it have his own abseal)

But still the lag.. I will now delete all scripts except the 3 rmx os scripts.. and then I try it with blizz-abs  (I see a lot of drop table^^)

Edit:
I think I will stay with blizz abs and rmx-os.. the lag could be worse. I think its better as without blizz-abs oO.. but there is really no abseal with the controller.
Now it lags even on my PC on the big Test Map..
But I understand why abseal can't be on blizz-abs with rmx-os.
I hope your ARC Project precedes.. I really want to change the engine :)  (would be cool if you get it compatible with all scripts.. like rmx-os.. or something similar.. but native implemented multiplayer is essential)

ps: hey blizz, you are a good singer  :haha: http://www.youtube.com/watch?v=-6S5caRGpK4  -epic-
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 16, 2011, 02:16:08 am
The ABSEAL script that I have released is actually taken from Blizz-ABS, but non-Blizz-ABS parts have been removed (such as on the minimap).
Yes, Blizz-ABS requires more CPU time (obviously). If you want to enable ABSEAL for Blizz-ABS with RMX-OS, there is a forced turning off in the Blizz-ABS Controller script. Just comment out that value and you will have ABSEAL for Blizz-ABS with RMX-OS and then you can try it out.

EDIT: You should totally watch "Doctor Horrible's Sing-along Blog". It even got an Emmy.
Title: Re: [XP] RMX-OS
Post by: KoenLemmen on June 16, 2011, 08:45:57 am
Are you really singing this  http://www.youtube.com/watch?v=-6S5caRGpK4 ?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 16, 2011, 09:17:16 am
Lol, I'm not Neil Patrick Harris. xD
Title: Re: [XP] RMX-OS
Post by: G_G on June 16, 2011, 09:23:19 am
:facepalm:
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 16, 2011, 01:41:58 pm
Quote from: KoenLemmen on June 16, 2011, 08:45:57 am
Are you really singing this  http://www.youtube.com/watch?v=-6S5caRGpK4 ?


loool you didn't know that? XD He is also an actor in the TV-Show How I Met Your Mother.. and in his freetime he make RMXP Scripts  :clap:  
and he has still time to answer our questions..
All Stars should be like Blizzard :D
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 16, 2011, 02:12:14 pm
I should put up my own picture as avatar again. People have forgotten who I am. #_#
Title: Re: [XP] RMX-OS
Post by: Vaelen on June 16, 2011, 03:38:15 pm
Quote from: Blizzard on June 16, 2011, 02:12:14 pm
I should put up my own picture as avatar again. People have forgotten who I am. #_#


hehe but take the picture in a suit.. and take the same position like barney ^^
Title: Re: [XP] RMX-OS
Post by: mroedesigns on June 16, 2011, 03:58:35 pm
Quote from: Vaelen on June 16, 2011, 03:38:15 pm
Quote from: Blizzard on June 16, 2011, 02:12:14 pm
I should put up my own picture as avatar again. People have forgotten who I am. #_#


hehe but take the picture in a suit.. and take the same position like barney ^^


:O You have to do it blizz, it'd be too perfect. hahaha /offtopic
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 16, 2011, 05:02:41 pm
I don't have a tie, but I have a great outfit that I could wear: My favorite seduction clothes. <3

EDIT: I don't mean naked, I mean actual clothes.
Title: Re: [XP] RMX-OS
Post by: G_G on June 16, 2011, 05:05:42 pm
You got my hopes up and errything.
Title: Re: [XP] RMX-OS
Post by: KoenLemmen on June 30, 2011, 08:03:33 am
I've got a problem...
My computer is connected on a network at home. And we all share a external IP.
How can I connect my game with other people?

EDIT: I have the MySQL database working now. But I can't get the Ruby Server starting with my external IP. I can get it running with my localhost. I have opened the standard RMX-OS port in my Router and Firewall, I also wiped my database... So whats wrong?

EDIT AGAIN: Is it dangerous to make your IP public?

LAST EDIT: Forget everything I did it. What I did wrong: I added the wrong Ruby in my firewall. (Because I have a old and a new version.)
Title: Re: [XP] RMX-OS
Post by: gabriel vr on July 24, 2011, 09:01:19 pm
wow very good, i'm looking for this netpaly for long time, not this literally but one that save the files on the mysql, now i just have to install the abs in the netplay thanks very much blizzard  :xD:
Title: Re: [XP] RMX-OS
Post by: G_G on August 01, 2011, 08:47:54 am
I can't remember if it was announced, is this compatible with Ruby on Rails? I'm pretty sure Blizzard said no, can't remember.
Title: Re: [XP] RMX-OS
Post by: mroedesigns on August 01, 2011, 01:35:59 pm
I'm pretty sure it is, actually, but I haven't tried it myself
Title: Re: [XP] RMX-OS
Post by: Wizered67 on August 01, 2011, 02:14:00 pm
Actually, I was pretty sure Blizzard said it wasn't compatible.
Title: Re: [XP] RMX-OS
Post by: G_G on August 01, 2011, 07:12:07 pm
Well off that topic as I'm not worried about that. Was just wondering.

I have created a PHP script that generates an offline/online image. Not hard to do but I've had troubles with several web hosts not allowing you to do port checks. Mine happens to allow it.
[img]http://decisive-media.net/server.php?host=your_ip_here&port=your_port_here[/img]

Which will produce the following.

IP = 209.159.212.203 : Port = 25566
(http://decisive-media.net/server.php?host=209.159.212.203&port=25566)

@Blizz: Maybe add this to the first post? Might help some people. S:
Title: Re: [XP] RMX-OS
Post by: Wolverien on August 01, 2011, 09:40:05 pm
Soo.. Hi

I only just found out about RMX-OS, installed everything and it's working fine.
However, whenever I try to "install" an extension/plugin script my server won't start..! =/
I've only tried 2 scripts so far (Global Day-and-Night System and User Logger)

So when I place them where they should be and try to run the server it closes
down as soon as it recognizes that there's an extension script,
then when I remove it again, it works just fine.... =/

Any clue what's going on? =/
Title: Re: [XP] RMX-OS
Post by: mroedesigns on August 02, 2011, 12:43:57 am
Did you add the extensions to the servers config file?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 02, 2011, 04:17:16 am
Quote from: game_guy on August 01, 2011, 07:12:07 pm
Well off that topic as I'm not worried about that. Was just wondering.

I have created a PHP script that generates an offline/online image. Not hard to do but I've had troubles with several web hosts not allowing you to do port checks. Mine happens to allow it.
[img]http://decisive-media.net/server.php?host=your_ip_here&port=your_port_here[/img]

Which will produce the following.

IP = 209.159.212.203 : Port = 25566
(http://decisive-media.net/server.php?host=209.159.212.203&port=25566)

@Blizz: Maybe add this to the first post? Might help some people. S:


Maybe you should just make a special topic for that.
Title: Re: [XP] RMX-OS
Post by: Wolverien on August 02, 2011, 07:24:08 am
Quote from: mroedesigns on August 02, 2011, 12:43:57 am
Did you add the extensions to the servers config file?
Yes I have, otherwise the server script wouldn't recognize that there's an extension and it would run
normally. It just shuts down when it 'sees' that there's an extension =/
Title: Re: [XP] RMX-OS
Post by: JellalFerd on August 13, 2011, 05:03:53 pm
I keep getting this error
Spoiler: ShowHide
(http://img199.imageshack.us/img199/4781/errorqq.png)
Title: Re: [XP] RMX-OS
Post by: G_G on August 13, 2011, 08:06:55 pm
Whatever you're using as your username for your MySql host does not have permission to access the database. From the looks either the username or password for your MySql host is incorrect.
Title: Re: [XP] RMX-OS
Post by: JellalFerd on August 13, 2011, 08:23:10 pm
The only username and password I've tried is my router's username and password.
I have no idea what else it's supposed to be.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 14, 2011, 04:54:44 am
You typed in empty spaces as host. The host is usually localhost or 127.0.0.1 if the SQL database is located on the same machine.
Title: Re: [XP] RMX-OS
Post by: JellalFerd on August 14, 2011, 06:45:22 am
Thanks, Blizz, it's working perfectly.

EDIT:
When I got a friend to beta-test it, he got this error:
Spoiler: ShowHide
(http://img29.imageshack.us/img29/852/error2qa.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 14, 2011, 07:30:53 am
Either you firewall configuration or network configuration are not properly set up.
Title: Re: [XP] RMX-OS
Post by: InfinateX on August 20, 2011, 02:46:34 am
HOLY CRAP! One months and you got 62 pages of replies? There aren't even Online VX sripts with servers that run anymore
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 20, 2011, 06:07:40 am
More like 2 years. The first post dates to 2009-06-20.
Title: Re: [XP] RMX-OS
Post by: unknown on August 23, 2011, 05:30:18 am
GUI link is down -> The webpage cannot be found
Title: Re: [XP] RMX-OS
Post by: mroedesigns on August 29, 2011, 12:32:12 pm
So I have a question that's probably pretty stupid, but I just wasn't sure. Lets say client side I used a variable for the players skill level in mining or something like that. Will the engine save the values of these variables automatically or do I need to add something, or actually save the game?
Title: Re: [XP] RMX-OS
Post by: bradhawk on August 29, 2011, 01:13:33 pm
maybe you need Global Switches and Variables for RMX-OS http://forum.chaos-project.com/index.php?topic=5328.0 (http://forum.chaos-project.com/index.php?topic=5328.0)  :P
Title: Re: [XP] RMX-OS
Post by: mroedesigns on August 29, 2011, 01:25:22 pm
The variables aren't global though, they'd be different for every character.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 29, 2011, 06:12:19 pm
You need to tell RMX-OS what the additional save data is per actor. Find SAVE_DATA['Game_Actor'] in the config section and add the additional variables there.
Title: Re: [XP] RMX-OS
Post by: G_G on August 29, 2011, 06:40:33 pm
I think he means actual game variables. ($game_variables)
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 30, 2011, 02:09:37 am
You think? Well, those are saved automatically already and they are saved for each character separately (every player has his own set of variables).
Title: Re: [XP] RMX-OS
Post by: mroedesigns on August 30, 2011, 12:48:27 pm
Awesome, that's what I needed to know. Thanks!
Title: Re: [XP] RMX-OS
Post by: Peaverin on September 12, 2011, 03:12:58 pm
I have an error with the extensions :( . When i add a extension on the extensions folder an then i put the extension on the config script of the server and i run the server, it runs few seconds an then it appears not running :S. I need help because if i can't put the extensions i can't put scripts of the rmx os...
Thanks for the help, and sorry if i have a bad english.
Title: Re: [XP] RMX-OS
Post by: Affero on November 01, 2011, 05:05:42 am
Having some ABS problems with RMX-OS
1 - It's online so that's not the problem.
Spoiler: ShowHide
(http://i254.photobucket.com/albums/hh104/Draft92/sPvlL51.png)

2 - It's this, I get this error every time I try to login
Spoiler: ShowHide
(http://i254.photobucket.com/albums/hh104/Draft92/J2ZlrZ.png)
Title: Re: [XP] RMX-OS
Post by: Shin Migumi on November 30, 2011, 05:16:59 pm
I've pretty much troubleshooted all of the problems I had with rmx-os all night (haven't gone to sleep yet Oo), so i'm fairly good at finding stuff on my own. One thing is bothering me, it's probably just a miscalculation by me. When I make an enemy and name it say \e[2], it shows up on the map, the minimap as an enemy, but I can't attack it and it doesn't attack me. I know thats the common procedure to make an enemy in blizz-abs, maybe it's different in rmx-os?
Title: Re: [XP] RMX-OS
Post by: RyanGough on December 12, 2011, 03:01:46 pm
Hi I am using RMX-OS with Blizz-abs and I have a little/major problem.
How do I make it so when an actor leaves the map and comes back the enemies and everything don't reset?
I also had an invisible enemy issue but I guess the 2 are related since if one player leaves they will reset all the enemies?
I have set it so my enemies re-spawn with the blizz-abs config, which is what I want but I don't want them to re-spawn every time somebody leaves the map.
It is probably very basic and incredibly easy but I have looked everywhere and can't find any information on it.
I am 95% sure it isn't any thing to do with scripts and is probably easily done with events or switches, I also read about global switches will I have to use that script or not?
Sorry if this is the wrong area to post didn't know where to go.
Thanks in advance
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 12, 2011, 03:09:50 pm
I suggest that you learn how to use switches and variables for that particular problem (if you don't know how, that is), since the solution is basically the same in an offline and online game. Though, you might additionally need the RMX-OS plugin for global switches and variables, depending on what kind of final effect you want to achieve (whether the change on the map is propagated to all players or only to the current player). Other than that, it's not very wise to "save" the state of a map without any active players. Using global variables with timers for specific things (e.g. manual respawning timer for the enemy) would be way better here.
Title: Re: [XP] RMX-OS
Post by: RyanGough on December 12, 2011, 04:00:02 pm
Ok thanks, I understand how switches work but I don't understand, how to say when a specific enemy dies then turn on switch 001? Because blizz-abs uses \e[1] thing for enemies. I can make my other npc's vanish but just not enemies. What event command should I be using to turn on the switch?
Title: Re: [XP] RMX-OS
Post by: mroedesigns on December 22, 2011, 04:07:46 am
I checked the script reference and didn't see anything, but how would I go about hiding the players username via script call? Also, "$game_temp.chat_active = false" doesn't hide the chat window like I thought it would.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on December 22, 2011, 11:33:38 am
I think it might be $game_temp.chat_visible. I'm pretty sure its in the manual.
Title: Re: [XP] RMX-OS
Post by: mroedesigns on December 22, 2011, 04:07:03 pm
nope, that returned a no method error. Its chat_active in the manual.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on December 22, 2011, 06:06:59 pm
Try $game_temp.chat_enabled. That might be it.
Title: Re: [XP] RMX-OS
Post by: mroedesigns on December 22, 2011, 09:38:51 pm
aha, thank you!
Title: Re: [XP] RMX-OS
Post by: Ununoctium on January 13, 2012, 02:51:28 am
I'm in dire need of some help here.

Okay, well, I got everything setup fine and it ran perfectly for me.
Working Fine: ShowHide
(http://img593.imageshack.us/img593/6379/workingfine.png)


However, when I try to get a friend play on the server, they just tell me it's offline.

I'm puzzled as to why this happens and I can't think of any explanation.

My port is forwarded, and my Ruby server file is working fine (I think...)
Spoiler: ShowHide

(http://img196.imageshack.us/img196/9757/helpdi.png)
(http://img546.imageshack.us/img546/3865/setupfine.png)


I don't have any firewalls enabled, so I don't think it's a firewall causing the problem.

Could someone please help me?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 13, 2012, 03:01:08 am
Not just TCP, turn on both. I remember that I used UDP at one point, but I can't remember if I left that code. >.<
Title: Re: [XP] RMX-OS
Post by: Ununoctium on January 13, 2012, 03:26:03 am
Quote from: Blizzard on January 13, 2012, 03:01:08 am
Not just TCP, turn on both. I remember that I used UDP at one point, but I can't remember if I left that code. >.<

Well, I switched it to both but it still seems to be offline.

Is there anything else I'm supposed to be doing here? ._.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 13, 2012, 04:08:58 am
Nothing comes to my mind right now. :/
Title: Re: [XP] RMX-OS
Post by: Ununoctium on January 14, 2012, 08:44:32 pm
Could it be I messed something up with the config?
Spoiler: ShowHide
(http://img171.imageshack.us/img171/5619/configd.png)

(Btw, I put in both IPs cuz I wasn't sure which one I was supposed to use, but my external IP address always shows up as offline)
Title: Re: [XP] RMX-OS
Post by: fanmariopl on January 15, 2012, 03:20:19 am
how can i change trade request message?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 15, 2012, 03:55:36 am
@Ununoctium: Internal IP only. Config looks fine to me, though. Have you tried getting somebody from the local network to connect?

@fanmariopl: At the top of the RMXOS script under RMXOS::Data for the client and in Data/Data.rb under RMXOS::Data for the server.
Title: Re: [XP] RMX-OS
Post by: Futendra on January 15, 2012, 04:55:56 am
Quote from: Ununoctium on January 14, 2012, 08:44:32 pm
Could it be I messed something up with the config?
Spoiler: ShowHide
(http://img171.imageshack.us/img171/5619/configd.png)

(Btw, I put in both IPs cuz I wasn't sure which one I was supposed to use, but my external IP address always shows up as offline)


Watch out with putting IP's over the internet
Title: Re: [XP] RMX-OS
Post by: fanmariopl on January 15, 2012, 05:13:13 am
Quote from: Blizzard on January 15, 2012, 03:55:36 am
@fanmariopl: At the top of the RMXOS script under RMXOS::Data for the client and in Data/Data.rb under RMXOS::Data for the server.

I can`t find it in the client  :(
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 15, 2012, 06:12:15 am
RMXOS::Data is on top, the constants you're looking for are somewhere inside of RMXOS::Data. I've given them names that should make it easy to find them. There are lots of constants, you will have to do a bit of scrolling and reading until you find the ones you want to change.
Title: Re: [XP] RMX-OS
Post by: Ununoctium on January 24, 2012, 09:23:46 pm
Nevermind, I got it to work using Hamachi.
Title: Re: [XP] RMX-OS
Post by: Futendra on March 01, 2012, 12:46:52 pm
Can you upload the MySQL database and so to a webhost using that as a server?
Title: Re: [XP] RMX-OS
Post by: G_G on March 01, 2012, 10:08:49 pm
If whatever host you're using allows for outside MySql connections, you can use your webhost as an SQL server. However, in order to run your game off of a web server, that server needs to be set up for that with proper software.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 11, 2012, 03:41:18 pm
Why was buddying with a player disabled if you are not on the same map as them? Does it not work?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 11, 2012, 04:07:31 pm
I had a pretty good reason for that, but I honestly cannot remember. ._. I think it was so you can't go bother people in the whole game if you try to spam somebody with buddy requests. If you make a new friend, you're most likely going to do it while playing on the same map.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 11, 2012, 04:08:41 pm
So would it generally be a bad idea to make any sort of "request" to a player on another map?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 12, 2012, 02:29:55 am
Basically yes, but I think there were a few exceptions.
Title: Re: [XP] RMX-OS
Post by: hansiec on March 27, 2012, 11:08:08 am
I got a weird error when logging in or registering:


---------------------------
RPG Maker XP - Online System
---------------------------
Script '(RMX-OS) Script' line 2267: Errno::ECONNABORTED occurred.

An established connection was aborted by the software in your host machine.
---------------------------
OK   
---------------------------
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 17, 2012, 09:28:09 am
Your server was not properly configured to accept TCP connections.
Title: Re: [XP] RMX-OS
Post by: RyukLikesApples on April 19, 2012, 08:10:21 pm
Using Ruby-Mysql 2.8.1 (mysql.so) and ruby 1.9.1, RMX-OS gives me an error:

2012-04-19 22:10:27 UTC; -1 () - Error:
Cannot add or update a child row: a foreign key constraint fails (`rmxosdb`.`ips`, CONSTRAINT `ips_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE)
./Data/Action_Handler1.rb:47:in `query'
/srv/rmxos/rmx/Data/Action_Handler1.rb:47:in `try_register'
/srv/rmxos/rmx/Data/Client.rb:135:in `check_connection'
/srv/rmxos/rmx/Data/Client.rb:47:in `handle'
/srv/rmxos/rmx/Data/Server.rb:272:in `block in run'

Using 2.8 mysql.so in conjunction with Ruby 1.8 did not work when I added Global Switches, and global switches worked when I used the 2.8.1 mysql.so and ruby 1.9. However, after a database wipe, I was greeted by this message when attempting to log in. Would you be able to help me fix this? I seem to remember that befre the wipe, existing accounts had no problems logging in, but after the wipe REGISTERING accounts caused this problem. And now I cannot remember the formatting of user entries in the database D:

Please Advise,
Ryuk
Title: Re: [XP] RMX-OS
Post by: RyukLikesApples on April 22, 2012, 04:51:13 pm
Alright well, I fixed the error by removing foreign constraints completely; in the mysql database I merely executed the code without constraints as follows:
-- phpMyAdmin SQL Dump
-- version 3.5.0
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 21, 2012 at 10:40 PM
-- Server version: 5.5.22-log
-- PHP Version: 5.3.10

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `rmxosdb`
--

-- --------------------------------------------------------

--
-- Table structure for table `buddy_list`
--

CREATE TABLE IF NOT EXISTS `buddy_list` (
  `user1_id` int(10) unsigned NOT NULL,
  `user2_id` int(10) unsigned NOT NULL,
  PRIMARY KEY (`user1_id`,`user2_id`),
  KEY `user2_id` (`user2_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `guilds`
--

CREATE TABLE IF NOT EXISTS `guilds` (
  `guild_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `leader_id` int(10) unsigned NOT NULL,
  `guildname` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(11) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`guild_id`),
  UNIQUE KEY `leader_id` (`leader_id`),
  UNIQUE KEY `guildname` (`guildname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `inbox`
--

CREATE TABLE IF NOT EXISTS `inbox` (
  `pm_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `recipient_id` int(10) unsigned NOT NULL,
  `sendername` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
  `senddate` datetime NOT NULL,
  `message` text COLLATE utf8_unicode_ci NOT NULL,
  `unread` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`pm_id`),
  KEY `recipient_id` (`recipient_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `ips`
--

CREATE TABLE IF NOT EXISTS `ips` (
  `user_id` int(10) unsigned NOT NULL DEFAULT '0',
  `ip` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`user_id`,`ip`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `ips`
--

INSERT INTO `ips` (`user_id`, `ip`) VALUES
(1, '72.197.185.233');

-- --------------------------------------------------------

--
-- Table structure for table `save_data`
--

CREATE TABLE IF NOT EXISTS `save_data` (
  `user_id` int(10) unsigned NOT NULL,
  `data_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `data_value` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`user_id`,`data_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `save_data`
--

INSERT INTO `save_data` (`user_id`, `data_name`, `data_value`) VALUES
(1, 'Game_Actors', '[Array]'),
(1, 'Game_Actors/@data', '[nil,nil,nil,nil,nil,nil,nil,nil,nil,Game_Actor]'),
(1, 'Game_Actors/@data[9]/Game_Actor', '[9,"Crispin","Crispin",0,9,35,0,0,0,0,1,0,Array,550,550,Array,0,0,0,0,0,0,0,0,Array,Array,1,8,8,0,0,Hash,Array]'),
(1, 'Game_Actors/@data[9]/Game_Actor/@item_hotkeys', '[0,0,0,0,0,0,0,0,0,0]'),
(1, 'Game_Actors/@data[9]/Game_Actor/@skill_hotkeys', '[0,0,0,0,0,0,0,0,0,0]'),
(1, 'Game_Actors/@data[9]/Game_Actor/@skills', '[]'),
(1, 'Game_Actors/@data[9]/Game_Actor/@state_time', '{}'),
(1, 'Game_Actors/@data[9]/Game_Actor/@states', '[]'),
(1, 'Game_Actors/@data[9]/Game_Actor/@triggers', '[]'),
(1, 'Game_Map', '[1]'),
(1, 'Game_Party', '[0,0,Array,Hash,Hash,Hash]'),
(1, 'Game_Party/@actors', '[Game_Actor]'),
(1, 'Game_Party/@actors[0]/Game_Actor', '[9,"Crispin","Crispin",0,9,35,0,0,0,0,1,0,Array,550,550,Array,0,0,0,0,0,0,0,0,Array,Array,1,8,8,0,0,Hash,Array]'),
(1, 'Game_Party/@actors[0]/Game_Actor/@item_hotkeys', '[0,0,0,0,0,0,0,0,0,0]'),
(1, 'Game_Party/@actors[0]/Game_Actor/@skill_hotkeys', '[0,0,0,0,0,0,0,0,0,0]'),
(1, 'Game_Party/@actors[0]/Game_Actor/@skills', '[]'),
(1, 'Game_Party/@actors[0]/Game_Actor/@state_time', '{}'),
(1, 'Game_Party/@actors[0]/Game_Actor/@states', '[]'),
(1, 'Game_Party/@actors[0]/Game_Actor/@triggers', '[]'),
(1, 'Game_Party/@armors', '{}'),
(1, 'Game_Party/@items', '{}'),
(1, 'Game_Party/@weapons', '{33=>6,34=>6,35=>5}'),
(1, 'Game_Player', '[43,44,1376,1408,"Crispin",nil]'),
(1, 'Game_SelfSwitches', '[Hash]'),
(1, 'Game_SelfSwitches/@data', '{}'),
(1, 'Game_Switches', '[Array]'),
(1, 'Game_Switches/@data', '[nil,true,false]'),
(1, 'Game_System', '[0,false,false,true,false,0,true,true,true,true,true,true,true,true,true,true,true,true,false,true]'),
(1, 'Game_Variables', '[Array]'),
(1, 'Game_Variables/@data', '[nil,15,0]'),
(1, 'Graphics.frame_count', '4295');

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(11) COLLATE utf8_unicode_ci NOT NULL,
  `usergroup` int(10) NOT NULL DEFAULT '0',
  `banned` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`user_id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`user_id`, `username`, `password`, `usergroup`, `banned`) VALUES
(1, 'Ryuk', 'pc20nGPeltQ', 10, 0);

-- --------------------------------------------------------

--
-- Table structure for table `user_data`
--

CREATE TABLE IF NOT EXISTS `user_data` (
  `user_id` int(10) unsigned NOT NULL,
  `notrade` tinyint(1) NOT NULL DEFAULT '0',
  `lastlogin` datetime NOT NULL,
  `guild_id` int(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`user_id`),
  KEY `guild_id` (`guild_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `user_data`
--

INSERT INTO `user_data` (`user_id`, `notrade`, `lastlogin`, `guild_id`) VALUES
(1, 0, '2012-04-20 05:59:18', NULL);

--
-- Constraints for dumped tables
--

--
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Title: Re: [XP] RMX-OS
Post by: MOAL on April 22, 2012, 05:00:59 pm
Edit: Nevermind, I got it. :)
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 22, 2012, 05:15:46 pm
@MOAL: You have not copied both parts of the script.

@RyukLikesApples: Actually the foreign key constraints are there to consecutively wipe data that is not needed anymore. e.g. If a user is deleted, there is no point in keep that user's save data or IP list (hence ON CASCADE DELETE). They also ensure that the data integrity is kept. e.g. Save data will always reference an existing player. Save data cannot be saved if it is not bound to a player. If you did a database wipe and then the error started happening, then you didn't do the database wipe properly. Have you tried dropping the whole database and creating it again or have you just tried emptying the tables? If you just tried emptying the tables, it's possible that they actually weren't wiped completely without giving you a proper error message.

EDIT: Wait, I can see that you have some data there. If you want to fill the database with data again, you have to do it in the right order. First you have to fill in all the users data and then the tables with foreign key constraints referring to the users table. Basically if you have a foreign key constraint, you first have to fill the table that is being referred to. The simplest way is to first fill the tables without constraints and then continuously fill the tables with constraints referring tables that you have already added.

Also, if you want a clean database without data, use the SQL script that is given with RMX-OS by default and it will create an empty database for you.

In case you're confused, this is what a line that adds data looks like:

INSERT INTO `ips` (`user_id`, `ip`) VALUES
(1, '72.197.185.233');


Notice the "INSERT INTO" command.
Title: Re: [XP] RMX-OS
Post by: RyukLikesApples on April 22, 2012, 05:28:01 pm
Hm...I just noticed that if I removed the foreign keys, data isn't saved at all! If I make an account called Test1, the database is unchanged!

I tried dropping the entire database and remaking (0 rows in each table) and when I login there is an error:

Cannot add or update a child row: a foreign key constraint fails (`rmxosdb`.`ips`, CONSTRAINT `ips_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE)
./Data/Action_Handler1.rb:47:in `query'
/srv/rmxos/rmx/Data/Action_Handler1.rb:47:in `try_register'
/srv/rmxos/rmx/Data/Client.rb:135:in `check_connection'
/srv/rmxos/rmx/Data/Client.rb:47:in `handle'
/srv/rmxos/rmx/Data/Server.rb:272:in `block in run'


Edit: Prior to upgrading ruby and it's counterpart mysql.so, this worked fine, as did the database sql commands (wiped it clean a fair amount of times).

Edit 2: The process I use is 1. Stop server. 2. Drop database 3. Use mysql script (RMX-OS SQL Database.sql) 4. Check to see that there are 0 rows in each table 5. start the server (no problems) 5. use client to try and register 6. hit enter key for the register button after I inpout username and password 7."You have been disconnected" and the error in console, no data is written to mysql server.

Edit 2 million: If I comment out this line: #      RMXOS.server.sql.query("REPLACE INTO ips(user_id, ip) VALUES (#{user_id}, '#{ip}')")


the entire thing WORKS, even data saving. So I KNOW it is this line. Yeah, it is this line. But then I get some other errors later about how the IP doesnt exist etc.
Title: Re: [XP] RMX-OS
Post by: MOAL on April 22, 2012, 08:09:13 pm
I apparently have another problem, I'm using Hamachi for the IP and a MySQL database. I can launch the server successfully ( it even says so ), but when I try to log in, I get an error that says "Server did not respond." My hamachi is working just fine, it's on and everything. My firewall is off and not blocking anything. What could be the problem? Here's what I get on the server log, if it helps any: http://i42.tinypic.com/24cbko2.png Edit: and another error... http://i40.tinypic.com/18p5ab.png they both happen when I try to log in, only the second one that I just added, only says "MySQL server has gone away."

I've tried this with two MySQL providers and both gets only one of these.
Title: Re: [XP] RMX-OS
Post by: RyukLikesApples on April 23, 2012, 02:10:03 am
MOAL, set the Database Timeout to 0.

In other news, still no worky; I am certain that the line is causing errors. (47)
Title: Re: [XP] RMX-OS
Post by: MOAL on April 23, 2012, 02:55:18 am
Thanks, this solved my other problems to an extent. But, instead, I now seem to be getting this error along with "Server did not respond.": http://i44.tinypic.com/10onsau.png

Sorry to annoy you all with my problems.  :wacko:
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 23, 2012, 01:05:45 pm
@MOAL: If your machine has not been configured to accept incoming connections, then it won't work regardless of firewall, port forwarding and anything else. You first have to set up your PC to accept incoming connections. Sadly I don't remember anymore how exactly it is done. Try googling that error and see what comes up.
Also, you should upgrade to RMX-OS 1.18. There have been some improvements. Among other things, it may actually help you a bit with your problems.

@RyukLikesApples: You said that you tried using custom Ruby versions and mysql.so files, right? I suggest that you use the versions that I have specified in the manual and that you use the files already contained in RMX-OS. This will have the highest chance of everything working properly.

I have taken a look at the error you are getting and this is the whole method:

	def try_register(username, password)
# try to find user
check = RMXOS.server.sql.query("SELECT COUNT(*) AS count FROM users WHERE username = '#{RMXOS.fix_string(username)}'")
hash = check.fetch_hash
# user already exists
return RMXOS::RESULT_FAIL if hash['count'].to_i > 0
# get user count
check = RMXOS.server.sql.query("SELECT COUNT(*) AS count FROM users")
hash = check.fetch_hash
RMXOS.server.sql.query("START TRANSACTION")
# first registered user becomes admin
group = (hash['count'].to_i == 0 ? RMXOS::GROUP_ADMIN : RMXOS::GROUP_PLAYER)
# register new user
RMXOS.server.sql.query("INSERT INTO users (username, password, usergroup) VALUES ('#{RMXOS.fix_string(username)}', '#{password}', #{group})")
# get new user ID
check = RMXOS.server.sql.query("SELECT user_id FROM users WHERE username = '#{RMXOS.fix_string(username)}'")
hash = check.fetch_hash
user_id = hash['user_id'].to_i
RMXOS.server.sql.query("INSERT INTO user_data (user_id, lastlogin) VALUES (#{user_id}, '#{RMXOS.get_sqltime(Time.now.getutc)}')")
# get client's IP address
ip = @client.socket.peeraddr[3]
# record IP
RMXOS.server.sql.query("REPLACE INTO ips(user_id, ip) VALUES (#{user_id}, '#{ip}')")
RMXOS.server.sql.query("COMMIT")
return RMXOS::RESULT_SUCCESS
end


Notice these lines:

		RMXOS.server.sql.query("INSERT INTO user_data (user_id, lastlogin) VALUES (#{user_id}, '#{RMXOS.get_sqltime(Time.now.getutc)}')")
# get client's IP address
ip = @client.socket.peeraddr[3]
# record IP
RMXOS.server.sql.query("REPLACE INTO ips(user_id, ip) VALUES (#{user_id}, '#{ip}')")
RMXOS.server.sql.query("COMMIT")


This means that there is definitely a user entry in the database before the IP is logged. But I can't remember how well things work when you use transactions and if foreign constraints are disabled during them so everything can work out. The only thing that I can suggest is that you move the COMMIT line further up so the user is definitely already registered in the database when his IP is supposed to be added:

		RMXOS.server.sql.query("COMMIT")
# get client's IP address
ip = @client.socket.peeraddr[3]
# record IP
RMXOS.server.sql.query("REPLACE INTO ips(user_id, ip) VALUES (#{user_id}, '#{ip}')")


If the problem really is the transaction in progress, this change should prevent the foreign key error.
If this doesn't work, then just remove the lines. Technically it's an optional feature so you don't really need it. But you won't be able to IP ban users properly.
Also, if you are still having errors with this one, you should keep in mind that there is a similar line in the try_login method in same file (line 86) so you might wanna remove that one as well.
Title: Re: [XP] RMX-OS
Post by: MOAL on April 23, 2012, 02:21:18 pm
@Blizzard - I updated to 1.18 of RMX-OS, allowed incoming connections, and rearranged everything accordingly. But the error remains, same old "Server did not respond." and everything. I searched google on these errors but I can't seem to find any working solutions. I've also tried switching out the mySQL databases in hopes that it was the problem, though my provider for mySQL is up and running just fine.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 23, 2012, 02:44:46 pm
No, the problem is definitely that your machine isn't configured to accept incoming connections. Somebody else had the same problem once. In fact several people had that exact same problem. But I can't remember anymore how it can be fixed. :/ You have mess around with some of Windows' settings and who is allowed to connect to the PC.
Title: Re: [XP] RMX-OS
Post by: RyukLikesApples on April 23, 2012, 03:02:43 pm
The files included gave me elf header errors. Compiling MySQL.so by myself fixed the problem, but global switches and vars script had errors using it. After upgrading to 1.9.1 global switches and vars worked but login started having problems. I will try what you recommended by movin the command up, will update after I do so; thank you very much for your help.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 23, 2012, 03:26:21 pm
Elf header errors? You are running RMX-OS on a Linux machine, aren't you? If yes, this here might be of interest for you: http://forum.chaos-project.com/index.php/topic,3869.msg146421.html#msg146421
Title: Re: [XP] RMX-OS
Post by: RyukLikesApples on April 23, 2012, 09:34:34 pm
I tried his file when I first started (~7 days ago) and seeing as it did not work, I had to compile my own :P

Edit:  My god, Blizzard, you are an absolute genius. IT WORKS!

And finally: a game question: is it possible to force parts of the game to be clientside? for instance, cutscenes need to be clientside to display properly, or is there an alternative method to making cutscenes that you would recommend?

Ryuk
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 24, 2012, 02:33:30 am
I'm glad this worked out. :) You just followed the instructions by Vaelen, right? If this worked for you as well, then I can be sure that this method works and add it to RMX-OS.

As for your question: Technically everything already is client side (except enemies). Using Global Switches and Variables is how you make things be global.
Title: Re: [XP] RMX-OS
Post by: RyukLikesApples on April 24, 2012, 10:04:54 am
What if the cutscenes use sprites that move around? Since the server controls the npcs wouldn't it look weird? Or by enemies do you mean the ones in battle, not npcs?

Thanks,
Ryuk
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 24, 2012, 10:18:32 am
No, the server doesn't control map events. It's actually a processing pattern that makes one of the current players on the map the processor and then the positions are propagated to all other clients. If I remember right, events are not global so events moving around on one client will not move around on another one. I can't remember if I mentioned that somewhere and said that events should stay still to avoid problems.
Title: Re: [XP] RMX-OS
Post by: Kiwa on May 11, 2012, 06:11:07 am
Hey guys!

I haven't been able to get this online system working..tho truthfully i haven't tried so much atm.
I'm still concerned with learning RGSS basics and making the general idea I want to produce.

But my question is:
I know this system is designed for MMORPG play. But what about a more simple system? can you use RMXP-OS to link games together without the Server and SQL?
Basically storage would be local on the PC. you could either enter single player or multiplayer. One person is host the others are client connecting to host's IP.
and then friends can opt in load from the host's file...and choose to play char slot 1,2,3, or 4. (or default them to a slot and re arrange the party to desire)

Ex:
Like loading Zsnes and "Secret of Mana" then connecting to the Hosts IP.
then you can select who is player 1 or 2...so on so forth.

Is this something RMXP-OS can do with little modification...or is it even possible?
Thanks :)
Title: Re: [XP] RMX-OS
Post by: Andreavnn on May 12, 2012, 04:38:22 pm
RMX-OS is based on my SQL, you will have to use SQL to make it work.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 13, 2012, 02:03:39 am
The SQL database handles your save data and all user data. Making this work with files on the server is very bothersome. SQL databases are intended for this very purpose so it was a natural choice. Setting up MySQL is fairly simple so I highly recommend you do so. Otherwise you would have to get somebody to rewrite how saving works in RMX-OS.
Title: Re: [XP] RMX-OS
Post by: Kiwa on May 13, 2012, 03:50:05 am
OHHH!! I got a reply from the Blizz man himself.  >:3
(Really tho..your the reason I'm back into programming at all..even with just RPG Maker. your ABS and OS system were BIG influence and the deciding factor to buy XP over the others.)
ok enough fanboy-ing.

I'm getting to the point where my "system" is where I want it.. only looking for minor things to update it with.
Its not a huge deal..server data based or not.. Its a compromise I can make for even having the option.

Since I haven't been able to get my SQL and the server functioning right (tho i probably messed it up hard by recoding things)
I haven't been able to see the answer to these questions.

The casting system is pretty awesome as is from BABS..but online..you cant pause the ENTIRE game to select targets in an MMO.. so is it real time while you select?
and if I in fact wanted to make this  in  an MMO style. Id like to limit areas to a party such as an "instanced" area (as so many games do atm..but with my own spin on it). limiting interruption from outsiders of the party.
I cant imagine you didn't think thru a process like that so I'm sure it exists.
how is that handled?

Once again.. sorry for my book posts and litter of questions.
in all honesty I'm really just becoming passionate about this stuff again...and loading on knowledge asap..while probably annoying the forum as I do so lol.

much respect for you all,

Thanks :D
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 13, 2012, 04:05:09 am
Try following the guide in the manual for the SQL server. If you still can't get it running, try googling for a tutorial.

Yeah, I know that it's not good to freeze the game when selecting targets. You should post in the Blizz-ABS topic and suggest to winkio that he implements an option to not freeze the game in Blizz-ABS 3.x.

Instanced areas have been discussed several times. While it's possible to make a script to allow that, there are several complications. I know you don't feel like reading 60+ pages of this topic, but if you want more detailed information on why it should or should not be done (which I honestly can't remember anymore what I said), you will have to read it.
Title: Re: [XP] RMX-OS
Post by: Kiwa on May 13, 2012, 06:21:17 am
Originally I thought "oh I don't need to save data on a server so I don't need SQL".
and I tried to make the server while my PC was offline and using the defaulting IP..

and god knows what I did after that...
I later discovered I need the SQL for the connection to work...and I tried to remove SQL from the .ini
then i realized I was ruining everything..so I'll have to start fresh and uninstall my SQL and such.
and properly follow the directions this time.

As for reading 65 pages or so for the Blizz OS... I'll take taht over reading the 250 page monster the ABS thread is. lol.
Thanks for the help :P

I'll be gone for a few days so I wont be able to do much..
don't think you got rid of me so easily :o

Thanks :P

Title: Re: [XP] RMX-OS
Post by: Blizzard on June 23, 2012, 08:47:18 am
I have uploaded v1.2. I mostly just added stuff in the manual, but there are a few small fixes in the script and server as well. I have also added the Linux binaries. If somebody has the time, it would be good if they could check if running RMX-OS on Linux works as I described it in the manual. >.<
Title: Re: [XP] RMX-OS
Post by: Danger Force on June 27, 2012, 01:17:38 am
Any system required to be online to work on my game project?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2012, 06:28:26 am
Everything you need is explained in the manual.
Title: Re: [XP] RMX-OS
Post by: Danger Force on June 27, 2012, 07:48:20 am
but its been done properly but I still can not manually as in the book chapter 1.1? and the results at the click connection try this instead (http://i40.servimg.com/u/f40/17/60/10/31/rmx-os10.png) I'm using version 1.18 :???:
Title: Re: [XP] RMX-OS
Post by: G_G on June 27, 2012, 08:41:07 am
You need to have MySQL installed. If it is installed and you are trying to connect to your computer from an outside host, you need to make sure the port for MySQL is forwarded. If you're trying to connect to MySQL on the same computer it's installed on, just use "localhost" or "127.0.0.1".
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2012, 11:59:15 am
Keep in mind that RMX-OS GUI may not work with the newest version of RMX-OS. Try to run RMX-OS manually first.
Title: Re: [XP] RMX-OS
Post by: Danger Force on June 27, 2012, 12:14:59 pm
because it rmx-gui version 1.0.0.1 whether to work with-os rmx 1:18 :???:

as said @ game_guy
QuoteYou need to have MySQL installed. If it is installed and you are trying to connect to your computer from an outside host, you need to make sure the port for MySQL is forwarded. If you're trying to connect to MySQL on the same computer it's installed on, just use "localhost" or "127.0.0.1".


instead writing out uknown databse 'rmxosdb'
how to let the solution work fine?
Title: Re: [XP] RMX-OS
Post by: decinbr on June 27, 2012, 04:29:49 pm
I DOWNLOADED VERSION RMX-OS 1.2 and RMX-OS 2.1 GUI. But when i click Run nothing happens, help-me!
(SORRY MY ENGLISH)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2012, 04:36:21 pm
Quote from: decinbr on June 27, 2012, 04:29:49 pm
I DOWNLOADED VERSION RMX-OS 1.2 and RMX-OS 2.1 GUI. But when i click Run nothing happens, help-me!
(SORRY MY ENGLISH)


You have an entire manual delivered with RMX-OS and the first thing you do after it did not run just like is to post here? Why do you even bother using it if you don't bother to learn how to use it?

Quote from: Danger Force on June 27, 2012, 12:14:59 pm
because it rmx-gui version 1.0.0.1 whether to work with-os rmx 1:18 :???:

as said @ game_guy
QuoteYou need to have MySQL installed. If it is installed and you are trying to connect to your computer from an outside host, you need to make sure the port for MySQL is forwarded. If you're trying to connect to MySQL on the same computer it's installed on, just use "localhost" or "127.0.0.1".


instead writing out uknown databse 'rmxosdb'
how to let the solution work fine?


You did not follow the installation guide. If you did, you would have created that database on your MySQL server.
Title: Re: [XP] RMX-OS
Post by: decinbr on June 27, 2012, 04:46:41 pm
When I was using VERSION 1.18 TO VERSION 2.1 GUI worked nicely. BLIZZARD, I KNOW HOW TO USE THEM RMX, THE PROBLEM IS THAT WHEN I uploaded THIS VERSION 1.2 CAN NOT DO MORE WORK ON SERVER
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2012, 05:04:28 pm
Then don't update to v1.2. Or don't use RMX-OS GUI and just run it manually. All you have to do is click on RMX-OS.rb.
Title: Re: [XP] RMX-OS
Post by: decinbr on June 27, 2012, 05:22:44 pm
It does not work ... when I go to configure anything it appears


Spoiler: ShowHide
(http://img513.imageshack.us/img513/3185/screenhunter11jun271814.jpg)



by Blizz: Use spoilers for images.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2012, 05:28:11 pm
RMX-OS GUI messes up the config file so download v1.2 again with a clean cfg.ini or wait for Ryex to update the RMX-OS GUI.
Title: Re: [XP] RMX-OS
Post by: decinbr on June 27, 2012, 05:40:46 pm
OK. tks...but i not found version 1.18, you have?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2012, 05:51:10 pm
Just reinstall 1.2, but don't use the GUI and it will work fine.
Title: Re: [XP] RMX-OS
Post by: decinbr on June 27, 2012, 06:04:44 pm
 :^_^':  uhuu!!! tnks blizzard work!!   but. I can not type more than any letter, just one.

Spoiler: ShowHide
(http://img339.imageshack.us/img339/1350/screenhunter11jun271904.jpg)


by Bilzz: You are supposed to use spoilers for images.
Title: Re: [XP] RMX-OS
Post by: Danger Force on June 28, 2012, 04:02:29 am
Where can I download all version rmx-os :???:
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 28, 2012, 04:12:02 am
Older RMX-OS versions are not available anymore due to seriously out-of-date code.

@decinbr: Maybe some other script is messing with you? Make sure your scripts are in the right order: http://forum.chaos-project.com/index.php/topic,23.0.html
Title: Re: [XP] RMX-OS
Post by: Danger Force on June 28, 2012, 05:18:50 am
rmx-os I can but at localhost click on the project out of writing this game
QuoteScript '(RMX-OS) Script' line 2267: Erno::ECONNRESET occurred.
An existing connection was forcibly closed by the remote host. :???:
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 28, 2012, 05:27:16 am
Then you didn't set it up right.
Title: Re: [XP] RMX-OS
Post by: Danger Force on June 28, 2012, 05:33:26 am
QuoteThen you didn't set it up right

Mean? :???:
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 28, 2012, 05:56:39 am
Quote from: FAQ from the manual
Question:
I can't get the server running. What do I do?

Answer:
Make sure that you have set up the server configuration properly. After a clean installation, the only thing that you should have to set up manually is SQL_PASSWORD. If you are trying to run RMX-OS on a network where the server should be visible to the network as well, refer to the Installation Guide.


If you are not willing to read THE MANUAL and solve the most basic problems for which I have already provided answers IN THE MANUAL, then I am not willing to offer any more help. If you have read the manual, if you are 100% sure that you have installed and set up everything properly, then I will help you with your problem. I didn't write the manual so I would have answer the same questions over and over. I wrote it so that I didn't have to answer them over and over, so that all the answers are at one place and can be accessed easily, yet people STILL REFUSE WITH EVERY SINGLE CELL OF THEIR VERY BEING to read the manual. It's REALLY frustrating. So I ask you kindly to read the manual.
Title: Re: [XP] RMX-OS
Post by: G_G on June 28, 2012, 08:32:07 am
It means you didn't set your server up properly. Or you didn't setup the options in the script properly. The manual explains how to set this up. Seriously. Read through it. If you can't figure it out, then you don't need to be dealing with this script. We're not here to hand walk you through the entire process.
Title: Re: [XP] RMX-OS
Post by: decinbr on June 28, 2012, 08:35:03 pm
Blizzard, the battlers are not changing when I enter the game, although they are different in the database, help me please!



Spoiler: ShowHide
(http://img543.imageshack.us/img543/800/semea.png)


by Blizz: Use spoilers for images for god's sake.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 29, 2012, 03:24:23 am
RMX-OS was not intended to be used with a party of characters, it was intended to be used with one character only. Seriously, have you never played an MMO?
Title: Re: [XP] RMX-OS
Post by: decinbr on June 29, 2012, 02:39:53 pm
blizzard, this game does not load the monsters in the bestiary, nor the skills to lv script skill lv, when I load the game does not carry these things.... :(
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 29, 2012, 02:44:11 pm
Again, your question has already been answered in the manual. Read the manual.

Quote from: FAQ
Question:
When somebody connects, some settings were not saved.

Answer:
RMX-OS does not save all data by default. Either configure RMX-OS to save additional data or make use of events to restore game data that actually does not need to be saved. Keep in mind that custom scripts may have additioanl custom save data.
Title: Re: [XP] RMX-OS
Post by: decinbr on June 29, 2012, 04:45:26 pm
Please summarize for me why I can not put bestiary, skill lv, teleport etc ... I'm too lazy to read the manual if you do not want to do this for me, tell me where in the manuel I can read about it.
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on June 29, 2012, 05:49:32 pm
Have you did a search of the manual? It is gonna take more energy for someone to explain it for you, and for you to read it, than to just search it yourself.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 30, 2012, 05:14:40 am
If I explained it here to you, it would be basically the same as in the manual. If you don't care about reading what I already wrote once, I don't care typing it again just for you.
Title: Re: [XP] RMX-OS
Post by: decinbr on July 01, 2012, 05:14:12 pm
PLEASE! SOMEONE HELP ME! I HAVE READ THE MANUAL, TRIED IT ALL, I'M TRYING TO MAKE THE BEAR RMX-battlers, Bestiary OF THE MONSTERS, THE SKILLS LEARNED FROM SHOPPING, I've tried everything, WILL HAVE NO SCRIPT FOR IMPROVED LOAD THEM RMX?
Title: Re: [XP] RMX-OS
Post by: Ryex on July 01, 2012, 08:27:24 pm
you have to configure the script to save that data in order for it to load it.  as the manual clearly states not all data is saved, this is one such case, please the manual to find out how to configure the script to save your data.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 02, 2012, 02:22:08 am
Which Bestiary script are you using?
Title: Re: [XP] RMX-OS
Post by: decinbr on July 02, 2012, 08:05:42 pm
've used several types of bestiaries, now I'm not wearing any, and I read the manual and I still do not understand how to load the bestiary monsters, teleporters, etc. ..... battlers someone help me t
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 03, 2012, 02:19:47 am
Save data is different in different bestiaries. Unless you can tell me which bestiary you are using, I can't tell you which save data you need to add to RMX-OS to be saved.
Title: Re: [XP] RMX-OS
Post by: decinbr on July 03, 2012, 01:23:47 pm
Blizzard, I extracted the RMX-OS clean, and continues to show a letter in the message box (login, chat etc.) have any idea how to fix this?
Title: Re: [XP] RMX-OS
Post by: ForeverZer0 on July 03, 2012, 02:50:40 pm
Its like having a conversation with a bot...
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 03, 2012, 03:25:20 pm
That's why I chose to ignore any further posts until he actually posts screenshots, detailed error messages and other detailed information.
His IP addresses certainly show a pattern of randomness known to proxy servers increasing this account likeliness of being a fake account. But hey, who am I to judge.
Title: Re: [XP] RMX-OS
Post by: decinbr on July 04, 2012, 08:02:22 pm
This is the picture that shows the error only appears a letter ...



(http://img19.imageshack.us/img19/456/screenhunter11jul042059.jpg)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 04, 2012, 08:21:41 pm
I'm really having a hard time to understand what the error is because of your English. I don't know whether there is an error that appears or if you can type only one letter in the box or if you just didn't register an account. I cannot help you if I don't understand the problem you are having. If your English is not so good, try asking somebody to type the post for you or tell you what you need to type.
Title: Re: [XP] RMX-OS
Post by: decinbr on July 04, 2012, 09:10:03 pm
type only one letter in the box
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 05, 2012, 02:14:01 am
Did you accidentally change to configuration and set the max length of the username to 1? It's 10 by default.
Title: Re: [XP] RMX-OS
Post by: decinbr on July 05, 2012, 12:48:04 pm
I could not find where I change from 1 to 10, searched but could not find anything, blizzard help me, please ..
Title: Re: [XP] RMX-OS
Post by: mroedesigns on July 10, 2012, 01:54:56 am
I went through and started touching up my menu. I've gotten everything cleaned up and fixed, but I still can't figure out how not to show the players username. I looked in the manual and did a find search through the scripts trying to figure it out.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 10, 2012, 02:17:22 am
You mean the name sprites? You have a script call for that called $game_temp.name_sprites.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 26, 2012, 09:13:09 am
Please answer, where the stored accounts of players? :???:
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 26, 2012, 09:56:45 am
In the SQL database as I explained it in the manual. Read the manual.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 26, 2012, 12:29:39 pm
Sorry, I am Russian and I have only a matter about accounts, as they can be removed for example? ;)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 26, 2012, 12:35:25 pm
You can either use your database management software to delete accounts (they are stored in the table "users") or you can run an SQL query on the database (which actually also requires database management software) to delete the user. The simplest way is just to open the database in the database management software, open the users table, simply find the user account you want to delete and delete it. Most database management software should have a graphical user interface that makes it easy to navigate.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 26, 2012, 01:47:30 pm
Thank you, I figured all, :^_^':
Yet still some issues that I have not figured out.
The commands in the chat. Is it possible to: Trading between players, PVP?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 26, 2012, 02:20:11 pm
Yes, trading is available. I don't know the commands from memory right now, but I think it was /trade. Just look it up in the manual. You should find a list of all chat commands easily.

PVP is only available if you use an ABS. Blizz-ABS works with RMX-OS, just don't forget to add the special compatibility script called "Blizz-ABS Controller for RMX-OS" and the server extension with the same name.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 26, 2012, 03:24:01 pm
And I can somehow corrected lag when moving the players? :???:
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 26, 2012, 03:47:01 pm
That's not really possible. There's always gonna be some lag. That's how the network works.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 27, 2012, 11:27:16 am
Well, one more question,
Why when you type symbols have a login, passwords, or in chat during the game, there see is only one symbol?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 27, 2012, 02:19:10 pm
What is the symbol that you see? How does it look like?
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 27, 2012, 03:13:06 pm
It looks like this:

Spoiler: ShowHide
(http://s019.radikal.ru/i627/1207/d2/fa8bbbbdb420.jpg)


In fact, there were introduced login and password, but they are not visible. In the chat is the same.
At a set of symbols are not visible, but if you send the message in the chat it will be seen.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 27, 2012, 03:27:42 pm
The only thing that would strike me here is that it may not be able to show UTF8 characters properly. But I have tested that and it worked fine. Can you upload a copy of your client? I'd like to see if it happens on my PC as well with the same client.

I might have an idea what could be causing this problem. Which characters are displayed? Are the "S" and the "0" the first character? What happens if you don't use SHIFT? When you press a button and the character does not appear, what happens if you press Backspace? Does the visible character get deleted or the "invisible" one?
Title: Re: [XP] RMX-OS
Post by: Rickpwns on July 27, 2012, 05:47:52 pm
What they mean:

If you try to log-in to your server, you can only type one character.
Also, if you type your password, each character makes 2 *'s.

I checked the settings, and nothing seem to be wrong.

Maybe you can help?

Thank you in advance!
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 27, 2012, 06:09:45 pm
Quote from: Rickpwns on July 27, 2012, 05:47:52 pm
What they mean:

If you try to log-in to your server, you can only type one character.
Also, if you type your password, each character makes 2 *'s.

I checked the settings, and nothing seem to be wrong.

Maybe you can help?

Thank you in advance!


That's what I said,
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 28, 2012, 05:51:36 am
Then I think I know what's causing the problem. For some reason your keyboard sends multiple characters when you press keys. Sure, a non-ASCII character is ok to have multiple characters since it's encoded in UTF8, but others shouldn't be doing that. I'll take a look at this, but I'm not really sure if it's fixable at all.

EDIT: Actually I think I found the problem. :) I'll put up v1.21 over the course of the day.

EDIT: There you go. I couldn't test it myself, because my keyboard only sends 2-byte Unicode characters. It was basically a bug that was caused by a mistake I made when updating the input module to properly support 4-byte Unicode characters. One piece of code was still assuming 2-byte characters.

Keep in mind that you may need a proper font for 4 byte Unicode characters.

And also, this here:

Quote from: Rickpwns on July 27, 2012, 05:47:52 pm
Also, if you type your password, each character makes 2 *'s.


This is what gave me the idea what could be wrong.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 28, 2012, 12:59:49 pm
Thank you! Now everything is in order, :clap:
Title: Re: [XP] RMX-OS
Post by: Rickpwns on July 28, 2012, 05:28:05 pm
Quote from: Blizzard on July 28, 2012, 05:51:36 am
Then I think I know what's causing the problem. For some reason your keyboard sends multiple characters when you press keys. Sure, a non-ASCII character is ok to have multiple characters since it's encoded in UTF8, but others shouldn't be doing that. I'll take a look at this, but I'm not really sure if it's fixable at all.

EDIT: Actually I think I found the problem. :) I'll put up v1.21 over the course of the day.

EDIT: There you go. I couldn't test it myself, because my keyboard only sends 2-byte Unicode characters. It was basically a bug that was caused by a mistake I made when updating the input module to properly support 4-byte Unicode characters. One piece of code was still assuming 2-byte characters.

Keep in mind that you may need a proper font for 4 byte Unicode characters.

And also, this here:

Quote from: Rickpwns on July 27, 2012, 05:47:52 pm
Also, if you type your password, each character makes 2 *'s.


This is what gave me the idea what could be wrong.


Pleasure to help.
Allow me to find more bugs.
Title: Re: [XP] RMX-OS
Post by: Rickpwns on July 28, 2012, 05:37:49 pm
It seems I can't even click on the Password, your type cursor just stays at the username.

Also, I can not click 'Cancel' 'Register' etc.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on July 28, 2012, 06:57:32 pm
Quote from: Rickpwns on July 28, 2012, 05:37:49 pm
It seems I can't even click on the Password, your type cursor just stays at the username.

Also, I can not click 'Cancel' 'Register' etc.



Quite simply, you are trying to control the mouse, and in RPG Maker XP there is no control with the mouse)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 28, 2012, 07:53:51 pm
If you want mouse control in RMX-OS, use this script: http://forum.chaos-project.com/index.php?topic=4710.0
Title: Re: [XP] RMX-OS
Post by: khkramer on July 30, 2012, 08:44:24 am
Is this the right place to post?

The bug I mentioned earlier in the RMXP Converter thread also occurs on a fresh copy of RMX-OS without any modifications. (Version 1.21)
I should note when using the RGSS or RGSS2 player it works fine but when I use the RGSS3 player the same bug occurs.
Maybe it has something to do with the newer ruby versions?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 30, 2012, 10:05:39 am
Very likely. I am actually quite surprised that RMX-OS works with RGSS2, because it was not coded specifically to do that. It's only supposed to work with RGSS.
I'll try to come up with a solution. You can then test it out and if it works, I can add it to the official release.
Title: Re: [XP] RMX-OS
Post by: khkramer on July 30, 2012, 12:23:02 pm
Yeah I was pretty surprised too when I found out it was working with the RGSS2 player.
Anyways, I hope you find a solution. (I desperately need the performance increase from ARC)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 30, 2012, 12:26:49 pm
Alright, here we go. Substitute the entire Input module of RMX-OS with this one and let me know if it works.

Spoiler: ShowHide
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Custom Game Controls by Blizzard
# Version: 4.2 RMX-OS Edition
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Compatiblity:
#
#   99% compatible with SDK 1.x, 90% compatible with SDK 2.x.
#
#
# Note:
#
#   Why is this input module better than others? I has far less code and it
#   can handle keyboard language layout.
#
#
# Explanation & Configuration:
#
#   This Add-on will allow you to specify your own game controls. Just below
#   is a list of possible keys, below that is the configuration. The default
#   configuration is RMXP's real game control configuration. You can add any
#   key specification into a key array and separate them with commas. Example:
#  
#   RIGHT = [Key['Arrow Right'], Key[','], Key['F'], Key['Ctrl'], Key['3'],
#            Key['NumberPad 6'], Key['F3'], Key['\''], Key['\\']]
#  
#   This example would assign for the RIGHT button the following keys:
#   - directional right (right arrow key)
#   - comma
#   - letter key F
#   - Control key (CTRL)
#   - Number Key 3 (on top over the letter keys)
#   - Numberpad Key 6 (number 6 on the numberpad on the right)
#   - Functional Key 3 (F3)
#   - apostrophe (')
#   - backslash (\)
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

if !$tons_version || !TONS_OF_ADDONS::CUSTOM_CONTROLS
 
#==============================================================================
# module Input
#==============================================================================

module Input
 
 #----------------------------------------------------------------------------
 # Simple ASCII table
 #----------------------------------------------------------------------------
 Key = {'A' => 65, 'B' => 66, 'C' => 67, 'D' => 68, 'E' => 69, 'F' => 70,
        'G' => 71, 'H' => 72, 'I' => 73, 'J' => 74, 'K' => 75, 'L' => 76,
        'M' => 77, 'N' => 78, 'O' => 79, 'P' => 80, 'Q' => 81, 'R' => 82,
        'S' => 83, 'T' => 84, 'U' => 85, 'V' => 86, 'W' => 87, 'X' => 88,
        'Y' => 89, 'Z' => 90,
        '0' => 48, '1' => 49, '2' => 50, '3' => 51, '4' => 52, '5' => 53,
        '6' => 54, '7' => 55, '8' => 56, '9' => 57,
        'NumberPad 0' => 45, 'NumberPad 1' => 35, 'NumberPad 2' => 40,
        'NumberPad 3' => 34, 'NumberPad 4' => 37, 'NumberPad 5' => 12,
        'NumberPad 6' => 39, 'NumberPad 7' => 36, 'NumberPad 8' => 38,
        'NumberPad 9' => 33,
        'F1' => 112, 'F2' => 113, 'F3' => 114, 'F4' => 115, 'F5' => 116,
        'F6' => 117, 'F7' => 118, 'F8' => 119, 'F9' => 120, 'F10' => 121,
        'F11' => 122, 'F12' => 123,
        ';' => 186, '=' => 187, ',' => 188, '-' => 189, '.' => 190, '/' => 220,
        '\\' => 191, '\'' => 222, '[' => 219, ']' => 221, '`' => 192,
        'Backspace' => 8, 'Tab' => 9, 'Enter' => 13, 'Shift' => 16,
        'Left Shift' => 160, 'Right Shift' => 161, 'Left Ctrl' => 162,
        'Right Ctrl' => 163, 'Left Alt' => 164, 'Right Alt' => 165,
        'Ctrl' => 17, 'Alt' => 18, 'Esc' => 27, 'Space' => 32, 'Page Up' => 33,
        'Page Down' => 34, 'End' => 35, 'Home' => 36, 'Insert' => 45,
        'Delete' => 46, 'Arrow Left' => 37, 'Arrow Up' => 38,
        'Arrow Right' => 39, 'Arrow Down' => 40,
        'Mouse Left' => 1, 'Mouse Right' => 2, 'Mouse Middle' => 4,
        'Mouse 4' => 5, 'Mouse 5' => 6}
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 UP = [Key['Arrow Up']]
 LEFT = [Key['Arrow Left']]
 DOWN = [Key['Arrow Down']]
 RIGHT = [Key['Arrow Right']]
 A = [Key['Shift']]
 B = [Key['Esc']]
 C = [Key['Enter']]
 X = []
 Y = []
 Z = []
 L = [Key['Page Down']]
 R = [Key['Page Up']]
 F5 = [Key['F5']]
 F6 = [Key['F6']]
 F7 = [Key['F7']]
 F8 = [Key['F8']]
 F9 = [Key['F9']]
 SHIFT = [Key['Shift']]
 CTRL = [Key['Ctrl']]
 ALT = [Key['Alt']]
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 # All keys
 KEY_COUNT = 256
 ALL_KEYS = (0...KEY_COUNT).to_a
 # Win32 API calls
 GetKeyboardState = Win32API.new('user32', 'GetKeyboardState', 'P', 'I')
 GetKeyboardLayout = Win32API.new('user32', 'GetKeyboardLayout', 'L', 'L')
 MapVirtualKeyEx = Win32API.new('user32', 'MapVirtualKeyEx', 'IIL', 'I')
 ToUnicodeEx = Win32API.new('user32', 'ToUnicodeEx', 'LLPPILL', 'L')
 # some other constants
 DOWN_STATE_MASK = 0x80
 DEAD_KEY_MASK = 0x80000000
 # data
 @state = "\0" * KEY_COUNT
 @triggered = Array.new(KEY_COUNT, false)
 @pressed = Array.new(KEY_COUNT, false)
 @released = Array.new(KEY_COUNT, false)
 @repeatedKey = -1
 @repeatedCount = 0
 #----------------------------------------------------------------------------
 # update
 #  Updates input.
 #----------------------------------------------------------------------------
 def self.update
   # get current language layout
   @language_layout = GetKeyboardLayout.call(0)
   # get new keyboard state
   GetKeyboardState.call(@state)
   # this special code is used because Ruby 1.9.x does not return a char
   # when using String#[] but another String
   key = 0
   @state.each_byte {|byte|
       # if pressed state
       if (byte & DOWN_STATE_MASK) == DOWN_STATE_MASK
         # not released anymore
         @released[key] = false
         # if not pressed yet
         if !@pressed[key]
           # pressed and triggered
           @pressed[key] = true
           @triggered[key] = true
           @repeatedKey = key
           @repeatedCount = 0
         else
           # not triggered anymore
           @triggered[key] = false
         end
         # update of repeat counter
         if key == @repeatedKey
           @repeatedCount < 17 ? @repeatedCount += 1 : @repeatedCount = 15
         end
       # not released yet
       elsif !@released[key]
         # if still pressed
         if @pressed[key]
           # not triggered, pressed or repeated, but released
           @triggered[key] = false
           @pressed[key] = false
           @released[key] = true
           if key == @repeatedKey
             @repeatedKey = -1
             @repeatedCount = 0
           end
         end
       else
         # not released anymore
         @released[key] = false
       end
       key += 1}
 end
 #----------------------------------------------------------------------------
 # dir4
 #  4 direction check.
 #----------------------------------------------------------------------------
 def self.dir4
   return 2 if self.press?(DOWN)
   return 4 if self.press?(LEFT)
   return 6 if self.press?(RIGHT)
   return 8 if self.press?(UP)
   return 0
 end
 #----------------------------------------------------------------------------
 # dir8
 #  8 direction check.
 #----------------------------------------------------------------------------
 def self.dir8
   down = self.press?(DOWN)
   left = self.press?(LEFT)
   return 1 if down && left
   right = self.press?(RIGHT)
   return 3 if down && right
   up = self.press?(UP)
   return 7 if up && left
   return 9 if up && right
   return 2 if down
   return 4 if left
   return 6 if right
   return 8 if up
   return 0
 end
 #----------------------------------------------------------------------------
 # trigger?
 #  Test if key was triggered once.
 #----------------------------------------------------------------------------
 def self.trigger?(keys)
   keys = [keys] if !keys.is_a?(Array)
   return keys.any? {|key| @triggered[key]}
 end
 #----------------------------------------------------------------------------
 # press?
 #  Test if key is being pressed.
 #----------------------------------------------------------------------------
 def self.press?(keys)
   keys = [keys] if !keys.is_a?(Array)
   return keys.any? {|key| @pressed[key]}
 end
 #----------------------------------------------------------------------------
 # repeat?
 #  Test if key is being pressed for repeating.
 #----------------------------------------------------------------------------
 def self.repeat?(keys)
   keys = [keys] if !keys.is_a?(Array)
   return (@repeatedKey >= 0 && keys.include?(@repeatedKey) &&
       (@repeatedCount == 1 || @repeatedCount == 16))
 end
 #----------------------------------------------------------------------------
 # release?
 #  Test if key was released.
 #----------------------------------------------------------------------------
 def self.release?(keys)
   keys = [keys] if !keys.is_a?(Array)
   return keys.any? {|key| @released[key]}
 end
 #----------------------------------------------------------------------------
 # get_character
 #  vk - virtual key
 #  Gets the character from keyboard input using the input locale identifier
 #  (formerly called keyboard layout handles).
 #----------------------------------------------------------------------------
 def self.get_character(vk)
   # get corresponding character from virtual key
   c = MapVirtualKeyEx.call(vk, 2, @language_layout)
   # stop if character is non-printable and not a dead key
   return '' if c < 32 && (c & DEAD_KEY_MASK) != DEAD_KEY_MASK
   # get scan code
   vsc = MapVirtualKeyEx.call(vk, 0, @language_layout)
   # result string is never longer than 4 bytes (Unicode)
   result = "\0" * 4
   # get input string from Win32 API
   length = ToUnicodeEx.call(vk, vsc, @state, result, 4, 0, @language_layout)
   return (length == 0 ? '' : result)
 end
 #----------------------------------------------------------------------------
 # get_input_string
 #  Gets the string that was entered using the keyboard over the input locale
 #  identifier (formerly called keyboard layout handles).
 #----------------------------------------------------------------------------
 def self.get_input_string
   result = ''
   # check every key
   ALL_KEYS.each {|key|
       # if repeated
       if self.repeat?(key)
         # get character from keyboard state
         c = self.get_character(key)
         # add character if there is a character
         result += c if c != ''
       end}
   # empty if result is empty
   return '' if result == ''
   # convert string from Unicode to UTF-8
   return self.unicode_to_utf8(result)
 end
 #----------------------------------------------------------------------------
 # unicode_to_utf8
 #  string - string in Unicode format
 #  Converts a string from Unicode format to UTF-8 format as RGSS does not
 #  support Unicode.
 #----------------------------------------------------------------------------
 def self.unicode_to_utf8(string)
   result = ''
   # L* format means a bunch of 4-byte wide-chars
   string.unpack('L*').each {|c|
       # characters under 0x80 are 1 byte characters
       if c < 0x0080
         result += c.chr
       # other characters under 0x800 are 2 byte characters
       elsif c < 0x0800
         result += (0xC0 | (c >> 6)).chr
         result += (0x80 | (c & 0x3F)).chr
       # other characters under 0x10000 are 3 byte characters
       elsif c < 0x10000
         result += (0xE0 | (c >> 12)).chr
         result += (0x80 | ((c >> 6) & 0x3F)).chr
         result += (0x80 | (c & 0x3F)).chr
       # other characters under 0x200000 are 4 byte characters
       elsif c < 0x200000
         result += (0xF0 | (c >> 18)).chr
         result += (0x80 | ((c >> 12) & 0x3F)).chr
         result += (0x80 | ((c >> 6) & 0x3F)).chr
         result += (0x80 | (c & 0x3F)).chr
       # other characters under 0x4000000 are 5 byte characters
       elsif c < 0x4000000
         result += (0xF8 | (c >> 24)).chr
         result += (0x80 | ((c >> 18) & 0x3F)).chr
         result += (0x80 | ((c >> 12) & 0x3F)).chr
         result += (0x80 | ((c >> 6) & 0x3F)).chr
         result += (0x80 | (c & 0x3F)).chr
       # other characters under 0x80000000 are 6 byte characters
       elsif c < 0x80000000
         result += (0xFC | (c >> 30)).chr
         result += (0x80 | ((c >> 24) & 0x3F)).chr
         result += (0x80 | ((c >> 18) & 0x3F)).chr
         result += (0x80 | ((c >> 12) & 0x3F)).chr
         result += (0x80 | ((c >> 6) & 0x3F)).chr
         result += (0x80 | (c & 0x3F)).chr
       end}
   return result
 end

end

end


In Ruby 1.9.x the method String#[] does not return a byte anymore. Instead, it returns a string. That's why you are getting that error which also reminded me where I saw this error previously. I got it when I tried running Terranigma 2 on ARC which also uses my Input module. This edited Input module should take care of the problem while still maintaining compatibility with Ruby 1.8.x
Title: Re: [XP] RMX-OS
Post by: khkramer on July 30, 2012, 12:32:05 pm
YOURETHEBEST
Works like a charm :D
edit: yeah I did read something about the string function changed in Ruby 1.9.x from 1.8 but I had no idea how to fix it myself.
Unfortunately I have found another bug/error...
When using ARC the servers always show as Offline thus the player cannot connect.
In RMXP the server shows as Online.
Any idea how to fix this?

Title: Re: [XP] RMX-OS
Post by: Blizzard on July 30, 2012, 01:36:59 pm
I'm putting together a new build of ARC and then I'll test it.

EDIT: I found the problem. It was basically the same reason: String encoding.

I have uploaded a fixed 1.21 that should work fine with ARC. But you also have to update one of ARC's files. Open Data/RMXP.rb and replace the entire code there with this:

Spoiler: ShowHide
# this makes sure that Kernel#require and Kernel#load don't need (but still accept) a full path anymore
$:.clear
$:.push(Dir.getwd)

# wrapper for RMXP's Win32API class
class Win32API
 
 LIMIT_L = 4294967296
 LIMIT_S = 65536
 LIMIT_C = 256
 
 def initialize(dllname, func, import, export = "0", calltype = :stdcall)
   import = import.join('') if import.is_a?(Array)
   export = export.join('') if export.is_a?(Array)
   @export = export.clone
   import.upcase!
   export.upcase!
   @api = Win32::API.new(func, import, export, dllname)
 end

 def call(*args)
   result = @api.call(*args)
   result -= LIMIT_L if @export == 'l' && result >= LIMIT_L / 2
   result -= LIMIT_S if @export == 's' && result >= LIMIT_S / 2
   result -= LIMIT_C if @export == 'c' && result >= LIMIT_C / 2
   return result
 end

 alias Call call
 
end


While at a first glance the different Win32API module in newer versions of Ruby seems superior, it turns out that it can't handle properly all data types. e.g. it only has the unsigned versions of the number data types such as unsigned char, unsigned short and unsigned long. It doesn't work with signed ones so the socket code wasn't even working right when I fixed the string problems because it would keep returning "4294967295" instead of "-1" in some functions. But with this code replaced and the new RMX-OS code, everything should be fine.

There are quite a few things that can go wrong here and I really don't have time to test each single command and server/client message. If you come across problems and/or crashes, let me know and I'll fix them.
Title: Re: [XP] RMX-OS
Post by: khkramer on July 30, 2012, 04:21:14 pm
Good luck! :D

EDIT: hmmm, updated rmxp.rb and rmx-os but server still shows as offline..
Could the problem be that I'm using an older version of the server selection scene? (I'm using it for compatibility with pokemon essentials)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 30, 2012, 05:11:52 pm
It's possible.

I've just checked again to make sure everything is fine and it works in ARC without problems. The only thing that I could imagine would be that you may not be downloading the current version, but a version that your browser cached. Try emptying your browser cache and then redownload. You can easily find out if you have the fixed version. Use the search function to find $1.unpack('CCC'). If the text is not found, you're not using the new version.
Title: Re: [XP] RMX-OS
Post by: khkramer on July 31, 2012, 05:13:48 am
(http://i49.tinypic.com/wclstz.png)

Updated as you said, replaced rmxp.rb ,
$1.unpack('CCC')
is there in the rmx-os code.
Here is the modified part of the scene_servers:
def create_scene
   super
   # get all server names
   server_names = []
   RMXOS::Options::SERVERS.each {|server| server_names.push(server.name)}
   server_names.push(RMXOS::Data::Exit)
   # create server selection window
   @command_window = Window_CommandPokemon.new(server_names, 224) #(224, server_names)
   @command_window.x, @command_window.y = 64, 128
   @command_window.active = true
   @command_window.index = 0
   # create server states window
   states = []
   @server_states.size.times {states.push(RMXOS::Data::ServerOffline)}
   @online_window = Window_CommandPokemon.new(states, 224) #(224, states)
   @online_window.x, @online_window.y = 352, 128
   @online_window.active = false
   @online_window.index = -1
 end



EDIT: When I set my server ip to 127.0.0.1 and in my RMX-OS options, it suddenly works.
Could it be that ARC doesn't handle external ip's the right way?

Also looks like RMX-Os is starting to do funny stuff with comparisons:
(http://i50.tinypic.com/6zucl3.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 31, 2012, 06:41:46 am
RMX-OS uses Win32API calls for sockets so it should be working. I'll take a look at it.

That error is not because of RMX-OS, it's because of Ruby 1.9.x Strings. :/ I'll see if this can be fixed easily.
Title: Re: [XP] RMX-OS
Post by: khkramer on July 31, 2012, 12:27:53 pm
I'll take a look at the string problem, too.

EDIT: Converting the variables to integers fixes the error. (I think)
However, that means I'll have to add it to a lot of variables..
There should be an easier way to fix this.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 01, 2012, 11:17:27 am
I checked it and I'm not entirely sure why you are getting that crash. The line is this one, right?

new = eval("#{classe.name}.new(#{args})")


args is taken from RMXOS::Options::CREATION_DATA of the given class. e.g.

Code: default creation data for Actors
CREATION_DATA[Game_Actor] = '1'


Now this is a string that should be interpreted as such and the final code in eval should be like this:

Game_Actor.new(1)


If you are getting errors like this, check your creation data. Maybe you use '1' instead of '"1"' (where the latter is a string) which then caused the problem.

As for the network not responding properly, guess what the problem was: String encoding again. :P I'll just finish up the edits in RMX-OS and upload 1.21 with the new fixes for ARC/Ruby 1.9.x again.

EDIT: There you go. Get the fixed version and keep on testing. Let me know when you encounter the next problem.
Title: Re: [XP] RMX-OS
Post by: khkramer on August 01, 2012, 11:52:11 am
Thanks for the fix, and I just found out the crash was not occuring because of RMX-OS but because of the Pokémon scripts.
I guess comparables have changed between 1.8 and 1.9 too.

EDIT:

Example:

It crashes with this:
# Gets the number of Exp Points needed to reach the given
# level with the given growth rate.
# growth -- Growth rate.
 def PBExperience.pbGetStartExperience(level,growth)
   if growth>=6 || growth<0
     return ArgumentError.new("The growth rate is invalid.")
   end
   if level.to_i<0
     return ArgumentError.new("The level is invalid.")
   end
   level=MAXLEVEL if level>MAXLEVEL
   return pbGetExpInternal(level,growth)
 end


But works if I change it to this:
# Gets the number of Exp Points needed to reach the given
# level with the given growth rate.
# growth -- Growth rate.
 def PBExperience.pbGetStartExperience(level,growth)
   if growth.to_i>=6 || growth.to_i<0
     return ArgumentError.new("The growth rate is invalid.")
   end
   if level.to_i<0
     return ArgumentError.new("The level is invalid.")
   end
   level=MAXLEVEL if level>MAXLEVEL
   return pbGetExpInternal(level,growth)
 end


Does that mean I would have to edit every comparison manually, or do you know an easier way?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 01, 2012, 03:53:02 pm
How have you set up the CREATION_DATA option in RMX-OS?
Title: Re: [XP] RMX-OS
Post by: khkramer on August 01, 2012, 04:02:42 pm

    CREATION_DATA[PokeBattle_Trainer] = '\'\',\'\''
    CREATION_DATA[PokeBattle_Pokemon] = '1,1'
    CREATION_DATA[PokemonMail] = '\'\',\'\',\'\''
    CREATION_DATA[PokemonBox] = '\'\''
    CREATION_DATA[PBMove] = '1'
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 01, 2012, 04:40:49 pm
Comparison of a string using <, >, => or <= didn't work in Ruby 1.8.x either. But it seems that some data may not be saved as it should.
I don't know if the save data format makes much sense to you, but it would be good if you code find the database entry that is causing that crash and then check whether the growth variable was stored as a string with "" or just as an integer.
Title: Re: [XP] RMX-OS
Post by: khkramer on August 01, 2012, 04:50:51 pm
I looked it up, but it doesn't save the growth variable in the database.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 01, 2012, 04:52:43 pm
Where else does it obtain the variable from?

EDIT: Actually I know it's taking it probably from the data files. After all, I was the first to write a compatibility plugin for the Pokemon Starter Kit so it works with RMX-OS and I remember how it worked in concept. You should check in the loading methods if the loaded data is properly converted into Integer instances instead of just using plain Strings. Remember that String#[] now returns another String in Ruby 1.9.x, not an Integer instance anymore.
Title: Re: [XP] RMX-OS
Post by: khkramer on August 02, 2012, 12:12:27 pm
The variable growth is in fact the growthrate variable, which it retrieves from the file dexdata.dat
Only I have no clue how to open this kind of .dat file..
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 02, 2012, 12:23:58 pm
If I remember right, the .dat files are generated based on the .txt files that are used to define all pokemon. Try checking what class the growthrate variable is immediately after loading. Use "p VARIABLE.class.name" for that.
Title: Re: [XP] RMX-OS
Post by: khkramer on August 02, 2012, 01:02:46 pm
"String"
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 02, 2012, 02:07:29 pm
Yeah, something seems to be wrong with the original format of the data then. Have you tried recreating all the data? If I remember right, there should be a special condition that you turn on and then instead of running the game, it would create the data package.
Title: Re: [XP] RMX-OS
Post by: khkramer on August 02, 2012, 02:51:57 pm
I think you mean the compiler for the PBS files (the text files you were reffering too)
I already tried recompiling with that.
http://slideshow.rubyforge.org/ruby19.html#13
^ Could this be the explanation for the "Cannot convert fixnum to string" errors?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 02, 2012, 04:53:50 pm
It's very likely the cause. This is what I meant with the notation String#[].
Title: Re: [XP] RMX-OS
Post by: khkramer on August 02, 2012, 05:07:07 pm
Mmmmkay, I'll try to give a shot at fixing it tommorow.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 02, 2012, 05:11:38 pm
Technically you could try aliasing or completely overriding that method and replacing the call with String#getbyte.

class String
  def [](index)
    return self.getbyte(index)
  end
end


That might solve your problem, but generally it is not recommended to change implementations of the standard library since you can mess up other stuff.
Title: Re: [XP] RMX-OS
Post by: khkramer on August 03, 2012, 08:34:36 am
Tried it, but it was incompatible with too many scripts.
Converting some strings to integers by adding .to_i did the trick.
However the next error has nothing to do with RMX-OS I think so should I pm it to you? (or post in an ARC thread)
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 03, 2012, 10:41:46 am
ARC thread would be best.
Title: Re: [XP] RMX-OS
Post by: Gutow on August 12, 2012, 05:30:17 pm
Help... just dont work, sql are working but have this problem:

(https://lh3.googleusercontent.com/-VMv0Ep6s6tY/UCggSg88BVI/AAAAAAAAAG4/xGI1jsXPu0g/s667/Sem%2520t%25C3%25ADtulo.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 12, 2012, 05:56:57 pm
You have mixed server files from a previous version with the current version.
Title: Re: [XP] RMX-OS
Post by: Gutow on August 12, 2012, 06:02:30 pm
But i just download this version: 1.21 and try run...

you know how to fix?
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 13, 2012, 05:07:33 am
As I said, you have mixed together files. You are not using the cfg.ini from 1.21.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on August 20, 2012, 04:09:37 pm
Hello again! I would like to ask you about some things,
Nick of character over the head always on images that displayed on the screen,
It is fixed in future versions?
Also, the chat window can not be removed while talking to NPC,
Also during the show the images, it prevents, o_o
Title: Re: [XP] RMX-OS
Post by: Kiwa on August 21, 2012, 08:45:36 am
Ok blizz!!
about 4 months ago.. i asked about instanced zones. you told me "bad idea, Read back to find out why ..cuz i forgot really"..
So i just finished reading..and my eyes are bleeding...and i didn't see an information.. perhaps due to the eyes bleeding :P..

============REASON FOR THIS POST!!!!==============
is actually nothing to do with that.. i just wanted to cry a little.

after losing my original, Ive been RE-developing my game. after countless scripts read thru or added..and bugs fixed, or still being delt with... tons of balancing.
I have gotten to the point where i think I'm ready to start building the maps and story events

I fully intend to make this an Online game still...
so here are some of my questions from what I've read or "know" about your system! :D

1. How small/large should i make maps to increase performance / reduce lag? (i found it took forever to load a 500x500 i made offline..unlike RM2k3)
2. How many enemies should i limit to a map or "screen"? (i found in testing 8 clustered enemies lagged my pc quite a bit on occasion using BABS)
3. If I build all maps and story events..how easy is it to implement you're OS to a semi completed game? should i try to get it working before hand? (im not prepared for it quite yet.. no other computer to even act as a server for the time being)


Thanks :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 21, 2012, 12:03:34 pm
Quote from: ShinoTakadora on August 20, 2012, 04:09:37 pm
Hello again! I would like to ask you about some things,
Nick of character over the head always on images that displayed on the screen,
It is fixed in future versions?
Also, the chat window can not be removed while talking to NPC,
Also during the show the images, it prevents, o_o


There are script calls to disable/hide player names and the chatbox. Just look them up in the manual.
I'm not sure if the name sprites are displayed on top of everything. As far as I remember, they are displayed in the same viewport as the character sprites. Could you make a screenshot of the problem?

Quote from: Kiwa on August 21, 2012, 08:45:36 am
Ok blizz!!
about 4 months ago.. i asked about instanced zones. you told me "bad idea, Read back to find out why ..cuz i forgot really"..
So i just finished reading..and my eyes are bleeding...and i didn't see an information.. perhaps due to the eyes bleeding :P..

============REASON FOR THIS POST!!!!==============
is actually nothing to do with that.. i just wanted to cry a little.


LOL!

Quote from: Kiwa on August 21, 2012, 08:45:36 am
1. How small/large should i make maps to increase performance / reduce lag? (i found it took forever to load a 500x500 i made offline..unlike RM2k3)


100x100 are pretty big, but still have a decent loading time. You shouldn't go over 200x200. If you use ARC instead of the normal RMXP, the performance should be much better either way.

Quote from: Kiwa on August 21, 2012, 08:45:36 am
2. How many enemies should i limit to a map or "screen"? (i found in testing 8 clustered enemies lagged my pc quite a bit on occasion using BABS)


Clustered enemies will cause more lag, yes. But there is a difference when you are using RMX-OS. Blizz-ABS can't fully use the integrated anti-lag system because all enemies need to be updated. I haven't tried it fully, but 30 enemies should work fine. That combined with a 100x100 map, I think it should work good enough. If it doesn't, as I already mentioned, you can always use ARC instead of RMXP for the final product.

Quote from: Kiwa on August 21, 2012, 08:45:36 am
3. If I build all maps and story events..how easy is it to implement you're OS to a semi completed game? should i try to get it working before hand? (im not prepared for it quite yet.. no other computer to even act as a server for the time being)


Getting RMX-OS running isn't complicated, but if you add it at the very end, you may have to redesign some things as you will realize that some thing won't work well online as they do online (e.g. if you have a special quest with some switches, etc.). You won't be able to fully test your game unless you get it online. Technically you can create the whole game offline and then add the online system as the very end. Just keep in mind that you will need a lot of testing at once if you add it at the end as opposed to a bit of testing after implementing each feature/quest/map/whatever online right away. It's really up to you. Maybe you should at least test it out to see if RMX-OS is really what you want.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on August 21, 2012, 01:16:38 pm
Here's a look,: ShowHide
(http://s017.radikal.ru/i420/1208/01/916decad9007.jpg)
Title: Re: [XP] RMX-OS
Post by: G_G on August 21, 2012, 01:38:31 pm
Corpse Party was an awesome game. Making some sort of fan spin-off or something?
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on August 21, 2012, 06:30:36 pm
Quote from: gameus on August 21, 2012, 01:38:31 pm
Corpse Party was an awesome game. Making some sort of fan spin-off or something?


Create something like Corpse Party Online. Not yet thought, what comes out of this)
Title: Re: [XP] RMX-OS
Post by: Kiwa on August 22, 2012, 11:38:25 pm
Thanks Blizz!
I'll probably stick to a 60x60 or 100x100..if the lag is anything like offline.. those will be fine.. basically no loading time.

As for the online play:
I haven't given much info on it i guess. But i want a game similar to Zelda. Somewhat linear but open world..since there is a leveling system..some areas would have high level monsters. i don't intend a mainstream MMO questing system or grind..none of the "Lets grab the '!' and not even read the quest!!"
similarly to my beloved WoW, or Aion, Rift, xXinsert mmo hereXx, so on so forth.

I want dungeons like Zelda too.. puzzles. I want there to be Trash..similar to common MMOS...basically not pushovers. I also intend a "Trinity" system but not to the extent that most main stream games are at. I want bosses to be somewhat "tactical" using environment or strengths / weaknesses of the players/classes (maybe also similar to many mmos + Zelda + Soul Reaver)
To limit a dungeon to an "instanced" area would protect the mechanics of the dungeon. That's why i was interested
I mean...imagine your in a group and you've worked your way thru.. and your trying to defeat the boss and some higher level and his band of jerk faces run in and smash it.
you feel no accomplishment ..and you will get bored.. cuz ..if more than just a small community begins playing ..this is a sure fire FACT that will happen.
And truthfully i can think of no other way around it. if i make the game global to all users on the server...switches could be abused and it would remove the puzzles purpose too.
if the dungeon is supposed to have 4 people and 2 need to lift a lever..and the other 2 have to be wisely selected as to who is going in..or the group could die. and outside is a band of 20 people... they all rush in at once... all my traps and puzzles and monsters are null lol.

I'm not bashing your OS..if it seems that way i REALLY apologize. the fact of the matter is I'm not skilled, so 'I' fail the requirements to make what i want.
So in making the majority of the game on my own, OFF-line.. people may see if its a REAL project or something that will be dumped halfway thru or even before... perhaps i can attract skilled/talented scripters and/or more to make this a reality :D
And if in fact it ever gets scrapped...no ones time was unfairly wasted (much..cuz you guys help on here. Trying to keep casualties low here.)

Thanks for reading my Book...I'll Be in later to sign autographs :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 23, 2012, 02:32:40 am
Lol, I didn't even see that as my OS being bashed. I am well aware of the limitations, but that's what server extensions and plugins should be used for. It's difficult to make a script like this that covers all possible aspects and features. That's why I simply didn't do it and instead made it possible to extend RMX-OS.

Some things can be solved with smart design. e.g. You may want to isolate some puzzle rooms for certain players only (if you can find/make a dungeon instances script) and you could make it that certain switches are local to the player and reset when you exit the dungeon (if you wan the player to repeat the puzzle once re-entering). So many (actually all) of these things can still be done, but not with a bare RMX-OS without extensions/plugins.
Title: Re: [XP] RMX-OS
Post by: diagostimo on August 23, 2012, 08:48:30 am
hey, i think i have seen this question asked before, but i cant remember the reply and cant see it on a quick scroll through the posts, i was wondering if and how hard it would be to implement global events? i dont want all events to be global just specified ones, like special game events occuring etc. if it is possible to achieve could you point me in the right direction? i want to get my head around this system so i can script for it alot more :D
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 23, 2012, 09:20:27 am
I think the answer was to either make a script similar to Blizz-ABS's processor that takes care of global events or to use global switches instead. I think the global switches solution was the safer one.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on August 23, 2012, 12:23:54 pm
I apologize, but what about my problem? :^_^':
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 23, 2012, 02:05:52 pm
As I said, use the script calls to hide them for now. Or just wait until I can find some time to take a look at it.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on August 23, 2012, 04:52:11 pm
Quote from: Blizzard on August 23, 2012, 02:05:52 pm
As I said, use the script calls to hide them for now. Or just wait until I can find some time to take a look at it.


Thank you, :haha:
Title: Re: [XP] RMX-OS
Post by: Kiwa on August 26, 2012, 02:13:34 am
Yeah Blizz. seriously your codes are making this even possible for me anymore. Many others on this site too. I'm thankful for what you've made regardless of "limitations" And im thankful for what others have modded or built.
So, thanks for that.

I haven't seen any instance scripts since i looked at the RMXP OS addons. but i haven't searched anywhere but here TBH (I cant get too ahead of my self here...tho I'm notorious for it)
I have an idea for a script...that idk if its so hard to make..and would make an "instanced" zone an "easier" manner perhaps? let me know what you think

Basically it would function like this:
we will call the dungeon "Dunkin'z Dounut" and say its 'MAP003' (yes i know spelling is incorrect)
so upon entering / touching the Dungeon 'Portal' event, before it ports you it would trigger a code thru script command
that would make an ID number... create a COPY of the dungeon map locally and to the perhaps on the server too. that ID number would be shared among the entire party.
so something like this: (Noob Kiwa code 1.2)

NUMBER ==  NUMBER + 1
ID == "D" + NUMBER

Copy "MAP003" + ID (so it makes an actual copy of 'MAP003' plus the ID making something like 'MAP003D1' and placing it in the DATA folder)
Then porting them there perhaps with the 'script' tool instead of normal teleport

Now ..that means. that map is real..but no one else can get in..because the next person who comes along... the server variable ID gets 1 added to it.
so the next party will Receive 'MAP003D2'
After the dungeon was completed...perhaps it would delete it from each user individually as they exited.
Upon server resets.. the variables would also be reset.

I'm no programmer anymore (hardly ever was) nor do i really even know RMXP so i cant say this would work.
This idea stems from how i made games on my TI-89 Back in the day or when I was making a game with a friend in VB 6.0
or perhaps its over complicated..i don't know.

Quick background. before i went to college i had exp with many programs and languages including VB and C++.
in college...
MY old VB teacher said my methods were a bit "abstract" and sometimes couldn't see how it actually worked lol. but passed me regardless.
My C++ teacher however... hated my coding methods..and failed me.. tho i created every program to give the output he wanted
he said my code was dumb and there was more efficient ways to create what he wanted and if it weren't for spaghetti code/string i couldn't make a working program.
quick example:
if my program had 4 functions in it.
and i had to use variable A in many functions.. i created a Global variable.
he expected me to make an extra few lines in each function to call on function1 and copy function1's local variable A into Function3's local variable P.
instead i made a global variable and he failed me off that alone for that project. now i couldn't wisen up to this..cuz i didn't know he was failing me... he did not release the homework or tests till the very END of the course..in one giant stack.. after he turned in my grades to the board. so i was unaware the whole time. After i got it back.. i talked to him.. thats when shit hit the fan....and he said I didn't do it how he wanted me to.. i told him ..you said "make this output" not .."build it like id build it" he started bragging about how he knows what hes talking about cuz he made a program in C++ for Fermi lab that controlled anti matter...and in the end he kicked me out of the class room..(all cuz of some global variables eh? lol...)


moral of that long story... maybe i was never a good programmer...(besides that teacher being an arrogant tool)
Title: Re: [XP] RMX-OS
Post by: Ryex on August 26, 2012, 02:53:03 am
the hell? I've only been programming at a level I would consider competent for about 2 years but even I know there are about 15 different ways to approach any given problem in programming. true, most of them are in-efficient or don't make use of the language properly but there are always at least 2 equally valid ways to complete a task based on the programer's programming style
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 26, 2012, 04:23:00 am
I agree with Ryex. It may be true that your program was not very efficient, but such a thing comes with experience and his duty is to teach you to make it more efficient, not to brag around how he's so much better than you. IMO he didn't fulfill his academic responsibility to you.

As for RMX-OS, yeah, you pretty much nailed down the core concepts. The server should create a map data package just for a certain player when he enters that map and then handle that while other players get their own map data package. It's not that difficult to make, one only has to be careful around the design.
Title: Re: [XP] RMX-OS
Post by: Ryex on August 26, 2012, 04:48:18 am
I was fairly sure I described a simple way to design such a system in this thread in one point... the gist of it was to tell the client to ask the server what map Id to display when the player's current map id was above the id of the real maps. and have the server map instanced map id to real map id to send to the client on request. if I remember correctly the server handles all the internals for map by simply knowing the map id weather that was a real map on the client was irreverent. it a simple matter of giving the player a map id that doesn't exist and having the client ask the server what real map id to use.
Title: Re: [XP] RMX-OS
Post by: Kiwa on August 26, 2012, 06:36:06 am
Glad to know I'm on the right track lol. Id like to develop a script sometime to return something to the community... perhaps this can be the one.. but i don't have a grasp of RGSS yet..when truthfully im not spending a lot of time learning how to RGSS...
I don't feel this is so....linear?. and with all the code already created..i don't know what was made by enterbrain or what was made by the coder who made the add on and many other things irl like trying to learn japanese..and working 2 jobs and nerding in video games (as well as the game im making lol)... taking from learning RGSS...but those are just excuses. i could probably make more time for it.

And the school stuff..yeah ...sorry to veer off track don't wanna derail the thread. i get passionate...lol.

Sorry ryex, i probably read the post with zombie eyes or accidentally skipped it cuz..i read all pages in one sitting.. and ..uh..
yeah i was brain dead by the end of it.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 26, 2012, 06:45:45 am
There are 70+ pages in this topic, it's understandable.
Title: Re: [XP] RMX-OS
Post by: mPlattenum on September 01, 2012, 11:47:52 pm
Hey Blizzard, thanks for the amazing script. It totally worked for me up until the log-in screen. I'm not sure why, but it keeps disconnecting me.

My server is online (it even says so). MySQL is set up correctly and working in Navicat, the server is running properly, etc. When I open the game, it tells me my server is online. I click on it and then go to register. When I click submit in the Register or Log-In screen, a window just pops up and says "You have been disconnected." then returns me to the server screen.

I'm not sure why.. if you could help out, that would be great. I'll post some screenshots to show you what I mean.

Spoiler: ShowHide
(http://i.imgur.com/TMjzF.png)

(http://i.imgur.com/GcXgn.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 02, 2012, 04:45:37 am
I suggest that you turn on error logging on the server and post the log right after you got disconnected with the client.
Title: Re: [XP] RMX-OS
Post by: mPlattenum on September 03, 2012, 03:06:21 pm
Well, I looked at the Server after the disconnect, and this is what appeared.

Spoiler: ShowHide
(http://i.imgur.com/wYHVU.png)


"Table 'mysql.users' doesn't exist" is what I'm taking note of. I'm guessing that needs to be made? (I'm using Navicat for the MySQL.)

EDIT: Well I managed to work that out.. somehow (I changed the table 'user' to 'users' and it fixed it, but I'm still getting the disconnect error). Now this is what I'm getting:

Spoiler: ShowHide
(http://i.imgur.com/MVVvV.png)
Title: Re: [XP] RMX-OS
Post by: G_G on September 03, 2012, 03:40:50 pm
Wipe your database. Recreate it using the provided MySQL script. Make sure you're using the right one.
Title: Re: [XP] RMX-OS
Post by: mPlattenum on September 03, 2012, 04:01:06 pm
Ok, I wiped the database. Do I now just use the "RMX-OS SQL Database.sql" or all of them that are included in the Database folder?

EDIT: Just kidding, I got it to work. Thanks for the help, and thanks for the script Blizzard!
Now onto designing the game. (:
Title: Re: [XP] RMX-OS
Post by: chaucer on September 07, 2012, 04:02:13 am
quick question :p is there a way to display a chat bubble over an event without having it dispay in message window? if so how lol
Title: Re: [XP] RMX-OS
Post by: DINOSAUR215 on November 08, 2012, 06:54:44 pm
Can you give me the SQL username and password of the demo thingy? I'm trying to use the guild to get the server online.
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 09, 2012, 03:09:26 am
You specify those yourself when setting up the SQL server instance. By default, if you enable root access, the username is "root". The password is whatever you specified as the root password.
Title: Re: [XP] RMX-OS
Post by: DINOSAUR215 on November 09, 2012, 04:58:11 pm
Oh wow... I must've done it wrong. What version of SQL do people normally use for this?
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 09, 2012, 06:06:16 pm
v5.x. Just read the installation guide in the manual, I put everything relevant in there.
Title: Re: [XP] RMX-OS
Post by: DINOSAUR215 on November 09, 2012, 06:15:35 pm
Thanks.
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 15, 2012, 09:09:04 pm
Hello! I installed RMX-OS last night, and I installed everything (MySQL, MySQL Database, and Server config) correct. I use IP "localhost" for testing, not ready to release. I didn't run the server. I want to test the client first, if I find the errors in the script. However, there is no errors. It look like fine. I used Blizz-ABS to use for my server, it's working perfectly. Then I am ready to run the server. I got the errors while try to run the server. But the window closed quickly after I got errors, but I thought I saw it said "RMX-OS_ Platform (NameError)"? The rest of errors I can't read because it got closed quickly. I tried to run the server too many times, still getting the same errors. Is there a way to fix this?
Title: Re: [XP] RMX-OS
Post by: G_G on November 15, 2012, 09:17:26 pm
A) Make sure logs are enabled in your server config.
B) On top of using Blizz-ABS in your game, you have to make sure you have the Blizz-ABS Controller (http://forum.chaos-project.com/index.php?topic=5409.0) installed as well. You also need to make sure you have the server extension for that script installed into your server.

If you still run into problems, remove Blizz-ABS and try running the server and client without any additional scripts.
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 15, 2012, 09:19:28 pm
Quote from: gameus on November 15, 2012, 09:17:26 pm
A) Make sure logs are enabled in your server config.
B) On top of using Blizz-ABS in your game, you have to make sure you have the Blizz-ABS Controller (http://forum.chaos-project.com/index.php?topic=5409.0) installed as well. You also need to make sure you have the server extension for that script installed into your server.

If you still run into problems, remove Blizz-ABS and try running the server and client without any additional scripts.


Okay! I will do that! BTW, I like Final Fantasy XIII too! :3
Title: Re: [XP] RMX-OS
Post by: G_G on November 15, 2012, 09:20:49 pm
Haha, cool. Also I forgot to mention something. Make sure logs are enabled, if you run into errors, try and post those logs here. It'll help us understand your problem more.
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 15, 2012, 09:28:05 pm
Quote from: gameus on November 15, 2012, 09:20:49 pm
Haha, cool. Also I forgot to mention something. Make sure logs are enabled, if you run into errors, try and post those logs here. It'll help us understand your problem more.


Installed Blizz-ABS controller script, still working perfectly. Server is still giving me errors in ruby file. No error logs. However, when I'm testing Blizz-ABS script in Title Menu only, it's working, but I saw "Online" which it is supposed to not. It's strange... I tried to login then I ended up getting errors because it's supposed to not be online, lol.... Well, still no logs. I already enabled them all.
Title: Re: [XP] RMX-OS
Post by: G_G on November 15, 2012, 09:36:48 pm
Alright then, I'm at a loss. We'll just have to wait for Blizzard to come on and hopefully help.

Also, your signature breaks the forum rules.
QuoteKeep images in your signatures within 800x200 px and 200 kB. The pictures in your signature may altogether be no more than 200 kB. Every signature not matching this criteria is a subject of the moderator team to remove and leave this rule as message in your signature. For reference, maximum avatar size is 140x200 px.


You can keep the picture, just put it into [spoiler][/spoiler] tags and you'll be good to go.
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 15, 2012, 09:43:27 pm
Quote from: gameus on November 15, 2012, 09:36:48 pm
Alright then, I'm at a loss. We'll just have to wait for Blizzard to come on and hopefully help.

Also, your signature breaks the forum rules.
QuoteKeep images in your signatures within 800x200 px and 200 kB. The pictures in your signature may altogether be no more than 200 kB. Every signature not matching this criteria is a subject of the moderator team to remove and leave this rule as message in your signature. For reference, maximum avatar size is 140x200 px.


You can keep the picture, just put it into [spoiler][/spoiler] tags and you'll be good to go.


Okay, I will wait for him to come.

And I've fixed signature. Thanks for telling me that. I'm pretty new to Chaos Project forums, and I didn't read forums rules. I will do it.
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 16, 2012, 05:36:44 am
Quote from: firelad97 on November 15, 2012, 09:09:04 pm
Hello! I installed RMX-OS last night, and I installed everything (MySQL, MySQL Database, and Server config) correct. I use IP "localhost" for testing, not ready to release. I didn't run the server. I want to test the client first, if I find the errors in the script. However, there is no errors. It look like fine. I used Blizz-ABS to use for my server, it's working perfectly. Then I am ready to run the server. I got the errors while try to run the server. But the window closed quickly after I got errors, but I thought I saw it said "RMX-OS_ Platform (NameError)"? The rest of errors I can't read because it got closed quickly. I tried to run the server too many times, still getting the same errors. Is there a way to fix this?


Are you using the RMX-OS GUI application? I don't think it's up to date. I have added some more stuff to cfg.ini recently and Ryex hasn't updated the GUI app as far as I remember.

You are simply missing the RMXOS_Platform variable in your cfg.ini file I think. Download the most recent RMX-OS and simply copy it from its cfg.ini into yours.

Quote from: firelad97 on November 15, 2012, 09:28:05 pm
Quote from: gameus on November 15, 2012, 09:20:49 pm
Haha, cool. Also I forgot to mention something. Make sure logs are enabled, if you run into errors, try and post those logs here. It'll help us understand your problem more.


Installed Blizz-ABS controller script, still working perfectly. Server is still giving me errors in ruby file. No error logs. However, when I'm testing Blizz-ABS script in Title Menu only, it's working, but I saw "Online" which it is supposed to not. It's strange... I tried to login then I ended up getting errors because it's supposed to not be online, lol.... Well, still no logs. I already enabled them all.


Make sure that you have:

1. added the plugin script into the client (it goes below Blizz-ABS).
2. created a Ruby file in the extensions folder and put the server extension code there.
3. added the filename into the list of extensions in cfg.ini.

Here's an example how my file looks like when I test Blizz-ABS on RMX-OS:

NAME = 'RMX-OS Server'
HOST = '127.0.0.1'
PORT = 54269
RMXOS_VERSION = 1.21
RMXOS_PLATFORM = 'Win32'

LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

DEBUG_MODE = true

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

SQL_HOSTNAME = '127.0.0.1'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'root'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [
'Blizz-ABS'
]
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 16, 2012, 08:53:49 am
Quote from: Blizzard on November 16, 2012, 05:36:44 am
Quote from: firelad97 on November 15, 2012, 09:09:04 pm
Hello! I installed RMX-OS last night, and I installed everything (MySQL, MySQL Database, and Server config) correct. I use IP "localhost" for testing, not ready to release. I didn't run the server. I want to test the client first, if I find the errors in the script. However, there is no errors. It look like fine. I used Blizz-ABS to use for my server, it's working perfectly. Then I am ready to run the server. I got the errors while try to run the server. But the window closed quickly after I got errors, but I thought I saw it said "RMX-OS_ Platform (NameError)"? The rest of errors I can't read because it got closed quickly. I tried to run the server too many times, still getting the same errors. Is there a way to fix this?


Are you using the RMX-OS GUI application? I don't think it's up to date. I have added some more stuff to cfg.ini recently and Ryex hasn't updated the GUI app as far as I remember.

You are simply missing the RMXOS_Platform variable in your cfg.ini file I think. Download the most recent RMX-OS and simply copy it from its cfg.ini into yours.

Quote from: firelad97 on November 15, 2012, 09:28:05 pm
Quote from: gameus on November 15, 2012, 09:20:49 pm
Haha, cool. Also I forgot to mention something. Make sure logs are enabled, if you run into errors, try and post those logs here. It'll help us understand your problem more.


Installed Blizz-ABS controller script, still working perfectly. Server is still giving me errors in ruby file. No error logs. However, when I'm testing Blizz-ABS script in Title Menu only, it's working, but I saw "Online" which it is supposed to not. It's strange... I tried to login then I ended up getting errors because it's supposed to not be online, lol.... Well, still no logs. I already enabled them all.


Make sure that you have:

1. added the plugin script into the client (it goes below Blizz-ABS).
2. created a Ruby file in the extensions folder and put the server extension code there.
3. added the filename into the list of extensions in cfg.ini.

Here's an example how my file looks like when I test Blizz-ABS on RMX-OS:

NAME = 'RMX-OS Server'
HOST = '127.0.0.1'
PORT = 54269
RMXOS_VERSION = 1.21
RMXOS_PLATFORM = 'Win32'

LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

DEBUG_MODE = true

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

SQL_HOSTNAME = '127.0.0.1'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'root'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [
'Blizz-ABS'
]



EDIT:
Nevermind, I've figured out the errors. Also I deleted RMX-OS GUI to not messed up again. Thank you for your help!

ANOTHER EDIT:
Server is up. Client is fine. Going into the login screen gives me the errors. Here they are:
Spoiler: ShowHide

Fri Nov 16 09:17:49 Eastern Standard Time 2012:
cannot convert nil into String
(RMX-OS) Script:835:in `+'
(RMX-OS) Script:835:in `listen'
(RMX-OS) Script:5633:in `waiting_for_server'
(RMX-OS) Script:5458:in `waiting?'
(RMX-OS) Script:5585:in `update'
(RMX-OS) Script:5336:in `main'
(RMX-OS) Script:5333:in `loop'
(RMX-OS) Script:5338:in `main'
-<:::RMX-OS Main:::>-:46


How to fix this...?
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 16, 2012, 10:19:31 am
Change the affected line:

buffer[0] = @previous_chunk + buffer[0]


to this:

buffer != nil ? buffer[0] = @previous_chunk + buffer[0] : buffer[0] = [@previous_chunk]


This is just a quick fix. Generally that bug shouldn't be possible because it would mean that the client has received an empty message. The client can't receive an empty message because an empty message would mean that no message was received at all and then this code would never be executed in the first place.
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 16, 2012, 10:46:11 am
Quote from: Blizzard on November 16, 2012, 10:19:31 am
Change the affected line:

buffer[0] = @previous_chunk + buffer[0]


to this:

buffer != nil ? buffer[0] = @previous_chunk + buffer[0] : buffer[0] = [@previous_chunk]


This is just a quick fix. Generally that bug shouldn't be possible because it would mean that the client has received an empty message. The client can't receive an empty message because an empty message would mean that no message was received at all and then this code would never be executed in the first place.


Fixed. An another error occurred.

Spoiler: ShowHide
Script '(RMX-OS) Script' line 835: TypeError occurred.

cannot convert nil into String
(RMX-OS) Script:835:in `+'
(RMX-OS) Script:835:in `listen'
(RMX-OS) Script:5633:in `waiting_for_server'
(RMX-OS) Script:5458:in `waiting?'
(RMX-OS) Script:5585:in `update'
(RMX-OS) Script:5336:in `main'
(RMX-OS) Script:5333:in `loop'
(RMX-OS) Script:5338:in `main'
-<:::RMX-OS Main:::>-:46


:facepalm:
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 16, 2012, 12:02:51 pm
Hm... Try this instead.

buffer[0] != nil ? buffer[0] = @previous_chunk + buffer[0] : buffer[0] = [@previous_chunk]
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 16, 2012, 12:32:02 pm
Quote from: Blizzard on November 16, 2012, 12:02:51 pm
Hm... Try this instead.

buffer[0] != nil ? buffer[0] = @previous_chunk + buffer[0] : buffer[0] = [@previous_chunk]



This works. Thanks, but...

I have server running, and I cannot get in login screen. It said "Server did not respond" and I have putted IP and Port in right place (in server config and script).

EDIT:
Nevermind, I replaced IP "localhost" to "127.0.0.1" and this works.

Also, while in login screen, I putted ID and then I tried to click password field box, and it won't let me. No errors.

ANOTHER EDIT:
Horraaaaay!! I did everything! This rocks!
Title: Re: [XP] RMX-OS
Post by: Emtec on November 16, 2012, 12:45:35 pm
Hello,

I don't know if this question should be here, but I think so because it is related to RMX - OS.
I'm trying to create an online turn-based game with the following scripts:
- RMX-OS
- Global Switches and Variables for RMX-OS
- Mouse Controller Script
- Mouse Controller Enhancement Script

I'm trying to create the following process:
- Player 1 turn.
- Player 1 ends his turn by clicking on the appropiate button (event).
- Player 2 turn.
- Player 2 ends his turn by clicking on the appropiate button.
- so on.

My problem is that I can't figure out how to create the conditional branch to control this process. How can I control whose turn is with global variables?

Could you please help me?

PS: We can assume that just two players are going to be online at the same time.

Please, excuse my poor English.

Thank you!
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 16, 2012, 02:15:52 pm
You can assign the variable value using a script like:

$game_variables[SOME_ID] = $network.user_id


Make sure the variable is set as global. Just note that this sets the variable for ALL players, not just the two. I guess you could figure out something to limit it to them by using another variable to make sure no other players on the map can currently access that puzzle or something. Or try to redesign your puzzle's background logic. Maybe you can do this in a smarter way.
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 16, 2012, 03:20:41 pm
i have another problem... Again. I can't chat!!! I pressed F5, then nothing happens. Chat window got closed, that's all.
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 16, 2012, 03:54:12 pm
F5 is for showing the window, not for activating chat mode. *points to manual*
Title: Re: [XP] RMX-OS
Post by: firelad97 on November 17, 2012, 11:15:12 am
Oh man, thank you.... I should read the manual. Oh so you like role-playing? :3 *opens the manual and reading*

EDIT: More problems when I add more addition scripts... When I login, RMX-OX is giving me errors:

Spoiler: ShowHide
wrong number of arguments(1 for 0)
Blizz-ABS PT2:3864:in `refresh'
Blizz-ABS PT2:3864:in `refresh'
Blizz-ABS PT2:3862:in `each'
Blizz-ABS PT2:3862:in `refresh'
Blizz-ABS PT3:2759:in `refresh_caterpillar'
tons pt1:2834:in `refresh'
Blizz-ABS PT2:2219:in `init_caterpillar'
Blizz-ABS PT2:876:in `setup_starting_members'
(RMX-OS) Script:6106:in `load_game'
(RMX-OS) Script:6090:in `update'
(RMX-OS) Script:5336:in `main'
(RMX-OS) Script:5333:in `loop'
(RMX-OS) Script:5338:in `main'
-<:::RMX-OS Main:::>-:46


This time, it's Blizz-ABS Part 2 script error...
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 17, 2012, 12:10:34 pm
Please use the "Modify" button (top right corner of a post) instead of double-posting.

Make sure that you wipe your database. The database is the equivalent of savegames and when you install/uninstall a majority of functional scripts, they mess up old savegames (and usually they have a warning that tells you that they "corrupt" old savegames).

(You can wipe your database by using the command "DROP DATABASE 'rmxosdb'" and then recreating it with the SQL scripts.)
Title: Re: [XP] RMX-OS
Post by: khkramer on December 28, 2012, 06:12:13 pm
(http://i.imgur.com/K14U1.png)
When I run the server on Centos , I get this erro when logging in or registrering.
Got any ideas what the problem could be?

NVM, reinstalled server to ubuntu
Title: Re: [XP] RMX-OS
Post by: iNumPad on January 07, 2013, 10:15:26 am
Hi everybody. I'am from Brazil! (Land of "Samba", "Best Soccer of the World!" :naughty: and.. "The best fuc... corruption.. :facepalm:)

Fine. I can't make RMX - OS works!!! I do everything but when i start de game, Localhost appears "Offline"

Here some screens...
Spoiler: ShowHide
(http://i.imgur.com/wiaxl.jpg)

Spoiler: ShowHide
(http://i.imgur.com/UMgsP.jpg)

Spoiler: ShowHide
(http://i.imgur.com/s1uqA.jpg)

Spoiler: ShowHide
(http://i.imgur.com/KthHL.jpg)

------------------------------------------------------------------------------
Someone can say what i doing wrong? I try to disable firewall, add port exception. Everything, but don't works.
The strange thing is that the server say that is running!!!


[Sorry about my english.. I'am a not expert ang Google Translator suc.. and i don't use that sh..]
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 07, 2013, 10:44:32 am
Press Windows Key + R, type "cmd" (without the ") and press ENTER. Now type "ipconfig" and press ENTER. This should list your LAN IP address (it will most probably look like 192.168.*.*). Try using that one instead of 127.0.0.1.
You are trying to run the server and the game on the same computer, right?
Title: Re: [XP] RMX-OS
Post by: iNumPad on January 07, 2013, 11:12:43 am
Quote from: Blizzard on January 07, 2013, 10:44:32 am
Press Windows Key + R, type "cmd" (without the ") and press ENTER. Now type "ipconfig" and press ENTER. This should list your LAN IP address (it will most probably look like 192.168.*.*). Try using that one instead of 127.0.0.1.
You are trying to run the server and the game on the same computer, right?


Don't works too. Yes, in same computer. But, i will forget this for a time.. some months. My 'provisory' computer is  much slow, and don't run Anti-Malware,and my computer are infected now, so i'am will install some Linux OS. Because not have a lot of malwares. But, don't works RMXP  :'(
Tnx, when i win a new computer i will try to fix this problem again.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 07, 2013, 01:09:29 pm
Both the RMX-OS server and RMXP can be run on Linux actually.
For the server, just check the installation guide in the manual, it tells you what you need to do.
For RMXP, check out this topic: http://forum.chaos-project.com/index.php/topic,1731.0.html
Title: Re: [XP] RMX-OS
Post by: Xolitude on January 31, 2013, 12:01:45 am
Whenever I add my extension for the Blizz-ABS RMX-OS Controller, and open my server, it just closes instantly.

Config:
NAME = 'RMX-OS Server'
HOST = '192.168.1.105'
PORT = 5234
RMXOS_VERSION = 1.01

LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

DEBUG_MODE = false

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 30
AUTO_RESTART = true
RESTART_TIME = 5
USE_IP_BANNING = false
PREVENT_ZOMBIE_CLIENTS =
RUBY_PROMPT =
OPTIMIZE_DATABASE_ON_STARTUP = true
DATABASE_CONNECTION_TIMEOUT = 60

SQL_HOSTNAME = '127.0.0.1'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'root'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 10

EXTENSIONS = [Blizz]


Spoiler: ShowHide
(http://gyazo.com/31549cedc8dc7f7cfa5312c8a70e31bb.png)


Also, No logs are created so I can't post any. Any help would be appreciated <3
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 31, 2013, 02:44:17 am
EXTENSIONS uses strings. You set it to:

EXTENSIONS = [Blizz]


Try setting it to this instead:

EXTENSIONS = ['Blizz']


Also, please use spoilers for images. *fixes*
Title: Re: [XP] RMX-OS
Post by: MOAL on February 01, 2013, 04:08:21 am
Just a heads up, if you use the Mouse Controller with RMX-OS, the login menu works fine. But if you add Blizz-ABS, you cannot click on any of the buttons on the login. Not sure if anyone knows about it or what.
Title: Re: [XP] RMX-OS
Post by: Zexion on February 02, 2013, 01:37:57 am
I don't know if I should post this here, but if there was no abs in the game, how would you do pvp with rmx-os? would you need to make another script, or is it included already
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 02, 2013, 04:52:22 am
I think you just have to set up the groups in Blizz-ABS, but it's been so long I touched either of these scripts that I don't remember.
Title: Re: [XP] RMX-OS
Post by: Skaaz on February 05, 2013, 01:09:33 pm
Hi, it's now 4 times that I try to install OS RMX, but I'm stuck at installing mysql, if possible, I wonder if it would be possible for you and me install OS RMX RMX Gui OS on my pc via Team Viewer?
You would pay about 35 € ($ 40 should do it at home) every month since the release of the beta. You will also have a VIP account at Network DoMoon V1 surely open its doors in 3 weeks.

Here, I hope really, because almost nobody was able to install it in my community, thank you for your understanding  :^_^':
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2013, 02:51:39 pm
I'm seriously taking down the link for the RMX-OS GUI. Ryex never updates it and it doesn't work with the current version.
Don't use RMX-OS GUI, configure RMX-OS manually. It's really not that difficult if you just follow the installation guide step by step.
Title: Re: [XP] RMX-OS
Post by: Ryex on February 05, 2013, 03:21:06 pm
ya, I either need to do a complete revamp of the dam thing or scrap it.
Title: Re: [XP] RMX-OS
Post by: Grim on February 06, 2013, 04:46:47 am
Quote from: Blizzard on February 05, 2013, 02:51:39 pm
I'm seriously taking down the link for the RMX-OS GUI. Ryex never updates it and it doesn't work with the current version.
Don't use RMX-OS GUI, configure RMX-OS manually. It's really not that difficult if you just follow the installation guide step by step.


What's up with it exactly? It works flawlessly for me, after a few trial and errors of course.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 06, 2013, 05:09:33 am
Most people simply can't handle trial and error.
Title: Re: [XP] RMX-OS
Post by: Ryex on February 08, 2013, 01:14:43 am
I'm kinda considering revamping it to use an embedded ruby, load and configure RMXOS on the fly and other cool stuff. but only when I have the time

Also, i think it is about time that you note that a Ruby On Rails service is NOT explicitly able to run RMX-OS.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on February 19, 2013, 12:54:28 pm
Comands:
$game_temp.name_sprites = false
$game_temp.chat_visible = false
$game_temp.chat_sprites = false
$game_temp.chat_active = false

Stopped working! o_o

They either operate too late, but most do not work at all. If you call them one by one script, the client hangs, Oo" Please, help,
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 19, 2013, 01:08:17 pm
http://forum.chaos-project.com/index.php/topic,938.0.html
Title: Re: [XP] RMX-OS
Post by: KK20 on February 19, 2013, 01:16:08 pm
So many people keep reporting that error. It's almost like it should be stickied or made more obvious to the users.
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on February 19, 2013, 01:34:27 pm
Wow, I created a new script, but it did not help, o_o
Chat window not disappears during the cutscene. Not through shared events. Not through a script call.
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 19, 2013, 02:52:26 pm
It doesn't work through event execution because it shows up after the event is done. That's because the chat box is shown in the next frame update where you actually do have control over your character.
Title: Re: [XP] RMX-OS
Post by: Zexion on February 19, 2013, 04:34:11 pm
The way I did cutscenes with RMX-OS was simple. I had lots of hud and chat things on the screen, so before I actually play the cutsene I'd set it up by fading the screen to black, silence the music, etc. Then I'd do a common event call that switches everything off, and then turns on the cutscene switch. If you don't want to have switches used, then set up a player touch autorun(or parallel process) on the step you want the player to stand on, and make sure you have the first event directly behind it. After you call the common event, fade screen, etc. force the player one step forward, and the next one will start.

Idk if that would work because I always just used one switch to activate the cutscene for that map. I think you could also use a variable in conjunction with a switch to determine exactly which cutscene should run. (given that there are multiple cutscenes on the one map)
Title: Re: [XP] RMX-OS
Post by: ShinoTakadora on February 20, 2013, 09:33:31 am
Thank you all again for the help)
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 29, 2013, 07:46:24 pm
I've updated RMX-OS to v1.22. Ryex had a suggestion and he reported a bug so I fixed those along with a few other things that used to annoy/confuse developers.

Title: Re: [XP] RMX-OS
Post by: Wizered67 on March 29, 2013, 07:51:45 pm
Very nice update Blizzard, glad to see your still adding some new stuff to it. Out of curiosity, what does /wr do?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 30, 2013, 04:36:37 am
When you use /w USERNAME MESSAGE, it's tedious to type out the username each time. So now you can use /wr MESSAGE (whisper repeat) to send a whisper message to the same player to whom you sent the previous one.

/w Blizzard Hi, there.
/wr Did you release the new version of RMX-OS yet?
Title: Re: [XP] RMX-OS
Post by: wooethanking on April 13, 2013, 09:18:23 am
 Script 'Os script' line 2345 :Errno::ECONNABORTED occured . how to fix it can anyone help?
An establish connection was aborted by the software in your host machine.


PLs tell me how to fix
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 13, 2013, 12:14:24 pm
Please read the manual.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 16, 2013, 12:57:21 am
how do events(non scripted) work with the game being online (I don't know how to script) and is there some kind of auction house/mailing system that can work with this?


EDIT:i assume progress is saved on the server
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 16, 2013, 02:45:35 am
Yes, progress is saved on the server. But keep in mind that each player has their own set of events. If you need synchronized events, you should use the Global Switches and Variables plugin.
You can simply event your auction house and then use global switches and variables to make sure it works synchronized for all players.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 16, 2013, 11:35:51 am
okay im am having issues with this I follow the manual step by step I have my database setup ive donloaded ruby everything I need but when I run the .rb file the command prompt is running but says (my computers name) is not allowed to connect to server then terminates repeatedly I don't know what I did wrong

EDIT:i changed the host back to default and I chaned the sql host to my ip and I no longer get this user isn't allowed to connect i get a new error just says unexpected was going to post image but not sure how......

EDIT: i changed the ips around i used the default ip for the rmx-os config file and my ip for my management software Heidi something like that it trys to load but fails i can see my server when i go in the game but says offline  

i think i found problem -_- i went into MySQL command typed in password did \r to restart server says there isn't one specified/connected ive read manual again and again but i still don't know how to connect a server to mysql
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 16, 2013, 02:52:23 pm
Alright, let's take this from the beginning.

1. SQL_HOST should stay 127.0.0.1 (or localhost) if the MySQL server is on the same PC. Don't change the port either.
2. Make sure that you created a root account with a password and that you see SQL_USERNAME and SQL_PASSWORD.
3. Make sure that your MySQL service is running. Usually after installation you will get a window to start it. You can check if it's running in Control Panel->Administrative Tools->Services. If it's not running, turn it on. You also might want to set it to start up automatically on your PC if you need it.

Check these things first, then we'll take it from there.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 16, 2013, 03:26:25 pm
Quote from: Blizzard on April 16, 2013, 02:52:23 pm
Alright, let's take this from the beginning.

1. SQL_HOST should stay 127.0.0.1 (or localhost) if the MySQL server is on the same PC. Don't change the port either.
2. Make sure that you created a root account with a password and that you see SQL_USERNAME and SQL_PASSWORD.
3. Make sure that your MySQL service is running. Usually after installation you will get a window to start it. You can check if it's running in Control Panel->Administrative Tools->Services. If it's not running, turn it on. You also might want to set it to start up automatically on your PC if you need it.

Check these things first, then we'll take it from there.

okay all this is set up and MySQL is running(set to automatic)
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 16, 2013, 05:28:46 pm
Now try running RMX-OS and check if it works. If not, post the error message.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 16, 2013, 05:59:37 pm
it says no database selected im using Heidi an honestly its confusing I had it set up but got a syntax error at line 1 idk if Heidi is good for this but other ones I found were just trials

EDIT: I have toyed with the database a bit more I tried using my ip but says cant connect trhough it and when I use the host ip it gives me a syntax error at line 1 and so far I havnt found anything useful on how to resolve this error

-- SQL Database for RMX-OS
-- by Blizzard
START TRANSACTION;

-- these two are used to create the database and can be ommited in case the database already exists
CREATE DATABASE IF NOT EXISTS `rmxosdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `rmxosdb`;
DROP TABLE IF EXISTS `save_data`;
DROP TABLE IF EXISTS `inbox`;
DROP TABLE IF EXISTS `buddy_list`;
DROP TABLE IF EXISTS `user_data`;
DROP TABLE IF EXISTS `guilds`;
DROP TABLE IF EXISTS `ips`;
DROP TABLE IF EXISTS `users`;

-- Registered Users
CREATE TABLE `users` (
   `user_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
   `username` VARCHAR(32) NOT NULL UNIQUE,
   `password` VARCHAR(11) NOT NULL,
   `usergroup` INT(10) NOT NULL DEFAULT 0,
   `banned` TINYINT(1) NOT NULL DEFAULT 0, PRIMARY KEY (`user_id`)
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

-- IPs
CREATE TABLE `ips` (
   `user_id` INT(10) UNSIGNED NOT NULL,
   `ip` VARCHAR(15) NOT NULL, PRIMARY KEY (`user_id`, `ip`), FOREIGN KEY (`user_id`) REFERENCES users(`user_id`) ON
DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

-- Guilds
CREATE TABLE `guilds` (
   `guild_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
   `leader_id` INT(10) UNSIGNED NOT NULL UNIQUE,
   `guildname` VARCHAR(32) NOT NULL UNIQUE,
   `password` VARCHAR(11) NOT NULL, PRIMARY KEY (`guild_id`), FOREIGN KEY (`leader_id`) REFERENCES users(`user_id`) ON
DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

-- Special User Data
CREATE TABLE `user_data` (
   `user_id` INT(10) UNSIGNED NOT NULL,
   `notrade` TINYINT(1) NOT NULL DEFAULT 0,
   `lastlogin` DATETIME NOT NULL,
   `guild_id` INT(10) UNSIGNED DEFAULT NULL, PRIMARY KEY (`user_id`), FOREIGN KEY (`user_id`) REFERENCES users(`user_id`) ON
DELETE CASCADE, FOREIGN KEY (`guild_id`) REFERENCES guilds(`guild_id`) ON
DELETE SET NULL
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

-- Buddy List
CREATE TABLE `buddy_list` (
   `user1_id` INT(10) UNSIGNED NOT NULL,
   `user2_id` INT(10) UNSIGNED NOT NULL, PRIMARY KEY (`user1_id`, `user2_id`), FOREIGN KEY (`user1_id`) REFERENCES users(`user_id`) ON
DELETE CASCADE, FOREIGN KEY (`user2_id`) REFERENCES users(`user_id`) ON
DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

-- PM Inbox Data
CREATE TABLE `inbox` (
   `pm_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
   `recipient_id` INT(10) UNSIGNED NOT NULL,
   `sendername` VARCHAR(32) NOT NULL,
   `senddate` DATETIME NOT NULL,
   `message` TEXT NOT NULL,
   `unread` TINYINT(1) NOT NULL DEFAULT 1, PRIMARY KEY (`pm_id`), FOREIGN KEY (`recipient_id`) REFERENCES users(`user_id`) ON
DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

-- Saved Data
CREATE TABLE `save_data` (
   `user_id` INT(10) UNSIGNED NOT NULL,
   `data_name` VARCHAR(255) NOT NULL,
   `data_value` TEXT NOT NULL, PRIMARY KEY (`user_id`, `data_name`), FOREIGN KEY (`user_id`) REFERENCES users(`user_id`) ON
DELETE CASCADE
) ENGINE = InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; COMMIT;
mysql
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 17, 2013, 02:21:31 am
What MySQL management software are you using to connect? Because that's just standard SQL.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 17, 2013, 07:57:56 am
Im using heidi(sql)
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 17, 2013, 08:15:09 am
Did you create the database with an SQL query?

EDIT: I mean, are you using this software to run a query on the MySQL server? If you have to create the database manually, make sure to name it "rmxosdb" or change the SQL script.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 17, 2013, 01:15:55 pm
XD got it game is up now ill leave you alone for awhile  thank you blizz
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 17, 2013, 02:34:41 pm
Alright, I'm glad you finally got it running. :)
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 18, 2013, 03:31:30 am
Having few issues with extensions I copy and paste into a .rb file in the extension folder but when I type the extension name into the config file the server says it (any extension) couldn't be initialized only problem ive ran into

ALSO: does rmxos support Blacksmith shop?

sorry I know I get annoying with the questions
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 18, 2013, 04:04:54 am
If the Blacksmith shop is just an ingame script without any server interaction, yes. RMX-OS should work with all scripts. The only scripts that are problematic are when something needs to be synchronized over all clients and if it involves players interacting with each other or the server.

Which extension exactly are you having problems with?
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 18, 2013, 04:55:48 am
sorry I forgot to came back and edit I don't know what my problem was but I got the extensions working(slowly learning) almost flipped out though had to wipe database to get blizz abs to work wasn't hard to setup second time ty for reply btw
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 18, 2013, 05:04:09 am
Yeah, Blizz-ABS changes save data so you have to wipe the database after install or uninstall.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 19, 2013, 03:01:55 pm
*sigh* well I had this setup a few times but whenever I shut my computer off for the night the next day I cant get back on the server I have check to see if MySQL is running in services but when I try to start it up I get an error saying it has stopped unexpectedly any help would be greatly appreciated I really don't want to delete everything again
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 20, 2013, 05:05:09 am
I'm not really sure, but you should be able to start the service again without problems. Try googling for that.
Title: Re: [XP] RMX-OS
Post by: isnortmana on April 21, 2013, 10:52:19 pm
I don't know what it was (obvious) but the problem is fixed I haven't ran into any other problems and I've tested repeatedly ty for all the help getting the server up

EDIT: ok I ran into one problem I put my ip in HOST= in the config file and in the rmxos script/options but when I try to connect I get  "The requested address is not valid in its context.-bind<2> i even cleared my database then made a new one but didn't fix this not sure if i used the wrong ip but it was the ip shown at (whatismyip) this is the only issue i have ran into since i got my server back up any help would be greatly appreciated
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 24, 2013, 05:26:47 pm
If you are using a router to access the Internet, then you have to use your internal LAN IP (possibly 192.168.*.*, open Command Prompt and type "ipconfig" to find out). Make sure you configure your router for port forwarding properly. The IP from What's-My-IP goes into the configuration portion of the client.

BTW, I answered this question in the FAQ already.
Title: Re: [XP] RMX-OS
Post by: xAlien95 on April 28, 2013, 09:33:13 am
I would to add a simple bitmap to the main script, to see an image (with z equal to 999999) always on the game window (like a bar, or a border)... but I fail and I don't know why it happens.

I'm only adding this:

$border=Sprite.new
$border.bitmap=BitmapCache.load_bitmap("Graphics/Menu/_border_0.png")
$border.x = 0
$border.y = 0
$border.z = 499999

In Pokémon Essentials it works fine, but with the RMXOS Main script doesn't.
Any help?
Thanks in advance c:
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 28, 2013, 04:19:34 pm
I have been working on RMX-OS 2.0 for the past few weeks when I had a few hours of free time. Since RMX-OS 2.0 is different in many aspects from RMX-OS 1.x (while still being very similar, though), it's possible that there might be problems. I am still working on it and if I take into account how much free time I have, I will probably be able to finish it by the end of May. There are still a few specific features that I have to implement and test. Due to the heavy changes, it's possible that there might be problems initially so I would like to know who would be willing to betatest RMX-OS 2.0 before I actually release it.
Title: Re: [XP] RMX-OS
Post by: G_G on April 28, 2013, 05:24:42 pm
I'll have some free time come the end of May, maybe even a day or two here and there throughout. I have tomorrow night free for sure.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 29, 2013, 04:40:32 pm
Actually scratch that, I might have it ready by this weekend. I have most of the stuff done already. I didn't expect that I would be done with everything so quickly. I need to finisha dn refactor the new action request system a bit, then set up all actions to work through the new system and finally test everything. After that the beta will be ready.
Title: Re: [XP] RMX-OS
Post by: Xuroth on April 30, 2013, 02:29:59 am
Well, I have a couple of questions regarding RMX-OS
First, I don't really remember so much RGSS, but I am trying to get involved in it again for a game project I am working on. So I could not beta test at the level you are probably looking for, but would I be able to use your beta in a live server, and report errors that arise? (I know that is the basis for beta testing, but I just wanted to acknowledge that my scripting capabilities are sub-par at the time being. You know, the whole use it or lose it... (haven't touched RMXP for quite awhile))

Secondly, and this applies to a bunch of other scripts of yours, I have a question regarding your licensing (Creative Commons). I plan on releasing the final product as free-to-play (to abide with non-commercial), but would I be free to charge players for my own content? (like having special armor "skins" for a transmogrification system. It does not tie into your script at all (except to display the custom artwork on the clients)) The product will not have any pay to unlock for main game content, expansions, etc but only commercial for aesthetics (as well as a way to unlock these aesthetic items via in-game currency)
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 30, 2013, 03:26:07 am
Yes, that kind of beta testing is exactly what I need. I just have to be sure that all chat commands are processed properly. So it's not any kind of technical testing, it's functionality testing from a user perspective.

If your game is free to play, but you offer commercial content, it automatically makes your game a commercial game. You can send me a request to use my scripts in a commercial project to the mail from my profile. Just make sure to list all scripts in the email.
Title: Re: [XP] RMX-OS
Post by: Xuroth on April 30, 2013, 03:36:38 am
Well thank you for the heads up on the licensing issue. I'm glad I asked now, as opposed to when I was done!

And in regards to the beta testing, I would be delighted to test RMX-OS 2.0. From what you describe, I should not have any problems with the testing. I look forward to trying out your new system. Is there any other functionality included in RMX-OS, or is this release just about the chat commands?
Title: Re: [XP] RMX-OS
Post by: exile360 on May 12, 2013, 11:26:54 am
I'm interested in the features as well, but I guess we'll see once it's done. :) I'm also up for beta testing, if needed.

Btw, if I may make a very small suggestion for 2.0 - would it be possible to make the "Online" and "Offline" messages on the log-in be colored green and red respectively? Just to make them stand out a little more.
Cheers!
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 12, 2013, 12:36:06 pm
Sure, takes just a few minutes to make.
Title: Re: [XP] RMX-OS
Post by: exile360 on May 12, 2013, 04:32:31 pm
Sweet! I'm looking forward to the release. ^^
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 19, 2013, 10:46:33 am
I present to you: RMX-OS 2.0 beta!

https://dl.dropboxusercontent.com/u/20224394/RMX-OS%202.0%20beta.rar

What are the important aspects of testing? Make sure that you test chat commands and that you try to intentionally make mistakes and break stuff, especially with chat commands and the new request system.

Once the beta goes gold, I'll update my RMX-OS plugins to work with RMX-OS 2.0.
Title: Re: [XP] RMX-OS
Post by: G_G on May 19, 2013, 11:01:45 am
Testing now Blizzard. :3 Already running the server too!

For anyone who wants to hop on my test server:

IP: 209.159.219.139
Port: 54269
Title: Re: [XP] RMX-OS
Post by: Aegisrox on May 19, 2013, 01:19:21 pm
Good Work Blizzard! As Always! I will be testing and telling you if i find something!! :D

Thanks again!! :D

Regards

Aegis
Title: Re: [XP] RMX-OS
Post by: JohnDonn on May 22, 2013, 02:52:07 pm
Hi :)

pls help me :/

i have the same problem with "Script hanging"

http://www.rpgrevolution.com/forums/index.php?showtopic=58347
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 22, 2013, 06:03:14 pm
Please read the FAQ in the manual.
Title: Re: [XP] RMX-OS
Post by: exile360 on May 23, 2013, 06:52:11 am
Maybe a stupid question, but can I run this with my old database from my main project? I don't really know much about how SQL works, and don't want to mess anything up. Really excited for this, though! Hope it won't cause a lot of incompatibilities with other scripts once it's out and I upgrade... :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 23, 2013, 08:49:25 am
Do you mean 2.0? There is a minor difference in the database setup between 1.x and 2.0, but it's just one table column that's been removed. If you leave it there, it will work fine, too. Of you can run the upgrade SQL query from the "Database" folder (1.22 to 2.0.sql).
Title: Re: [XP] RMX-OS
Post by: exile360 on May 23, 2013, 06:10:32 pm
Gotcha, thanks! I'll give this a go tomorrow and see if I have anything to report. Great work as usual btw!
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2013, 03:00:30 am
There are actually 2 known bugs already. xD One is when you try to create a guild, you will also get an answer that says "Are you sure?" even though there is no request to be confirmed. And when you try to disband the guild, it will crash and disconnect you.
Actually those two fixes are simple. I'll fix them quickly and just reupload.

EDIT: Done. Redownload 2.0 beta.
Title: Re: [XP] RMX-OS
Post by: exile360 on May 24, 2013, 10:05:02 am
Played around with it for a while, and everything seems to be working fine from what I can tell. I liked all of the modifications/improvements that I noticed. There were just a few quick things/ideas that popped into my mind when I was testing.

1) Maybe it'd be good to have a message pop up in chat when a trade is either completed or canceled. Just a simple "The trade was successful" or "The trade was canceled". It seems to end a bit abruptly, without being clear whether the trade was canceled or successful. (might've been because I was dual-clienting, though?)

2) Is it safe to edit the chat commands in the script? I'd like to shorten /gmsg to /g for ease of use.

3) You probably had a reason for this, but wouldn't it be better to have the guildname display above or below the character name, instead of next to it? I managed to make a nameplate that was nearly long enough to cover the whole screen. :P Of course, this can be toned down by limiting the amount of characters allowed for a guild and login name, but having the guild name above/below seems more intuitive anyway. This is not really important though, just mentioning it because I thought of it.

Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2013, 10:10:45 am
1) You're right. I'll add that.
2) Sure. Make sure to update all references including the in-game documentation and help.
3) Actually there was no reason, I was just lazy. I'll change it, though.
Title: Re: [XP] RMX-OS
Post by: G_G on May 24, 2013, 10:14:51 am
God damn Blizz. You're doing an amazing job with this. :3 Nice job. I'll do some more testing with it later today. I got a bit of free time.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2013, 06:11:58 am
I will have to revamp the client connection handling model, but you can't test that now anyway since you need a busy server with lots of clients to test that. I have someone for that, though. :)

EDIT: I've worked today on RMX-OS 2.0. I wasn't able to finish the entire sync code, but I have done most of the ground work and some of the nastier parts. I've also profoundly tested and improved the the client connection handling code. Not only have I simplified it, I have also found possible problems and incorrect behaviors in the previous code which have all been fixed now. And I have also improved how extension code is executed in this new threaded environment to make it as simple as possible for plugin developers so that they don't have to think about threads. All in all, I'd say that I'm 70%-80% finished with this new threading code. Testing might take some extra time, but I won't test it in much detail since Midako will take care of that during the stress testing of the server.

On top of that I have disabled database optimization on startup initially (can still be turned on in the cfg if you REALLY need it on every startup) and I have changed some code regarding zombie clients (which shouldn't even happen anymore with the new code, but I'll leave it there anyway just to be safe) which also improved the shutdown time from 0-5 second to almost instantly.

RMX-OS 2.0 beta 2 is going to be awesome.
Title: Re: [XP] RMX-OS
Post by: Zexion on May 25, 2013, 04:19:55 pm
We should make some kind of online cp game lol where everyone can have their own sprites :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2013, 04:32:38 pm
You mean like the original Remexos? >_>
Title: Re: [XP] RMX-OS
Post by: Zexion on May 25, 2013, 04:40:53 pm
TBH, I was confused when I was a noob. I didn't know what the difference of Remexos and RMX-OS was. I wasn't very good at reading lol. I thought they were the exact same thing. Whatever happened to it?
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 25, 2013, 04:56:31 pm
Lol, don't worry. I'm sure most people got confused.

We got 100-200 maps or so done, but then people lost interest like always. It's happened with every community project I have seen so far. Lots of people get excited in the beginning, but usually nobody follows through. I still have the entire project somewhere on my disk, though.

When we started with ARC, the same thing happened. We had like 20 people supporting the project with 5 people on the core team. Now it's just me and Ryex (and hopefully gameus will be able to get some stuff done).
Title: Re: [XP] RMX-OS
Post by: G_G on May 25, 2013, 04:58:21 pm
A lot of people stopped working on it (including myself) we lost mappers, spriters, scripters, etc...

And don't worry Blizzie, I'll be back on before you know it. I just gotta get through the next couple of weeks first. Sorry I'm taking so long. D:
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 26, 2013, 11:23:00 am
RMX-OS 2.0 beta 2 is done.

https://dl.dropboxusercontent.com/u/20224394/RMX-OS%202.0%20beta%202.rar

Let's see how the new client handling model and the new threading model work.
I have also replace the beta 1 link with the beta 2 download. So if you try to download beta 1, you'll actually get beta 2.

EDIT: If you seem to be having problems with the threading model, try turning the new cfg option EXTENDED_THREADING off.

EDIT: BTW, if you want to test it with extensions, make sure to update your extensions. Refer to ExtensionSkeleton.rb. The updates are minor, but critical.
Title: Re: [XP] RMX-OS
Post by: G_G on May 26, 2013, 01:05:34 pm
I have everything setup correctly but it's saying username doesn't exist (which it clearly does, just got done checking the database) then I went to register with the same username and I got a "Server did not respond" message. Then I registered a new username and it registered just fine and I was able to log in just fine. Tried turning EXTENDED_THREADING off and I still can't login with my original username (from the previous beta I didn't wipe the DB because I didn't think I needed to)

EDIT: Woh! Huge flaw. I registered a new account (gameus2) and I can login with any password.
Title: Re: [XP] RMX-OS
Post by: Midako on May 26, 2013, 02:28:10 pm
gameus, this error don't come by me,
i can login with old accounts and with new accounts without problems,
if i write a wrong password he reponsd with the Username is wrong.
how i see, but it seems like it comes from u not from the system...

reset ur database and try again..

if u want i will help u out by ur problem over skype, karim9312
but i don't have this problem...
Title: Re: [XP] RMX-OS
Post by: G_G on May 26, 2013, 02:46:28 pm
I don't need help, I've done this plenty of times. But I've figured out what the issue is.

@Midako: You're correct, I was using the wrong password and I assumed the server/client was messed up because it was saying "Username did not exist"

As for the login with any password, this is what I did.
1) Registered a new account (gameus3)
2) Shut down after I registered and logged in
3) Re-opened client and made the password box active and added in a bunch of letters and numbers and it still let me log in successfully.
4) Closed it again and re-opened the client and it still let me log in with the new password being saved in account.dat.

This only seems to happen if you make it remember login details and you don't change anything but the password after re-opening the client.
Title: Re: [XP] RMX-OS
Post by: Midako on May 26, 2013, 02:54:46 pm
he saved my login, but the issue don't happened by me.

i just edit the password but it did'nt worked by me like u write it ^-^

i don't know why the error happend by u...
Title: Re: [XP] RMX-OS
Post by: G_G on May 26, 2013, 03:31:52 pm
Hmmm. I have no idea. We'll have to wait for Blizzard then. Are you sure you downloaded the new beta?
Title: Re: [XP] RMX-OS
Post by: Midako on May 26, 2013, 03:46:29 pm
of course, but im not sure if the beta is the same as mine.
i make the tests for Blizz with multiple players.

i get the Files from him. which size have ur server.rb?

mine has 12,6 KB (12.949 Bytes)

EDIT: ur files should be the same as mine...
Title: Re: [XP] RMX-OS
Post by: exile360 on May 26, 2013, 03:49:22 pm
Seems to be working fine for me as well. Only thing I had was that the first time I logged in, all of my messages appeared twice for some reason, after relogging it was fine. This happens with every new account I register.
Title: Re: [XP] RMX-OS
Post by: Midako on May 26, 2013, 03:53:22 pm
exile360 this is true.
but the login issue from gameus, its not normally.
the chat issue is true...
^-^

EDIT: at the first login by the registration, it looks like he think the account logged in twice, so he respond 2 times the message...

Title: Re: [XP] RMX-OS
Post by: G_G on May 26, 2013, 04:02:43 pm
I'm not sure what the issue is to be honest. All I did was download the new beta, run the server, and run the client. MySQL was already setup and running. I didn't change anything to the server other than EXTENDED_THREADING.
Title: Re: [XP] RMX-OS
Post by: Midako on May 26, 2013, 04:18:40 pm
my database is also the old one, but it have nothing to do with EXTENDED_THREADING i did test it with true and false, no errors at all, just the one that he send by registration twice the signal.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 26, 2013, 06:49:01 pm
As I said, this version might probably be unstable. I'll take a look at this after I get from work tomorrow.
In the meantime you guys can make sure to check how it behaves when multiple players are online.

@Midako: I updated the download files after you found my debug message printing so you should all have the same files.

EDIT: All of these things should be easily fixable. My main concern is how it works with multiple players when EXTENDED_THREADING is turned on. If it is too unstable, only then try turning it off.
Title: Re: [XP] RMX-OS
Post by: G_G on May 26, 2013, 06:56:23 pm
Still trying to find people to test with me. D: If anyone's interested in hopping on a server I run, add me on skype: game_guy_

EDIT: Zexion and I tried trading. We both hit confirm and eventually I got kicked from the server and I got this error from the server logs.
2013-05-26 23:33:19 UTC; 6 (gameguy) - Error:
undefined method `get_client_by_id' for #<Sender:0x2a31e48>
src/Client3.rb:144:in `block (2 levels) in _trade_execute'
<internal:prelude>:10:in `synchronize'
src/Client3.rb:143:in `block in _trade_execute'
<internal:prelude>:10:in `synchronize'
src/Client3.rb:142:in `_trade_execute'
src/Client1.rb:368:in `check_trade_commands'
src/Client1.rb:249:in `handle'
src/Server.rb:244:in `block in run'
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 27, 2013, 02:18:15 am
Change it to "RMXOS.clients.get_by_id". I must've missed that one.

EDIT: I fixed this bug and the double login when registering. https://dl.dropboxusercontent.com/u/20224394/RMX-OS%202.0%20beta%203.rar The previous links have also been updated.

EDIT: And here is beta 4. https://dl.dropboxusercontent.com/u/20224394/RMX-OS%202.0%20beta%204.rar
Among a few minor improvements that will hopefully either prevent that annoying freezing bug or at least offer some better insight as to why it's happening, this beta of RMX-OS has updated MySQL binaries which means it can now run with Ruby 2.0 as well! I haven't been able to test whether it works on Linux properly, but feel free to test it.
Title: Re: [XP] RMX-OS
Post by: G_G on May 29, 2013, 07:43:07 pm
Gonna test it out on Ruby 2.0 tonight. :3 Loving the new changes and improvements Blizzie. Also when you have the time, I was wondering if you could help me with deserializing save_data table via PHP.

EDIT: Getting this error on startup.
Spoiler: ShowHide
(http://puu.sh/344uO.png)


Using Ruby 2.0 (x64) I'll try with the 32 version.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 30, 2013, 04:03:13 am
Yeah, x64 will probably not work, because those are binaries compiled with x86.

You have the Object#rmxos_serialize and Object#rmxos_deserialize methods in the script for that. There are also variants for Array and Hash.
Title: Re: [XP] RMX-OS
Post by: Midako on May 30, 2013, 12:35:30 pm
gameus what u want to make with php ?..
maybe i can help u a little...
because i will write later a php script if rmxos 2.0 works stabil ^-^ when the server can run without problems
Title: Re: [XP] RMX-OS
Post by: G_G on May 30, 2013, 02:11:58 pm
I'm creating RMX-OS Web API. In conjunction, I'm also creating an Admin Control Panel to show off the API. The API will be able to load guilds, users, PMs, save data, etc... And make it easy to access for anybody. This will make it easier to incorporate a registration function within forums and websites. I know how to work with PHP I'm just having some difficulties deserializing the save_data table but the methods Blizzard listed will help me. Thanks though. :)
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 30, 2013, 04:34:22 pm
You also have the format description with examples in the manual, in the Technical Documentation. I can't remember if I added that yet in previous versions, but 2.0 definitely has it.
Title: Re: [XP] RMX-OS
Post by: Lobo on June 01, 2013, 09:09:49 am
RMX-OS is a well done system, however it is focused on MMO games (with login etc).

I wonder if it is planned to make a version that has a focus towards traditional multiplayer where you just set up a game and have 1-3 friends join it, for example for co-op like in Four Swords Online. I'm pretty sure this type of online system is applicable on a lot of projects ;)
Title: Re: [XP] RMX-OS
Post by: exile360 on June 01, 2013, 09:18:34 am
Quote from: Lobo on June 01, 2013, 09:09:49 am
RMX-OS is a well done system, however it is focused on MMO games (with login etc).

I wonder if it is planned to make a version that has a focus towards traditional multiplayer where you just set up a game and have 1-3 friends join it, for example for co-op like in Four Swords Online. I'm pretty sure this type of online system is applicable on a lot of projects ;)


Well... to get what you want specifically, you'd need an entirely different system. But you could just set the max login amount to 3 and play over a closed hamachi/LAN server or something. xD
Title: Re: [XP] RMX-OS
Post by: G_G on June 01, 2013, 09:29:03 am
While that is possible, that's not what RMX-OS and it won't ever be that. While the two systems would have similarities with setup and data transfer, you'd need to setup the client as the server, and with as slow as Ruby 1.8 is, it'll run slow trying to act as the server and a client, so you'd still need a separate server setup like this one if you wanted maximum speed. Though your best bet would be to strip down RMX-OS (both client and server). But RMX-OS definitely had never planned to be that.
Title: Re: [XP] RMX-OS
Post by: Xolitude on June 04, 2013, 04:39:35 pm
Hey,

I'm like 95% sure I already asked this in a private, but...

Is it possible to make some sort of aCi(anti-Cheat)? I realize that a client/the person will always be able to get around it but I just wanna know if it is possible to create some sort of cheat-protection. Thanks!
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 04, 2013, 05:17:44 pm
An Anti-Cheat system is a very, very broad definition, because there are many different things that can be done to cheat and there is no universal solution to prevent all types of cheating. There isn't even a solution that prevents "most" types of cheating. For every type of cheating you basically one specific counter-system to prevent it. RMX-OS already prevents the basic types like save-data hacking or attempting to fake being a mod or admin (basically trying to do stuff on the server/other players that they don't have permissions to do), but anything extended such as memory hacking or client imitation/hacking can't really be prevented.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 04, 2013, 05:22:51 pm
Not to mention one very simple way to cheat is simply to force-close your client. Let's say you have a quest or something in your game, and the NPC gives you an item or gold, one can simply close their client during dialogue, reopen the game and receive the item or gold again, and keep repeating it for an endless supply. This can be avoided with smart eventing of course, but anything with autorun is quite tricky overall. If someone crashes during a cutscene, they might get their character stuck lol.

Doubt you can do much about this anyway, just another rmxp limitation I guess.
Title: Re: [XP] RMX-OS
Post by: Xolitude on June 04, 2013, 05:28:16 pm
Hm, okay ;o

Thanks guys for the quick replies!
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 04, 2013, 06:05:12 pm
Quote from: exile360 on June 04, 2013, 05:22:51 pm
Not to mention one very simple way to cheat is simply to force-close your client. Let's say you have a quest or something in your game, and the NPC gives you an item or gold, one can simply close their client during dialogue, reopen the game and receive the item or gold again, and keep repeating it for an endless supply. This can be avoided with smart eventing of course, but anything with autorun is quite tricky overall. If someone crashes during a cutscene, they might get their character stuck lol.

Doubt you can do much about this anyway, just another rmxp limitation I guess.


It can be done if you disable saving at the beginning of the event and enable it again when finished.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 05, 2013, 12:11:51 pm
Quote from: Blizzard on June 04, 2013, 06:05:12 pm
Quote from: exile360 on June 04, 2013, 05:22:51 pm
Not to mention one very simple way to cheat is simply to force-close your client. Let's say you have a quest or something in your game, and the NPC gives you an item or gold, one can simply close their client during dialogue, reopen the game and receive the item or gold again, and keep repeating it for an endless supply. This can be avoided with smart eventing of course, but anything with autorun is quite tricky overall. If someone crashes during a cutscene, they might get their character stuck lol.

Doubt you can do much about this anyway, just another rmxp limitation I guess.


It can be done if you disable saving at the beginning of the event and enable it again when finished.


What do you mean exactly? Is there a script call that I could use to stop the client from sending savedata to the server? I have manual saving disabled all the time anyway. :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 05, 2013, 12:29:12 pm
I thought I implemented that manual saving also prevents RMX-OS from auto-saving. O_o I'll have to check on that.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 12, 2013, 01:02:41 pm
Since I am getting no more bug reports, I assume that everything is fine. I have officially released RMX-OS 2.0.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 13, 2013, 04:26:57 pm
Awesome work Blizz! I've been waiting for this for a long time. :3

I just upgraded my project, and I do have a few issues. First, some RMX-OS scripts that I used are now obviously incompatible since they're not updated. These scripts are:
- Message of the Day
- Player Reports
- Login Messages
- Online List
All by Wizered67. Should I try to contact him to upgrade his scripts to be 2.0 compatible, or is it a simple & quick fix? The error I have is always something about 'mutex'.


Everything else seems to work fine, except for one major issue/dilemma I have. I was previously using ATES 0.4 but because of the G-DNS 2.0 compatibility update, I had to upgrade my ATES to 1.01 (I never did because I don't want certain features of it). Once I upgraded, my game is lagging MASSIVELY. I'm down to ~9 fps no matter the map. Plus, the script messes with a lot of my other atmosphere stuff, like fogs (using clouds & unlimited fog scripts). Is there any chance you could provide ATES 0.4 support for me please? :( Well, actually, it's probably about the G-DNS so I need that updated to 2.0 without it requiring ATES 1.01. I simply can't use ATES 1.01 in my project, sadly. I can give you the G-DNS script and extension I need updated.

Thanks in advance!
Title: Re: [XP] RMX-OS
Post by: Wizered67 on June 13, 2013, 05:13:15 pm
@exile360 I haven't taken a look at RMX-OS 2.0 yet, but I don't think it should be too hard for me to update those. You're probably better off skipping Login Messages and Online List though, as Blizzard has his own script for it that is better and is updated.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 13, 2013, 05:18:37 pm
Ah, right. Forgot about that one again. I'll be sure to switch. :) I hope you can update the rest, would definitely be awesome. Cheers!
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 13, 2013, 05:34:59 pm
Making an extension RMX-OS 2.0 compatible is not much of a problem.

1. Take a look at the updated ExtensionSkeleton file and you will notice that a few small changes have been made. The changes just include creation and access of data with a mutex to ensure thread-safe data handling.

2. The second change is that if you are using custom messages from the server and vicer versa, you will have to update your script and server extension as RMX-OS because the format isn't "MSG [paramater [\t parameter]...]" anymore, but "MSG [\t paramater [\t parameter]...]". I other words, now a tab character is required after the message identifier and the first parameter. This allows for message identifiers that are not 3 characters long.

3. "$clients" is now used as "RMXOS.clients.get".

4. There are a few other API changes, but I don't think many scripts are actually using them. If you need assistance, feel free to ask me.

@exile360: I'm not sure what could be causing this. Can you check if the server load also increases? This was the only extension that I didn't test thoroughly. Also keep in mind that only time is synced, weather is controlled locally only.
Title: Re: [XP] RMX-OS
Post by: Wizered67 on June 13, 2013, 05:50:40 pm
@Blizzard
When I looked through some of your updated extensions, it seemed like you were using commas to separate parameters. Example line from Blizz-ABS controller:
client.send('ABSMEE', id, @battlers[client.player.map_id][id].get_exchange_variables)

Is that the new way to do it?
Title: Re: [XP] RMX-OS
Post by: exile360 on June 13, 2013, 06:23:27 pm
Thanks Blizz, I got my older version of ATES & G-DNS to work with 2.0. Simply needed to add the mutex lines to the extension and voila, no issues this far.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 14, 2013, 02:22:15 am
@exile: <3 Though, I did updated G-DNS to work with 2.0.

@Wizerd: No, I use commas only for exchange variables. Basically I am using Hash#inspect and then send that string as a single parameter. Message parameters are always send with \t as separator. If you take a look at the definition of Client#send, you will notice that it uses *args as arguments which I then simply join with \t.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 14, 2013, 04:23:47 am
Quote@exile: <3 Though, I did updated G-DNS to work with 2.0.

Yup, but as I mentioned earlier, G-DNS 2.0 requires ATES 1.01, but I want to use the old ATES 0.4. :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 14, 2013, 04:29:05 am
Oh, I see. I misread that. Yeah, that quick update with the mutex is basically all you need then.
Title: Re: [XP] RMX-OS
Post by: KnightPL on June 15, 2013, 06:27:04 am
start the serwer and i have a problem  >:(

C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in 'require': 193: %1 is not a valid Win32 application.      D:/RMX-OS/Server/bin/2.0/mysql_api.so <LoadError>
from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in 'require'
from D:/RMX-OS/Server/RMX-OS.rb:83:in '<main>'


What is it?

I have windows 7 x64 home premium
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 15, 2013, 12:58:06 pm
You have installed Ruby x64, you have to install Ruby x86.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 15, 2013, 02:53:03 pm
My project is now fully updated to rmx-os 2.0 with all the scripts I had previously. I did some extensive testing today with a friend, and found a few bugs.


The following are general bugs with rmx-os 2.0:

1) /ginfo crashes the game with the following error:
Spoiler: ShowHide
(http://www.upload.ee/image/3384296/err03.PNG)

Which refers to line 1690:
        raise 'A'

Not actually sure what this 'A' is even supposed to be. xD
This happens whenever the command is used, regardless of whether the character actually has a guild or not. This is quite strange, I'm sure it didn't happen in the 2.0 beta that I tried.

2) Sending a pm gives the receiving player a "You have unread PMs" message, however does not display an ID. It's difficult to tell what the ID of the received PM is, and without it you can't read it (unless I'm doing something wrong here).

3) /global messages don't display in the chatbox. The command is received by the server and I think it even sends the message back, but the chatbox doesn't display it (yes I am using an admin account)

4) When trying to log in with a correct ID but incorrect password, the system displays a "Username does not exist" message even though the username exists and is correct.


The next few are bugs with my project specifically:

1) Attempting to trade crashes the game with the following error:
Spoiler: ShowHide
(http://www.upload.ee/image/3384309/err01.PNG)


Which refers to line 3842
@message_window.update

Any idea what could be causing this?

Nevermind the above, I fixed it myself. I needed to update the line because of my Multiple Message Windows script. However, I have now run into another issue. Trading does work, however the person that ACCEPTS the trade request always disconnects upon trade completition. The person that sends the request is fine. The items still get traded, but I'm sure people would get annoyed from disconnecting every time. :P Not sure whether this might be a general rmx-os 2.0 issue or just my project, too lazy to try it out on a fresh client right now. I know it worked fine in the beta, though.

2) This isn't really a bug, but I'll list it here anyways. I have a common event which checks if Q is pressed, and if so, the questlog opens. The problem is that it opens the questlog while you're typing in the chatbox as well, thus stopping and deleting your message whenever you type q in the message. Is there any script command I could put in a conditional branch to check whether the chatbox is active (entering a message) or not, so I could disable this while it is?

And one suggestion as well:

Would it be possible to prevent the character from moving and interacting with NPCs while the chatbox is active (entering a message)? It's annoying that the character moves around and/or talks to an NPC whenever you use the arrows to scroll the chat or press enter to send a message.

Think that's it for now. Sorry to create more work for you... :P Cheers!
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 15, 2013, 03:58:21 pm
1) LMAO! I was debugging this and forgot to remove some stuff. Just remove the line. I'll reupload it.

2) Use /pmunread. "You have unread PMs" is a generic message and it would be confusing once there is more than one unread PM.

3) I'll check that.

4) I'll check that, too. Some stuff was changed as it used to display "Username or password incorrect."




1) Possibly a bug. I'll check if trading works fine on a default project.

2) You should disable it when the chatbox is active. Check @chatinput_window.active in Scene_Map for that.
[EDIT]Or check $game_temp.chat_active, that's simpler.[/EDIT]

3) Actually that already works. I am sure that this is another of your scripts messing with you. Try removing your scripts one by one to find out which one (make a copy of your Scripts.rxdata before you do so that you can quickly restore everything once you found the problematic script).

EDIT: All problems have been fixed, but I didn't check trading.

EDIT: I fixed the trading.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 16, 2013, 04:54:01 am
So much <333 for you Blizz. Everything tested and working, thanks!

Still can't put a finger on what's causing my char to walk and interact while chat is active, but I'll keep trying. Some scripts are a bit difficult to remove from the project, without creating other errors.
Edit: Ok, it was my Multiple Message Windows script again. But as to why it's happening, I'm clueless. Oh well, it's not gamebreaking anyway.

Btw, I see you updated the guild name sprites, and they look cool! The on-map chat is displayed on the tag now, though. xD I wanted to look into it myself and alter the position of the chat text sprite, but couldn't quite figure it out. I assume this would be a bit more complicated to code anyway, as the game would need to check whether a guildname sprite is active or not, and then adjust the chat text location. It's completely fine to just put it back the way it was as well and save the trouble.
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 16, 2013, 05:46:33 am
Lol, I knew that I forgot something. I'll fix that right away.

EDIT: Alright, it's fixed. I also noticed that I didn't add a message when trading was canceled or successful. And I also added in the manual that Ruby x86 has to be installed, not Ruby x64.
Title: Re: [XP] RMX-OS
Post by: exile360 on June 16, 2013, 06:34:59 am
Epic. I wish I could spam the level up button more often. ;)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 16, 2013, 01:04:05 pm
I also actually fixed another bug. When somebody's usergroup or guild status changes, their name sprites don't update. e.g. Somebody leaves a guild and their name sprite will still say that they are part of the guild. I fixed that, too.
Title: Re: [XP] RMX-OS
Post by: Xolitude on July 05, 2013, 01:33:41 am
Hey Blizzy, Love the new update :D But as I read through these replies I didn't see my problems so I think it's just me..

But, testing on my local net(My PC, and then another pc within my house), The chat double sends and it's a bit laggy.

Do you think that is just because it's local net? The server, and 2 clients all running on the same area?
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 05, 2013, 02:27:01 am
It's not impossible. If the server can't distinguish properly between the clients or something is wrong with the network, it could be possible to receive a message twice.
Title: Re: [XP] RMX-OS
Post by: Xolitude on July 06, 2013, 02:22:11 pm
(http://gyazo.com/54246745c1c80d04c7579f53cec32e7e.png)

When my friend tries to register, he gets this error^^^, and I don't at all.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 06, 2013, 03:10:04 pm
1. Check in the database if the account was actually registered.
2. Turn on message log on the server and try to register again. See what happens and post the message log here.
3. Make sure that his client has scripts that are up to date. The RMX-OS v2.0 server will not respond properly to clients of RMX-OS v1.x.
Title: Re: [XP] RMX-OS
Post by: Xolitude on July 06, 2013, 04:00:31 pm
Quote from: Blizzard on July 06, 2013, 03:10:04 pm
1. Check in the database if the account was actually registered.
2. Turn on message log on the server and try to register again. See what happens and post the message log here.
3. Make sure that his client has scripts that are up to date. The RMX-OS v2.0 server will not respond properly to clients of RMX-OS v1.x.

1. Nope
2.
2013-07-06 22:58:23 UTC; -1 () - Incoming Message:
HAI
2013-07-06 22:58:25 UTC; -1 () - Incoming Message:
CON 2.0 1.0
2013-07-06 22:58:25 UTC; -1 () - Outgoing Message:
CON 0 2.0 1.0
2013-07-06 22:58:26 UTC; -1 () - Outgoing Message:
PNG

3. I believe so?

EDIT: It seems to be the new client/server version because I reverted back to an older  server version/client and it works just fine.....
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 06, 2013, 06:40:06 pm
Are these all messages after trying to register? Because there are only messages for entering the server, there is no message that a registration was attempted.
Title: Re: [XP] RMX-OS
Post by: Xolitude on July 06, 2013, 06:41:51 pm
Quote from: Blizzard on July 06, 2013, 06:40:06 pm
Are these all messages after trying to register? Because there are only messages for entering the server, there is no message that a registration was attempted.


Yes, these are all that I got when he hit register.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 06, 2013, 07:07:01 pm
Turn on debug and error logging and try again. Post these two as well. You might want to delete them before starting the server.
I think that the connection might have died down for some reason and the message isn't properly received by the server (even though the server should report when a client causes a bug and crashes the connection).
Title: Re: [XP] RMX-OS
Post by: Xolitude on July 06, 2013, 09:27:45 pm
Ugh it isn't really giving me anything.... I'll just wait until you make a new update /:
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 06, 2013, 09:50:59 pm
I can't make a new update if I don't know what the problem is since it's working fine with me. Try redownloading RMX-OS, maybe that helps.
Title: Re: [XP] RMX-OS
Post by: Xolitude on July 07, 2013, 02:01:02 am
Figures I'm the only one this happens on...

Nope, re-downloading didn't work... /:
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 13, 2013, 06:14:24 am
I have reuploaded RMX-OS 2.0. I only updated some parts of the script to better support resolutions that aren't 640x480 that I forgot previously. Aside from that nothing was changed.
Title: Re: [XP] RMX-OS
Post by: dvkrane on July 19, 2013, 10:06:47 pm
Is there a way for 4 different players/guild members to all be involved in one party battle in the default battle system?
Title: Re: [XP] RMX-OS
Post by: G_G on July 19, 2013, 10:33:42 pm
Not without a custom extension. Someone would have to script it for you.
Title: Re: [XP] RMX-OS
Post by: glad300 on August 22, 2013, 04:59:15 pm
I can't run the file RMX-OS.rb .... I installed Ruby 2.0.0-p247 (not the x64) but if I try to run rmx-os with ruby.exe, the console says : "Error : 'NAME' has not be defined properly in the configuration file." :o What the hell can i do to fix it ?? uninstall, reboot... i have already done it a billion times ... thank you for any help  :-*

ps: i am not english, if you don't understand something say it
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 22, 2013, 05:00:16 pm
It literally tells you what to do. The parameter NAME has not been set in the configuration file cfg.ini.
Title: Re: [XP] RMX-OS
Post by: glad300 on August 22, 2013, 05:13:17 pm
That's right ... I didnt think about it... in fact my file .rb doesnt run directly with ruby, I must right click and open it manually with ruby each time and I thought the error came from here... whatever thanks for your very fast answer  :)
Title: Re: [XP] RMX-OS
Post by: MikyGonzalez on August 25, 2013, 01:36:11 pm
On the internet, when I write a message that is displayed above the character, and on my screen removes the last message a few seconds, but another client the message is not removed. The same goes for the other way
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 25, 2013, 01:47:01 pm
I've gotten reports of this before, but I am not sure why this happens. Since I can't replicate it, I can't really find where the problem is and fix it, sorry. If you could isolate the problem (I might have a few ideas where the problem could lie), I could take a look at it, but you're not a Ruby scripter. :/
Also, does it happen when you don't use Blizz-ABS?
Title: Re: [XP] RMX-OS
Post by: MikyGonzalez on August 25, 2013, 02:40:47 pm
Without Blitzz-abs script that stops spending, the problem must be the script Blitzz-abs.

EDIT: Another mistake I found, always testing from the internet, the character going from one map to another, his character remains also in the map that comes in the last position, until it re-enters the map.
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 25, 2013, 04:44:10 pm
I thought I fixed that. :/ For some unknown reason this only happens when Blizz-ABS is present and it doesn't even happen most of the time. Only some specific network configuration seem to cause it.
Title: Re: [XP] RMX-OS
Post by: Denzel on November 11, 2013, 07:52:47 am
Hello, i'm trying to run the server of RMX-OS on my vps.
It is CentOS based, I installed ruby 1.9.3 and also ruby 2.0
But when I run ruby RMX-OS.rb it gave me error on mysql.so (Load Error)
I tested using 1.9 and 2.0

VPS: CentOS release 6.4 (Final) x86_64 GNU/Linux

/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext                                              /kernel_require.rb:55:in `require': /srv/mmo_server/bin/2.0/mysql_api.so: invali                                              d ELF header - /srv/mmo_server/bin/2.0/mysql_api.so (LoadError)
        from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/ruby                                              gems/core_ext/kernel_require.rb:55:in `require'
        from RMX-OS.rb:72:in `<main>'
Title: Re: [XP] RMX-OS
Post by: Blizzard on November 11, 2013, 07:55:29 am
Make sure that you install Ruby x86, not Ruby x64. RMX-OS should work with both v1.9.3 and v2.0.0.
Title: Re: [XP] RMX-OS
Post by: firevenge007 on December 30, 2013, 03:06:26 pm
I seem to be having a problem with the name of the SQL database

(http://i.imgur.com/18fascR.png)
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 30, 2013, 06:59:17 pm
What did you name the database when you created it? This is what you have to put in the cfg.ini file. By default it's called "rmxosdb", but it can obviously be changed in the SQL script before executing it.
Title: Re: [XP] RMX-OS
Post by: firevenge007 on December 30, 2013, 09:00:39 pm
I'm using MySQL workspace, but I'm not sure exactly how I'm supposed to find the name of the SQL database.

I looked it up and I found people telling each other to use

select name from sys.sysdatabases
where dbid=db_id()

in a query and they'd find the name, but I keep coming up with errors.

0   4   17:58:53   select name from sys.sysdatabases
where dbid=db_id()
LIMIT 0, 1000   Error Code: 1305. FUNCTION db_id does not exist   0.000 sec

:(
Title: Re: [XP] RMX-OS
Post by: PhoenixFire on December 30, 2013, 10:33:38 pm
If you actually mean workbench, not workspace, then you should have actually named it yourself when you created it... Just sayin'..
Title: Re: [XP] RMX-OS
Post by: firevenge007 on December 31, 2013, 02:36:03 am
I am so confused.

This is the only name I see, but it's a connection and not a database.

So, I'm not exactly sure how in the world I can find this

(http://i.imgur.com/oUyeA6K.png)
Title: Re: [XP] RMX-OS
Post by: khkramer on December 31, 2013, 03:30:43 am
Press the connection and then you should have a list of databases on the left if i'm not mistaken.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 31, 2013, 04:48:02 am
If there is a connection, it means that the MySQL server is up and running properly. As khkramer said, open the connection and there should be a list of databases. Create a new database there, then run the SQL query from the Database folder in the RMX-OS server folder (which you downloaded already) to create the necessary tables in the database. If you don't name the database "rmxosdb", make sure to change it in the provided SQL query as well (it's somewhere on top among the first few lines).
Title: Re: [XP] RMX-OS
Post by: firevenge007 on December 31, 2013, 05:12:08 am
Still kind of confused about finding it

(http://i.imgur.com/fc1hsmD.png)


This is what I get, but this won't work either when I type it in.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 31, 2013, 06:13:20 am
Honestly, I never used MySQL Workbench so I'm not sure. Somebody else will have to fill in. Though, the schemas on the left side might be what you are looking for.
Title: Re: [XP] RMX-OS
Post by: Ryex on December 31, 2013, 12:53:46 pm
ya know, I keep getting tempted to take RMX-OS and rewrite it's server using fibers and async DB calls...

perhaps write a web interface for it while I'm at it...

then I remember I have neither the time nor the motivation.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 01, 2014, 07:48:56 am
There is no need to make RMX-OS more async as it already is. At some point the async overhead would become too great and you would start losing performance.
Title: Re: [XP] RMX-OS
Post by: Midako on January 13, 2014, 07:35:20 am
Quote from: firevenge007 on December 31, 2013, 05:12:08 am
Still kind of confused about finding it
Spoiler: ShowHide

(http://i.imgur.com/fc1hsmD.png)


This is what I get, but this won't work either when I type it in.


you have the databases:
sakila
test
world

one of them is it, but i don't know which you created for it
Title: Re: [XP] RMX-OS
Post by: whitespirits on January 15, 2014, 12:36:19 pm
Hi all! I am going to setup a 24/7 RMX-OS server as i find i don't see any that stay online, Problem I have is i am looking for a game package that has all features included that works with the RMX-OS Example; ABS, GUILD, TRADE etc etc, I just run into problems adding it all together, if someone experienced could throw me a package together I would be most thankful! Im going to host a server pretty quickly for people to play!

The main error i am struggling with is, once I add blizz abs Part 1 2 and 3 the RMXOS Controller for abs I get an error of undefined on this bit    $network.disconnect

Spoiler: ShowHide
  #----------------------------------------------------------------------------
  # Overriden to disconnect and change the scene immediately.
  #----------------------------------------------------------------------------
  def main
    $network.disconnect
    $scene = Scene_Servers.new
  end
 
end

Title: Re: [XP] RMX-OS
Post by: Blizzard on January 15, 2014, 04:31:16 pm
Check this topic, maybe this is causing you problems: http://forum.chaos-project.com/index.php/topic,23.0.html
Title: Re: [XP] RMX-OS
Post by: whitespirits on January 15, 2014, 04:52:45 pm
Thanks Blizz, I had a look at the order of scripts with not much avail, My order is

RMX OS Options
RMX OS Script
SPACE
BLIZZ ABS 1
BLIZZ ABS 2
BLIZZ ABS 3
ABS CONTROLLER
REMOTE RESET ( removed this same problem)
MAIN
RMX OS MAIN

exact error is

Script '(RMX-OS) Script' line 3718:NoMethodError Occurred.
                   
undefined method 'disconnect' for nil:NilClass

any idea? thanks for help :)




Title: Re: [XP] RMX-OS
Post by: Blizzard on January 15, 2014, 05:06:02 pm
Ah, there's the problem. Just remove the original Main script. RMX-OS uses a special Main script (and I can see that you already added it). It's very similar to the original except that it has some minor improvements and it creates the actual $network variable.
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 19, 2014, 04:46:05 am
I updated the script to v2.01 since somebody brought a bug to my attention and a missing feature.

What's new?

Title: Re: [XP] RMX-OS
Post by: whitespirits on January 22, 2014, 06:11:34 am
Just a couple of questions, Im looking at PVP and how to add it to a map? also when i do /trade /party etc how do i accept with other character?

thanks guys
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 22, 2014, 06:20:00 am
Read the part about requests in the manual.
For PVP, read the instructions of the Blizz-ABS + RMX-OS Controller (if I added it there).
Title: Re: [XP] RMX-OS
Post by: whitespirits on January 29, 2014, 05:52:41 am
Had a look blizz and i found the commands bit but nothing about pvp rmxos?
Title: Re: [XP] RMX-OS
Post by: Blizzard on January 29, 2014, 05:57:52 am
Try the search on the forum. I know that this was discussed several times.
Title: Re: [XP] RMX-OS
Post by: whitespirits on January 29, 2014, 06:50:41 am
Thanks Blizz had a look and enabled it on the script but it seems alittle buggy? is this how it is? for example i opened two windows and hit a player animation showed but on other screen no dmg was taken then i cant hit after that i have to walk out and in map and it shows hit but no dmg again a couple of times then nothing, i think 1 character took 1 hit correctly in about 10 mins?
Title: Re: [XP] RMX-OS
Post by: Ryex on February 05, 2014, 02:06:26 am
Dammit, I'm suddenly tempted to write a RMX-OS WebGUI.
If I were to do it I'd probably write a simple extension that drops in and listens on a separate port (preferable only only the localhost)
then write a Sinatra app that uses this new port to do special actions.

... it would actually be stupid easy.

Blizz, my brain likely insn't going to let this go. would you be willing to help me write a RPC (remote procedure call) plugin for RMX-OS 2 that listens on a separate port preferably limited to localhost so I could quickly write up a Sinatra app and get this out of my head?
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 05, 2014, 04:35:07 am
If you need a full RPC, you can use EVAL directly. If I remember right (haven't looked at that code for months), you just have to send SEV\tSTRING (check the communication protocol in the manual, you're looking for "server eval"). You have to be a logged in admin, though. The server won't let you do stuff like this if you're not.
Title: Re: [XP] RMX-OS
Post by: G_G on February 05, 2014, 08:35:10 am
I wish I finished my WebGUI. I came so close and I can't remember why I dropped the project, but then when I wanted to continue I couldn't find the code. If I recall, I was able to just use PHP to send data to a port and have it wait for a response, then I'd finish the processing.
Title: Re: [XP] RMX-OS
Post by: andreadixon on February 15, 2014, 04:57:41 pm
Hi, everyone I'm new to this forum, I have a question about RM X-OS I want though the help guyed on how to install, I did everything it says but when I open RMX-OS.rb a black box's comes up but then in like 1 second it closes did I do something wrong. thanks for letting me on this forum.  :)
Title: Re: [XP] RMX-OS
Post by: WhiteRose on February 15, 2014, 05:18:06 pm
Quote from: andreadixon on February 15, 2014, 04:57:41 pm
Hi, everyone I'm new to this forum, I have a question about RM X-OS I want though the help guyed on how to install, I did everything it says but when I open RMX-OS.rb a black box's comes up but then in like 1 second it closes did I do something wrong. thanks for letting me on this forum.  :)



If you run it from the command line, it should stay there long enough for you to read what it says. To run it from the command line, just go to the address bar in the Windows Explorer window where RMX-OS.rb is located, and type "cmd", without the quotes. Then, run RMX-OS.rb and see what pops up. That should help us know what to do in order to help get things working for you! :)
Title: Re: [XP] RMX-OS
Post by: andreadixon on February 15, 2014, 05:34:09 pm
Hi, thanks here is a picture. Sorry I dont know how to past it here so here is a link. :)

http://postimg.org/image/eguz9c5yl/ (http://postimg.org/image/eguz9c5yl/)

Title: Re: [XP] RMX-OS
Post by: Blizzard on February 15, 2014, 09:02:23 pm
Hold SHIFT and right click on the empty space in the folder (on the right side) and a new option should be available called "Open command window here". Select it and type "RMX-OS.rb" (with or without the quotes, doesn't matter). Then post the results.

EDIT: Also, you should probably install Ruby 2.0, 32 bit (don't use 64 bit).
Title: Re: [XP] RMX-OS
Post by: Blizzard on February 24, 2014, 04:08:43 pm
I updated RMX-OS to v2.02. It's only some minor code changes. e.g. Now sprites won't appear when you enter a map after the map transition, but before the transition starts.
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 11, 2014, 03:37:07 am
Hi all, I just wanted to make an RMX-OS feature request, it would be pretty cool if when some 1 was invited into the party there health name and SP appeared on the left hand side of the screen below your own! is this doable?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 11, 2014, 03:44:39 am
RMX-OS doesn't support parties, but the Blizz-ABS Controller does. Yes, it can be technically done if you are using RMX-OS, Blizz-ABS and the Controller.
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 26, 2014, 11:37:35 am
Hi all so im running into some more problems with making the movement more stable and not super jumpy.

so i removed
 '@real_x', '@real_y' and '@pattern'


from the options in rmx-os

    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Exchange Data
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    EXCHANGE_VARIABLES = ['@character_name', '@x', '@y', '@real_x', '@real_y',
        '@direction', '@move_speed', '@pattern']


leaving it like this

    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    # Exchange Data
    #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    EXCHANGE_VARIABLES = ['@character_name', '@x', '@y',
        '@direction', '@move_speed']


But instead of making it smoother and like the movement on most games my character on each others screens stand still and can only see look directions but on the actual play screen the character is moving around?
any advice?
Title: Re: [XP] RMX-OS
Post by: G_G on March 26, 2014, 12:36:48 pm
You removed real_x and real_y. Those are the variables that control player movement. You also removed pattern so it's only going to show the first frame of every direction now.
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 26, 2014, 12:45:29 pm
Oh right, what do i need to do then to smooth up the walking so its not super jumpy?

this is what i got from the manual

Spoiler: ShowHide
Question:
The characters keep teleporting. How can I fix this?
Answer:
Realtime communication with a remote server is problematic because of latency. RMX-OS is no exception. RMX-OS is set up by default to send and receive accurate character data in every frame, but this can be changed. Change the client option EXCHANGE_VARIABLES and remove the variables '@real_x', '@real_y' and '@pattern'. Keep in mind that while creating smoother movement, this will also create inconsistent and potentially untrue player positions as well as unusual movement updates (such as walking through impassable terrain), especially if the player switches from the game window and hence the game pauses. Sadly, this cannot be circumvented due to the way RMXP's game engine is built without major editions of the default scripts. This can also cause problems with certain server extensions and client plugins if some of the variables are critical for proper functioning.
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 26, 2014, 01:04:26 pm
Actually changing and exchanging only the x and y should cause characters to move automatically sine the real_x and real_y values are used for movement between tiles. Pattern shouls then also be calculated locally. At least that's how an earlier version of RMX-OS worked and it worked just fine.
Title: Re: [XP] RMX-OS
Post by: G_G on March 26, 2014, 01:09:43 pm
Oh I see, so rather than grabbing real_y and real_x from the players, the client itself just uses pathfinding to move a player to that spot, correct?
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 26, 2014, 01:42:46 pm
Is there any way you could look into it for me Blizz? the movement on netplay is really smooth and seems pretty accurate, just wana get rmxos to the same state
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 27, 2014, 01:11:49 am
I'm really short on time these days. I'm lucky to be able to sleep 8 hours a day. You'll have to ask someone else.
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 28, 2014, 06:34:05 am
I just want to check im defiantly doing it right,

im editing

    EXCHANGE_VARIABLES = ['@character_name', '@x', '@y', '@real_x', '@real_y',
        '@direction', '@move_speed', '@pattern']

in the RMX-os options?

removing the real and the pattern?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 28, 2014, 07:04:54 am
Yeah, that should be it. Have you tried it without Blizz-ABS?
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 29, 2014, 04:36:25 am
Ok, so after some testing removing the @real etc without Blizz abs lead to walking smoothly, the only problem with it is when you do actually walk the walking animations are gone and the player just glides?


ok so i left pattern in and removed just real X an Y and now i can see walking animations and its still smooth, now its just finding why blizz abs causes it not to work?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 29, 2014, 06:46:08 am
I'm really not sure. It should be working, there is no reason that it wouldn't. Have you tried disabling pixel movement?
Title: Re: [XP] RMX-OS
Post by: whitespirits on March 31, 2014, 10:40:28 am
OK so I have gone into the config for Blizz abs and disabled most things under movement, Pixel movement rate is set to 0 IPS is turned off as well as movement repair and 8 way, still same result player stuck and just moving face direction not actually moving around at all

any one help me with this?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 31, 2014, 10:47:08 am
I will have to take a look at this then when I find some time. But this could really take a while :/ Does anybody here have some advanced knowledge of RMX-OS and Blizz-ABS to check where the problem could be? You can turn on message logging on the server, this can help a lot.
Title: Re: [XP] RMX-OS
Post by: whitespirits on April 02, 2014, 07:20:48 am
Thanks Blizz, can any 1 help me with this to make things a bit easier for Blizz?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 05, 2014, 03:25:24 pm
I updated RMX-OS to v2.03 with a fat piece of new technical documentation (General Design) requested by Jamal XVI (http://forum.chaos-project.com/index.php?action=profile;u=2523).
Title: Re: [XP] RMX-OS
Post by: whitespirits on April 05, 2014, 05:48:37 pm
Any update on the laggy walking blizz?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 05, 2014, 06:09:04 pm
No, I didn't have time. I actually wrote most of this on my phone while traveling through the city over the course of a few days and then put it all together into the manual since it was urgent for Jamal. >.<
Title: Re: [XP] RMX-OS
Post by: whitespirits on April 25, 2014, 12:58:35 pm
Hi guys, so i started a new project making sure everything was updated and literally just added the abs and controller, it shows up fine as online but when i go to create a character im getting this error

Spoiler: ShowHide
(http://i804.photobucket.com/albums/yy324/richadam111/errorrmxos_zps1fc32a8b.png) (http://s804.photobucket.com/user/richadam111/media/errorrmxos_zps1fc32a8b.png.html)
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 25, 2014, 01:49:14 pm
Are you sure that you copied the scripts properly? The configuration script of RMX-OS does define that constant that this error is reporting as missing.
Title: Re: [XP] RMX-OS
Post by: whitespirits on April 25, 2014, 02:01:35 pm
Im having this error blizz by literally just downloading the RMX-OS without adding anthing

So i re executed the server database on navicat and tried it again, same thing is happening, server is online but this error shows in error report

QuoteFri Apr 25 17:45:11 GMT Summer Time 2014:
uninitialized constant RMXOS::Options::LEGACY_SAVE_METHOD
(RMX-OS) Script:6372:in `initialize'
(RMX-OS) Script:6237:in `new'
(RMX-OS) Script:6237:in `waiting_for_server'
(RMX-OS) Script:6229:in `each'
(RMX-OS) Script:6229:in `waiting_for_server'
(RMX-OS) Script:5684:in `waiting?'
(RMX-OS) Script:5977:in `update_blizzabsrmxos_alias'
ABS CONTROLLER:1167:in `update'
(RMX-OS) Script:5549:in `main'
(RMX-OS) Script:5546:in `loop'
(RMX-OS) Script:5551:in `main'
-<:::RMX-OS Main:::>-:46


Nothing moves in the server side of things
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 25, 2014, 02:21:20 pm
Weird, it looks like it's really not there.

Just open up the Options script and find this line:

GUILD_NAME_SPRITES = true


Add this below:

LEGACY_SAVE_METHOD = false


and you're good to go. I'll reupload the RMX-OS package.
Title: Re: [XP] RMX-OS
Post by: whitespirits on May 22, 2014, 12:48:47 pm
Getting save error in rmx-os, so i updated to latest rmx-os and added abs and the controller and its causing problems

Spoiler: ShowHide
(http://i804.photobucket.com/albums/yy324/richadam111/saverror_zpsadb3a4ec.png) (http://s804.photobucket.com/user/richadam111/media/saverror_zpsadb3a4ec.png.html)
Title: Re: [XP] RMX-OS
Post by: Zexion on May 22, 2014, 01:48:17 pm
yeah you need to go to LEGACY_SAVE_METHOD = false and make it true
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 22, 2014, 02:17:09 pm
Either that or actually upgrade the database with the provided SQL script.
Title: Re: [XP] RMX-OS
Post by: whitespirits on May 23, 2014, 03:29:08 am
thanks guys, still having same  save error with legacy on or off, i re executed the sql file with navicat with no avail, i did however notice the date on the sql database file was 2013? maybe this hasn't been updated in rmx-os package?
Title: Re: [XP] RMX-OS
Post by: Zexion on May 23, 2014, 04:27:00 am
The download should be completely up to date. I've been using the current package in building my game and everything works o-o
I had the save error aswell, but it went away when i used the legacy save method
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 23, 2014, 04:38:19 am
:facepalm: I forgot to add the database update script. I'll do it when I get home.
Title: Re: [XP] RMX-OS
Post by: whitespirits on May 23, 2014, 06:44:35 pm
Thanks blizz, are the files updated yet?
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 24, 2014, 03:54:11 am
Good you reminded me, I almost forgot. I uploaded the updated files just now.
Title: Re: [XP] RMX-OS
Post by: whitespirits on May 24, 2014, 05:45:50 am
thanks blizz all seems to be working! thanks a lot!
Title: Re: [XP] RMX-OS
Post by: andrian_fk on May 28, 2014, 12:15:17 am
Hey, Blizz.. i wonder..
when an event is move route command "Move toward player" is setted, which player will be chased?
(P.S sorry if my english bad  :shy: )
BTW, nice script Blizz!  :haha:
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 28, 2014, 01:49:12 am
In case of enemies, that player that is currently assigned as processing unit. So you shouldn't use it. But if it's a plain event, they are not synchronized so each player's event will move toward that player.
Title: Re: [XP] RMX-OS
Post by: Epherex on June 03, 2014, 05:47:43 pm
Hey there!
I am having a strange problem, and I don't know how to solve it.
I'm doing everything correctly, checking everything I can to see if I can find the problem, but nothing seems to be working.
It seems to be a client-side problem:
The database is configured correctly, everything is connected, I have no extensions installed, both the client and the server are configured correctly. I start the server, no errors, absolutely perfect. But when I start the client, it says that the server is offline. No, I'm not doing anything stupid, and it seems like the problem is with the client, because I checked the socket with a simple PHP code and it worked, so the server is actually running, but my client can't find it.
I changed the port to see if it worked, but it didn't. Fowarded the port, not expecting results, still didn't work.
ATM I have no other machines to check if the problem is with my PC, but I remember that some years ago, before the 2.0 version, everything worked, and this is a long age problem, I'm having it for like 2 years now, already formatted my PC at least 2 times and the problem remains.
Sorry for any inconvenience.

edit:
I assure you there's no configuration problem, so please don't ask for it.
Title: Re: [XP] RMX-OS
Post by: G_G on June 03, 2014, 05:58:52 pm
What IP are you using in your client configuration? I remember having a router issue one time where I was running a server and I couldn't connect with my internal IP. I had to use localhost or my external IP. Have you tried using all three?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 03, 2014, 06:00:58 pm
What IP are you running the server on? Have you tried using 127.0.0.1 and have you tried using a network adapter's IP? If more than one network adapter is present, make sure you are using the proper IP. Post your server and client configurations as well so we can take a look at them.

Also, try this: Simply download the package again and run it with the server and client without any changes to the configuration (except SQL setup).
Title: Re: [XP] RMX-OS
Post by: Epherex on June 03, 2014, 06:07:55 pm
Quote from: Blizzard on June 03, 2014, 06:00:58 pm
What IP are you running the server on? Have you tried using 127.0.0.1 and have you tried using a network adapter's IP? If more than one network adapter is present, make sure you are using the proper IP. Post your server and client configurations as well so we can take a look at them.

Also, try this: Simply download the package again and run it with the server and client without any changes to the configuration (except SQL setup).

Tried localhost, 127.0.0.1, 192.168.0.194 (local network adapter IP), and I don't have more than one network adapter.

Server config
Spoiler: ShowHide
NAME = 'Test Game'
HOST = '127.0.0.1'
PORT = 54269
GAME_VERSION = 1.0

DEBUG_MODE = true
LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 120
AUTO_RESTART = false
RESTART_TIME = 5
USE_IP_BANNING = true
RUBY_PROMPT = true
EXTENDED_THREADING = true
OPTIMIZE_DATABASE_ON_STARTUP = false

SQL_HOSTNAME = 'localhost'
SQL_USERNAME = 'root'
SQL_PASSWORD = 'yey'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 20

EXTENSIONS = [
]


Game config
Spoiler: ShowHide
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# RPG Maker XP Online System (RMX-OS)
#------------------------------------------------------------------------------
# Author: Blizzard
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#  
#  This work is protected by the following license:
# #----------------------------------------------------------------------------
# #  
# #  Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
# #  ( http://creativecommons.org/licenses/by-nc-sa/3.0/ )
# #  
# #  You are free:
# #  
# #  to Share - to copy, distribute and transmit the work
# #  to Remix - to adapt the work
# #  
# #  Under the following conditions:
# #  
# #  Attribution. You must attribute the work in the manner specified by the
# #  author or licensor (but not in any way that suggests that they endorse you
# #  or your use of the work).
# #  
# #  Noncommercial. You may not use this work for commercial purposes.
# #  
# #  Share alike. If you alter, transform, or build upon this work, you may
# #  distribute the resulting work only under the same or similar license to
# #  this one.
# #  
# #  - For any reuse or distribution, you must make clear to others the license
# #    terms of this work. The best way to do this is with a link to this web
# #    page.
# #  
# #  - Any of the above conditions can be waived if you get permission from the
# #    copyright holder.
# #  
# #  - Nothing in this license impairs or restricts the author's moral rights.
# #  
# #----------------------------------------------------------------------------
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information:
#
#   There is a documentation for this system. Read it in order to learn how to
#   use this system. A server also comes with this system.
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

#==============================================================================
# module RMXOS
#------------------------------------------------------------------------------
# Main module for all RMX-OS classes and procedures.
#==============================================================================

module RMXOS
 
 #============================================================================
 # module RMXOS::Options
 #----------------------------------------------------------------------------
 # Contains options used for the game that can be set up.
 #============================================================================

 module Options
 
   SERVERS = []
   SAVE_DATA = {}
   CREATION_DATA = {}
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # General
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   GAME_VERSION = 1.0
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # Server Connection Settings
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   SERVER_REFRESH = 400
   SERVER_TIMEOUT = 200
   SERVERS.push(['Localhost', '127.0.0.1', 54269])
   #SERVERS.push(['BlizzDev', '88.207.40.168', 54269])
   #SERVERS.push(['LAN', '192.168.0.2', 54269])
   #SERVERS.push(['My Server', 'www.myserver.net', 54269])
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # Security
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   RESERVED_USERNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
       'none']
   RESERVED_GUILDNAMES = ['admin', 'root', 'moderator', 'server', 'guild',
       'none']
   ENCRYPTION_SALT = 'XS'
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # Network
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   PING_TIMEOUT = 5
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # System
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   USERPASS_MIN_LENGTH = 3
   USERPASS_MAX_LENGTH = 16
   CHATINPUT_WIDTH = 640
   CHATBOX_WIDTH = 640
   CHATBOX_LINES = 6
   CHATINPUT_MAX_LENGTH = 200
   PM_MAX_LENGTH = 200
   GUILDNAME_MAX_LENGTH = 32
   CHAT_BUBBLES = true
   REMEMBER_LOGIN = true
   DISABLED_CHAT_COMMANDS = []
   AUTOSAVE_FREQUENCY = 30
   GUILD_NAME_SPRITES = true
   LEGACY_SAVE_METHOD = false
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # Exchange Data
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   EXCHANGE_VARIABLES = ['@character_name', '@x', '@y', '@direction',
       '@move_speed', '@walk_anime', '@step_anime', '@real_x', '@real_y',
       '@pattern']
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # Save Data
   # - see the documentation to learn how to set up which data is being saved
   #   by RMX-OS.
   #::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
   # save container variable definitions
   SAVE_CONTAINERS = [
       '$game_system',
       '$game_switches',
       '$game_variables',
       '$game_self_switches',
       '$game_party',
       '$game_actors',
       '$game_map',
       '$game_player',
       'Graphics.frame_count'
   ]
   # general save data setup
   SAVE_DATA['Graphics.frame_count'] = []
   SAVE_DATA[Game_System] = ['@timer', '@timer_working', '@menu_disabled']
   SAVE_DATA[Game_Switches] = ['@data']
   SAVE_DATA[Game_Variables] = ['@data']
   SAVE_DATA[Game_SelfSwitches] = ['@data']
   SAVE_DATA[Game_Party] = ['@gold', '@steps', '@actors', '@items',
       '@weapons', '@armors']
   SAVE_DATA[Game_Actors] = ['@data']
   SAVE_DATA[Game_Map] = ['@map_id']
   SAVE_DATA[Game_Player] = ['@x', '@y', '@real_x', '@real_y',
       '@character_name', '@encounter_count']
   SAVE_DATA[Game_Actor] = ['@actor_id', '@name', '@character_name',
       '@character_hue', '@class_id', '@weapon_id', '@armor1_id',
       '@armor2_id', '@armor3_id', '@armor4_id', '@level', '@exp', '@skills',
       '@hp', '@sp', '@states', '@maxhp_plus', '@maxsp_plus', '@str_plus',
       '@dex_plus', '@agi_plus', '@int_plus']
   # for all classes that must have default arguments specified
   CREATION_DATA[Game_Actor] = '1'
 
 end
 
end


As you can see, the configs are the defaults, except the password on the SQL connection.

Edit:
Using my external IP doesn't work because my PC doesn't recognize it (I have an internet router).
Title: Re: [XP] RMX-OS
Post by: Zexion on June 03, 2014, 06:32:09 pm
Going off what blizz said,
First, if using your personal machine to host the server, make sure to host using your IPv4 adress. (type ipconfig in a cmd prompt to get this address)
To connect on the machine that is hosting the server, use the IPv4 adress aswell.
All outside connections must use your public ip address. (I suggest using no-ip so that it covers your address incase it changes.)
Lastly, make sure the ports match, and make sure they are forwarded! Also, don't try connecting with 127.0.0.1 unless the server is hosted on it. Idk why this causes it to freeze for me.
Title: Re: [XP] RMX-OS
Post by: Epherex on June 03, 2014, 06:43:50 pm
Quote from: Zexion on June 03, 2014, 06:32:09 pm
Going off what blizz said,
First, if using your personal machine to host the server, make sure to host using your IPv4 adress. (type ipconfig in a cmd prompt to get this address)
To connect on the machine that is hosting the server, use the IPv4 adress aswell.
All outside connections must use your public ip address. (I suggest using no-ip so that it covers your address incase it changes.)
Lastly, make sure the ports match, and make sure they are forwarded! Also, don't try connecting with 127.0.0.1 unless the server is hosted on it. Idk why this causes it to freeze for me.


Yes, I already tried using it, but my client still doesn't find the server. All the rest of my PC finds it.
Tried connecting with IPv4 (the server was configured with it too), didn't work.
The ports match, as you can see in the configuration I've posted, and they are fowarded.
Title: Re: [XP] RMX-OS
Post by: RinsChan on June 09, 2014, 01:12:04 pm
Excuse me, Please help.
I can't run the RMXP-OS Server 2.5
I use Ruby [last version installer "rubyinstaller-2.0.0-p481"] (on Windows7)
It error not match version
I try to fix about 5-6hr. But not work.
How to fix it?

Thank you.

I have some picture
(http://blueburn.exteen.com/images/server_error.jpg)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 09, 2014, 01:30:20 pm
Make sure that you install Ruby 2.0 x86, not x64. Also, don't install any gems. I think it's conflicting.
Title: Re: [XP] RMX-OS
Post by: RinsChan on June 09, 2014, 01:39:39 pm
Quote from: Blizzard on June 09, 2014, 01:30:20 pm
Make sure that you install Ruby 2.0 x86, not x64. Also, don't install any gems. I think it's conflicting.


I'm sure because I use Winodws 32bit, And i don't install any gems
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 09, 2014, 01:40:52 pm
Hm, it's weird that you get that warning about the version. Have you upgraded RMX-OS? You should make sure to use a new cfg.ini instead of the old one if you did.
Title: Re: [XP] RMX-OS
Post by: RinsChan on June 09, 2014, 02:05:33 pm
It's new. but [GUI] Change the "Version var".

this time I try replace config from original again. It's same.... not work. :(

I will try re-install all of system again. (Start over from 1st step....)
Title: Re: [XP] RMX-OS
Post by: RinsChan on June 09, 2014, 03:38:21 pm
I can run server. Thanks again >w<

(Bad mysql server! I re-install it new and that can run server)
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 09, 2014, 03:53:58 pm
Don't use the GUI, it doesn't work with newer versions of RMX-OS.
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 12, 2014, 04:18:49 pm
Hey Blizz !  I have a small problem with the datas or the server (I think).
When I use an "automatic"/"parallel"/"contact with hero" events with Show Message action or when I add a character in the group... The game is resetted : When I reconnect, I start from the RIGHT BEGINNING instead of resuming from where I was before deconnecting my character

:S I don't have much other scripts, just LoginMessage, OnlineAwareness, DailyMessage and GlobalSwitches
Maybe it is normal ?

Title: Re: [XP] RMX-OS
Post by: Blizzard on June 12, 2014, 04:31:28 pm
I'm not sure what is causing this, but I'd assume it's some sort of crash maybe, because it should save the game. Well, the game doesn't get saved while an event is running for safety reasons.

Remember that doesn't support more than one character in your party.
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 12, 2014, 04:43:04 pm
Ow okay I didn't notice the characters limit
But I knew for the non-saving when an event  is running, that's why I put some "Erase this event" everywhere XD I also have a PNJ with network saving script... but it is non efficient :/
Maybe... It doesn't support "contact with hero"/"auto process"/"parallel process" events, even when called once and erased after

EDIT : Contact with Hero is supported, the "Erase event" action is not supported, then I have an event just showing an image and showing text in parallel process... and then doing nothing in an empty page... And without this script I don't have any problem lol
Title: Re: [XP] RMX-OS
Post by: Zexion on June 12, 2014, 04:53:34 pm
Quote from: Blizzard on June 12, 2014, 04:31:28 pm
Well, the game doesn't get saved while an event is running for safety reasons.

What, are you sure? Because I swear in my current rmx-os project, I can talk to an event which displays a picture, and then log out, and the picture is there upon re-logging. Which means that it saved something..? Unless that has something to do with legacy save
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 12, 2014, 04:54:37 pm
It doesn't save during event processing, because it can cause an inconsistent save state. I remember clearly disabling that in an older version.
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 12, 2014, 05:17:36 pm
But why can't we have more than 1 character in our groups ? Is it because the server doesn't recognize other actors ?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 13, 2014, 01:53:56 am
Kinda, yes. Additional characters need need additional data to be sent. e.g. if you are using Blizz-ABS, you can't have party members, since they won't be visible to other players anyway. Technically you could add party members, but I never intended RMX-OS to work like that, I didn't write any code to handle specific cases for that and I never tested these scenarios.
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 14, 2014, 02:51:59 pm
Ow okay ^^ for me, it resets all the client game datas xD

EDIT : another small ANOOYING bug lol : I use Blizz ABS and Blizz ABS controller, it's OK everything fine but.... I died ! And when I relog , I start from my death !! XD Game Over unlimited
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 14, 2014, 03:00:45 pm
You have an option in Blizz-ABS to turn off auto-gameover. Then just handle it with a common event instead.
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 14, 2014, 03:39:32 pm
I can leave it ON with a parallel script that handle the "death" status of hero :)
But thank you I didn't notice there was an Auto Game Over ^^
Next stage : Custom the title screen of RMX-OS haha
Title: Re: [XP] RMX-OS
Post by: PhoenixFire on June 14, 2014, 03:41:21 pm
At this rate Blizz, it would be kinda cool to see someone make a knowledge-base of all this info for bugs and stuff people are coming up with. I know some of it is all based on the version people are using, but some of this would be neat for people to read through for ideas as well. Like this last with turning off autosave and use switches instead? Some people would not know they could do that, and I think a well organized info system could help them with it (also, I figure since BlizzABS is such a large part of this forum, it deserves a little bit of special treatment :3  )
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 14, 2014, 04:19:24 pm
Yeah good idea ^^ I found what was the bug for my "reset game" problem.
It appears that when the number of events on a map reach a certain number and a client go on this map... the client loose all his data

EDIT : it may not be the amount of events but the amount of process in the map : I can put 3 more PNJs just saying "Hello" in my map, and no problem appears... Then I remove those 3 PNJs and I add one more monster instead... And BAM all data lost
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 15, 2014, 03:15:54 am
@PhoenixFire: I think I actually might have added that in the FAQ in the manual. The problem is that people don't read this kind of information so it's pointless.
Title: Re: [XP] RMX-OS
Post by: goth1sniper on June 15, 2014, 01:58:29 pm
Hello
Thank you for this grate script.
I would like to ask.
How do I make it save the user data to the sql data base like the level and more
somthing like this

user_id 1 , username bob, password 234ftyu, usergroup 0, banned 0, user_lvl 6 , user_title Noob

Save the players level an more and have the Client pull the Level and data from the data base.

Title: Re: [XP] RMX-OS
Post by: Sylphe on June 16, 2014, 02:20:45 pm
Hey it's me again, speaking of database.... I have a lot of players for my tests and I want to erase them all !! Would a small "DELETE FROM PLAYER" SQL Request be correct and don't affect other datas ?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 16, 2014, 02:32:41 pm
"DELETE FROM users", yes. It will delete all user data and sever buddy lists connections properly. I took that into account when I designed the database.
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 18, 2014, 04:12:51 am
ok good thx :)
And did you try to make specific chars like "^ è à é" etc appear in the chat in game ? Or is it possible to do this without too much code ?  :ninja:
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 18, 2014, 04:14:13 am
The chat system should support this already.
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 19, 2014, 10:54:18 am
oh ok ^^ when I type those char in chat, I see small squares instead
Title: Re: [XP] RMX-OS
Post by: G_G on June 19, 2014, 11:25:54 am
You need a different font that supports those characters then.
Title: Re: [XP] RMX-OS
Post by: whitespirits on June 19, 2014, 11:46:29 am
Hi guys, so at random today I have ran into an annoying bug and i have removed all scripts down to basic abs and rmx-os and it still happens :( So i added an event with transfer player at the end of each map to move to the next with player touch. now when i walk though a map i walk 1 step and teleport back even though the teleport is not infront of player? but i can go forward through maps fine just not backwards? any ideas
Title: Re: [XP] RMX-OS
Post by: Zexion on June 22, 2014, 04:56:41 am
Not a bug with rmx-os, but a feature in blizz-abs. (At least I think.)
Event Execution Lock in the config. Is the time in which an event takes before it can be re-executed. If you have a low number it could cause the event to execute too soon default is 40 but I've played your game and you have a high pixel movement rate so I would recommend 50-70.

Hope this fixes it
Title: Re: [XP] RMX-OS
Post by: Sylphe on June 28, 2014, 05:44:40 pm
Yosh ! When I type things in the chat, sometimes some letters are missing (I think because of the lag). Is it because the protocol doesn't keep all the packets ? Or just a physical problem, due to the computer/network performances ?
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 29, 2014, 04:26:07 am
No, the protocol should keep all packets. It uses TCP after all.
Title: Re: [XP] RMX-OS
Post by: Sylphe on July 01, 2014, 08:04:02 pm
it might be the lag lol
Well I encountered this error in the server window when I was teleported at the map that you see behind :

Spoiler: ShowHide
(http://i.imgur.com/clf7PZp.png?1?3730)


Do you know what could have produce it ? I just have 1 parallel process and not so much events in the map.
Then when I deconnect and reconnect, the datas have not been saved because I appear on the map where I was before this one.
I use dailyMessage GlobalSwitches OnlineAwareness and BlizzABS and Custom Menu
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 02, 2014, 02:24:09 am
Make sure to apply the SDL database update. Just check the Datebase folder for the SQL script you need.
Title: Re: [XP] RMX-OS
Post by: Sylphe on July 03, 2014, 08:10:50 am
Ok thank you that's weird I'm sure I did it once I downloaded the thing o.o
Also do you know any graphics scripts for RMX-OS commands (like invite people to a list buddy then a window pop to advertise the invited and the buddy list is just a selectable thing in the menu) ? It's something everyone would appreciate ^^.  Or else is it something to do ? (because I don't find any in CP)
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 03, 2014, 08:20:38 am
I've only seems custom ones that people made for themselves, but no publicly release plugin.
Title: Re: [XP] RMX-OS
Post by: whitespirits on July 03, 2014, 08:31:22 am
That would be a useful plugin, I'm
Ever searching for some 1 that can develop a few plugins just to add some interface to the features, ie party HUD, guild lists and features, and buddy lists etc would be great like u mentioned
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 03, 2014, 10:08:46 am
You could ask Aegisrox. He had such a plugin in Pokemon Remexos.
Title: Re: [XP] RMX-OS
Post by: GohanRocks922 on July 08, 2014, 03:12:18 pm
It says the the server is Offline what do I do?
Title: Re: [XP] RMX-OS
Post by: R5GAMER on July 17, 2014, 08:57:29 am
I create a launcher, he writes under. Txt format which server the account name and password insert. my RMXP read the server name and the selected account name and password and connects automatically without passing the menu. Is possible?

Ex :

Spoiler: ShowHide
(http://gohproject.free.fr/test.png)


Thanks..
Title: Re: [XP] RMX-OS
Post by: Skaaz on July 17, 2014, 09:37:55 am
Hi, I am looking for someone to install RMX-OS on my server via TeamViewer.
I can not do it because I do not understand the instructions are in English (I am French sui ...)
I would like to launch a project on RMX-OS because it is a big forward for RPG Maker, I like it, and kudos to Blizzard!
Title: Re: [XP] RMX-OS
Post by: Drakens on July 19, 2014, 12:20:05 pm
Hi !

Congratulations on your mod, it looks great !  8)

But I can not start the server, the window opens and closes almost as early. Can you tell me why ?

Sorry if the answer was already written but I have not had the courage to watch the 86 previous pages ....  :(
Title: Re: [XP] RMX-OS
Post by: Soulshaker3 on July 19, 2014, 03:20:53 pm
Quote from: Drakens on July 19, 2014, 12:20:05 pm
But I can not start the server, the window opens and closes almost as early. Can you tell me why ?


Make sure you've enough free RAM because that's a common problem wth that type of problem
Title: Re: [XP] RMX-OS
Post by: Drakens on July 20, 2014, 03:35:40 am
Thank soulshaker3 for your answer, but I do not think it is that. I have 8 GB of ram....  :uhm:
Title: Re: [XP] RMX-OS
Post by: Soulshaker3 on July 20, 2014, 01:26:16 pm
As I never worked with RMX OS i don't know much about it make sure you've admin privileges and what version of Ruby are you using?
Title: Re: [XP] RMX-OS
Post by: Sylphe on July 29, 2014, 03:44:55 pm
Hey ! I'm doing a buddy list window, it works but I have 1 annoying problem :

In my buddy list, I let the player remove any buddy he wants, but when you remove a buddy you have to CONFIRM it by typing /y ID_of_Request in the chat...
And I don't know how to confirm it manually, in the script. ( I want to make a window saying "Are you sure ? YES / NO " and when YES I remove manually the buddy in the code )

I thought of a way : sending automatically the message /y ID but I don't know how to get the ID of the request
I don't want to create a server extension just for that, but if it is the only way... ._.
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 29, 2014, 04:02:20 pm
Quote from: Sylphe on July 29, 2014, 03:44:55 pm
I thought of a way : sending automatically the message /y ID but I don't know how to get the ID of the request


Yes, this is the way you are supposed to do this.

The ID of the request is sent back with the chat message that asks you to confirm. It always ends with the ID. e.g.

QuoteAre you sure you want to remove YYY as your buddy? (ID: XXXX)


Also, you shouldn't remove the buddy manually in the code. The server will send a message to confirm that the buddy has been deleted and will do it for you. All you have to do is send him the confirmation with the proper ID.
Title: Re: [XP] RMX-OS
Post by: Sylphe on July 29, 2014, 05:01:57 pm
Ok thank you !!
I found how to get the ID of the request, so I will create a parameter that register the last request ID :)
But the ID of the request is not sent when I am in the buddy list scene :S I'm searching how to listen to the server messages manually
Title: Re: [XP] RMX-OS
Post by: Blizzard on July 29, 2014, 05:16:15 pm
Call this in the update method of your scene before your other stuff.

$network.listen
Title: Re: [XP] RMX-OS
Post by: Sylphe on July 29, 2014, 07:32:52 pm
Ohh yeaah so simple line for great use :D
I have one more (and last I hope) problem
it's with IDs, you use LETTERS XD so my script that give me the first number in message (= the ID) :
message[/\d+/]

doesn't work with IDs 1A, 1B, 1C etc, I get 1 only :S

EDIT : Oookay I think I found how to get it, with the LONGEST line of code I ever made in ruby ._.

message.split(message[/\d+/], 2)[1].split(//).first

I think the time to run it, the player can go watch the entire trilogy of The Lord of the Rings but it works :D

Title: Re: [XP] RMX-OS
Post by: Blizzard on July 30, 2014, 01:21:22 am
Use [0-9a-fA-F] instead of \d. I use hexadecimal values for compactness.
Title: Re: [XP] RMX-OS
Post by: Sylphe on August 01, 2014, 08:47:37 pm
oh but the \d works well :D
But anyway I changed this line, you also Use A B C D without any number for ID's so I did something more general :)

I just found a bug, when you delete a buddy who is not connected, the game disconnect you with this error
Spoiler: ShowHide
(http://i.imgur.com/fSIHzpE.png?1?9465)

or " You have been disconnected" then I go back to RMX-OS title screen

And here is the code for first error
Spoiler: ShowHide

class SocketError < StandardError
 
  ENOASSOCHOST = 'getaddrinfo: no address associated with hostname.'
 
  def self.check
    errno = Winsock.WSAGetLastError
    raise Errno.const_get(Errno.constants.detect {|c|
      Errno.const_get(c).new.errno == errno}
line 2549 =>   )
  end
 
end
Title: Re: [XP] RMX-OS
Post by: PhoenixFire on August 05, 2014, 07:02:17 am
I'm actually going to attempt to see just how bad this clashes with XPA, but, the documentation for this is all messed up (the .chm file that downloads in the folder shows up as all blank pages  ._.  so I was wondering if there's a  working alternate file..)
Title: Re: [XP] RMX-OS
Post by: G_G on August 05, 2014, 07:12:57 am
Works fine for me. Either your download is corrupted or you need a different program to open CHM files.
Title: Re: [XP] RMX-OS
Post by: Zexion on August 05, 2014, 07:28:18 am
If you have windows 8/8.1 that could be the issue. I noticed that CHM files are blank sometimes. If you keep trying to open it, eventually it will show everything.
Title: Re: [XP] RMX-OS
Post by: PhoenixFire on August 05, 2014, 08:37:14 am
Quote from: Zexion on August 05, 2014, 07:28:18 am
If you have windows 8/8.1 that could be the issue. I noticed that CHM files are blank sometimes. If you keep trying to open it, eventually it will show everything.


Looks like that was it =/ took an additional few times of opening it blank. That's an odd little glitch..
Title: Re: [XP] RMX-OS
Post by: Blizzard on August 05, 2014, 12:33:26 pm
CHM files are compiled HTML files so the rendering engine of Internet Explorer is used to display them. Try updating IE to the newest version and checking Windows Update for updates for IE.
Title: Re: [XP] RMX-OS
Post by: whitespirits on August 05, 2014, 03:27:03 pm
Hi guys, so ive been running multiple copies of rmx-os with abs controller and bugs keep poping up and i see that a surge of people a re using rmx-os so im wondering if anyone would like to run some testing to eradicate these?
Title: Re: [XP] RMX-OS
Post by: Sylphe on August 05, 2014, 05:12:44 pm
Yeah we should begin to fix the most annoying bug ... when you cannot attack anyone in the map because of... I dunno why but it's sooo annoying !
Title: Re: [XP] RMX-OS
Post by: PhoenixFire on August 05, 2014, 07:51:46 pm
Need some help with this one. I'm in the middle of putting this into XPA, and got an interesting error. I had to modify the Main script, and I think I may have somehow messed it up. The code I'm using is:

Spoiler: ShowHide

#==============================================================================

# ** Main

#------------------------------------------------------------------------------

#  After defining each class, actual processing begins here.

#==============================================================================

begin
ERROR_LOG_FILE = 'Error.log' # leave empty for no log

def mod_error(error)
  # load scripts
  scripts = load_data('Data/Scripts.rxdata')
  bt = error.backtrace.clone
  # change backtrace display to show script names
  bt.each_index {|i| bt[i] = bt[i].sub(/\ASection(\d+)/) {scripts[$1.to_i][1]} + "\n"}
  # new error message
  message = error.message + "\n" + bt.join('')
  # write to file if file defined
  if ERROR_LOG_FILE != ''
    File.open(ERROR_LOG_FILE, 'a') {|f| f.write("#{Time.now.to_s}:\n#{message}\n")}
end
return message


begin
rgss_main {
  # loading game data
  $data_actors        = load_data('Data/Actors.rxdata')
  $data_classes       = load_data('Data/Classes.rxdata')
  $data_skills        = load_data('Data/Skills.rxdata')
  $data_items         = load_data('Data/Items.rxdata')
  $data_weapons       = load_data('Data/Weapons.rxdata')
  $data_armors        = load_data('Data/Armors.rxdata')
  $data_enemies       = load_data('Data/Enemies.rxdata')
  $data_troops        = load_data('Data/Troops.rxdata')
  $data_states        = load_data('Data/States.rxdata')
  $data_animations    = load_data('Data/Animations.rxdata')
  $data_tilesets      = load_data('Data/Tilesets.rxdata')
  $data_common_events = load_data('Data/CommonEvents.rxdata')
  $data_system        = load_data('Data/System.rxdata')
  # active connection scene
  $scene = Scene_Servers.new
  Graphics.resize_screen(640, 480)
  # Prepare for transition
  Graphics.freeze
  $scene = Scene_Title.new
  # Call main method as long as $scene is effective
  $scene.main while $scene != nil
  Graphics.transition(20)
  # disconnection
  $network.disconnect
}
rescue SyntaxError
  $!.message.sub!($!.message, mod_error($!))
  raise
rescue
  $!.message.sub!($!.message, mod_error($!))
  raise
ensure
  # disconnection
  $network.disconnect
end


And the error I get is:
Spoiler: ShowHide
(https://dl.dropboxusercontent.com/u/25886192/rmxoserror.PNG)



I know that there's probably a little bit more to it, so, I've zipped the current project for you to try out.
NOTE: I did in fact get RMX-OS working perfectly with a vanilla install of it. Works great, so I know it's nothing to do with server/client config issues.


Download Zip: Work In Progress (http://rmxpace.com/rmxpace/WIP-XPAce.zip)
Title: Re: [XP] RMX-OS
Post by: Zexion on August 06, 2014, 02:09:29 am
Can you make the RTP a seperate DL because it's kinda bleh having to download 121mb each time
Edit: Oh I saw you are working on that. MAh bad
Title: Re: [XP] RMX-OS
Post by: LiTTleDRAgo on August 06, 2014, 05:04:38 am

def mod_error(error)
  # load scripts
  scripts = load_data('Data/Scripts.rxdata')
  bt = error.backtrace.clone
  # change backtrace display to show script names
  bt.each_index {|i| bt[i] = bt[i].sub(/\ASection(\d+)/) {scripts[$1.to_i][1]} + "\n"}
  # new error message
  message = error.message + "\n" + bt.join('')
  # write to file if file defined
  if ERROR_LOG_FILE != ''
    File.open(ERROR_LOG_FILE, 'a') {|f| f.write("#{Time.now.to_s}:\n#{message}\n")}
end
return message


you forget putting an "end" right below "return message"
Title: Re: [XP] RMX-OS
Post by: GohanRocks922 on September 01, 2014, 09:53:13 am
Ok i installed Ruby and mysql and it doesn't work, the server says "offline" What do I do?
Title: Re: [XP] RMX-OS
Post by: Melosx on September 02, 2014, 10:52:45 am
Hi guys  :-*
Only a question.
To avoid any problems or blocks, it is best to create the menu on the map, displaying and hiding the windows in the scene, or I can use the standard menu and change it? I read something about it months ago but I can't find that message in the net.  :'(
Title: Re: [XP] RMX-OS
Post by: Zexion on September 02, 2014, 10:23:30 pm
Do you mean a menu that displays without pausing the map?
http://forum.chaos-project.com/index.php/topic,8214.0.html
Title: Re: [XP] RMX-OS
Post by: Melosx on September 03, 2014, 03:26:44 pm
Yep,  exactly. The game run normally under the menu, like a normal mmorpg.
Thanks for the script, don't need, for the moment(?), the change in the opacity so I'll extract the part about the pause.
Thank you again. :*
Title: Re: [XP] RMX-OS
Post by: whitespirits on October 04, 2014, 02:21:22 pm
Hi guys, so i found a very annoying bug that resets save data and players start from beginning again! after a ton of testing i have found the connection and been able to replicate it, so if there are no events on the map then i guess that means that there will be no reset. it seems to be linked to events running on the map, parallel process defiantly causes it, and also ryex dynamic sounds being added, and attacking monsters or them interacting can cause it. It dose not happen religiously every time but it will eventually if there is an active event that runs along side players. Any ideas its a bit of a game destroyer.


few updates,

so when i use a common even parallel process for example re spawn, its a definite data loss, standard parallel cause over time or at a random point
Title: Re: [XP] RMX-OS
Post by: whitespirits on October 06, 2014, 04:38:11 pm
BUMP
Title: Re: [XP] RMX-OS
Post by: Canibecooltoo on December 02, 2014, 03:40:13 pm
players cant see another player in the area even when entering or exiting to the same scene.  and im guessing this doesnt sync monsters so that both players see the same monster in the same spot i tested this on two computers.
Title: Re: [XP] RMX-OS
Post by: Alternalo on December 05, 2014, 05:55:51 am
Hi!
I just want to make a door that can only be opened if you're in a guild, so i tried to make a conditional branch, and used self.in_guild? in the script section, but it doesn't work. Could anyone help me how to do this properly? I've never used this function yet, and don't understand how should it work.
Thx!
Title: Re: [XP] RMX-OS
Post by: Wizered67 on December 05, 2014, 10:12:59 am
I believe you need to use $network instead of self, so try $network.in_guild? .
Title: Re: [XP] RMX-OS
Post by: Alternalo on December 05, 2014, 11:41:17 am
Quote from: Wizered67 on December 05, 2014, 10:12:59 am
I believe you need to use $network instead of self, so try $network.in_guild? .


And it worked! Thank you!
Title: Re: [XP] RMX-OS
Post by: Wizered67 on December 05, 2014, 12:53:33 pm
Glad it worked. While self can be used inside the Network class, to reference it outside the class you need to use $network.
Title: Re: [XP] RMX-OS
Post by: Alternalo on December 05, 2014, 03:18:28 pm
Quote from: Wizered67 on December 05, 2014, 12:53:33 pm
Glad it worked. While self can be used inside the Network class, to reference it outside the class you need to use $network.


I see, and also tried out that shop plugin that works like an auction house, restricted it to only be available on some maps, so my guild house is now finally complete :P
Title: Re: [XP] RMX-OS
Post by: R5GAMER on March 11, 2015, 08:13:42 pm
You know how to display the number of people there in the server?
Title: Re: [XP] RMX-OS
Post by: PhoenixFire on March 11, 2015, 09:27:12 pm
Unless it's something already built into RMX-OS, I would think the simplest way to do that would be to have a global variable that is increased by one every time a client connects, and decreased by one each time a disconnect happens. When you want to display that number, you just grab the value of the variable.. I would think it would probably be very simple to integrate in that manner, though, there are others on here more experienced than I with this system.
Title: Re: [XP] RMX-OS
Post by: R5GAMER on March 12, 2015, 01:21:43 am
Quote from: PhoenixFire on March 11, 2015, 09:27:12 pm
Unless it's something already built into RMX-OS, I would think the simplest way to do that would be to have a global variable that is increased by one every time a client connects, and decreased by one each time a disconnect happens. When you want to display that number, you just grab the value of the variable.. I would think it would probably be very simple to integrate in that manner, though, there are others on here more experienced than I with this system.


I use this method , but I told myself that if there was a more optimized method it will better ^^
Title: Re: [XP] RMX-OS
Post by: Valentine on May 19, 2015, 07:00:28 am
Hello.

I do not speak English. I'm using google translator.

We Brazilians and people from other countries use accents (´`~^) and they do not work on your input. Someone know how I solve this problem? I want to be able to put accents: à, é, ñ, ã, â etc.

Congratulations on your work, Blizzard.
Title: Re: [XP] RMX-OS
Post by: Ctrl_Alt_Defeat on September 23, 2015, 06:14:07 am
So I was able to get the server up just fine and managed to have a friend join me (through hamachi)! However, I'm curious about something. Is everything client sided in terms of events on a map? Or is there a way to make some events global? For example if I were to have a boss monster walking around where everyone can interact?
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 23, 2015, 11:37:10 am
No, for this functionality you will need an additional script.
Blizz-ABS does do enemy synchronization, but not generic event synchronization.
Title: Re: [XP] RMX-OS
Post by: wazzyl on December 05, 2015, 05:20:48 am
is there a possible way to let this script work on a windows 7 system, and should it work?
Title: Re: [XP] RMX-OS
Post by: G_G on December 05, 2015, 12:55:54 pm
It should run fine on any windows system with Ruby installed.
Title: Re: [XP] RMX-OS
Post by: Hosom on December 05, 2015, 06:37:36 pm
Am i wrong or there isn't any tutorial on how to make a server side script?
I have something in mind.. but i really don't know hot to program it server side.

For example: a player places an object in the map, a barrel. I am able to do that type of client side script, but how to send this information to the server and apply to all the connected clients?
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 07, 2015, 01:41:28 am
There is an "ExtensionSkeleton" script in the Extensions folder. You basically make a copy of that template and fill your stuff in the initialization method and the update method.
Title: Re: [XP] RMX-OS
Post by: KK20 on December 07, 2015, 01:59:42 am
And then you look at other people's scripts in the script database and see how they did it.
Title: Re: [XP] RMX-OS
Post by: mrretrus on February 08, 2016, 02:35:06 am
This question was left off on a note that my question picks up on :) Ive read through quite a bit of blizzards RMX-OS related scripts to try and get a bearing on how things are done- It seems you pass variables to $Network- and then you should be able to pull them on client requests, although im not sure how to "push" them to the client instead.- I read through the manual as well, but it just scratches the surface of how this communication actually works. Is there any info on how this is done in a more comprehensive manner?
Title: Re: [XP] RMX-OS
Post by: KK20 on February 08, 2016, 09:50:41 pm
Maybe it's better if you describe what it is that you're trying to do and how much of it you have written up so far. It will make explaining it easier to understand.
Title: Re: [XP] RMX-OS
Post by: mrretrus on February 09, 2016, 07:02:43 am
Thank you for your reply ^.^ Ill start off first by saying im a moderate scripter- I have a project much like diablo 2 Ive been working on for 3 years now- and have been using multi-dimensional arrays to store all of the data the game needs- Inventory, monsters on the map etc. I'm now trying to make a similar game using RMX-OS. I have a LAN where Im testing out the server with 2 players (Justin1, Justin2) and would like to be able to send and receive custom data to the server so both clients see the same thing. Im using the "Global Switches Variables" script Blizzard wrote but what I'd like to be able to do to start is make a single custom array for each player based on their username plus one global array, and have the clients able to access that information on call. Of course simply defining $GlobalArray = [] wont work because its only client side

I have Custom controls and Mouse Controller and wrote a custom "locate event" script to search for events under the cursor (targetting a player or event) and would like to be able to get the "map_users" list, scan the array for the player whose closest to the tile the cursor is over, and pull data from that users respective array, and be able to write to it. I dont know if this is the best way to do P2P communication, but I know its important to at least be able to have an array for each player plus one global array for the entire server where I can store all the information thats been hashed out by the clients. The thing is I'm not familiar with the code, and don't exactly know whats pointing where. I was able to get my own username by calling $network.username, but when i call $network.map_users it returns a strange hash value and not an array, and I dont know how to convert this list into an indexed list so I can pull more information (game_player.x & y- etc) and write back to it.
Title: Re: [XP] RMX-OS
Post by: KK20 on February 09, 2016, 10:27:56 pm
If these player-unique arrays are to be saved with the game, you should probably create this array in Game_Player and configure your SAVE_DATA to include this array.

class Game_Player
  attr_accessor :myUniqueArray
end


$network.map_players does return a hash based on the format {PLAYER_ID => Game_Character object}. You can generate an array of Game_Characters by simply doing $network.map_players.values.

It's been a while since I've played with RMX-OS. You might be lucky enough to be able to access the unique array from the $network.map_players result.

$network.map_players.values.each{|player| print player.myUniqueArray}


As for a server-side unique array, you will have to create your own extension code. Using Global Switches/Variables as a template will help. The basic idea is to create a typical array in self.initialize and make a new message code in self.client_update that looks something like:

when /\AGARR\t(.+)/ # Get ARRay
  id = $1.to_i
  value = @serverArray[id]
  client.send('GARR', value)
  return true

Then in your RMXP project, you will have to make a corresponding listener for this message:

class RMXOS::Network
 
  alias check_game_serverarray_later check_game
  def check_game(message)
    case message
    when /\AGARR\t(.+)/
      $server_array_result = $1.to_i # It's up to you what to do here
      return true
    end
    return check_game_serverarray_later(message)
  end
end

Now you can access the server's array by doing

$network.send('GARR', 1) # replace the 1 for whatever index you want to access
Title: Re: [XP] RMX-OS
Post by: mrretrus on February 10, 2016, 10:20:19 am
This seems pretty straight forward - would you mind briefly explaining what each line does? I'm not proficient with reg expression or the networking protocol implement :/ I could plug this is but I wouldn't understand it  :shy:
Title: Re: [XP] RMX-OS
Post by: KK20 on February 10, 2016, 02:16:57 pm
when /\AGARR\t(.+)/ # Get ARRay

Anything between the two forward slashes indicates the usage of regular expression, which I'm sure you understand. \A means "start match at the very beginning of the string". \t is obvious tab. Anything in parentheses will be matched and can be accessed using $1, $2, etc. The period followed by a plus-sign means to match one or more of any character. There are plenty of tutorials about regular expressions, like this one: http://forum.chaos-project.com/index.php/topic,56.html

$network.send('GARR', 1)

When we make this call, we are sending this string to the server:
'GARR\t1'

If we run this through our regular expression, GARR\t will be matched. The 1 will be caught within the (.+), which we can then access with $1.

So we sent a message to the server, but now we need to send the message back to the client(s).
client.send('GARR', value)

The variable 'client' is passed through the self.client_update method, which pretty much is our Socket object. Again, we're sending a string that will look something like this back to the client:
'GARR\t42'

Our clients need to be able to interpret this message, hence the class RMXOS::Network aliased method.
---
All communication done between the client and server is through string-based messages. You start with some kind of identifier (e.g. GARR) that will then run a specific block of code to parse the remaining information appended to the message (if any). I suggest you get a solid understanding of regular expressions before you tackle this any further. I also suggest studying the RMX-OS plug-ins in the database until you can understand what is actually being done.

It would also help tremendously if you took a class on computer communications--everything made perfect sense to me. I was a prominent Ruby scripter of 4 years before taking the class, but RMX-OS was still a giant enigma to me.
Title: Re: [XP] RMX-OS
Post by: mrretrus on February 10, 2016, 06:28:42 pm
yes... about 10% of what you explained made sense to me, but I do apreciate the answer. Ill have to do a bit more studying before I become adept at this ^.^ but hey I taught myself everything I know from reading stuff online and Ive come this far so anything is possible with enough determination :) I also saw today that a new RPG maker was released? RPG MV? Do you have any knowledge of this new program? Im wondering if it might be wise to just start learning on this new platform as it seems to have capabilities to port to mobile devices as well as other operating systems...
Title: Re: [XP] RMX-OS
Post by: KK20 on February 10, 2016, 06:45:38 pm
Haven't played with the maker much. It uses JavaScript instead of Ruby. No one here can really be called an expert at it yet, so you're better off asking the people on the official RPG Maker forums instead. There's already a lot of community support for it and there's plenty of potential to make it one of the best RM's in the series, but it's still in its infancy.

I'm really just not interested in learning all the code again, especially since they didn't comment any of it (not to mention combined them all into a few files--take all the default scripts in RMXP, remove all the comments, and put them in one file--but there are tools to extract the separate "classes", one of which I made).
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on March 28, 2016, 07:08:27 am
Hey all, sorry if this has already been asked, but there's no easy way on this forum to search through 88 pages of a topic like this. :(

Anyway, by default RMX-OS treats the whole game like a shared world: if more than one person logged in to the server is active on map 1, everyone on map 1 will see all those people.  Is there any way to selectively disable this behavior for certain maps and keep them private and local?  This is an obvious enough feature that I'd imagine it has to be present, but I can't find how to do it.  Does anyone know?
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 28, 2016, 07:31:20 am
I know a couple of people requested this, but I never implemented this in the base script. There might be a plugin around for that, though. Try searching through our database. http://database.chaos-project.com I think it was called instance maps or something like that.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on March 28, 2016, 07:38:28 am
I don't see anything with a name like that in the database. :(
Title: Re: [XP] RMX-OS
Post by: Blizzard on March 28, 2016, 08:16:48 am
You're right, I can't find anything either. :/ Maybe at another forum?
Title: Re: [XP] RMX-OS
Post by: KK20 on March 28, 2016, 02:04:13 pm
http://forum.chaos-project.com/index.php/topic,14580.0.html

There is no official script release. But maybe you can ping chaucer for the script if he still has it.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on March 30, 2016, 07:30:31 am
Interesting.  The thing Ryex keeps saying is the wrong way to handle it really actually seems like exactly what I want to do, especially since you would definitely want the intro (where a new player starts the game) to not be a shared map, and the intro point is hardwired into the database.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on April 01, 2016, 02:13:20 pm
One other quick question: where does mysql_api.so come from?  It would be very nice to be able to run this on the latest version of Ruby instead of one that's 9 years old, but for that I need an updated mysql_api.so binary, and casual Googling doesn't actually turn up anything useful.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 01, 2016, 05:54:42 pm
I got the source for MySQL and used the Ruby source to compile the mysql C-extension. I remember it being quite a bothersome process until I finally figured it out properly. >.< But I can't remember if in the end which file that was. It might have been libmysql.so in the root directory. Or maybe I just used that one to compile the two SO files that are currently there.

Also, in the newest version of RMX-OS you have both mysql_api.so for both Ruby 1.9 and Ruby 2.0 available. They aren't 9 years old. >_> libmysql.do/dll are only 7 years old. >_>
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on April 01, 2016, 05:59:48 pm
Ack, my mistake.  I looked at the wrong thing.  Regardless, the current version is Ruby 2.2.

So this was something you had to build yourself?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 02, 2016, 03:30:26 am
Yeah.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on April 02, 2016, 09:32:37 pm
I just looked at SQL.rb in the server, and saw something worrisome: it's not set up for proper security.  It has a method for escaping strings--a bad idea which should never be done--and no support for parameterized queries, which is the right way to handle the problem that escaping strings is supposed to solve.  That means that the server's database architecture is essentially a SQL injection attack waiting to happen.

If I had an API specification for mysql_api.so I'd fix this myself, but since it's custom-built, I need to ask for Blizzard to update this to support parameterized queries.  Can you do that?
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 02, 2016, 10:12:31 pm
Uhm, no. Injection attacks can't be done. That's what the whole string escaping is for. SQL injection works by adding SQL queries into data so when processing the queries, the string gets turned into an actual command rather than treated as data. And RMX-OS prevents that. It makes sure that all client string data is properly converted into actual string data before actually doing an SQL query with it. Unless you found a specific piece of code that doesn't use the escaping method to prevent SQL injection, RMX-OS shouldn't have that problem. SQL.rb doesn't do the escaping. The calling code does.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on April 03, 2016, 05:19:45 am
Yes, in theory, assuming everyone remembers to use it every time and the escaping routine works perfectly, that is the case.

In practice, neither of those assumptions is valid.  People forget the escaping when concatenating a string into the query, and escaping routines are notoriously difficult to get right.  (Just look at how many different "mysql_escape_strings_for_real_we_swear_we_got_it_right_this_time" routines there are in PHP!)  This is why any developer with experience in database security will tell you it's not worth the risk: you should always use parameterized queries and never use escaping and concatenation instead.

But don't take my word for it; just ask on StackOverflow (or the more specialized security.stackexchange.com) if escaping is a valid substitute for parameters.  They'll say what I just said.  They might also point out that if you use parameters, the DBMS is able to cache the query plan, leading to improved performance on long-running processes such as servers.
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 03, 2016, 05:56:08 am
I know that, but there's always the problem with double escaping and the need for more code to be able to queue SQL commands in a parametrized manner so it made more sense to organize the code like this rather than writing all the overhead code to make it work. But I agree that parametrized calls (and any safe wrapper calls for that matter) are the way to go.
Title: Re: [XP] RMX-OS
Post by: whitespirits on April 26, 2016, 08:19:04 pm
just wanting to ask Blizz some advice :)

so I had 3 people on rmx-os today and all seemed good, people did say they had some lag, is this because I'm in the UK on home PC? I do have 200mb broadband. they were America and spain based.

as well it seems if I enter the map first I have perfect speeds? if I join another players I feel a delay of lag. just wanting to know if a vps will help me and what the situation is with how it actually works, I love blizz abs and rpg XPace I just wana stable game :)
Title: Re: [XP] RMX-OS
Post by: Blizzard on April 27, 2016, 02:13:34 am
Yeah, the server location does affect that.
Also, I made RMX-OS's communication work through TCP rather than UDP. TCP is slower, but reliable.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on May 07, 2016, 06:39:03 pm
After looking this over, with a bit of help from whitespirits, it seems that the source of the lag has very little to do with the choice of TCP over UDP.  Instead, it seems to stem from a quirk in Blizz-ABS, the "gmaster" system.

A bit of background:

Most MMOs are designed with the canonical game state--the authoritative answers to the questions of where characters and NPCs are located, what they're doing, and what items, stats and abilities they have--living entirely on the server.  The game client is mostly just a terminal that passes input messages to the server, retrieves update messages from the server, and renders the game according to the state the server describes in the update messages.  This has several advantages.  It allows you to centralize all the processing of the game, it makes it easy to implement the well-known security principle of Never Trust User Input (always verify that any outside input is valid before accepting and acting on it,) which makes cheating much more difficult, and it makes reverse-engineering the game harder because the client doesn't have the game logic.  Running a map server can be a difficult, processor-intensive job, and you'll often have one server for each map.  (Or sometimes more than one per map, depending on how big your game is!)  This is generally OK, because you tend to have a small number of large maps.

RMX-OS is the exact opposite in many ways.  It's not designed as an MMO, but rather it's a system for adding MMO logic onto an existing, well-established single-player RPG engine.  Because RPG Maker is a single-player engine, the concept of canonical game state existing somewhere other than on the client doesn't make sense to it.  The RMX-OS server is a pretty lightweight MMO system, which mostly deals with message passing and saving persistent data to the database; it knows nothing about the game itself.  It doesn't have its own copy of the maps or the game logic; these are all located on the client-side, which means that both cheating and reverse-engineering are fairly simple, unfortunately.  (All a player needs to do is open up their copy of the game in RPG Maker and play around with the maps.)

But this runs into a problem with a system like Blizz-ABS, where NPCs are supposed to be moving around on the shared map and interacting with the users as enemies that users can fight together: you can't have the clients move the NPCs.  (What if two of them moved the same NPC in different ways?  The action would get out of sync!)  And you can't have the server move the NPCs, because it doesn't know about the maps or the game logic.  Therefore, Blizz-ABS decided to have one client move the NPCs and handle canonical map data for each map, designating that client as "gmaster" (Game Master, I assume.)  So now this one client does all the processing locally, and coordinates everything (including other users' actions) with the server.

What this means is that if a laggy client is chosen as gmaster for a map, he'll lag up everyone on that map.

Ideally, this could be solved by moving canonical processing of game data to the server, but that would be tricky: a large amount of RGSS and the game engine would have to be recreated on the server-side, while removing the graphics part of it, and the corresponding code would need to be disabled on the client-side and replaced with messaging.  And it would take a bunch of additional reworking due to the way RPG Maker's map engine is designed with the implicit assumption that only one map is running at a time.  And just to further complicate things, unlike standard MMOs, which feature a small number of large maps, RPG Maker's style tends towards a large number of small maps, which makes multi-server solutions trickier.

It could be done, but it would not be an easy task!

The other possible solution would be for the server to assign gmaster more intelligently.  Right now, it simply assigns gmaster on a first-come-first-served basis: the first person to enter a map becomes gmaster for that map and retains the title for as long as they stay connected and on that map.  If the server had a way of detecting ping times for its clients, though, it could check as part of the server_update cycle to see which client on each map has the lowest latency and reassign gmaster status to keep things running smoothly.  Unfortunately, there doesn't seem to be any built-in way to do that.

One thing that might work: Have the server spawn a new Thread that does the following in a loop:

for each client connected:
   record current time
   send a PING message to client, to which it responds "PONG"
   wait for the response. when it comes, check how long it took.
record all client ping times in a hash of client => time
save this hash to a global value
sleep for a few seconds before running the loop again.


Then the server_update would check to see if the hash has been updated.  If it has, run through the list of maps, find the fastest user for each map, and set them as gmaster.

This wouldn't be perfect, but it would help keep lag down without having to rewrite the entire game engine.

Any thoughts?
Title: Re: [XP] RMX-OS
Post by: orochii on May 07, 2016, 08:51:18 pm
I think you're right. RMX-OS is actually a good easy solution to put online to almost anything in RPG Maker, though that comes up with the price that the thing you made "instantly online" wasn't built to be online.

I have another idea, since RMX-OS has this thing of "first one becomes server for the map", how about making a special client that makes sure to be a map's gmaster? Basically my idea is this: a client that doesn't renders anything neither does anything, just like a dummy character (maybe even not log as a character at all). It just picks the work as gmaster and that's it. As for picking the gmaster as soon as possible, since the client always ping to see when the server is online, make it automatically log in, or even prohibit logging in until one of these special clients is on (someone could develop a script that beats "us" just to mock everyone, I guess xD).

Maybe make these clients able to be gmasters in more than one map. Assume we have 100 maps and 4 PCs. You then make each PC the gmaster of 25 maps each (or make it 20-15-30-40, maybe some maps are designed to accommodate more players than others).

It's pretty much distributing the load into several computers. And it doesn't need that much of a change as far as I know since these client-servers (?) will be just like a regular client.
Title: Re: [XP] RMX-OS
Post by: KK20 on May 07, 2016, 10:37:26 pm
While all this theory talk could work, the underlying question that needs to be addressed is this:

Is it even worth it?

We're talking about RPG Maker XP here, or any of the newer ones for that matter. It wasn't designed for online play. And it surely wasn't designed to be used for an MMO. That's the biggest issue I have with the way RMX-OS is presented; you slap on the sentence "make an MMO" and everyone suddenly thinks they can make the best MMO game ever. And who wouldn't, right? Most--if not all of us--have grown up on social outlets like MMOs. The idea to be able to play a game with your friends now at your creative disposal, and what better than an easy game-making editor than RMXP? I know I tried when I saw this thread for the first time. I dabbled with RMX-OS and BABS, documented ideas, and fantasized about the fun I could have--and this was during the time I had only started using RMXP for a few months with no real programming background (other than a high school Java class). This was 6 years ago...guess what happened to that project?

RMX-OS exists as a medium to allow online connectivity because it's a fucking cool idea. I mean, seriously, who would have thought this could be possible, and without having to rely on shitty Netplay? It was a revolution for its time, especially when the RMXP community was still largely active.

But looking at the bigger picture, RMX-OS is exactly what I said above--it serves as a medium for online connectivity. The idea to use it as a true MMO just doesn't cut it, but an Online Multiplayer is more feasible. If you want to be serious with this, you shouldn't be using RPG Maker in the first place. If you want to just dick around, then you came to the right place.

In short, there's no reason to even bother rewriting some of the RMX-OS code to compensate for this. The RM engine is inherently bad and there's not much that can be done to avoid that. There's no real merit to doing this in my opinion. If you want to tackle it, then go ahead and share the code. But it's like fixing a hole in the ship when the whole thing is on fire.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 08, 2016, 03:25:29 am
Yup, you are spot on, Mason. ^_^ That's exactly how I designed RMX-OS.

G-Master stands for Global Master.

The NPC thing is mostly something that I never got around making. Technically one could easily use the Blizz-ABS plugin code for moving monsters around to make NPCs move around as well.

To be honest, before retiring I did play with the idea to change RMX-OS in such a way to be able to run on multiple servers where the maps would simply be distributed between servers since they are isolated entities. It actually wouldn't be that difficult. All you had to do would be sending messages to the client to reconnect to another server if they are changing to a map that currently resides on another server and you would probably need a login server separate from the map servers. The login server would also handle the list of where each map currently resides and handle server synchronization by handing out and revoking map handles to servers.

It's true that a laggy gmaster will lag the map, but I designed a mechanism to try to find a better gmaster if there is too much lag. Unfortunately I didn't write the code to find the best gmaster. But that code is isolated and can easily be changed if somebody is willing to do it. I talked to whitespirits the other day and I think the gmaster solution would help a lot. If you want to make it, feel free to go ahead. I can even add it in the official distribution of RMX-OS if you want and give you credit. :)

There is another better, but also more complicated solution that I thought of. If you would create a dummy RMXP engine, you could run an instance of the game without graphics on the server for every map so gmaster processing would happen on the server. This approach still allows you to use the gmaster system for processing, but it would be server side. Of course, it would probably still not be that cheat-proof, but it's an improvement over the existing system.

@KK20: The RM engine isn't bad. It's just relatively simple and it wasn't designed with online multiplayer in mind. I think that it does a decent job for what it was created.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on May 08, 2016, 07:47:55 am
QuoteTo be honest, before retiring I did play with the idea to change RMX-OS in such a way to be able to run on multiple servers where the maps would simply be distributed between servers since they are isolated entities. It actually wouldn't be that difficult. All you had to do would be sending messages to the client to reconnect to another server if they are changing to a map that currently resides on another server and you would probably need a login server separate from the map servers. The login server would also handle the list of where each map currently resides and handle server synchronization by handing out and revoking map handles to servers.

Interesting.  Did you ever come up with any code for this?

QuoteThere is another better, but also more complicated solution that I thought of. If you would create a dummy RMXP engine, you could run an instance of the game without graphics on the server for every map so gmaster processing would happen on the server. This approach still allows you to use the gmaster system for processing, but it would be server side.

Possibly, but this would involve running possibly hundreds of instances--I've even seen a few games with over 1000 maps!--and Ruby is not a lightweight scripting engine.  That would require a non-trivial resource commitment to make it work.
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 08, 2016, 09:13:25 am
Nope, only concepts.

True, but running it on multiple servers could help counter that. You should also take into account that maps where there are no players at a certain moment, wouldn't actually be running an instance. At 100 players max. on the server, that makes only 100 max. instances.
Title: Re: [XP] RMX-OS
Post by: Denver on May 12, 2016, 03:31:16 pm
Hey! First of all, thank you very much for this awesome system, Blizzard! Much appreciated!  :clap:

Secondly, I am unable to connect to the server through the Client. I installed Ruby 2.0.0 and WAMP, created the database, and when I run "RMX-OS.rb" it seems to start the server successfully (at least I get the message "RMX-OS Server has started successfully"). But when I start the game (Client) the server is always offline. I am trying to run it on localhost for some tests, so I did not change anything. What could possibly be wrong? I have no clue. Please help!  :(

EDIT:
I managed to get it to work by downloading "RGSS102E.DLL" and copying it into the "Client" folder. But I will have to modify the "Config.ini" file whenever I save the game. :P
Title: Re: [XP] RMX-OS
Post by: Blizzard on May 12, 2016, 05:26:20 pm
You can also rename the DLL to whatever the one is your RMXP version is using. That also works.
Title: Re: [XP] RMX-OS
Post by: KK20 on May 13, 2016, 12:40:13 am
But the whole "had to put the RGSS DLL in the client project folder" makes no sense though, especially when the game was running fine, just not establishing a connection. You sure that's what fixed it?
Title: Re: [XP] RMX-OS
Post by: Denver on May 13, 2016, 07:13:51 am
Blizzard
Thank you very much, that is a nice workaround, hehehe!

KK20
I did not change anything, only pasted the DLL in the Client folder and voilà - it worked all of a sudden. If I remove that DLL or use a more recent one ("RGSS103J.DLL" for example), it will not work. It was not me who figured this out though (thank you, Mundo RPG Maker).
Title: Re: [XP] RMX-OS
Post by: G_G on May 13, 2016, 08:33:03 pm
Maybe certain RGSS libraries don't have Win32API implemented properly. I dunno.
Title: Re: [XP] RMX-OS
Post by: KK20 on May 13, 2016, 08:57:01 pm
That would be my guess too, but it's still pretty weird.
Title: Re: [XP] RMX-OS
Post by: whitespirits on May 23, 2016, 12:16:00 pm
Hi guys me again, I have just been sitting waiting for a fix for this Gmaster issue, a played my game with few guys other day and for me I could hardly play on the maps cause they lagged compared to me, does any 1 have time to make a fix for this?
Title: Re: [XP] RMX-OS
Post by: whitespirits on May 27, 2016, 03:44:22 pm
sorry double post can any1 left help at all with fixing the map host issues?
Title: Re: [XP] RMX-OS
Post by: KK20 on May 27, 2016, 04:05:45 pm
Frankly, I don't see anyone willing to do it.
Title: Re: [XP] RMX-OS
Post by: whitespirits on May 27, 2016, 04:19:13 pm
I know :( Its a really good stable system, just the gmaster kills it with lag
Title: Error RMX-OS on Ubuntu
Post by: Esos15 on June 26, 2016, 02:55:28 pm
Hello everyone!
I've go a problem. I've tried open the RMX-OS server on Ubuntu 10.04. I installed MySQL database and Ruby 1.8.7. When everything has been installing I turned on RMX-OS.rb (command: ruby RMX-OS.rb &) I saw an error: "Error: The configuration file was not set up properly!". I don't know what's wrong.

My configuration file:
NAME = 'Server'
HOST = '[here is my vps' ip]'
PORT = 54269
GAME_VERSION = 0.1

DEBUG_MODE = false
LOG_MESSAGES = true
LOG_ERRORS = true
LOG_ACTIONS = true

MAXIMUM_CONNECTIONS = 50
LOGIN_TIMEOUT = 120
AUTO_RESTART = true
RESTART_TIME = 5
USE_IP_BANNING = true
RUBY_PROMPT = false
OPTIMIZE_DATABASE_ON_STARTUP = false
EXTENDED_THREADING = true


SQL_HOSTNAME = '127.0.0.1'
SQL_USERNAME = 'root'
SQL_PASSWORD = '[here is my password]'
SQL_DATABASE = 'rmxosdb'

INBOX_SIZE = 20

EXTENSIONS = [
]
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 26, 2016, 02:57:07 pm
You need a higher Ruby version. 1.8.7 is not supported. Check the manual to see which version is supported.
Title: Re: [XP] RMX-OS
Post by: Esos15 on June 26, 2016, 04:23:20 pm
I installed new version and opened RMX-OS.rb. There is an another error:

/usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': libmysqlclient.so.15: cannot open shared object file: No such file or directory - /root/RMX-OS/Server/bin/2.0/mysql_api.so (LoadError)
        from /usr/local/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from RMX-OS.rb:72:in `<main>'
Title: Re: [XP] RMX-OS
Post by: Blizzard on June 27, 2016, 04:02:51 am
Hm, weird. Maybe try Ruby 1.9.x. I think that the Linux mysql.so was originally compiled for Ruby 1.9.1.
Title: Re: [XP] RMX-OS
Post by: Esos15 on July 02, 2016, 04:05:21 pm
Hello again. I removed ruby 1.8 and installed 1.9.1. Still nothing  :???: :

RMX-OS.rb:70:in `require': no such file to load -- socket (LoadError)
        from RMX-OS.rb:70:in `<main>'

Title: Re: [XP] RMX-OS
Post by: Blizzard on July 02, 2016, 04:42:37 pm
You probably need to set up your binary paths for Ruby. Sorry, but I don't know how to do this on ruby. :( Try also to make sure that the socket library for Ruby is installed.
Title: Re: [XP] RMX-OS
Post by: SDKing291 on December 06, 2016, 11:25:20 pm
Hello, I have been trying to get my friends to play d&d for a while and they just don't like the non game-play aspect of it.I stumbled upon rpg maker and it looked AWESOME. So before I did anything else I wanted to check if it would be multiplayer. I found this and I thought it was all going to workout, but i had one question. If I buy the game, make a world, download the script, host a server, and do whatever needs to be done, do my friends also need to buy the game. If you could respond and give me an answer that would be great. thank you so much for all the hard work you have done.
Title: Re: [XP] RMX-OS
Post by: Blizzard on December 07, 2016, 04:08:58 am
Nope. To make a game, you have to buy an RPG Maker (in this case "RPG Maker XP"). But how you distribute your game to the world, that's up to you.
Title: Re: [XP] RMX-OS
Post by: jria on January 30, 2017, 03:27:20 am
Does anyone uses this script until now? Help me please . I don't know where to configure the SQL database name, port, server and host. Thank you for your response!
Title: Re: [XP] RMX-OS
Post by: deucerer on July 01, 2017, 08:51:51 am
I did all the step-by-step instructions, I installed the appropriate version of RUBY, unfortunately when I want to run the RMX-OS.rb file, the console closes after one second.
Does anyone know why this is happening?
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on July 01, 2017, 08:56:44 am
Deucerer, if you want to find out why, try running it from a command-line window.  Then the console will stay open and you'll be able to read whatever it says.

If you don't know how to use the command line (because a bunch of people don't), create a text file named "RMX-OS.cmd" in the same folder.  It should say exactly this:

RMX-OS.rb >output.txt 2>&1

Run that instead of the Ruby file, and it'll create an "output.txt" file containing the output from the server.
Title: Re: [XP] RMX-OS
Post by: deucerer on July 01, 2017, 09:40:04 am
The only error that the console shows me is:

RMX-OS.rb:4:in `load': cannot load such file -- src/Data.rb (LoadError)
        from C:/Users/mate/Desktop/RMX-OS/Server/RMX-OS.rb:4:in `<main>'
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on July 01, 2017, 09:43:39 am
OK. Does that file exist?  (It should.  If so, try running that file and see if you get a more detailed output.  If not, you'll want to re-download and reinstall RMX-OS.)
Title: Re: [XP] RMX-OS
Post by: deucerer on July 01, 2017, 09:53:33 am
The file exists and RMX-OS has just been re-downloaded from the official theme.
Title: Re: [XP] RMX-OS
Post by: Mason Wheeler on July 01, 2017, 09:54:52 am
So what happens if you try to run it directly?  If it's erroring out trying to load it, then running it should give you some sort of error message. (Hopefully!)
Title: Re: [XP] RMX-OS
Post by: deucerer on July 01, 2017, 10:05:49 am
Nothing happens, no messages or errors, as if the file did not exist and yet has content.
Maybe the ruby version has something to do with it, I use 2.0.0p247, version 1.9x (x86) also the same problem: |
Title: Re: [XP] RMX-OS
Post by: KK20 on September 04, 2017, 12:38:56 pm
1. It's not built into the system. Possible with a lot of edits, but I know you don't script.

2. Pretty sure things regarding to player stats is handled all on client-side. You don't need to do any fancy script calls; the Change HP event command works fine as is.
Title: Re: [XP] RMX-OS
Post by: Blizzard on September 06, 2017, 02:58:14 am
1. Just run a local server on your PC, separate from the online server.

2. Stuff is being synced. It's called EXCHANGE_VARIABLES or something like that. By default it doesn't sync actor data, but if you use Blizz-ABS and the plugin, it will actually sync these things as well.
Title: Re: [XP] RPG Maker XP Online System (RMX-OS)
Post by: lilbrudder917 on December 15, 2019, 12:32:15 am
I know it's a long shot, and I apologize for the necropost.. I've been able to get this working on 32-bit Ubuntu 14.04, and I specifically saved the command line inputs necessary but I can't seem to find them, which kind of binds me. Has anybody been able to get the server working on any version of Linux? It's fine if it's not Ubuntu 14.04 (in fact, it's preferably a newer, possibly 64-bit version). If I need to rebuild the .so files, that's fine, though I'd appreciate any help involved there since I have no idea what that would require. The error I get is as follows:
Spoiler: ShowHide
<internal:lib/rubygems/custom_require>:29:in `require': /home/aov/server/bin/1.9/mysql_api.so: invalid ELF header - /home/l/server/bin/1.9/mysql_api.so (LoadError)
 from <internal:lib/rubygems/custom_require>:29:in `require'
 from ./RMX-OS.rb:139:in `<main>'

Any help would be greatly appreciated, though I understand it may be unlikely that anyone is working on this anymore.
Title: Re: [XP] RPG Maker XP Online System (RMX-OS)
Post by: Blizzard on December 30, 2019, 05:37:07 am
You should look into these topics:

https://forum.chaos-project.com/index.php/topic,5055.0
https://forum.chaos-project.com/index.php/topic,13542.0
Title: Re: [XP] RPG Maker XP Online System (RMX-OS)
Post by: lilbrudder917 on January 02, 2020, 06:19:22 pm
Still having issues, unfortunately. I've replaced the mysql.so file in the RMX-OS main directory with edwardthefma's version, but that doesn't seem to have changed anything. I thought maybe to replace /bin/1.9/mysql_api.so with it, which appeared promising. It instead gave me this error.
Spoiler: ShowHide
./RMX-OS.rb:72:in `require': libmysqlclient.so.15: cannot open shared object file: No such file or directory


I finally located what I believe to be a valid libmysqlclient.so.15 file for my OS and placed it in /usr/lib/.
I now have this error, which I definitely have never seen before.

Spoiler: ShowHide
./RMX-OS.rb:72:in `require': /home/aov/game/bin/1.9/mysql_api.so: undefined symbol: Init_mysql_api


I'll keep trying. If I manage to get it working I'll write a step-by-step guide on how to get this running on a Linux VPS.



UPDATE: I had issues in the past installing the mysql gem, but I actually was able to do it this time for some reason. I got the server up and running. I'll write a guide shortly.
Title: Re: [XP] RPG Maker XP Online System (RMX-OS)
Post by: wazzyl on March 21, 2023, 05:31:10 pm
Does anyone know a solution to run this software in 2023, I want to update the program, cause I might want to run a MMORPG on a gaming pc.
Title: Re: [XP] RPG Maker XP Online System (RMX-OS)
Post by: KK20 on March 22, 2023, 12:56:34 pm
You asked a similar question 8 years ago regarding making this work in Win7, which it does. Nothing has changed since then and never will in the future.

You're going to need to be more specific with your question. Have you even attempted to get your environment set up yet?