The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Map Update on Custom Teleport

General modding guides and authoring tutorials.
Post Reply
User avatar
arcain782
Posts: 10
Joined: Fri Sep 06, 2019 5:06 am
Location: Goodsprings

Map Update on Custom Teleport

Post by arcain782 » Sun Jun 14, 2020 4:53 am

I am using the trainquest script to mod a teleporter on the Mothership Zeta between wastelands. I wanted to do it right to keep game from breaking. Seems to be working properly with one issue: When arriving in DC, map is stuck on NV. Going from DC to NV is fine, map changes to from DC to NV. Return trip, map stuck on NV.

Here is the code I used (Appreciate any help on anything else I may be missing here):

Code: Select all

scn TTWMZCTripActivatorScript

Begin OnActivate Player
	
	if bInDCWasteland == 0
		showmessage TTWMZCTravelNVtoDC
	else
		showmessage TTWMZCTravelDCtoNV
	endif

End

Begin GameMode

if GetButtonPressed == 1
	Playsound DRSDLC05TeleporterClose

	if bInDCWasteland

		Player.MoveTo TTWNVTrainEngineXMarker
		SetLastExtDoorActivated TTWUnionAPStationDoorREF
            	set bInNVWasteland to 1
		call TTWFNDisableDCWasteland
		call TTWFNEnableNVWasteland
              	set TTWWorldLocation to 512
		
	elseif bInNVWasteland
		
		Player.MoveTo OlympusToPoseidonisTeleporterREF
		SetLastExtDoorActivated OlympusToPoseidonisTeleporterREF
		set bInDCWasteland to 1
              	set TTWWorldLocation to 3
		call TTWFNDisableNVWasteland
		call TTWFNEnableDCWasteland
	endif

		EnablePlayerControls 1 1 1 1 1 1 1
		Activate Player 0
	endif

End


User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

Re: Map Update on Custom Teleport

Post by RoyBatty » Sun Jun 14, 2020 4:52 pm

Is your teleporter going to an interior?

As long as you set last door activated it should update the map.
Image

User avatar
arcain782
Posts: 10
Joined: Fri Sep 06, 2019 5:06 am
Location: Goodsprings

Re: Map Update on Custom Teleport

Post by arcain782 » Sun Jun 14, 2020 5:40 pm

RoyBatty wrote:
Sun Jun 14, 2020 4:52 pm
Is your teleporter going to an interior?

As long as you set last door activated it should update the map.
Hmm, That's probably my issue then. The destination is a cell added by a mod which I believe is in the Mothership Zeta worldspace.

In game, I tried beaming down to Capital Wasteland and entering and then exiting an interior there hoping that would update the map. It did not, the NV world map persisted even though I was in DC with DC radio stations listed.

EDIT: Im an idiot for not realizing lastEXTdoorActivated has to be an exterior ref... Ill try setting that to the teleporter at the alien crash site. Still surprised entering in and out of interiors/exteriors (Rivet City) didn't update the map during gameplay afterwards..

EDIT2: Correcting the last accessed exterior door ref solved this problem. World maps now update correctly Thanks :D

Post Reply