enenra / space-engineers-utilities

A Blender 4.0+ addon to streamline working on assets for Space Engineers.
https://spaceengineers.wiki.gg/wiki/Modding/Tools/Space_Engineers_Utilities
GNU General Public License v3.0
47 stars 12 forks source link

Errors when converting textures #327

Closed Ksandr0 closed 1 year ago

Ksandr0 commented 2 years ago

Describe the bug I'm trying to install the module. I set the path to the game folder. I created a folder for assets and specified it in the settings (C:\seassets ). When I press the "Update Textures from Game Files" button, errors appear in the console.

Example: ERROR - C:\seassets\Textures\Particles\Smoke_SpriteSheet_A_90f_Shrink.TIF b'\x91\xa8\xe1\xe2\xa5\xac\xa5 \xad\xa5 \xe3\xa4\xa0\xa5\xe2\xe1\xef \xad\xa0\xa9\xe2\xa8 \xe3\xaa\xa0\xa7\xa0\xad\xad\xeb\xa9 \xaf\xe3\xe2\xec.\r\n'

That: "Системе не удается найти указанный путь." (google translate: "The system cannot find the specified path.")

To Reproduce Steps to reproduce the behavior:

  1. Go to Edit --> Preferences... --> Add-ons
  2. Click on expand menu module
  3. Set gamedir, assets dir, havok dir, install additions.
  4. Open console
  5. Click "Update Textures from Game Files" : https://imgur.com/0enmSD4.png
  6. Errors in console: https://imgur.com/3FRNw6N.png

Expected behavior I expect the textures import to pass without error.

Screenshots https://imgur.com/0enmSD4.png https://imgur.com/3FRNw6N.png

Versions (please complete the following information):

Additional context Windows 11

enenra commented 2 years ago

Hi, thanks for the report!

I'm honestly not quite sure what to make of this. Regarding this:

"Системе не удается найти указанный путь." (google translate: "The system cannot find the specified path.")

Do you mean that the "\xe3" etc translate to that cyrillic phrase? Or that that cyrillic phrase is shown elsewhere?

Ksandr0 commented 2 years ago

I used this to convert bytes ("\x91\xa8\xe1\xe2....") to string: https://pythonbaba.com/python-bytes-to-string-online/ https://imgur.com/GqsCIYo.png

I got the message "Системе не удается найти указанный путь."

enenra commented 2 years ago

Honestly I have no idea about this one. Could you check whether the image paths it lists in the console actually exist on your end?

Also please test it with the latest beta version.

Ksandr0 commented 2 years ago

Sorry for delay.

I tried it with 1.0.0-beta.5, the problem is still there.

There are no listed files in the target folder - C:\seassets\Textures\Particles\Smoke_SpriteSheet_A_90f_Shrink.TIF, for example.

There are files in the game folder, in the "Content" subdirectory - C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Textures\Particles\Smoke_SpriteSheet_A_90f_Shrink.dds

enenra commented 2 years ago

Unfortunately I have no idea how to go about fixing it since I can't reproduce it on my end.

The only thing I can think of atm is to circumvent the entire thing by using the old BulkTexture converter that was used before I integrated the functionality into SEUT itself: https://github.com/AtlasTheProto/SETextureConverter

enenra commented 1 year ago

With no further activity on this issue for quite a while, I'm going to close it.

Please let me know if there are any further developments.