|
From: Gary L. <Ult...@gm...> - 2006-11-28 23:16:34
|
Daniel Scheibe schrieb: > If you want to make this stuff over the Meta Server you loose much cpu= > time for the webserver daemon, the php execution with the php and the > sql query. > > Every Item which a Player buy, mine or sell, every money transaction a= ll > the things have to send to an server, do you really want to do this > stuff over http? Well the meta server must be part of every transaction. If it is not, pla= yers could write a very simple=20 game server which just sends the new credit balance to the meta server, s= omthing like "Client #0815 had=20 2000 credits before and made some market transactions. Now he has 9999999= 99 credits. The meta server=20 would have to accept that. We would open a door and welcome cheater. Once= there are a few billion=20 credits in the game they will be given to other players and soon commodit= ies and ships won't be anything=20 worth anymore because people have way to much money. All we could do is d= elete all accounts and let=20 everyone register again. > Client buy something and have to send the buy offer to the meta server= , > meta server have to check price and amount and the cargo space from th= e > player and buy for the Client. > > Client ask after the Result. Did I buy something? Did I have less mone= y > now? The last step is not necessary. The meta server could either return these= information right when the=20 client sends the buy order or could simply respond with an "ok". which me= ans "Yes sir, i executed your=20 command. But please do the calculations yourself and update the UI! :-p" > Player Trade > Client want to trade with another client. > client sends data to the meta server > How did the other client know about the trade? Meta Server didn=C2=B4t= send > anything to client, how the Trade can be complete? With an Timer? > Both Client send the offer to Meta Server but Meta Server can=C2=B4t s= end the > trade back to the clients. Um I am no coder. But you would need to let the client which starts the t= rade message the other client=20 which is also part of the trade. And one of thouse 2 clients could inform= the meta after the trade is=20 successful. > Isn=C2=B4t it much easier to have an self coded Server for all this Ne= twork > Stuff? > > You can send stuff from php with the php socket (I code a small > Chatwebserver in PHP and a tcp client for a simple telnet script for a= > teamspeak status script) but why anyone could use this when he able to= > code an pure c++ server and client for all this things? It need to muc= h > cpu time and memory when you do it over the apache daemon which you do= n > =C2=B4t need when you code this stuff in pure c++. Of course a pure c++ meta server would have speed benefits. But speed is = not everything. I thought I=20 wrote it in some other mails before, umm maybe I only talked with Tim abo= ut it. The 2 benefits of an php=20 meta server are: 1.) low costs (we don't have money to spent so we can't hire expensive se= rvers) 2.) easy intergration for the website opacma (the game data is already av= ailable on the right server and=20 the right format) Regards, Gary |