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 (howardR, sleakz), 706 guests, and 3 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
[A7.73.1] level_load("") and multiplayer #261060
04/15/09 13:58
04/15/09 13:58
Joined: Jul 2004
Posts: 1,205
Greece
LarryLaffer Offline OP
Serious User
LarryLaffer  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,205
Greece
Hello,

In a multiplayer project, if instead of loading an actual level you attempt to create an empty level using level_load(""), then the server will freeze once a client joins in.

For example, assuming the server and client run this simple script:

Code:
void main()
{
	if (!connection) 
		error("Start first the server, then the clients!");
	else 
		while (dplay_status < 2) wait(1); // wait until the session is opened or joined
		
	dplay_localfunction=2;
	
	level_load("");
}


Then, the server/client side loads up using these parameters: "atoms.c -nx 30 -sv -cl -pl larrylaffer".

The server will open the empty level and start running fine.. Then the client starts up, by using these parameters: "atoms.c -nx 30 -cl -ip localhost -pl nagual". In the engine window it will say: "Searching for servers...found. Joining session ATOMS as nagual", and the CLIENT will normally create a new level as well and run normally.

At the time the client joins in, the server window will now freeze and become non-responding...

This only happens if a new level is created with the level_load(""); command. It also occurs in A7.73.1 and the latest A7.76.0b, although it didn't occur back in A7.66.4.

This bug isn't the end of the world, altough it is a small inconvinience for me since I need the level_load(""); command since we're not allowed to use any .wmb files in the April 2009 contest. I guess I'll have to use level_load("cube.mdl"); instead and try to hide that damn cube smirk


Cheers,
Aris


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
Re: [A7.73.1] level_load("") and multiplayer [Re: LarryLaffer] #261169
04/16/09 06:52
04/16/09 06:52
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Thanks, I'll look into this. For the time being, loading a "cube.mdl" level would indeed be a solution.


Moderated by  jcl, Nems, Spirit, 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