Sorry, maybe I was a bit unclear with my questions. Let me try again 🙂
"TCP objects dont uhh, have a window... 😉":
TCP protocol uses a buffer (also called "window") to send and receive data. This is usually handled automatically by TCP implementation so, when implementing something above TCP, it could be just ignored. But sometimes it is useful to play with these details for performance reasons.
"Not sure what you mean about a 'tool'. I wasnt planning on including any external tools for anything."
I was talking about some static analysis tool to be used during development: basically, you are implementing a protocol, so your implementation must satifsy some formal requirements (given by the RFC, for instance). Number of those requirements tends to be huge, so one can use some model checking tool, rather to manually check every possible scenario and use-case... that's actually a security enhancement. No additional tool will be given to the end-user.
"How are you with the conversion of C types into ruby format? like, would you be able to construct some C type in ruby successfully? *fingers crossed* lol"
Do you mean things like Data_Make_Struct and Data_Get_Struct? I've been studying them in the last days.
Honestly, you seem to know a little bit more about the low level processes of it than I do 😀
My system simply allows the transmission of data via a windows dll.. It doesn't interact with the real low end processes. ~ maybe one day, but I'm just not that good yet :'(
Speaking with you makes me realize how much work I still have to actually do.. I'm now thinking my system is nowhere near as far along as I had thought :/
I suppose those functions are fairly similar to what I was meaning, but those are on the C side. I'm hoping to replicate things the opposite way ~ using ruby code to construct a C struct for example. ~ although, now that you point things out, I suppose using C code to replicate some things may not be so bad...
Sigh...
Now I gotta have a deep think about whether I want to go back tot he drawing board or not...
Edit:
On a brighter note:
Here is a short video I made of a simple script I wrote to interact with my HTTP::GAME::UPDATE module (a module that handles the downloading of new game files for your game) whilst you are on the game title screen.
What you've done so far is awesome, so don't give up 🙂
I offer myself as a volunteer for network/performance/other (thruth is, I need network capabilites for my project too). Just let me know.
Nah, I certainly wont be 'giving up', the whole reason I started using RPG Maker was cause I wanted to make a game with online features, and I knew I would be able to using RPG Maker.
Don't get me wrong, its taken a hell of a long time just to get this far ~ in between various beta tests for functions (like my updater) ~ and at first, just learning about how to use HTTP was insanely complex. ~ Plus had to learn how to script ruby into the mix... 😛
Last night I spent a fair amount of time wondering if I want to go back to using a dll for certain things rather than using 'pure ruby' which is what I've been doing so far... Still not sure on that one 😀
@Wavelength ~
1 - Yes, as erpicci states, a server would be required in order to use HTTP effectively. However ~ this doesnt mean it HAS to be some dedicated server space... If all you where wanting to o was retrieve data (without ever sening new data for processing) then websites like dropbox or github or pastebin or whatever can be used. 🙂
For example: you could have all your game scripts (except for the HTTP one) held in some server, then your game reads from the server files at startup ~ this would ensure all scripts are not visible from within the game,but in reality, those who know what your system is doing will be able to mess with it.
2 - Again, erpicci beat me to it. 🙂
Your server is only as safe as you/your provider can make it ~ nothing is ever truly 'safe' when we are discussing data. (whether it be virtual or physical data)
Obviously ~ when information is being posted it should always be checked for escape characters and the like ~ to avoid potential SQL injection techniques being used against you/your server.
3 - The way I have things setup right now, you would be sending information directly to a server ~ not a game client (that is classed as 'peer 2 peer' and is certainly something that is being looking into), so in reality ~ if you are sending information to a server for a player trade type situation ~ you would be physically removing the item from the players inventory before sending the info to the server, holding the item data in a temp cache , then when the server confirms the item has been added to other player inventory ~ the cache is deleted. If for some reason it cannot reach the server or confirm that the item was added, the item is reapplied to your inventory from the cache'd data. (thats just one way of doing such a thing)
4a - You would have your server store map information, when a vital change is made the game client contacts the server and informs it of the change to [x] map's database information. Then, when the map is next reloaded from the server data (whenever that may be) the change would be visible in the game.
4b - that would require all users to share all variables (or at least the one that was being changed) ~ then, whenever the database info is changed and reread into the game.
4c - (read my answer to number 3)
4d - That would require some kind of script to create an enemy from information held in a database (not hard) and then the player uploads their info, it goes into said database. Then whenever that particular player is being battled, the information is read from the database and used to construct the enemy. (i might actually add a simple system for this in my example scripts... 😛 )
As you can probably see ~ the theme is, all data MUST first be uploaded to a server and THEN the game reads it. That being said ~ if you have a powerful enough server, and use a persistent session && connection within your game, information can be set very very quickly ~ so it is possible to have databases reread every second or so ~ however, I wouldn't recommend having things read so often, unless they are absolutely vital.