Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
can someone please explain #329692
06/22/10 00:20
06/22/10 00:20
Joined: Oct 2008
Posts: 67
pewpew Offline OP
Junior Member
pewpew  Offline OP
Junior Member

Joined: Oct 2008
Posts: 67
the structure of multiplayer in game studio?

I've tried running through the tutorials and they work fine. but when i want to code something, its incredibly frustrating!!
variables just DONT send?
i've tried sending skills of entities to each other, doesnt seem to work. I've tried send var, send data, etc. and it seems to randomly decide to work when it feels like it.

My game's structure is:
the server creates 4 vehicle entites, that are arrays. They each contain 2 of the same vehicle, but are owned by player 1 and player 2 respectively.

The client connects, and should send the request to the server, to open up the vehicle selection screen... but it doesnt. I've tried reworking/restructuring the code so many times and its very frustrating.

Should i be doing this:
server creates all vehicles
client connects and sends WSAD movement to the server
server moves vehicle

OR
server creates his own vehicle
each connecting client creates their own vehicle
all collisions and such are handled on each machine


HURRR DERP DERP DEERRPP HURR
Re: can someone please explain [Re: pewpew] #329696
06/22/10 03:04
06/22/10 03:04
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
it really depends.. umm..
i'd go with:

server creates his own vehicle
each connecting client creates their own vehicle
all collisions and such are handled on each machine

since its not like an fps where you need to worry about cheaters much, what metwork system are you using? the default?

Re: can someone please explain [Re: darkinferno] #329709
06/22/10 08:41
06/22/10 08:41
Joined: Apr 2006
Posts: 329
M
molotov Offline
Senior Member
molotov  Offline
Senior Member
M

Joined: Apr 2006
Posts: 329
I agree with Darkinferno. Have you seen the multiplayer tutorials on AUM. They are very easy to understand and provide a good basic multiplayer script.

Re: can someone please explain [Re: molotov] #329753
06/22/10 16:16
06/22/10 16:16
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
You could also give ANet a try, I think it's easier to understand and it has a great tutorial: www.anet-plugin.com

Look into the "Simple 3D Chat" tutorial, this should give you a good start into multiplayer.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version

Moderated by  HeelX, Spirit 

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