Cool VL Viewer forum
http://sldev.free.fr/forum/

Custom colors_base.xml not working
http://sldev.free.fr/forum/viewtopic.php?f=4&t=2612
Page 1 of 1

Author:  g0rd0ngrfr33mailgr [ 2024-12-16 11:30:11 ]
Post subject:  Custom colors_base.xml not working

Hello!

Since the subfolder skins was renamed to cvlv-skins, using a custom colors_base.xml file, put in ~/.secondlife/cvlv-skins/custom, doesn't work. I thought something had changed in the file's format, but it hasn't, instead I see that the "custom" option in the viewer's skin preferences is greyed out. However, if I link cvlv-skins to skins, then it does work. Perhaps you forgot to update something?

Thanks!

EDIT: I'm adding my own file, so you can test.

Attachments:
colors_base-jimmy.tar.gz [4.1 KiB]
Downloaded 443 times

Author:  Henri Beauchamp [ 2024-12-16 11:47:31 ]
Post subject:  Re: Custom colors_base.xml not working

Good catch.

It's due to a missing change in LLDir::hasSkin(). If you compile the viewer yourself, you can change the latter (in linden/indra/llfilesystem/lldir.cpp, lines 288+) to read:
Code:
bool LLDir::hasSkin(const char* skin_folder) const
{
   std::string colors = LL_DIR_DELIM_STR;
   colors.append(skin_folder);
   colors.append(LL_DIR_DELIM_STR "colors_base.xml");
   return LLFile::exists(mAppRODataDir + LL_DIR_DELIM_STR "skins" + colors) ||
         LLFile::exists(mOSUserAppDir + LL_DIR_DELIM_STR "cvlv-skins" +
                    colors);
}

Fixed for next release.

As a workaround, in the mean time, and since this is just a test issue, you can add an empty "skins/custom/colors_base.xml" file (i.e. in the old path) to "fool" the viewer.

Author:  g0rd0ngrfr33mailgr [ 2024-12-16 11:51:46 ]
Post subject:  Re: Custom colors_base.xml not working

Thanks! You're the best!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/