Page 1 of 1

What is use of ?peer

Posted: Sat Jun 13, 2009 6:52 pm
by Leo T_C_K
Seriously it has like no use or I dunno whwy it i even there, at teleporter URL, the teleporter code states this:

Code: Select all

//-----------------------------------------------------------------------------
// Teleporter URL can be one of the following forms:
//
// TeleporterName
//            Teleports to a named teleporter in this level.
//            if none, acts only as a teleporter destination
//
// LevelName/TeleporterName
//     Teleports to a different level on this server.
//
// Unreal://Server.domain.com/LevelName/TeleporterName
//     Teleports to a different server on the net.
//
The Levelname/Teleportname is the beta method, but it works if you use it and it works if you use levelname#teleportername too, but why is at most of maps ?peer in the end of it, it works even without the peer so wth....

EDIT: It seems the Peer has no use in the engine, unless Smirftsch will say it had some use, it seems peer was unused in final version of unreal, or they did not implement it.

Re: What is use of ?peer

Posted: Sat Jun 13, 2009 7:22 pm
by KillerSkaarj
Maybe ?peer is for net games?

Re: What is use of ?peer

Posted: Sat Jun 13, 2009 8:15 pm
by []KAOS[]Casey
there is a map that has no playerstart and the only way to enter it is through the previous level with the url of "eve/eve" and you can open it with eve/eve too. So theres probably an underlying cause to use ?peer, we just don't know it.

Re: What is use of ?peer

Posted: Sun Jun 14, 2009 12:08 am
by Smirftsch
actually of no real use.

Re: What is use of ?peer

Posted: Sun Jun 14, 2009 12:49 am
by Mister_Prophet
I've only used in the past because maps in Unreal did. I always assumed it was some way to transition maps together through a code string. But if you don't need it then I can only guess that it had some other purpose originally.

Re: What is use of ?peer

Posted: Sun Jun 14, 2009 1:04 am
by []KAOS[]Casey
Interesting smirf.. wonder what it was supposed to be used for.

Teleporter only checks for / and # to switch level, so you could have a url as simple as MapName# or MapName/, but if it works like that i'm not sure.

Re: What is use of ?peer

Posted: Sun Jun 14, 2009 8:10 am
by GreatEmerald
I think I've read about it somewhere... Somewhere in TCUERG...

Re: What is use of ?peer

Posted: Sun Jun 14, 2009 1:55 pm
by Leo T_C_K
TCUERG?

Re: What is use of ?peer

Posted: Sun Jun 14, 2009 5:19 pm
by GreatEmerald
The Complete UnrealEd Reference Guide.

Re: What is use of ?peer

Posted: Sun Jun 14, 2009 11:59 pm
by Leo T_C_K
Remember waht was said there? I never read that reference...

Re: What is use of ?peer

Posted: Mon Jun 15, 2009 2:32 am
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
It'd be moar clear if the maps had "?peer=something" at the end, not just "?peer". ;p

Re: What is use of ?peer

Posted: Mon Jun 15, 2009 12:58 pm
by TCP_Wolf
AFAIK the peer parameter is exactly that: a given specific teleporter destination on the next map in line. This way, you can send someone to a specific start location on a connected map.

Works correctly only OFFLINE.

Usage examples:

"Na Pali Haven" to "Outpost 3J": in single player you spawn underwater in the water tube. In online / coop mode, you spawn right outside the water area.

"Noork's Elbow" to "Temple of Vandora": there are two entrances, one left, one right. You will spawn on the next map on whatever side you left before.

Re: What is use of ?peer

Posted: Mon Jun 15, 2009 2:49 pm
by Shivaxi
"Na Pali Haven" to "Outpost 3J": in single player you spawn underwater in the water tube. In online / coop mode, you spawn right outside the water area.
I don't think the ?peer applies for this transition. This is easily done with the playerstart underwater being bCoop=False and the playerstarts outside the water being bSinglePlayer=False...nothing special here :P

But for the transition from Noork to RUINS, it definitely applies there.

Re: What is use of ?peer

Posted: Mon Jun 15, 2009 8:24 pm
by Leo T_C_K
You are both wrong.

You spawn on different places also because of the teleporter with the proper tag (you don't need playerstart at all to spawn in a map where you go from to), peer has nothing to do with this and beta maps work this way as well and without peer and using the slash even...

And the teleporters once worked correctly online, on Zora's servers it is fixed and also....
And in beta in coop game it updated teleporters too...

Peer has nothing to do with that, it is the tag of the teleporter behind slash or # etc, I tested it...

And there is absolutelly no mention of peer in game files, I tried searching for the word, it only appears in upak in teleporter update thingy at intermission info and in other non teleporter comment or something. But it has no use. Mappers can easily forget peer at all.

Try it yourself, remove the peer and do some hub map or link it to some hub map, or a map with a lone teleporter and no playerstart, but be sure to specify the tag and add no peer, you will see it works perfectly.