Jump to content

Error with NMM install script


starfire42

Recommended Posts

I keep getting the error message "Object reference not set to an instance of an object" when NMM tries to run my custom install script.

 

I'm pretty sure I've broken some rule in my install script but I've no idea what.

 

Here's the install script I'm trying to create.

 

 

 

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <moduleName>TEST-Eagle Eye Perk 0x 1x 2x 3x 4x 5x 6x 7x 10x Zoom</moduleName>
    <installSteps order="Explicit">
        <installStep name="Select Options">
            <optionalFileGroups>
                <group name="Eagleeye Perk Options" type="SelectExactlyOne">
                    <plugins order="Explicit">
                        <plugin name="Off">
                            <description>
                                <![CDATA[Turns off zoom with normal stamina cost]]>
                            </description>
                            <files>
                                <folder source="00 off\" destination="" priority="0"/>
                            </files>
                        </plugin>    
                        <plugin name="15 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 1.5x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="15 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="15 Free">
                            <description>
                                <![CDATA[Sets Zoom level to 1.5x with no stamina cost]]>
                            </description>
                            <files>
                                    <folder source="15 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="20 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 2x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="20 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="20 Free">
                            <description>
                                <![CDATA[Sets Zoom level to 2x with no stamina cost]]>
                            </description>
                            <files>
                                    <folder source="20 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="30 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 3x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="30 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="30 Free">
                            <description>
                                <![CDATA[Sets Zoom level to 3x with no stamina cost]]>
                            </description>
                            <files>
                                    <folder source="30 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="40 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 4x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="40 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="40 free">
                            <description>
                                <![CDATA[Sets Zoom level to 4x with no stamina cost]]>
                            </description>
                                <files>
                                    <folder source="40 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="50 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 5x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="50 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="50 free">
                            <description>
                                <![CDATA[Sets Zoom level to 5x with no stamina cost]]>
                            </description>
                            <files>
                                    <folder source="50 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="60 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 6x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="60 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="60 free">
                            <description>
                                <![CDATA[Sets Zoom level to 6x with no stamina cost]]>
                            </description>
                            <files>
                                    <folder source="60 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>                    
                        </plugin>
                        <plugin name="70 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 7x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="70 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="70 free">
                            <description>
                                <![CDATA[Sets Zoom level to 7x with no stamina cost]]>
                            </description>
                            <files>
                                    <folder source="70 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="100 cost">
                            <description>
                                <![CDATA[Sets Zoom level to 10x with normal stamina cost]]>
                            </description>
                            <files>
                                    <folder source="100 cost\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                        <plugin name="100 free">
                            <description>
                                <![CDATA[Sets Zoom level to 10x with no stamina cost]]>
                            </description>
                            <files>
                                    <folder source="100 free\" destination="" priority="0"/>
                            </files>
                            <typeDescriptor>
                                <type name="Optional"/>
                            </typeDescriptor>
                        </plugin>
                    </plugins>
                </group>
            </optionalFileGroups>
        </installStep>
    </installSteps>
</config>

 

And here's the folder structure

 

 

|   Eagle Eye-readme.txt
|   
+---00 off
|       EagleEye0x.esp
|       
+---100 cost
|       EagleEye10x.esp
|       
+---100 free
|       EagleEye10xFree.esp
|       
+---15 cost
|       EagleEye1.5x.esp
|       
+---15 free
|       EagleEye1.5xFree.esp
|       
+---20 cost
|       EagleEye2x.esp
|       
+---20 free
|       EagleEye2xFree.esp
|       
+---30 cost
|       EagleEye3x.esp
|       
+---30 free
|       EagleEye3xFree.esp
|       
+---40 cost
|       EagleEye4x.esp
|       
+---40 free
|       EagleEye4xFree.esp
|       
+---50 cost
|       EagleEye5x.esp
|       
+---50 free
|       EagleEye5xFree.esp
|       
+---60 cost
|       EagleEye6x.esp
|       
+---60 free
|       EagleEye6xFree.esp
|       
+---70 cost
|       EagleEye7x.esp
|       
+---70 free
|       EagleEye7xFree.esp
|       
\---fomod
        ModuleConfig.xml

 

(yes, I know it's for somebody else's mod, but I have no intention of publishing it myself)

Link to comment
Share on other sites

Try getting rid of the Backslashes at the end of all of the folder names.

Edited by MShoap13
Link to comment
Share on other sites

Okay, I found the problem, and it turns out to be an incomplete xml header. I omitted the xsi:noNamespaceSchemaLocation section (as the one guide I could find said that might be optional). The full xml header should actually be:

 

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://qconsulting.ca/fo3/ModConfig5.0.xsd">

 

Hope this helps anybody else out there having install script problems.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...