Failware
Recruit
Summary:
Painting on a resized terrain node crashes the Scene Editor to desktop. This happens on the 1.7.2 beta branch (EDIT: also 1.7.2 main, 1.8.0 beta, 1.9.0 beta).
This may be related to the now very old bug reported in this thread, but is much more specific and thus hopefully warrants a timely inspection.
How to Reproduce (at least on 1.7.2 beta branch (EDIT: also 1.7.2 main, 1.8.0 beta, 1.9.0 beta):
Sometimes the crash reporter dialogue shows up but crashes to desktop after confirming or declining, but usually it does not show up and goes straight to the desktop.
dnSpy shows an unhandled
Behaviour on an actual map:
In an old scene which I started in 1.7.0, painting on resized nodes also does not work as intended, but does not cause a crash (both when I was using 1.7.0 and now when using 1.7.2 beta branch (EDIT: also 1.7.2 main, 1.8.0 beta). I suspect this is caused by the same underlying problem.
Why it matters:
A scene I'm working on has 16x16 nodes and I need a resolution of 512x512 on a few nodes (see the hill above) for enough terrain detail. The other nodes are resized.
This results in reasonable load time, save time (~7s), and file sizes (7MB
Having 512x512 resolution on all nodes results in unreasonable load time, save time (~33s), and file sizes (70MB
Resizing is also actively encouraged in the Taleworlds Documentation and on the forums and practically required to be able to have more than a few paint layers.
So as long as this bug exists, I cannot reasonably finish my map.
Specific Tool: Scene Editor
Media (Screenshots & Video):
Computer Specs:
OS: Windows 10 Home, 64-bit
GPU: NVIDIA GeForce RTX 2070 SUPER
GPU Driver Version: 512.15
CPU: Intel i5-12600K
RAM: 16GB (DDR4)
Motherboard:
Storage Device (HDD/SSD): SSD
Painting on a resized terrain node crashes the Scene Editor to desktop. This happens on the 1.7.2 beta branch (EDIT: also 1.7.2 main, 1.8.0 beta, 1.9.0 beta).
This may be related to the now very old bug reported in this thread, but is much more specific and thus hopefully warrants a timely inspection.
How to Reproduce (at least on 1.7.2 beta branch (EDIT: also 1.7.2 main, 1.8.0 beta, 1.9.0 beta):
- On the empty default scene (displayed on startup), create terrain with default properties (4x4, 64x64 resolution, etc.) and default base layer.
- Resize a node to 32x32.
- OPTIONAL: Deselect the resized node, select the resized node again and resize it back to 64x64. (To notice that the resizing is the problem, not the resolution itself.)
- Add a new terrain layer (
default_1
). - Painting
default_1
on any unresized node works as expected. - Painting
default_1
on the resized node crashes to desktop.
Sometimes the crash reporter dialogue shows up but crashes to desktop after confirming or declining, but usually it does not show up and goes straight to the desktop.
dnSpy shows an unhandled
System.AccessViolationException
:Behaviour on an actual map:
In an old scene which I started in 1.7.0, painting on resized nodes also does not work as intended, but does not cause a crash (both when I was using 1.7.0 and now when using 1.7.2 beta branch (EDIT: also 1.7.2 main, 1.8.0 beta). I suspect this is caused by the same underlying problem.
- Painting manually works only inside the middle nodes.
- Painting outside the middle nodes only shows up at the node edges (e.g. the thin brown line going from the selected node diagonally to the lower right corner of the screenshot).
- Importing a material map works and applies the layer "correctly". But the next time the game is started, the outside part is gone already or it disappears as soon as I paint on the node.
- The middle nodes are each 512x512 (original size).
- The nodes just outside the middle nodes are 256x256 and the others between 512x512 and 64x64.
- The scene has 16x16 nodes with 172m size each.
Why it matters:
A scene I'm working on has 16x16 nodes and I need a resolution of 512x512 on a few nodes (see the hill above) for enough terrain detail. The other nodes are resized.
This results in reasonable load time, save time (~7s), and file sizes (7MB
terrain.bin
).Having 512x512 resolution on all nodes results in unreasonable load time, save time (~33s), and file sizes (70MB
terrain.bin
).Resizing is also actively encouraged in the Taleworlds Documentation and on the forums and practically required to be able to have more than a few paint layers.
So as long as this bug exists, I cannot reasonably finish my map.
Specific Tool: Scene Editor
Media (Screenshots & Video):
Computer Specs:
OS: Windows 10 Home, 64-bit
GPU: NVIDIA GeForce RTX 2070 SUPER
GPU Driver Version: 512.15
CPU: Intel i5-12600K
RAM: 16GB (DDR4)
Motherboard:
Storage Device (HDD/SSD): SSD
Last edited: