|Dirk Peeters (jengske_BE)||02.10.2015 09:02|
this is a very complex question and i know its not published code.
i'm building a animalMod, the meaning is to have one line in the animals.
on the default animaltypes i have a full working script, but now commes the hard part,
the meaning is to also add new animaltypes, for this we need to build the xml for that new animaltype to have the husbandry to work.
when i create (register a new animal) this is done in fillType, a new animalType and in husbandry so the animals are syncroon to eatchother. buy a cow true the store and it adds it to the fillType.fillLevel.
when i register a new animalType and link it to the orginal husbandry.animaltype its working. only then we have a double entry on the animaltype what is normal. and some minor errors telling us we have no extra space and maxNumSpawnplaces is 4. this is on the i panel and also in the store panel.
but when i not link it and use a tmp empty table structure the same build as giants build the animals table.
i get a error that it could not find or have trouble on the addFeedPlace
LUA call stack:
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/animals/FeedingTroughTipTrigger.lua(36) : addFeedingPlace
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/animals/AnimalHusbandry.lua(101) : load
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/animals/AnimalHusbandry.lua(25) : load
Warning (LUA): Unknown entity id 0 in method name: addFeedingPlace..
so i now try with no info at all to simulate or build the xml for the new animaltype.
what i also notis is the animals are also vehicles?
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/vehicles/Vehicle.lua(1221) : asyncCallbackFunction
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/Utils.lua(1292) : asyncCallbackFunction
D:/Code/Giants/lsim2015/build/finalbin/dataS/scripts/vehicles/Vehicle.lua(102) : loadSharedI3DFile.
i only want the headers not the complete xml, <husbandry><attributtes><atributte name= name ........
if someone is also building in this direction we could stick our heads together to make it work.
thx for reply
|Dirk Peeters (jengske_BE)||03.10.2015 16:50|
|never mind, problem solved.
Note: Log in to post. Create a new account here.