Author Topic: Problem with the Code on my new mod  (Read 2634 times)

0 Members and 1 Guest are viewing this topic.

March 03, 2017, 03:30:11 AM
Read 2634 times

mzb0038

  • *
  • Information
  • Member
  • Posts: 6
    • View Profile
So anyway after a week of work I have this error. The mod is a total conversion Hardare mod that allows players to set up hardware companies like dell and HP. This is the error message http://steamcommunity.com/sharedfiles/filedetails/?id=876042357
I have spent a week trying to figure out the issue. I have spent a week doing various bug fixing and research and now I need help.
« Last Edit: March 03, 2017, 05:36:03 PM by mzb0038 »

March 03, 2017, 10:02:08 AM
Reply #1

rremo

  • *
  • Information
  • Member
  • Posts: 14
    • View Profile
This is the error message.


The first IMG doesnt exist.
IMG fixed.

March 03, 2017, 08:29:49 PM
Reply #2

pokmon987

  • *
  • Information
  • Member
  • Posts: 105
  • Misk Creator and "Lead" for The Hybrid Project
    • View Profile
Thank you very much to rremo, and time to get into the helping part...

Code: [Select]
<SoftwareType>
 <Name>Printer</Name>
 <Category>Printer</Category>
 <Description>Electronic devices, such as these wonderful robot scribes, are used everday for modern life</Description>
 <Random>0.3</Random>
 <Categories>
  <Category Name="Electronics">
   <Description>This handy device can spit words and images on paper, and is used in everday homes, offices, and schools</Description>
   <Popularity>0.8</Popularity>
   <Retention>0.7</Retention>
   <TimeScale>0.6</TimeScale>
   <Iterative>0.7</Iterative>
   <NameGenerator>names</NameGenerator>
  </Category>
 </Categories>
 <OSSpecific>False</OSSpecific>
 <OneClient>False</OneClient>
 <InHouse>False</InHouse>
 <Features>
  <Feature Forced="True">
   <Name>Dot Matrix Printer</Name>
   <Description>The first digital printer</Description>
   <DevTime>4</DevTime>
   <Innovation>5</Innovation>
   <Usability>5</Usability>
   <Stability>4</Stability>
   <CodeArt>0.6</CodeArt>
   <Category>Physical</Category>
   <Unlock>1980</Unlock>
  </Feature>
    <Feature From="Dot Matrix Printer">
   <Name>Inkjet Printer</Name>
   <Description>Too lazy to replace text here, you can do it, sorry</Description>
   <DevTime>6</DevTime>
   <Innovation>7</Innovation>
   <Usability>5</Usability>
   <Stability>6</Stability>
   <CodeArt>0.4</CodeArt>
   <Category>Physical</Category>
   <Unlock>1993</Unlock>
  </Feature>
  <Feature From="Inkjet Printer">
   <Name>Laser Inkjet Printer</Name>
   <Description>Too lazy to replace text here, you can do it, sorry</Description>
   <DevTime>8</DevTime>
   <Innovation>7</Innovation>
   <Usability>5</Usability>
   <Stability>6</Stability>
   <CodeArt>0.4</CodeArt>
   <Category>Physical</Category>
   <Unlock>1998</Unlock>
  </Feature>
  <Feature>
   <Name>Fine Inkjet Printer</Name>
   <Description>Too lazy to replace text here, you can do it, sorry</Description>
   <DevTime>7</DevTime>
   <Innovation>7</Innovation>
   <Usability>5</Usability>
   <Stability>6</Stability>
   <CodeArt>0.4</CodeArt>
   <Category>Physical</Category>
   <Unlock1991</Unlock>
   <Dependency Software="Printer">Inkjet Printer</Dependency>
  </Feature>
    <Feature>
   <Name>Mechanical Key Interface</Name>
   <Description>Too lazy to replace text here, you can do it, sorry</Description>
   <DevTime>3</DevTime>
   <Innovation>6</Innovation>
   <Usability>5</Usability>
   <Stability>5</Stability>
   <CodeArt>0.8</CodeArt>
   <Category>Physical</Category>
   <Unlock1982</Unlock>
   <Dependency Software="Printer">Dot Matrix Printer</Dependency>
  </Feature>
    <Feature>
   <Name>Digital Key Interface</Name>
   <Description>Too lazy to replace text here, you can do it, sorry</Description>
   <DevTime>3</DevTime>
   <Innovation>6</Innovation>
   <Usability>5</Usability>
   <Stability>5</Stability>
   <CodeArt>0.8</CodeArt>
   <Category>Physical</Category>
   <Unlock1991</Unlock>
   <Dependency Software="Printer">Mechanical Key Interface</Dependency>
  </Feature>
 

This should work. I'm unable to test it, as I wrote this entire thing on my phone, but. Firstly, forced and from, along with research and vital are put within the feature statements. Second, Category is spelled Category. Third, I believe that the capitalization matters. Fourth, with one category, I don't think you need to make the category to the software categories. That was worded weird, but I'm kinda rushing, sorry. You can hopefully see the rest within the code I wrote.

March 03, 2017, 09:26:36 PM
Reply #3

mzb0038

  • *
  • Information
  • Member
  • Posts: 6
    • View Profile
I wish to thank everyone who helped espically rremo. and thank you pokemon987

March 04, 2017, 02:41:44 AM
Reply #4

mzb0038

  • *
  • Information
  • Member
  • Posts: 6
    • View Profile
Well I did the fixes and I reworte the code. I finalled traced back the error to the <Category Name="Printer"> line. The name is in red. I am not sure how to post screenshots; Everytime I post the URL with my ss software it goes to the error message page unavailable. However it seems to be an error with that line of code.

