Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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