Page MenuHomeFeedback Tracker

Resolved issue of Stashes Buried under Watchtower going on Top Floor
Reviewed, NormalPublic

Description

Resolved the issue when stashes are buried under watchtowers the Underground Stash will be placed ontop of the highest available watchtower "floor". I was able to resolve this by changing the line of code in the " undergroundstash.c " file from

void PlaceOnGround()
{

		vector pos = GetPosition();
		pos[1] = GetGame().**SurfaceRoadY**(pos[0], pos[2]);
		pos[1] = pos[1] + 0.22;
		SetPosition(pos);

}

to:

void PlaceOnGround()
{

		vector pos = GetPosition();
		pos[1] = GetGame().**SurfaceY**(pos[0], pos[2]);
		pos[1] = pos[1] + 0.22;
		SetPosition(pos);

}

It seems SurfaceRoadY makes the object appear ontop of other objects where SurfaceY is actually to the map.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  • - Place bag under on ground under watchtower
  • - Do dig action on any diggable item
  • - Upon action completion, stash will spawn on the highest floor of watchtower

Event Timeline

Ronnus created this task.Nov 6 2023, 9:50 AM
Ronnus updated the task description. (Show Details)
Geez changed the task status from New to Reviewed.Nov 6 2023, 10:22 AM
Ronnus updated the task description. (Show Details)Nov 6 2023, 10:32 AM

Made a correction on the codelines. Changing from SurfaceRoadY to SurfaceY is what fixed the problem.

sileed added a subscriber: sileed.Nov 9 2023, 4:38 PM