-
October 10, 2015, 05:37 PM
#1
Unit recruitment problems...
Hello,
I've been tinkering with unit recruitment lately, but I haven't gone very far.
I was trying to change what units are recruited from different buildings. So I started working on building_units_allowed. I started with something simple like instead of att_rom_limitanei_borderguards I wanted to recruit att_rom_legio from this building: att_bld_roman_west_city_major_1.
So I create my mod with PFM 3.5.1, open the appropriate table and change limitanei to legio. Save and install it in the data folder.
Start game and it crashes!
With some more tinkering, I figured out that I had to make changes to technology_unit_upgrades first before making changes to building_units_allowed!
I deleted all the entries for Western Roman unit upgrades and restarted the game, it worked. When opening the technology panel, everything is the same except for unit upgrades that were gone, then worked on building_units_allowed. I make the appropriate change for att_bld_roman_west_city_major_1 and replace limitanei with legio.
I start a new game, works fine. Check out the recruitment panel and nothing!!! I mean nothing as in no unit available for recruitment! Limitanei Borderguards is no longer present and Legio nowhere to be found!
I tried another change in building_units_allowed, I kept it vanilla and only changed xp from 0 to 1 for Limitanei Borderguards. Game starts fine, recruitment panel shows the unit with 1 xp.
Now I'm at a loss, I really can't think anymore. I don't know what else to do.
-
October 10, 2015, 06:01 PM
#2
Re: Unit recruitment problems...
EDIT: Nevermind. I see you deleted the unit upgrades. Not sure what's up then.
-
October 10, 2015, 06:30 PM
#3
Re: Unit recruitment problems...
You are right Augusts, I just tried something else.
I looked for a unit that's not a tech upgrade one: att_rom_cornuti_seniores, I used it instead of Legio and lo and behold...it worked!
Now the problem is to figure out how to make tech upgrade units such as Legio appear in the recruitment panel.
Removing all the entries for the tech upgrade units from the technology_unit_upgrades table is necessary, otherwise the game crashes if you change the building_units_allowed table.
Edit: something doesn't make sense, cornuti seniores IS an upgraded unit, it is an upgrade from Western Auxilia Palatina. But it still showed up on the recruitment panel...go figure!
Edit 2: Does anyone know how to make units independent from technology and make them recruitable without worrying about tech?
Last edited by Faridus; October 10, 2015 at 08:16 PM.
-
October 10, 2015, 06:07 PM
#4
Re: Unit recruitment problems...
Hey Augustus,
I did remove tech unit upgrades though.
Like I said, as long as you keep technology_unit_upgrades unchanged,any changesto building_units_allowed make the game crash.So I removed all the tech Western Roman unit upgrades from the table technology_unit_upgrades first, but Legio doesn't show up in the recruitment panel when technology_unit_upgrades is modified.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules