Arkathorn Posted January 16, 2016 Share Posted January 16, 2016 Does anyone know what causes this error, and how to fix it? WARNING! Could not find region 'FROMNUM' from atlas 'FROMNUM'. Is the region specified in the atlas? Looking for default texture '' from atlas 'FROMNUM'. I've seen it around in past forum posts, but no one seems to have figured out what it is. In this case, the rest of the error is this: ../mods/modname/images/names_charactername.xml LUA ERROR stack traceback: scripts/widgets/image.lua(34,1) in function 'SetTexture' scripts/screens/lobbyscreen.lua(668,1) in function 'SetPortraitImage' scripts/screens/lobbyscreen.lua(187,1) in function 'onChanged' scripts/widgets/dressuppanel.lua(413,1) in function 'onchangedfn' scripts/widgets/animspinner.lua(512,1) in function 'OnChanged' scripts/widgets/animspinner.lua(501,1) in function 'Changed' scripts/widgets/animspinner.lua(472,1) in function 'SetSelectedIndex' scripts/widgets/animspinner.lua(571,1) in function 'SetOptions' scripts/widgets/dressuppanel.lua(693,1) in function 'Reset' scripts/widgets/dressuppanel.lua(646,1) in function 'UpdateSpinners' ... scripts/widgets/widget.lua(116,1) in function 'OnControl' scripts/widgets/widget.lua(116,1) in function 'OnControl' scripts/widgets/widget.lua(116,1) in function 'OnControl' scripts/widgets/widget.lua(116,1) in function 'OnControl' scripts/widgets/widget.lua(116,1) in function 'OnControl' scripts/widgets/widget.lua(116,1) in function 'OnControl' scripts/screens/lobbyscreen.lua(465,1) in function 'OnControl' scripts/frontend.lua(329,1) in function 'OnControl' scripts/input.lua(158,1) in function 'OnControl' scripts/input.lua(358,1) The error then repeats a number of times. The error occurs when the added character's portrait is selected in the character selection screen. The assets have been freshly recompiled, without affecting the error whatsoever. Link to comment Share on other sites More sharing options...
DarkXero Posted January 16, 2016 Share Posted January 16, 2016 @Arkathorn Did you remember to load the atlas as an asset? In modmain, inside the Assets table, Asset("ATLAS", "images/names_charactername.xml"), Asset("IMAGE", "images/names_charactername.tex"), Link to comment Share on other sites More sharing options...
Arkathorn Posted January 17, 2016 Author Share Posted January 17, 2016 On 1/16/2016 at 5:53 PM, DarkXero said: Did you remember to load the atlas as an asset? Yes, the assets are loaded. Link to comment Share on other sites More sharing options...
DarkXero Posted January 18, 2016 Share Posted January 18, 2016 @Arkathorn Does your names_charactername.xml look like <Atlas><Texture filename="names_charactername.tex" /><Elements><Element name="charactername.tex" u1="0.00048828125" u2="0.85498046875" v1="0.1533203125" v2="0.9990234375" /></Elements></Atlas> ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now