Frictional Games Forum (read-only)
[CHAOS] The only spooky thing here is errors - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [CHAOS] The only spooky thing here is errors (/thread-53382.html)

Pages: 1 2


RE: The only spooky thing here is errors - CarnivorousJelly - 12-11-2016

Ugh I feared as much, thanks for letting me know!

Edit Clean installation didn't fix the issues with the textures. You can see the weirdness here:
[video=youtube]https://youtu.be/6WDCyNPcB2k[/video]


RE: The only spooky thing here is errors - CarnivorousJelly - 12-13-2016

The issue with planes has been fixed! Well..... a workaround has been discovered!
Basically, what it boils down to is a glitch in how the plane aligns the UV texture (see below)
Spoiler below!

Code:
// Normal Plane

<Corner1UV="0 2" Corner2UV="0 0" Corner3UV="2 0" Corner4UV="2 2" EndCorner="4 0 4" Rotation="0 0 0" Scale="1 1 1" StartCorner="0 0 0" Tag="" TextureAngle="0" TileAmount="0.5 0.5 0.5" TileOffset="0 0 0" WorldPos="8 0 -8" />

// Broken Plane

<Corner1UV="2 -4" Corner2UV="0 -3.99999" Corner3UV="1.23103e-005 -1.99999" Corner4UV="2.00001 -2" EndCorner="0 4 4" Rotation="0 0 0" Scale="1 1 1" StartCorner="0 0 0" Tag="" TextureAngle="0" TileAmount="0.5 0.5 0.5" TileOffset="0 0 0" WorldPos="8 0 -8" />

The two planes use the same texture, same scaling and texture angle, and the planes are in the exact same spot/rotation on the map for convenience sake. I omitted the extraneous details such as ID, plane name, material file, etc for easier reading. You can see the edges of the UV textures line up with different corners on the broken plane than they do on the normal one. I don't think different numbers are a problem, but having negatives instead of positives probably is.

For anyone else dealing with this incredibly annoying thing, I'm so sorry. The solution's not a quick fix
1 - Select your entire map and export it. The whole thing. Don't group it first, the grouping thing gets super glitchy with large numbers of objects (or if you press ctrl+z too many times)!
2 - Create a new map in HPL2, check whether your plane texture works there
3 - If yes, WOOHOO!
3.5 - If no, start a new document immediately and repeat these steps.
4 - Import your map, use the uncontaminated plane you created in step 2 to start replacing the contaminated ones
5 - Celebrate your victory over this nightmare glitch


RE: The only spooky thing here is errors - Daemian - 12-14-2016

Gj!
Two questions:
1. Can't you just edit the .map file instead? On every e- value you put an integer and save.
2. Why others can open this map and not experience this problem?


RE: The only spooky thing here is errors - CarnivorousJelly - 12-16-2016

Two answers!

1. I haven't found a way to use text replacement that efficiently and the corner numbers wouldn't necessarily be the same (as seen above, 2 -4 becomes 0 2 when fixed). I believe part of the reason the problem became so extensive was I duplicated the plane to make new walls rather than create new ones.

2. Others experience the problem when they open the map. I sent an early iteration to Streetboat to see if he had the same problem. The textures worked just fine for him on other maps, but not on the one I had.