Giants Editor Tutorials, Mods & Social Network

Not all prerequisites of specialization steerable are fulfilled

Not all prerequisites of specialization steerable are fulfilled

This is just a very basic example as an explanation….

If you have a script called “George.lua” and the prerequisites are Tom and Mary, then in the list of specializations under vehicle types in the modDesc, George must appear after Tom and Mary.

This would be correct:

<vehicleTypes>
<type name=”SchoolBus” className=”Vehicle” filename=”$dataS/scripts/vehicles/Vehicle.lua”>
<specialization name=”motorized” />
<specialization name=”steerable” />
<specialization name=”hirable” />
<specialization name=”Tom” />
<specialization name=”Mary” />
<specialization name=”George” />

If the list looks like this:

<vehicleTypes>
<type name=”SchoolBus” className=”Vehicle” filename=”$dataS/scripts/vehicles/Vehicle.lua”>
<specialization name=”motorized” />
<specialization name=”steerable” />
<specialization name=”hirable” />
<specialization name=”Tom” />
<specialization name=”George” />
<specialization name=”Mary” />

…You would get an error saying not all prerequisites are fulfilled because the game is trying to load the George script before the Mary script. Rearranging the specializations into the proper order in the modDesc should sort the issue.

Advertisements

Tagged as: ,

2 Responses »

  1. Add features throughout this month. keep check back for updates!

What do you think about this?

Advertisements
%d bloggers like this: