Author Topic: Base.xml (SoftwareTypes)  (Read 1558 times)

0 Members and 1 Guest are viewing this topic.

March 21, 2018, 10:58:30 AM
Read 1558 times

hasezoey

  • *
  • Information
  • Newbie
  • Posts: 2
    • View Profile
in the Base.xml is it not allowed to make <Feature From="">?, i get the Error:
Code: [Select]
Error checking for software type errors: System.NullReferenceException: Object reference not set to an instance of an object
 at GameData.CheckForErrors (.SoftwareType[] types) [0x00000] in <filename unknown>:0

Makeing Something like:
Code: [Select]
<Features>
  <Feature>
    <Name>Support</Name>
    <Category>System</Category>
    <Description>Let the Users create Bug Reports</Description>
    <DevTime>1</DevTime>
    <Innovation>0</Innovation>
    <Usability>2</Usability>
    <Stability>6</Stability>
    <Server>0.00001</Server>
    <CodeArt>0.9</CodeArt>
  </Feature>
  <Feature>
    <Name>Manuals</Name>
    <Category>Writing</Category>
    <Unlock>1970</Unlock>
    <Description>How to Use this thing, Physical</Description>
    <DevTime>1.5</DevTime>
    <Innovation>0</Innovation>
    <Usability>3</Usability>
    <Stability>3</Stability>
    <CodeArt>0</CodeArt>
  </Feature>
  <Feature>
    <Name>Digital-Manuals</Name>
    <Category>Writing</Category>
    <Unlock>1990</Unlock>
    <Description>How to Use this thing, Digital</Description>
    <DevTime>1.5</DevTime>
    <Innovation>0</Innovation>
    <Usability>3</Usability>
    <Stability>3</Stability>
    <CodeArt>0.3</CodeArt>
  </Feature>
  <Feature>
    <Name>Updates</Name>
    <Category>Network</Category>
    <Unlock>1990</Unlock>
    <Description>Users can Download Updates (Manually)</Description>
    <DevTime>3</DevTime>
    <Innovation>1</Innovation>
    <Usability>3</Usability>
    <Stability>7</Stability>
    <CodeArt>1</CodeArt>
    <Server>0.0001</Server>
  </Feature>
  <Feature Vital="TRUE" From="Updates"><!--Currently not working-->
    <Name>Automatic Updates</Name>
    <Category>Network</Category>
    <Unlock>1995</Unlock>
    <Description>Automaticly Download the newest Version of it</Description>
    <DevTime>3.5</DevTime>
    <Innovation>4</Innovation>
    <Usability>6</Usability>
    <Stability>8</Stability>
    <CodeArt>1</CodeArt>
    <Server>0.0005</Server>
  </Feature>
</Features>
« Last Edit: March 24, 2018, 08:09:15 AM by hasezoey »

March 24, 2018, 01:11:35 AM
Reply #1

Pentium4

  • *
  • Information
  • Newbie
  • Posts: 2
    • View Profile
Code: [Select]
<Feature>
    <Name>Updates</Name>
    <Category>Network</Category>
    <Unlock>1990</Unlock>
    <Description>Users can Download Updates (Manually)</Description>
    <DevTime>3</DevTime>
    <Innovation>1</Innovation>
    <Usability>3</Usability>
    <Stability>7</Stability>
    <CodeArt>1</CodeArt>
    <Server>0.0001</Server>
  </Feature>
  <Feature Vital="TRUE" From="Updates"> <!--Without the "From" tag, it works-->
    <Name>Automatic Updates</Name>
    <Category>Network</Category>
    <Unlock>1995</Unlock>
    <Description>Automaticly Download the newest Version of it</Description>
    <DevTime>3.5</DevTime>
    <Innovation>4</Innovation>
    <Usability>6</Usability>
    <Stability>8</Stability>
    <CodeArt>1</CodeArt>
    <Server>0.0005</Server>
  </Feature>
The whole modding process in this is quite buggy i cant even get the unlock dates to work yet but i can try to help
Instead i would try something like this
Code: [Select]
<Features>
<Feature>
       <Name>Updates</Name>
       <Category>Network</Category>
      <Unlock>1990</Unlock>
       <Description>Users can manually download updates</Description>
      <DevTime>3</DevTime>
      <Innovation>1</Innovation>
       <Usability>3</Usability>
      <Stability>7</Stability>
       <CodeArt>1</CodeArt>
      <Server>0.001</Server>
  </Feature>
  <Feature Vital="TRUE" From="Updates"> <!--Without the "From" tag, it works-->
      <Name>Automatic Updates</Name>
      <Category>Network</Category>
      <Unlock>1995</Unlock>
      <Description>Automaticly Download the newest Version of it</Description>
       <DevTime>3.5</DevTime>
       <Innovation>4</Innovation>
       <Usability>6</Usability>
       <Stability>8</Stability>
       <CodeArt>1</CodeArt>
       <Server>0.003</Server>
</Feature>
</Features>

March 24, 2018, 08:19:03 AM
Reply #2

hasezoey

  • *
  • Information
  • Newbie
  • Posts: 2
    • View Profile
I tryed it with this ... but it all works fine, when removeing the "From" tag (The From does work in the normal SoftwareTypes, but not in the Base.xml)