• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

strange error

ShadowWalker

Well-known member
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.

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.
 
Is the code brief enough to show us the vehicle component/component set and the relevant part of the Editor?
 
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>
 
Last edited:
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!
 
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!
 
Back
Top