Jump to content

Disabling basetexture generation


Recommended Posts

I need to disable the automatic basetexture regeneration when something is changed on the map, but only in certain cases.

My workflow involves editing the automaticly generated terrain level_basetex.dds file to make the terrain more individual and detailed and as a workaround I just set the file to write protected, the problem is if you distribute the game to other platforms the permissions are not kept, so I need a new method now, any ideas?

Link to comment
Share on other sites

You just need to copy an existing variable like this. You can create a new protected boolean variable mUpdateTexture to the class, initialize it with true here and add the field here. Then change this line to:

if ( Platform::compareModifiedTimes( baseCachePath, mTerrFileName ) < 0 && mUpdateTexture )


EDIT: You also need to read/write the mUpdateTexture variable to the network stream (TerrainBlock::packUpdate() & TerrainBlock::unpackUpdate())

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...