Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 595 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Client<->database multiplayer [Re: SchokoKeks] #310503
02/15/10 06:19
02/15/10 06:19
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
Why not using some php-files for doing the important calculations on the serverside?

For example the file foundCoin.php is called if the player found a coin: The file asks the database if there is really a coin on the players field, add the coin to the players coins and echo 0 for error or 1 for success simply?

Any suggestions about the speed of this solution?

Re: Client<->database multiplayer [Re: GorNaKosh] #310530
02/15/10 09:43
02/15/10 09:43
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
You can have a look at my JewelQuest codes. I also included the
php used. Im no php guy, so they are horrible, but work for
basic communication.
(server sends changed "world" data, client sends specific gamedata)

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=310529#Post310529

For a game, as you describe it, php should be the perfect solution.
Also since there are free online servers that can handle the game.
Nicer that having to run a server yourself.

Re: Client<->database multiplayer [Re: Damocles_] #310558
02/15/10 14:47
02/15/10 14:47
Joined: Feb 2006
Posts: 616
Netherlands
cartoon_baboon Offline
User
cartoon_baboon  Offline
User

Joined: Feb 2006
Posts: 616
Netherlands
I worked on a flash project that did something similar to what you want to do. I wasn't the programmer but I know he used php to achieve the client database communication. The game takes part "live" and we were able to create a turnbased system within teams of players by synching them on start up. You can see how far we got on http://klimaxgame.nl, click on work in progress version. If you need help I could ask the programmer if he doesn't mind giving his email to you.

cartoon_baboon

Page 2 of 2 1 2

Moderated by  checkbutton, mk_1 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1