Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by txesmi. 09/14/19 15:44
file_write var array ?
by jcl. 09/14/19 08:31
Shift on MA
by Fred7. 09/14/19 07:37
Smaller Zorro GUI for Windows XP
by Petra. 09/13/19 17:31
Options t8 format question
by jcl. 09/13/19 12:15
import pandas from python for deep learning
by anonymous69. 09/12/19 14:40
script mt5
by anonymous69. 09/12/19 12:11
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 (3run, Dalla, bondo1, 2 invisible), 616 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
web20tpo, tarekhazem, Juanjo, Fred7, saulius
18288 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