OpenNaja / cobra-tools

A suite of GUI tools for extracting and modifying OVL and OVS archives, as well as editing the associated in-house file formats. Also includes a model plugin for Blender. For downloads, guides, and FAQs visit:
https://opennaja.github.io/cobra-tools/
GNU General Public License v3.0
98 stars 28 forks source link

png to Voxelskirt not working #268

Closed ilodev closed 1 year ago

ilodev commented 1 year ago

Describe the bug I'm testing this on PZ but chances are it affects all vxl due to this being new code for all now.

To Reproduce Steps to reproduce the behavior:

  1. Open Planet Zoo\win64\ovldata\Content0\Environment\Terrain\Biomes\Desert\Desert_SouthAmerica\Desert_SouthAmericaSkirt\Desert_SouthAmericaSkirt.ovl
  2. Extract Voxelskirt
  3. Modify material01.png
  4. Inject Voxelskirt
  5. Save OVL file
  6. Open another ovl file, any
  7. Open Planet Zoo\win64\ovldata\Content0\Environment\Terrain\Biomes\Desert\Desert_SouthAmerica\Desert_SouthAmericaSkirt\Desert_SouthAmericaSkirt.ovl again
  8. export voxelskirt

Expected behavior textures should be like the original or modified, but we get a maximized version of an area from the png

Screenshots image

image

Log Files: ovl_tool_gui.log

ilodev commented 1 year ago

This is the texture I injected image

this is the preview in explorer (looks like it has been spritted) image

This is what the exported texture looks like in paint image

ilodev commented 1 year ago

Also the map loads without apparent changes, since these are probably all material brush textures.

ilodev commented 1 year ago

This bug only affects byte-sized layers, aka material pngs, and only if I edit them. The heithmap is stored correctly and works just fine althought a tiff image isn't really a usable format for this layer specs.