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

Game Modification & Editor Discussion

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Making New Unit Recruitable
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?
Replies:
posted 10 May 2020 19:47 EDT (US)     1 / 11  
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
posted 13 May 2020 05:26 EDT (US)     2 / 11  
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.
posted 13 May 2020 19:34 EDT (US)     3 / 11  
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
posted 14 May 2020 02:38 EDT (US)     4 / 11  
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).]

posted 27 May 2020 03:38 EDT (US)     5 / 11  
Hey guys,
I have now made a large amount of new units (I haven't counted yet but it's definitely over 30) from the skeletons & textures in the vanilla game alone.
But I still can't add them into the campaign because of this weird thing with EDB.
Anybody got an idea what I might be doing wrong?

- I'm not making typos, I've added lots of vanilla units to new buildings and changed the file before and they've always worked, so I know how to do it properly. I've also re-tried the whole adding-new-units-thing lots of times.

- it's not because of the enums file, cause that isn't necessary anymore since the patches.

- it's not cause I'm going over a limit of how many units you can base in a building, because I only tried it with lower-level barracks and archery range type buildings, where there's only like 8 recruitable units...
posted 27 May 2020 19:31 EDT (US)     6 / 11  
Unfortunately, I don't have a lot of experience with adding new units to the game and making them recruitable. Is it possible for you to create a mod package with those files so that we could test it out and try troubleshooting?

"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
posted 03 June 2020 12:36 EDT (US)     7 / 11  
Hey, that would be really nice of you!
How would I do that? I'm not entirely sure how, though. Shall I just make a .zip of my BI folder (that's the one I edited).
And where should I upload the file? Google drive?

[This message has been edited by jgenard (edited 06-03-2020 @ 12:39 PM).]

posted 04 June 2020 18:14 EDT (US)     8 / 11  
If you go to the Forum Download Central and submit a .zip or .rar file (button in the upper right), I can then download it and try it out. Login credentials are the same as for the forum.

Don't zip the whole BI folder; pull out the relevant files and put only those in the zipped file. The whole thing will be too much data

"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
posted 08 June 2020 04:08 EDT (US)     9 / 11  
Hmmmm, but I've edited so many files I think you won't be able to even start the game if I don't include them all.
posted 09 June 2020 01:44 EDT (US)     10 / 11  
You can give it a shot, but I know the download central has a file size limit. If it's too big, a Google drive link or similar would work.

"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
posted 09 June 2020 03:43 EDT (US)     11 / 11  
Text files are relatively small. It is graphics that make a file huge.

Mostly.

|||||||||||||||| A transplanted Viking, born a millennium too late. |||||||||||||||||
|||||||||||||||| Too many Awards to list in Signature, sorry lords...|||||||||||||||||
|||||||||||||||| Listed on my page for your convenience and envy.|||||||||||||||||
Somewhere over the EXCO Rainbow
Master Skald, Order of the Silver Quill, Guild of the Skalds
Champion of the Sepia Joust- Joust I, II, IV, VI, VII, VIII
Total War Heaven » Forums » Game Modification & Editor Discussion » Making New Unit Recruitable
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Total War Heaven | HeavenGames