• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

[Help] change the color of the tier bar

qualityinfo.xml
it gives me this error
 

2021-05-29T01:19:24 41.655 ERR XML loader: Loading and parsing 'qualityinfo.xml' failed
2021-05-29T01:19:24 41.656 EXC Index was outside the bounds of the array.
IndexOutOfRangeException: Index was outside the bounds of the array.
at QualityInfo.Add (System.Int32 _key, System.String _hexColor) [0x0000c] in <8676d591e24b4790910cdee451580eac>:0
at QualityInfoFromXml+<CreateQualityInfo>d__0.MoveNext () [0x000be] in <8676d591e24b4790910cdee451580eac>:0
at ThreadManager+<CoroutineWrapperWithExceptionCallback>d__40.MoveNext () [0x00044] in <8676d591e24b4790910cdee451580eac>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Logger:masterLogException(Exception)
Logger:Exception(Exception)
Log:Exception(Exception)
<>c__DisplayClass53_0:<loadSingleXml>b__2(Exception)
<CoroutineWrapperWithExceptionCallback>d__40:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)


It will be that I have something wrong in the XML

Code:
<WeedMen420>
    <append xpath="/qualityinfo">
        <quality key="7"  color="2980B9" />
    </append>
</WeedMen420>
 
I have no idea about this but am going to take an educated guess.

You said you wanted to change the color.

This is the colors I see.

<?xml version="1.0" encoding="utf-8"?>
<qualityinfo>
  <!--Broken-->

    <quality key="0" color="808080"/>
  <!--Junk -->
    <quality key="1" color="9C8867"/>
  <!--Common-->
    <quality key="2" color="CF7F29"/>
  <!--Uncommon-->
    <quality key="3" color="A2A41B"/>
  <!--Rare-->
    <quality key="4" color="42C234"/>
  <!--Epic-->
    <quality key="5" color="315DCE"/>
  <!--Legendary-->
    <quality key="6" color="A42ACC"/>
</qualityinfo>

The colors go up to level 6 items.

You have key="7"

To me that is not changing a color but adding one.

A proper modder will be able to confirm or deny this easily so am sure one will be along momentarily.

 
You are able to change the colour of the 6 tiers, but you cannot add an additional quality tier without modifying the game files.

 
Back
Top