Gamestudio Links
Zorro Links
Newest Posts
Why Zorro supports up to 72 cores?
by 11honza11. 04/26/24 08:55
M1 Oversampling
by 11honza11. 04/26/24 08:32
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (VoroneTZ, Quad, EternallyCurious, 1 invisible), 844 guests, and 5 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
Single player/ multiplayer #479634
04/13/20 11:13
04/13/20 11:13
Joined: Jun 2008
Posts: 146
London
T
Truth Offline OP
Member
Truth  Offline OP
Member
T

Joined: Jun 2008
Posts: 146
London
Hi,

I am trying to turn my game into multiplayer but still allow single player too. My problem is I need the level to load before the menu otherwise it will crash, so is there anyway to session_connect after the level has been loaded? the only way I can make the multiplayer connect is if it is set before the menu so if the user selects single player it doesn't work as the engine is already in multiplayer mode. Or is there a way to disconnect from the server after the level has loaded and the user selects single player mode?

example

1. session_connect > level_load > menu selection > *user selects multiplayer* = SUCCESSFUL
2. session_connect > level_load > menu selection > *user selects single player* = FAILED
3. level_load > menu selection > *user selects single player* = SUCCESSFUL
4. level_load > menu selection > *user selects multiplayer* > *session_connect* = FAILED

I've found a slight work around, but is far from ideal. If the user disables their internet connection before doing method 2 then single player works

Re: Single player/ multiplayer [Re: Truth] #479824
04/28/20 11:30
04/28/20 11:30
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Can't you simply load the level again in case 4 after the session_connect?


Moderated by  old_bill, Tobias 

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