Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   strange error (http://forums.wolflair.com/showthread.php?t=63098)

ShadowWalker August 27th, 2019 06:55 AM

strange error
 
I made a change to the vehicle component and vehicle compset within the equipment.str file.
I then made changes to the editor.dat file to allow me to enter vehicles.
I get an error message saying those fields don'e exists.

Quote:

Hero Lab was forced to stop compilation after the following errors were detected:

Edit Thing 'Vehicle' - Editor references field 'vehAC' that doesn't exist
Edit Thing 'Vehicle' - Editor references field 'vehSpeed' that doesn't exist
Edit Thing 'Vehicle' - Editor references field 'vehHP' that doesn't exist
Edit Thing 'Vehicle' - Editor references field 'vehCrew' that doesn't exist
Edit Thing 'Vehicle' - Editor references field 'vehTonnage' that doesn't exist
All of the above fields are indeed part of the vehicle component and the vehicle component is part of the vehicle compset. So I've no idea what I've done wrong to get this error. All I did to the vehicle component was add some fields.
I've created other compsets and components for drones and starships and they are having the same problem.

Duggan August 27th, 2019 08:36 AM

Is the code brief enough to show us the vehicle component/component set and the relevant part of the Editor?

ShadowWalker August 27th, 2019 09:43 AM

Code:

  <component
    id="Vehicle"
    name="Vehicle"
    autocompset="no">

    <field
          id="vehSpeed"
          name="Speed"
          type="static">
          </field>
         
        <field
          id="vehHP"
          name="HP"
          type="static">
          </field>
         
        <field
          id="vehAC"
          name="AC"
          type="static">
          </field>
         
        <field
          id="vehCrew"
          name="Crew"
          type="static">
          </field>
         
        <field
          id="vehTonnage"
          name="Tonnage"
          type="static">
          </field>

Code:

  <compset
    id="Vehicle">
    <compref component="Vehicle"/>
    <compref component="Gear"/>
    </compset>

Code:

  <editthing
    compset="Vehicle"
    name="Vehicles"
        group="Vehicles"
    prefix="veh"
    description="Weapons, vehicles, and simple equipment all have their own tabs for creating objects of those types."
    summary="Defines vehicles that can be selected on the vehicle tab.">
    <inputthing
      name="AC"
      helptext="Specify the Defense rating of the armor against attacks.">
      <it_field field="vehAC"/>
      </inputthing>
    <inputthing
      name="Cost"
      helptext="Specify the standard cost of the item, with a value of 0 meaning it is free.">
      <it_field field="grCost"/>
      </inputthing>
    <inputthing
      name="Tech Level"
      helptext="Specify the weight of the item.">
      <it_field field="grTL"/>
      </inputthing>
    <inputthing
      name="Speed"
      helptext="Specify the speed of the item.">
      <it_field field="vehSpeed"/>
      </inputthing>
    <inputthing
      name="HP"
      helptext="Specify the HP of the item.">
      <it_field field="vehHP"/>
      </inputthing>
    <inputthing
      name="Crew"
      helptext="Specify the Crew of the item.">
      <it_field field="vehCrew"/>
      </inputthing>
    <inputthing
      name="Tonnage"
      helptext="Specify the weight of the item.">
      <it_field field="vehTonnage"/>
      </inputthing>
    </editthing>


ShadowWalker August 27th, 2019 10:27 AM

Well you can ignore this. I knew there was something stupid wrong as the code looked fine, and it is, as long as it's in the same folder. some how I opened the equipment.str file in the samples folder. no clue how that happened but it did and I didn't notice. GAH!

Duggan August 27th, 2019 10:37 AM

^_^ Glad to have served as your rubber duck.

ShadowChemosh August 27th, 2019 11:09 AM

Quote:

Originally Posted by Duggan (Post 281611)
^_^ Glad to have served as your rubber duck.

Rubber Duck Debugging FTW! :) :D

ShadowWalker August 29th, 2019 01:14 PM

After working in the coding industry for 2 decades I have never seen that site or the story. Thank you for both. It's great!


All times are GMT -8. The time now is 02:53 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.