Jump to content

Mod assets not loading correctly on linux.


darionco
  • Fixed

All images and animations won't load on linux, the log shows:
 

[00:00:23]: Could not load atlas ../mods/DST_CaptureTheFlag/
[00:00:23]: Could not load texture ../mods/DST_CaptureTheFlag/
[00:00:23]: AnimationFile::LoadFile Failed to open ../mods/DST_CaptureTheFlag/

as you can see the file names are missing!

 

the bug can be bypassed by doing:
 

local Assets = {
    Asset('ATLAS', 'images/ctf_crafting_tabs.xml'),
    Asset('IMAGE', 'images/ctf_crafting_tabs.tex'),
}

if not TheNet:IsDedicated() then
    RegisterPrefabs(Prefab('MOD_NAME_ASSETS', function() end, Assets, nil));
    TheSim:LoadPrefabs({ 'MOD_NAME_ASSETS' });
end

so I know the loader works and the error is somewhere else in the code.


Steps to Reproduce

Start the game in linux, look at the logs.

  • Big Ups 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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...