Jump to content

Recommended Posts

Hello, does anyone possibly know what could be causing the game engine to crash when trying to replace a creep's texture with a mod?
It seems the texture format is completely identical to the original, and I also removed transparency. What could be the reason?

The option with complete disabling of creep is being considered, however, if there is an option with simple hiding, that would be ideal.

 

Assets = {
    Asset("TEXTURE", "images/invisibletile_noise.tex"),
    Asset("TEXTURE", "images/invisibletile.tex"),
}


local GroundTiles = require "worldtiledefs"

for i, data in ipairs(GroundTiles.creep) do
    -- GroundTiles.creep[i][2].name = "dirt"
    -- GroundTiles.creep[i][2].atlas = resolvefilepath("images/invisibletile.xml") 
    -- GroundTiles.creep[i][2].texture_name = resolvefilepath("images/invisibletile.tex")
    GroundTiles.creep[i][2].noise_texture = resolvefilepath("images/invisibletile_noise.tex")
end



Log

[00:08:34]: Assert failure 'mNoiseTexture != INVALID_RESOURCE_HANDLE' at ..\source\game\level\MapLayerRenderData.cpp(105): Trace follows...

[00:08:34]: APP:Klei//DoNotStarveTogether/donotstarvetogether_client.dmp written.


DXT1 texture format
Изображение

donotstarvetogether_client.dmp

Edited by kipper0k
Link to comment
https://forums.kleientertainment.com/forums/topic/170038-creep-retexture/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...