BL Coding How do i add new units to the unit tree?

正在查看此主题的用户

DeusVolt

Recruit
Hi,
currently i'm trying to add new units to the existing ones/ reworking the existing units. (For now this is just for me to mess around/ learning the basics etc.)
But when i create a new unit in the .xml (like adding a new upgrade path to vlandian recruits) the game crashes. what do i need to do, to get this working? :smile: (beware im a total beginner, but at least i managed to rework all of the Sturgian units :'D)

thanks in advance :grin:

Edit: i hope i posted this in the right forums D:
 
解决方案
First check all of your syntax. No missing quotes and all that.

If that fails, make sure that you have the correct XML header at the top (something about xml version="1.0").

Failing that, make sure you aren't inserting troops into the middle of minor faction trees. For some reason that I am still diagnosing, inserting troops into the middle of those trees (eg. Wolfskins tree or Jawwal tree) breaks everything.

Finally, make sure the troop you are adding is a higher level than the troop below it and vice versa. This shouldn't crash your game, but it will break the upgrade process in game.
First check all of your syntax. No missing quotes and all that.

If that fails, make sure that you have the correct XML header at the top (something about xml version="1.0").

Failing that, make sure you aren't inserting troops into the middle of minor faction trees. For some reason that I am still diagnosing, inserting troops into the middle of those trees (eg. Wolfskins tree or Jawwal tree) breaks everything.

Finally, make sure the troop you are adding is a higher level than the troop below it and vice versa. This shouldn't crash your game, but it will break the upgrade process in game.
 
点赞 0
解决方案
后退
顶部 底部