Results 1 to 11 of 11

Thread: Problems with custom unit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    murvaidavid's Avatar Libertus
    Join Date
    Oct 2011
    Location
    Arad, Hungary
    Posts
    94

    Default Problems with custom unit

    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...

    Could anybody give advise?

  2. #2

    Default Re: Problems with custom unit

    Select Units.loc in BOB (under working data/text/db) , select both provider and consumer actions, and pack it with your mod.

  3. #3

    Default Re: Problems with custom unit

    You need to edit the Units.loc aswell. Add a line for your unit other wise it still won't have a name.

  4. #4
    murvaidavid's Avatar Libertus
    Join Date
    Oct 2011
    Location
    Arad, Hungary
    Posts
    94

    Default Re: Problems with custom unit

    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...

  5. #5
    Hazbones's Avatar Senator
    Join Date
    May 2007
    Location
    Iwakuni, Japan
    Posts
    1,104

    Default Re: Problems with custom unit

    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.

    See if that fixes it.

  6. #6
    murvaidavid's Avatar Libertus
    Join Date
    Oct 2011
    Location
    Arad, Hungary
    Posts
    94

    Default Re: Problems with custom unit

    Thank you all for the advise, I maganed to get this work!

    I also have another question: how can I make a unit appear with some specific colours, no matter what faction I use it with?
    Last edited by murvaidavid; January 11, 2013 at 02:22 AM.

  7. #7
    Indefinitely Banned
    Join Date
    Nov 2011
    Location
    The western part of an Island They thought a kind of Coffee...
    Posts
    1,932

    Default Re: Problems with custom unit

    uniform_to_faction_colours table.

  8. #8
    murvaidavid's Avatar Libertus
    Join Date
    Oct 2011
    Location
    Arad, Hungary
    Posts
    94

    Default Re: Problems with custom unit

    I have set colors but nothing...still the faction colors appear...How do I tell the game not to use the faction colours to this unit?

  9. #9
    Indefinitely Banned
    Join Date
    Nov 2011
    Location
    The western part of an Island They thought a kind of Coffee...
    Posts
    1,932

    Default 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.

  10. #10
    murvaidavid's Avatar Libertus
    Join Date
    Oct 2011
    Location
    Arad, Hungary
    Posts
    94

    Default Re: Problems with custom unit

    Thank You All so much for the advise.
    The problem was that I forgot to add "_uniform" to the end of the unit name in the first column )

  11. #11
    Xorte-Renshe's Avatar Civis
    Join Date
    Jan 2011
    Location
    Newcastle, England
    Posts
    159

    Default Re: Problems with custom unit

    Spoiler Alert, click show to read: 
    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?
    Attached Thumbnails Attached Thumbnails Untitled-7.jpg   Untitled-6.jpg   Untitled-2.jpg   Untitled-3.jpg   Untitled-5.jpg  

    Untitled-4.jpg   Untitled-1.jpg  
    Last edited by Xorte-Renshe; February 23, 2013 at 03:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •