Unknown problem trying to get hidden apple tree model in scenario editor
3 posters
Page 1 of 1
Unknown problem trying to get hidden apple tree model in scenario editor
Unknown problem trying to get the hidden apple tree model into the scenario editor.
Yes the file paths are correct, I think.
The model works, I opened it up in Granny Viewer.
When I try to place the apple tree on the ground in scenario editor, I place invisible trees.
I tried changing the model the anim file references to from apple tree to berry bush and the unit is still invisible, so it appears its not a problem of a bad model.
So perhaps the anim file is broken or my proto entry is wrong?
So where is the error?
anim file:
tree_apple.xml
proto entry:
Yes the file paths are correct, I think.
The model works, I opened it up in Granny Viewer.
When I try to place the apple tree on the ground in scenario editor, I place invisible trees.
I tried changing the model the anim file references to from apple tree to berry bush and the unit is still invisible, so it appears its not a problem of a bad model.
So perhaps the anim file is broken or my proto entry is wrong?
So where is the error?
anim file:
tree_apple.xml
- Code:
<?xml version="1.0" encoding="utf-8"?>
<animfile>
<component>
ModelComp
<assetreference type="GrannyModel">
<file>terrain\trees\tree_apple_a</file>
</assetreference>
</component>
<anim>
Idle
<component>ModelComp</component>
</anim>
</animfile>
proto entry:
- Code:
<Unit id ='43760' name ='AppleTree'>
<DBID>43760</DBID>
<DisplayNameID>43761</DisplayNameID>
<EditorNameID>43760</EditorNameID>
<ObstructionRadiusX>0.4900</ObstructionRadiusX>
<ObstructionRadiusZ>0.4900</ObstructionRadiusZ>
<MaxVelocity>0.0000</MaxVelocity>
<MovementType>land</MovementType>
<AnimFile>terrain\tree_apple.xml</AnimFile>
<ImpactType>Wood</ImpactType>
<Icon>terrain\trees\berrybush_icon_64</Icon>
<PortraitIcon>terrain\trees\berrybush_portriat</PortraitIcon>
<RolloverTextID>43762</RolloverTextID>
<ShortRolloverTextID>43762</ShortRolloverTextID>
<InitialResource resourcetype ='Food'>1000.0000</InitialResource>
<ResourceSubType>forage</ResourceSubType>
<BuildingWorkRate>1.0000</BuildingWorkRate>
<MinimapColor red ='0.5000' blue ='0.2500' green ='0.2000'></MinimapColor>
<UnitType>LogicalTypeMinimapFilterEconomic</UnitType>
<UnitType>LogicalTypeVillagersRespondToAttack</UnitType>
<UnitType>Food</UnitType>
<UnitType>Resource</UnitType>
<UnitType>Nature</UnitType>
<UnitType>AbstractFruit</UnitType>
<Flag>StartsAtFullEfficiency</Flag>
<Flag>Immoveable</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>ObscuresUnits</Flag>
<Flag>NoIdleActions</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>Doppled</Flag>
<Flag>SelectWithObstruction</Flag>
<Flag>PaintTextureWhenPlacing</Flag>
<Flag>FlattenGround</Flag>
<Flag>NotDeleteable</Flag>
<Flag>ForceToGaia</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>DieAtZeroResources</Flag>
<Flag>Invulnerable</Flag>
<Flag>DoNotValidateResourceInventory</Flag>
<Flag>Tracked</Flag>
<Command page ='10' column ='0'>Delete</Command>
</Unit>
checanos- Peasant
- Age : 26
Posts : 15
Join date : 2012-06-02
Re: Unknown problem trying to get hidden apple tree model in scenario editor
I can make it an orange or lemon tree too! Thanks!
Pepp- Moderator
- Age : 28
Posts : 5277
Join date : 2011-04-29
Re: Unknown problem trying to get hidden apple tree model in scenario editor
I'm sorry for my stupidity at not being able to figure out what I mistyped. Checanos, can you please copy and paste your proto entry and anim file code here so I can compared to see what lines are different in mine?
Re: Unknown problem trying to get hidden apple tree model in scenario editor
Sorry for not responding to your post earlier Dietermoreno. I don't check the forums very often.
I just copied your animfile and the proto was just of another unit that I temporarily swapped. It must that the animfile name does not match up.dietermoreno wrote:I'm sorry for my stupidity at not being able to figure out what I mistyped. Checanos, can you please copy and paste your proto entry and anim file code here so I can compared to see what lines are different in mine?
checanos- Peasant
- Age : 26
Posts : 15
Join date : 2012-06-02
Similar topics
» Problem with horse artillery model having replace texture bug when dismount
» The new and "improved" WYSIWYG editor
» Download Knights and Barbarians
» you have some problem with pyracy ?
» Problem with creating new water type
» The new and "improved" WYSIWYG editor
» Download Knights and Barbarians
» you have some problem with pyracy ?
» Problem with creating new water type
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Thu 11 Feb 2016 - 2:13 by danielpereira
» Friday Update: Week 48/2015, Double English Trouble
Sat 28 Nov 2015 - 1:42 by peugeot407
» Friday Update: Week 45/2015, Introducing the English
Sat 7 Nov 2015 - 2:00 by peugeot407
» Friday Update Monthly Report: Week 44/2015, Final News on the Germans
Sat 31 Oct 2015 - 6:46 by peugeot407
» Knights and Barbarians Updates and Patches
Wed 28 Oct 2015 - 8:46 by peugeot407
» Friday Update: Week 42/2015, German Knightly Orders
Sat 17 Oct 2015 - 0:03 by peugeot407
» Friday Update: Week 41/2015, German population bonuses
Sat 10 Oct 2015 - 8:47 by peugeot407
» Friday Update: Week 40/2015, Introducing the Germans
Sat 3 Oct 2015 - 22:23 by peugeot407
» Friday Update: Week 39/2015, Duality!
Sat 26 Sep 2015 - 22:24 by peugeot407