ENDLESS™ Legend is a turn-based 4X fantasy-strategy game, where you control every aspect of your civilization as you struggle to save your homeworld Auriga. Create your own Legend!
I'm trying to mod a new unit for the Vaulters, a healer based on the Sisters of Mercy Justicere model, but working similarly to an eyeless one caecator (albeit equipped with staves and scepters instead of swords and spears).
I used to have a working mod before Shadows and Guardians expansions, and I am now redoing the mod to work with the expansions.
There is a bug with the new unit for which I cannot find a solution :
-When in the armies screen, the design for the new unit appears on the top of the screen, (with the correct name, icon, and localisation) but when I click on it the model doesn't appear in the window on the right : the window stays empty.
Whenever I'm opening the new unit design, I get a "serious error" screen with the message :"NullReferenceException : Object reference not set to an instance of an object". The unit model doesn't appear in the window (although the correct items do appear in their respective slots) and the serious error prevents the unit design window from closing. Any change in equipment triggers a new serious alert warning.
Here's the screenshot for the problem :
I do believe the error stems from a mistake in the UnitBodyDefinition (or a problem in mapping ? But I don't know much about this), but I can't find it. Can you help me and telle me where is the error located please ? Thanks.
Here are the different bits of code relating to this new unit :
In the UnitBodyDefinitionfile :
[CODE]
.../EmpireTypeMajor,AffinityVaulters
.../EmpireTypeMajor,AffinityVaulters
($Property(ClassCity,Garrison:MaximumUnitSlotCount) - $Property(ClassCity,Garrison:UnitSlotCount)) ge 1
Looks like a mapping problem. Units check for their mapping based on their name. So the game is looking for a 'VaultersBattleMystic.3dmodel' or equivalent, and isn't finding it. There's a workaround that works in the modding tutorial pdf found in the sticky, page 12.
The bit you need to look at is "Change the call type of the 3D model", and you'll be editing bits of mapping/mapping.xml
You have to change the mapping to call a specific model not depending on the name of the unit.
If you have any trouble doing so even after reading the modding tutorial pdf please do not hesitate to upload your mod in its current state and we will help you in making the link between your new unit and its 3Dmodel!
Actually, I have found a weird bug after playing a bit, and a serious bug. The unit design works fine on the unit design screen, but whenever I start a battle with the new unit I get this strange thing :
(Edit) I started a new game with the units using swords and shields as the original justicere model does and I didn't have this graphical bug. I'm guessing it is coming from equipping other weapons than initially allowed for the model. Is it completely impossible to equip other weapons as intended in the original game on models ? Say, staves on justicere or claws on Titans ? I recall seeing a mod or two that allowed such changes of weapons. I'm still getting the second, game-breaking bug related to quests though
1) One of the hexes on the battlefield has a weird, all-white, non selectable, strangely warped set of justicere-like unit on it. This hex is non selectable and actually empty apart from this bug (there is no unit on it, units can pass through, etc...). This hex is the starting hex of the army, from which all units scatter at the beginning of the deployment phase.
2) there is an actual unit of the new type (I call them battle mystics) on the board, except it's totally invisible (transparent). Would be cool for the Forgotten I guess. This unit can act normally, except it is invisible. I do believe the game tries to render the unit, fails for some reason, but then carries on instead of crashing, with a non-rendered unit (the rendering is the weird white set of units at the starting hex).
3) at the end of the battle I get this serious error report (which doesn't stop the game and doesn't prevent saving).
The second error report I get is more serious, as it prevents the game from saving. It happens when the game does something with a global quest. I get the second error message I put in the screenshot, every turn afterwards, and then I cannot save anymore. The error comes either from the quest "minor faction, minor pain" starting, or from the Era1 global quest (the one that asks you to get 30 of a luxury ressource) being completed. I modified some things with quests, But these are only minor modifications (creating custom droplist and switchin droplists for the vaulters affinity quest) so I don't see what could create a bug in theses mods I have done.
If you have clues about what could cause this bug, could you help me with it ?
apylam
Newcomer
apylam
Newcomer
13 600g2g ptsReport comment
Why do you report apylam?
Are you sure you want to block apylam ?
BlockCancelAre you sure you want to unblock apylam ?
UnblockCancelZenTractor
Mirror Chameleon
I make micro mods.
ZenTractor
Mirror Chameleon
27 400g2g ptsReport comment
Why do you report ZenTractor?
Are you sure you want to block ZenTractor ?
BlockCancelAre you sure you want to unblock ZenTractor ?
UnblockCancelDEVPikou
Dev
DEVPikou
Dev
19 600g2g ptsReport comment
Why do you report Pikou?
Are you sure you want to block Pikou ?
BlockCancelAre you sure you want to unblock Pikou ?
UnblockCancelapylam
Newcomer
apylam
Newcomer
13 600g2g ptsReport comment
Why do you report apylam?
Are you sure you want to block apylam ?
BlockCancelAre you sure you want to unblock apylam ?
UnblockCancelapylam
Newcomer
apylam
Newcomer
13 600g2g ptsReport comment
Why do you report apylam?
Are you sure you want to block apylam ?
BlockCancelAre you sure you want to unblock apylam ?
UnblockCancel