Started by Xolitude, February 06, 2013, 07:36:21 pm
Quote from: Ryex on February 09, 2013, 03:25:46 amfrankly writing a server isn't that hard. especially if your only dealing with a few players at once and you don't have need of a database to store the data.all you do is send messages and receive messages. and if you think of the messages as normal method calls. just that your calling them on another computer it's really not that different than normal programming. you have a function and it's arguments and you call or process accordingly. for you kind of thing with just a 4-8 player server non data intensive you don't even need to worry about threading. you can just process 1 message at a time in a single thread and you wont notice any problems.but here we've gone a hijacked this poor guy's thread.@Xolitudeit is possible to rewrite the server to use sqlite, a server less sql database that is stored in 1 file local to the server. heck it might even be relatively simple considering the database language doen't change you would just need to re root the method calls accordingly (and write a small sqlite binding of course). this would mean setup of the server would only require running the server in a folder.I can not vouch for the performance of sqlite, I hear that it doesn't scale anywhere near as well as MySQL or other server driven databases (meaning it's performance will fall off as you get more and more users) but a modest server serving about 50 people at once should be well within it's abilities.I myself do not have the time to attempt such a rewrite but perhaps armed with this knowledge you can find someone who can.
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.