Gamestudio Links
Zorro Links
Newest Posts
Where's the Wiki?
by Quad. 06/25/19 22:16
Published Gamestudio Games?
by Dooley. 06/25/19 16:59
Updating to A8 [SOLVED]
by Dooley. 06/25/19 16:00
Message from IB of open position
by Zheka. 06/25/19 13:58
FXCM: "Can't connect to price server"
by riinvest. 06/25/19 10:35
New Zorro version 2.12
by jcl. 06/25/19 09:42
Aum120 is ready
by Emre. 06/24/19 17:54
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
5 registered members (JeyKey II, wdlmaster, alibaba, jenGs, kvm), 574 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Theaisback, redye, rhe2564, Qw3rty, Dal
18239 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Script für Server und Klient #453434
07/26/15 16:11
07/26/15 16:11
Joined: Dec 2009
Posts: 16
NovaTech2010 Offline OP
Newbie
NovaTech2010  Offline OP
Newbie

Joined: Dec 2009
Posts: 16
Hallo,

ich befasse mich seit einigen Tagen mit den Multiplayerfunktionen... mein Ziel ist ein Server-Script und ein seperates Script für Klienten, jedoch scheint es da ein Problem zu geben auf das ich nicht komme.
Zwei unterschiedliche Scripte (Server + Client) können miteinander kommunizieren, sofern der Quellcode 100% übereinstimmt, ich finde das jedoch etwas komisch.

Ist es garnicht möglich ein Netzwerk aufzubauen mit unterschiedlichen Scripten?

A8 Pro Lite-C

Danke vielmals
LG - Marvin

Re: Script für Server und Klient [Re: NovaTech2010] #453446
07/27/15 08:59
07/27/15 08:59
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
You can make a separate client and server scripts that dont match.
Quote from the manual about session_open:
Quote:
A8.10 When the name begins with a '*' character, the session is unprotected. Unprotected sessions can be joined by any client, even with a different script. Protected sessions only accept clients with identical script. Script variable synchronization (send_var, send_string) or directly sending function or object pointers only works in protected sessions. In unprotected sessions, all variables and objects must be sent through send_data.

You will have to use send_data and prepare your data by hand (no send_var or skill... laugh ) , but you will separate the client and server applications.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Script für Server und Klient [Re: EpsiloN] #453460
07/27/15 14:16
07/27/15 14:16
Joined: Dec 2009
Posts: 16
NovaTech2010 Offline OP
Newbie
NovaTech2010  Offline OP
Newbie

Joined: Dec 2009
Posts: 16
Thank you so much, it is exactly what i need, merci, merci grin


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