Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/03/26 16:57
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (ondrej), 4,313 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 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: 28,090
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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


Moderated by  old_bill, Tobias 

Gamestudio download | 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