March 04, 2017, 03:59:55 PM
Reply #5

mzb0038

  • *
  • Information
  • Member
  • Posts: 6
    • View Profile
I still have the nonexsitant category error and I still have the error on line 7. Here is the code. https://gyazo.com/4330a3578576a52ff5cef0244ff63616
https://gyazo.com/2cf0a2de5f1083201fbf510a987abf57

March 04, 2017, 07:40:12 PM
Reply #6

pokmon987

  • *
  • Information
  • Member
  • Posts: 105
  • Misk Creator and "Lead" for The Hybrid Project
    • View Profile
Could you copy all the code and paste it onto here? I'd be able to find out what's wrong easier that way, rather than looking at pictures

March 04, 2017, 07:47:15 PM
Reply #7

rremo

  • *
  • Information
  • Member
  • Posts: 14
    • View Profile
Or maybe on a pastbin service like pastebin.com.

March 04, 2017, 11:43:40 PM
Reply #8

mzb0038

  • *
  • Information
  • Member
  • Posts: 6
    • View Profile
<SoftwareType>
   <Name>Printer</Name>
      <Category>Printer</Category>
            <Description>Used in printing out doctuments and a verity of other paper items used in homes, schools, or businesses</Description>
            <Random>.3</Random>
            <Categories>
               <Category Name="Printer">
                  <Description>Miracle robot scribes which spit out thousandes of documents. These eletronic tireless workers do this important workers for homes, schools, and businesses.</Description>
                  <popularity>.8</popularity>
                  <retintion>.7</retintion>
                  <TimeScale>.6</TimeScale>
                  <Iterative>.7</Iterative>
                  <NameGenerator>Names</NameGenerator>
            </Category>
         </Categories>
            <OSSSpefic>False</OSSSpefic>
            <OneClient>False</OneClient>
            <InHouse>False</InHouse>      
   <Features>
      <FeatureForced="True">
   <Feature>
         <Name>Mechanical Key Interface</Name>
            <Description>Mechanical Keys with a 2 color screen</Description>
            <DevTime>3</DevTime>
            <innovation>6</innovation>
            <usability>5</usability>
            <stability>5</stability>
            <CodeArt>.8</CodeArt>
            <Category>Physical</Category>
            <Unlock>1980</Unlock>
            <DependencySoftware="Printer">Dot Matritx Printer</ependencySoftware>
            
   </Feature>
   <Feature>
         <Name>Digital Key Interface</Name>
            <FeatureFrom="Mechanical Key Interface">
            <Description>Digital Keys with a 4 color screen</Description>
            <DevTime>4</DevTime>
            <innovation>6</innovation>
            <usability>5</usability>
            <stability>5</stability>
            <CodeArt>.8</CodeArt>
            <Category>Physical</Category>
            <Unlock>1993</Unlock>
            <DependencySoftware="Printer">Injet Printer</ependencySoftware>
   </Feature>
   <Feature>
         <FeatureForced="True">
         <Name>Dot matrix Printer</Name>
            <Description>The first digital printer</Description>
            <DevTime>4</DevTime>
            <innovation>5</innovation>
            <usability>5</usability>
            <stability>4</stability>
            <CodeArt>.6</CodeArt>
            <Catagory>Printer</Catagory>
            <Unlock>1980</Unlock> 
   </Feature>
   <Feature>
         <FeatureFrom="Dot matrix Printer">
         <Name>Inkjet Printer</Name>
            <Description>A method of printing invovling tiny inkdroplets being ejected onto the paper at high speeds</Description>
            <DevTime>6</DevTime>
            <innovation>7</innovation>
            <usability>5</usability>
            <stability>6</stability>
            <CodeArt>.4</CodeArt>
            <Catagory>Printer</Catagory>
            <Unlock>1980</Unlock>
   </Feature>
   <Feature>
         <FeatureFrom="Inkjet Printer">
         <Name>Laser Inkjet Printer</Name>
            <Description>A high-speed version of inkjet printing</Description>
            <DevTime>8</DevTime>
            <innovation>7</innovation>
            <usability>5</usability>
            <stability>6</stability>
            <CodeArt>.4</CodeArt>
            <Catagory>Printer</Catagory>
            <DependencySoftware="Printer">Laser Injet Printer</DependencySoftware>
            <Unlock>1998</Unlock>
   </Feature>
      <Feature>
         <FeatureFrom="Dot matrix Printer">
            <Name>Fine Injet Printing</Name>
            <Description>A high-speed version of inkjet printing for graphic desgin</Description>
            <DevTime>7</DevTime>
            <innovation>7</innovation>
            <usability>5</usability>
            <stability>6</stability>
            <CodeArt>.4</CodeArt>
            <Catagory>Printer</Catagory>
            <Unlock>1991</Unlock>
         </Feature>
      </Features>
   </SoftwareType>      

The following link is my github page. This page is where my mod is if you have any questions about it. I update it daily. Futher, I am looking for a programmer to help me if you are interested.
https://github.com/KingNero6/Hardweare-TC-mod-/

March 05, 2017, 09:57:19 AM
Reply #9

Ygames1

  • *
  • Information
  • Member
  • Posts: 27
    • View Profile
I've made a pull request. that fixes most of the errors. I recommend looking into what I have changed. And ask me if you dont know why I have changed something

March 05, 2017, 08:32:51 PM
Reply #10

mzb0038

  • *
  • Information
  • Member
  • Posts: 6
    • View Profile
Thank you. And thank you everyone for your help.