Hello!
I have an issue with a custom unit I have just created.
The unit card appears in the custom battle screen but when I get my mouse over it, the unit name and description dont appear and the screen becomes darker. The models are ok, they appear and work perfectly in the battle itself.
I had this problem with another custom unit, and I managed to solve it, but I have no idea how...
I worked like this:
1. I created the units soldier and officer variants with the assembly kit.
2. After packing it with BOB I opened the mod.pack with PFM and extracted only the unit variants I created.
3. I added the following to the mod I wanted to create:
a) animations (for bayonets)
b) db:
-buildings units allowed
-cdir unit qualities
-uniforms
-unit experience thresold modifiers
-unit stats land
-unit to unit abilities junctions
-units tables
-units to exclusive factions permissions
-units to groupings military permissions
-warscape equipments items (for bayonets)
-warscape equipments themes (for bayonets)
c) text/db/my units name.loc
d)variantmodels/units/the two files containing the soldier and the officer
After adding all these and editing them to contain nothing else but the lines discussing my new unit so there is nothing else to influence the whole thing.
My other mod, also adding a single unit to the game, contains exactly the same folders with the same files and works perfectly...
Did you add your new unit into the unit_descriptions_texts table also in the Loc file?
Also, look in the units_table and find the "unit_description" column. Make sure that units_table description matches the unit_description_text entries in the loc file.
The western part of an Island They thought a kind of Coffee...
Posts
1,932
Re: Problems with custom unit
uniform_to_faction_colours Table.
The First Column(uniform_name) refers to the one in uniforms table
The Last Column sets the type: soldier, officer, standard_bearer, or musician. This column is often forgotten (e.g. Having soldiers colored but not standard_bearers)
In between, Primary, Secondary, and Tertiary RGB values.
I started having the same problem, except with one little difference that I'll get to later. So units I've made through the PFM work fine. After using the TWeak and BOB, the same fortune is not upon me. I was in the same boat of having nothing on the unit cards (which wasn't important, but was an easy fix) and having the "name box" thing take up the entire screen making it a few shades darker on the custom units.
After messing with the unit names and things, I've managed to get the custom unit "name boxes" to work fine, but now all the regular general units have the whole-screen-name-boxes. Do you know what could be causing that?
I'll attach some images (if that still works with the way the forum is at the moment, heh) of the pack opened in PFM.
By the way, being in a uni dorm, and thus not having wireless that has the ports open necessary to use Steam, I haven't been able to update Shogun 2 or the Assembly Kit in a few months. Heck, my BOB doesn't even give me the options to export things as a .pack file. I have to make the packs in PFM after BOB converts them to binaries (which is fine, actually, unless that's the reason it's messing up.)
Another problem. This mod is causing Shogun 2 to CTD at the battle loading screens. Any word on that? I cant even make sure the units work correctly in-battle at this rate.
EDIT!!
The screenshots are no longer really important, I guess, but I'll leave them here.
Okay, after messing with the rules.bob file, I've managed to get BOB to create pack files, and thus, the problem with the missing icons and weird full-screen-"name-box" is fixed. However, the CTD before battles is still a problem.
What would cause the battles to CTD while they're loading?
Thanks in advance.
Also, I tried out the units in-campaign, and the added custom-general's names were replaced with stock Japanese names when I recruited them. Any way to fix that?
Last edited by Xorte-Renshe; February 23, 2013 at 03:21 PM.