[A7.73.1] level_load("") and multiplayer

Posted By: LarryLaffer

[A7.73.1] level_load("") and multiplayer - 04/15/09 13:58

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
Posted By: jcl

Re: [A7.73.1] level_load("") and multiplayer - 04/16/09 06:52

Thanks, I'll look into this. For the time being, loading a "cube.mdl" level would indeed be a solution.
© 2024 lite-C Forums