Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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