Logo Platform
logo amplifiers simplified

Problem with new Unit

Reply
Copied to clipboard!
9 years ago
Jan 17, 2016, 11:25:22 PM
I recently decided to start moddin EL and for my first mod i belived that a new unit for the Broken Lords, a ranged archer-type unit, would be simple enough. Now after 3 days of working on the new unit model and their pdf tutorials i belived i had all working. The sad part is that nothing works. I cant see my mod on the mod list in client, neither any of the chances i made seems to work. Any help? Thanks in advance.

Here are the files im working now. New_Unit_BL_Ranged_Infantry.rar
0Send private message
9 years ago
Jan 18, 2016, 11:58:19 AM
Peeking at your mod file now.
0Send private message
9 years ago
Jan 18, 2016, 12:09:25 PM
The first piece of advice I can offer is that there is a diagnostic file in Documents\Endless Legend\Temporary Files that you can check when you're having trouble seeing or loading mods.



When I loaded up my mods, I got these errors:



04:02:57:329 STACK Loading runtime module definition from file 'NewBLUnit.xml'...

04:02:57:329 STACK Data type 'QuestBehaviourTreeNode_Action_Tutorial_FocusCamera, Assembly-CSharp' could not be resolved.

[Warning] 04:02:57:330 STACK Invalid runtime module name 'New_Unit_BL_Ranged_Infantry', discarding the module.

04:02:57:330 STACK Discarding invalid runtime module definition file 'NewBLUnit.xml'



I think that's what's preventing your mod from loading. Hope that helps you get on the right path!
0Send private message
9 years ago
Jan 18, 2016, 12:24:28 PM
I think you have an error between the title tags in GuiElements[UnitDesigns].xml; also the names might be case-sensitive



[CODE]



%UnitBrokenLordsInfantryTitle

%UnitBrokenLordsArcherDescription









[/CODE]



What did you change in Mapping.xml in the Mapping folder?



GuiElements[FactionTraits].xml seems odd; it only has your new unit info. Are you missing all the data from whatever original game file you used.



I don't know anything about adding custom models to the game. Is that what you were doing in SimulationDescriptors[UnitType].xml with this code?



[CODE]



































[/CODE]



Could you try getting your unit up and running and then fixing it to a custom model (again, I don't know anything about this) after everything else is working?



Hope something in there helped. I'm not really an expert, but I took a look at your files to help me learn a bit more. Good luck!
0Send private message
9 years ago
Jan 18, 2016, 3:52:12 PM
Thanks for the reply!



I think you have an error between the title tags in GuiElements[UnitDesigns].xml; also the names might be case-sensitive







In my file apparently they are fine, what would be exactly the error?



What did you change in Mapping.xml in the Mapping folder?


This part, there is one or two new lines there.



[CODE]





















[/CODE]







I don't know anything about adding custom models to the game. Is that what you were doing in SimulationDescriptors[UnitType].xml with this code?





I belive that that part is where you define the unit itself, after all, that was the only place a saw any attributes. I could be wrong to.





Could you try getting your unit up and running and then fixing it to a custom model (again, I don't know anything about this) after everything else is working?





Inst that what i was doing in all that? No sarcasm intended, im sincerely a noob when comes down to this. I though that you had to do both things at once.



And for the

04:02:57:329 STACK Data type 'QuestBehaviourTreeNode_Action_Tutorial_FocusCamer a, Assembly-CSharp' could not be resolved.




I have absolutly no idea whats wrong there! I dint even changed that line.
0Send private message
9 years ago
Jan 18, 2016, 4:01:10 PM
I'll highlight (and color, to make it easier to see) the exact places where I see what might be code problems (and again, this is only to try and be helpful; I'm newish to modding)



I think you have an error between the title tags in GuiElements[UnitDesigns].xml; also the names might be case-sensitive



[CODE]

aRCHER [Notsureifanyofthisiscase-sensitive]">

%UnitBrokenLordsInfantryTitle [Thisshouldn'tbeInfantrysincethisisyourarcherunit]

%UnitBrokenLordsArcherDescription









[/CODE]



What did you change in Mapping.xml in the Mapping folder?



GuiElements[FactionTraits].xml seems odd; it only has your new unit info. Are you missing all the data from whatever original game file you used.



I don't know anything about adding custom models to the game. Is that what you were doing in SimulationDescriptors[UnitType].xml with this code?



[CODE]



















Name="CustomMappingUnitBodyBrokenLordsInfantry" Type="CustomMapping" [TheCustomMappingportiondiffersfromtheUnitTypeusedinthepreviousentry;justwantedtopointoutthatthislookedoddtome]>















[/CODE]



Could you try getting your unit up and running and then fixing it to a custom model (again, I don't know anything about this) after everything else is working?



[Itsoundslikeyou'retryingtocreateacompletelynewmodelforthisunit(areyou?);seemslikeyoucouldmaketheunitandhaveitlookjustlikeinfantryorabishop,andoncethemodshowsupandtheunitisworkingasintended,youcouldmessaroundwithwhatthemodellookslike].
0Send private message
9 years ago
Jan 18, 2016, 4:13:40 PM
Corrected the first part on the UnitDesigns.xml (and the GuiElements[FactionTraits].xml also, forgot to mention in the last replay smiley: stickouttongue).

For the custom mapping, i used the tutorial to assign an existing model to a custom unit,i could have jumbled the tutorials together at some point maybe.



I tried replacing the original xmls on the game's files and did manage to get the units in game, but with no model, no combat hit box, no icons smiley: frown



I submitting a new version whit the changes
NewUnitBLRangedInfantry.rar
0Send private message
9 years ago
Jan 18, 2016, 4:58:01 PM
Changed a bit around some names and things and got some progress!



The mod still dont appears in the mod list , but when you change the game files you can enter an game and see the units in game. The problem is: the model dont appears to be linked to the unit. This is what is happening, the white hex is where the unit is, the pink things is (or where it should be?) the model.







Here is the new files:



NewUnitBLRangedInfantry.rar
0Send private message
0Send private message
9 years ago
Jan 22, 2016, 6:57:44 PM
I haven't done much with new units, so this is kind of the end of the line as far as my knowledge goes.
0Send private message
0Send private message
9 years ago
Jan 22, 2016, 9:12:30 PM
FINALLY! After much messing around with the code and with the help of Lilyophelia and looking at Xeal534's Horizon mod, i finally managed to get the unit to work! Its model are working as it should. The only problem is that there is no bow animation for the broken lords smiley: frown so they do a melee attack instead, but its a nice start for a new mod.



EDIT:

Here is the mod if someone wants to take a look at. I pretend to add more units before uploading to the steam.

BLRangedInfantry.rar
0Send private message
9 years ago
Jan 22, 2016, 10:57:47 PM
Awesome! Great job on persevering. I'm sure I will eventually check out your code for tips if/when I ever try to make a new unit. <3
0Send private message
?

Click here to login

Reply
Comment