Page 1 of 1

Getting a remote level object

Posted: Wed Nov 16, 2016 6:44 am
by PrinceOfFunky
Can you think of a way to get the remote level object?
I was thinking, maybe you get it by querying the server, but I didn't check the code for it.

Re: Getting the a remote level object

Posted: Wed Nov 16, 2016 7:18 am
by Wormbo
There is no access to the remote level object. If you want access to properties of a non-replicated object, you will have to use a replicated actor to replicate the data manually.

Re: Getting the a remote level object

Posted: Wed Nov 16, 2016 7:30 am
by PrinceOfFunky
Wormbo wrote:There is no access to the remote level object. If you want access to properties of a non-replicated object, you will have to use a replicated actor to replicate the data manually.
There's this function into WarpZoneInfo.uc :

Code: Select all

// Set up this warp zone's destination.
simulated event ForceGenerate()
{
	if( InStr(OtherSideURL,"/") >= 0 )
	{
		// Remote level.
		//log( "Warpzone " $ Self $ " remote" );
		OtherSideLevel = None;
		OtherSideActor = None;
	}
	else
	{
		// Local level.
		OtherSideLevel = XLevel;
		foreach AllActors( class 'WarpZoneInfo', OtherSideActor )
			if( string(OtherSideActor.ThisTag)~=OtherSideURL && OtherSideActor!=Self )
				break;
		//log( "Warpzone " $ Self $ " local, connected to " $ OtherSideActor );
	}
}
It means they were trying to make portals work with remote levels, it would have been lot cool(even if cheayers would have tried to use it of course).
That's why I asked about a way to get the remote level object. Maybe a real player connection with the remote server could be of help, it could send the object from the remote server to the local machine.
p.s. I tried using "unreal://127.0.0.1#WarpZoneInfoTagHere" while having a local dedicated server opened, but it didn't work.

Thanks for the answer anyway :D

Re: Getting a remote level object

Posted: Tue Dec 12, 2017 1:12 pm
by PrinceOfFunky
I guess this could be done somehow now, since there can be access to a remote level object.

Re: Getting a remote level object

Posted: Tue Dec 12, 2017 4:00 pm
by Barbie
PrinceOfFunky wrote:I guess this could be done somehow now, since there can be access to a remote level object.
What is the aim of it? Do you want to have a "window" that shows a part of a map running on another server? Or do you just want to teleport into a map on a different server?

Re: Getting a remote level object

Posted: Tue Dec 12, 2017 11:19 pm
by PrinceOfFunky
Barbie wrote:
PrinceOfFunky wrote:I guess this could be done somehow now, since there can be access to a remote level object.
What is the aim of it? Do you want to have a "window" that shows a part of a map running on another server? Or do you just want to teleport into a map on a different server?
A Window, I know teleporting to another server is doable, but as I wrote in a previous post, WarpZoneInfo was initially intended to let you see and warp to other levels, probably outside of the server you're in.

Re: Getting a remote level object

Posted: Sat Dec 16, 2017 10:19 pm
by Barbie
PrinceOfFunky wrote:WarpZoneInfo was initially intended to let you see and warp to other levels, probably outside of the server you're in.
This would imply that the local engine has access to the brushwork of the remote map so that it knows what to display. Furthermore changing properties of non static Actors have to be transferred (replicated) from the remote server (imagine a remote cow wandering in front of the warp zone).

Re: Getting a remote level object

Posted: Sat Dec 16, 2017 10:23 pm
by JackGriffin
Yeah, you can't even get skyzones to work right. Good luck with seeing what's up on another server.