You must be logged in to post messages.
Please login or register

Game Modification & Editor Discussion

Hop to:    
Welcome! You are not logged in. Please Login or Register.4 replies
Total War Heaven » Forums » Game Modification & Editor Discussion » Making New Unit Recruitable
Bottom
Topic Subject:Making New Unit Recruitable
jgenard
Legionary
posted 10 May 2020 13:12 EDT (US)         
Heyheyhey,
I've made a Romano-British longbow-type unit, which works perfectly on the battlefield. I used the hitherto unused Frankish Chosen Archer texture and made a new unit with it, named Saethwyr.
I made it in EDU, added unit cards and unit info pics, and added them at the end of the export_units.txt file.

But I simply CAN'T add them to EDB (export_descr_buildings). If I do that, the game CTDs immediately after starting up. I copied the last line of the recruitable unit, replaced the name with 'Saethwyr' and that edited the factions to just { romano_british,}...

I've tried everything. Am I missing something? I've read SubRosa's Creating A Unit tutorial again and again, but can't seem to find a solution.

Is there another file that I haven't edited?
AuthorReplies:
General Sajaru
Tribunus Laticlavius
posted 10 May 2020 19:47 EDT (US)     1 / 4       
Could you copy and paste the line you put into the export_descr_buildings file? I think you may have made a typo/forgotten a space, and that could definitely cause a CTD.

"Freedom is never more than one generation away from extinction." - Ronald Reagan
"Judge them not by the color of their skin, but by the content of their character." - Martin Luther King, Jr.
"Pick up a rifle and you change instantly from a subject to a citizen." - Jeff Cooper
"I like my enemies like James Bond likes his martinis- shaken, not stirred."
My first book, The King's Own
jgenard
Legionary
posted 13 May 2020 05:26 EDT (US)     2 / 4       
The full line is:

" recruit "rb saethwyr" 0 requires factions { romano_british, } "

I've found the EDB to be a most unstable file. It seems to behave pretty randomly. With EDU, I always find the typo, but I get the feeling that EDB makes the game CTD as soon as there's an extra space or shift.
General Sajaru
Tribunus Laticlavius
posted 13 May 2020 19:34 EDT (US)     3 / 4       
The export_descr_building file is definitely one of the more finicky ones. Do you have two spaces on either side of the 0 for experience? Also, did you use tabs in front of the line?
What you show looks good, so I'm not entirely sure where the issue's coming in, unless the name isn't quite the same between export_descr_units and export_descr_buildings.

Did you update the export_descr_unit_enums?

"Freedom is never more than one generation away from extinction." - Ronald Reagan
"Judge them not by the color of their skin, but by the content of their character." - Martin Luther King, Jr.
"Pick up a rifle and you change instantly from a subject to a citizen." - Jeff Cooper
"I like my enemies like James Bond likes his martinis- shaken, not stirred."
My first book, The King's Own
jgenard
Legionary
posted 14 May 2020 02:38 EDT (US)     4 / 4       
I didn't update the enums file! I thought it was for the data/text-file for the in-game name, and cause it didn't have any effect I thought it wasn't neccessary. It's just gonna be that, isn't it?!

All of the tabs and spaces are correct cause I just copied the 'Eastern Archer' line and replaced it with the specifics for this unit.

Thanks!

UPDATE: I tried it and it still doesn't work.

[This message has been edited by jgenard (edited 05-17-2020 @ 02:06 AM).]

You must be logged in to post messages.
Please login or register

Hop to:    

Total War Heaven | HeavenGames