Co op and single player in same map without rename?

Avatar
TheAlexby
13 Posts
Posted May 20, 2011
I noticed there is a map that have both Co op and single player, and it loads fine with both, even without having to rename the map? It does not start with mp_coop_ so i'm confused how it loads in Co op, but it does. Any ideas?
Advertisement
Registered users don’t see ads! Register now!
Avatar
msleeper
4,136 Posts
Admin
Posted May 20, 2011
Replied 1 minutes later
What map? Why don't you ask the map author?
Avatar
TheAlexby
13 Posts
Posted May 20, 2011
Replied 1 hour later
http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=363

The Playground map, and thanks for the advice, i did ask :smile:

Avatar
NocturnalGhost
200 Posts
Posted May 20, 2011
Replied 21 minutes later
Isn't it just a case of having an info_player_start for sp, and a pair of info_coop_spawn for mp? I don't think the actual map name matters, other than to make it easier to know the map's intended use.
Avatar
TheAlexby
13 Posts
Posted May 20, 2011
Replied 4 minutes later

NocturnalGhost wrote:
Isn't it just a case of having an info_player_start for sp, and a pair of info_coop_spawn for mp? I don't think the actual map name matters, other than to make it easier to know the map's intended use.

Actually, the name does matter. If you try to launch a map that starts with mp_coop_ in single player, it will say Your partner has disconnected, or something like that. If you launch a map that does not start with mp_coop_ in Co op, it will not work most of the time, however, if you change the name of a map that is ment for Co op (For an example mp_coop_lobby_2) and remove mp_coop_, it loads in singleplayer... I'm very confused..

Avatar
xdiesp
1,078 Posts
Posted May 20, 2011
Replied 21 minutes later
Be careful with paradoxes! You know what happens.

img

Avatar
NocturnalGhost
200 Posts
Posted May 20, 2011
Replied 16 minutes later
Yep, it seems you are right, the name does matter. Ignore my post, I haven't actually made any coop maps yet, just looked at the decompiled ones.
Avatar
NocturnalGhost
200 Posts
Posted May 20, 2011
Replied 7 minutes later
I just looked at the map you were referring to, and although it doesn't have the mp_coop_ name, it does instruct you to launch coop first, then use the changelevel command when both players are in the hub. I'd imagine that this same technique would work with any map that has coop spawn points, regardless of the name, since coop is already initiated.

I could be wrong, but it's something you could test for, if you haven't already.

Advertisement
Registered users don’t see ads! Register now!
Avatar
TheAlexby
13 Posts
Posted May 21, 2011
Replied 9 hours later
Thank you for your advice! The only thing i tried was ss_map (mapname) which launches Coop on your computer, splitscreen, but maybe going to hub first might solve it :smile: i'm not at home right now but i will try it later.