LittleSaya / IndexOutOfRangeDSPMod

4 stars 2 forks source link

Unable to see changes of planet addtion #30

Closed GripenANM closed 1 year ago

GripenANM commented 1 year ago

So i followed the guide on using the DSP add planet mod, but even after configuration the config file,I am still unable to see changes to the save file.

<config>
    <global>
        <planets>
            <planet>
                <uniquestarid>
                    <clusterstring>The cluster string</clusterstring>
                    <star>The star name</star>
                </uniquestarid>
                <isbirthpoint>false</isbirthpoint>
                <index>4</index>
                <orbitaround>0</orbitaround>
                <orbitindex>2</orbitindex>
                <number>3</number>
                <gasgiant>false</gasgiant>
                <infoseed>0</infoseed>
                <genseed>0</genseed>
                <forceplanetradius>false</forceplanetradius>
                <radius>200</radius>
                <orbitalperiod>3600</orbitalperiod>
                <rotationperiod>3600</rotationperiod>
                <istidallocked>true</istidallocked>
                <orbitinclination>0</orbitinclination>
                <obliquity>0</obliquity>
                <dontgeneratevein>true</dontgeneratevein>
                <themeid>0</themeid>
                <orbitlongitude>0</orbitlongitude>
                <veincustom>
                    <iron>
                        <veingroupcount>
                            <type>Accurate</type>
                            <accuratevalue>10</accuratevalue>
                        </veingroupcount>
                        <veinspotcount>
                            <type>Random</type>
                            <randombasevalue>100000</randombasevalue>
                            <randomcoef>1</randomcoef>
                            <randommuloffset>0</randommuloffset>
                            <randomaddoffset>5</randomaddoffset>
                        </veinspotcount>
                        <veinamount>
                            <type>Default</type>
                        </veinamount>
                    </iron>
                </veincustom>
                <replaceallveinsto>Copper</replaceallveinsto>
            </planet>
        </planets>
    </global>
    <gamenamespecific>
        <planets>
            <planet>
                <uniquestarid>
                                       <GameName>Day_4_modified</GameName>
                                       <ClusterString>95797716-64-A99</ClusterString>
                                       <Star>Gienah</Star>
                                </uniquestarid>
                <isbirthpoint>false</isbirthpoint>
                <index>4</index>
                <orbitaround>0</orbitaround>
                <orbitindex>1</orbitindex>
                <number>9</number>
                <gasgiant>false</gasgiant>
                <infoseed>0</infoseed>
                <genseed>0</genseed>
                <forceplanetradius>false</forceplanetradius>
                <radius>200</radius>
                <orbitalperiod>3600</orbitalperiod>
                <rotationperiod>3600</rotationperiod>
                <istidallocked>true</istidallocked>
                <orbitinclination>0</orbitinclination>
                <obliquity>0</obliquity>
                <dontgeneratevein>false</dontgeneratevein>
                <themeid>0</themeid>
                <orbitlongitude>0</orbitlongitude>
            </planet>
        </planets>
    </gamenamespecific>
</config>
LittleSaya commented 1 year ago

ThemeId cannot be 0, there is a range for theme id, you can check it in README.md.

I didn't test the case sensitivity of tag name, so I'm not sure if it is ok to write all tag names in lowercase.

Currently there is no popup window to tell you what is happening if something goes wrong, but errors are logged, so you can check the BepInEx log. It's very inconvenient, I will make a dialog to show errors in future versions.

GripenANM commented 1 year ago

Ok so the problem is that

  1. my config is using all lowercase
  2. I should have to remove the global config if I am only using it for my saved files Thx for all the help