Page 1 of 2 12 LastLast
Results 1 to 20 of 22

Thread: New Unit Mod Not Showing in Game

  1. #1

    Default New Unit Mod Not Showing in Game

    I've spent the last three days learning how to create a new unit for the game. Took me a couple hours to actually create the unit, and I've now spent the last two days troubleshooting and trying to figure out why it won't show up in the game (either custom battles or campaign).

    Notes:
    • I have no other unit mods enabled during testing, so I don't think it's a unique key redundancy
    • I have checked every db for typos or errant spaces multiple times
    • I have added other dbs that might have been needed
    • I have checked multiple tutorials on creating units and followed them to a T
    • I have checked the pack file against the vanilla data pack and other unit mods I've used in the past to make sure I didn't have a naming mistake
    • I have recreated and reuploaded the variantmeshdefinition of the unit just in case that was the issue


    I'm honestly at a loss. Any help would be greatly appreciated. I can share the files on request since I can't upload them to TWC.

  2. #2
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    Hi,

    Do you use the offical steam launcher?

    Which tutorial? Sebidee's? Its the best.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  3. #3

    Default Re: New Unit Mod Not Showing in Game

    I do use the steam launcher, yes. The mod is in my data folder and marked on in the launcher. I also tried uploading it to the workshop to see if that was the issue, but no change.

    And yes, Sebidee's was the most comprehensive, and those are the mods I have the most experience with. I also looked at a couple others just to see if there might have been any changes in the last couple years to PFM that would necessitate different wording in the db files (since Sebidee's tutorial thread is like 8 years old at this point).

  4. #4
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    Perhaps you could post some screenshots from the tables of your mod here.

    It would be easier to find the Error then.
    Last edited by Morticia Iunia Bruti; December 03, 2021 at 07:26 PM.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  5. #5

    Default Re: New Unit Mod Not Showing in Game

    Fair enough! Here are the screen caps of the db tables. I hope this number of photos is okay in a single post.

    Attachment 366165

    Attachment 366156

    Attachment 366157

    Attachment 366158

    Attachment 366159

    Attachment 366160

    Attachment 366161

    Attachment 366164

    Attachment 366166

    Attachment 366167

    Click image for larger version. 

Name:	Hellenic Caravan unitjunctions.png 
Views:	3 
Size:	63.6 KB 
ID:	366168

    Click image for larger version. 

Name:	Hellenic Caravan unitgroupings.png 
Views:	3 
Size:	59.1 KB 
ID:	366169

    Click image for larger version. 

Name:	Hellenic Caravan cmdunitperm.png 
Views:	2 
Size:	55.5 KB 
ID:	366170

    Click image for larger version. 

Name:	Hellenic Caravan cdirmilgen.png 
Views:	3 
Size:	56.5 KB 
ID:	366171

  6. #6

    Default Re: New Unit Mod Not Showing in Game

    Since the first 10 didn't load in the first time...


    Click image for larger version. 

Name:	Hellenic Caravan All Tables.png 
Views:	6 
Size:	46.3 KB 
ID:	366181

    Click image for larger version. 

Name:	Hellenic Caravan unitvariants.png 
Views:	4 
Size:	66.4 KB 
ID:	366172

    Click image for larger version. 

Name:	Hellenic Caravan variants.png 
Views:	3 
Size:	57.4 KB 
ID:	366173

    Click image for larger version. 

Name:	Hellenic Caravan buildunitallow.png 
Views:	4 
Size:	68.9 KB 
ID:	366180

    Click image for larger version. 

Name:	Hellenic Caravan landunit1.png 
Views:	4 
Size:	72.0 KB 
ID:	366178

    Click image for larger version. 

Name:	Hellenic Caravan landunit2.png 
Views:	3 
Size:	75.4 KB 
ID:	366177

    Click image for larger version. 

Name:	Hellenic Caravan landunit3.png 
Views:	3 
Size:	73.9 KB 
ID:	366176

    Click image for larger version. 

Name:	Hellenic Caravan landunit4.png 
Views:	2 
Size:	74.9 KB 
ID:	366175


    Click image for larger version. 

Name:	Hellenic Caravan custbatperm.png 
Views:	2 
Size:	66.4 KB 
ID:	366179


    Click image for larger version. 

Name:	Hellenic Caravan mainunit1.png 
Views:	4 
Size:	74.5 KB 
ID:	366174

  7. #7
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    I can only see the last 4 pictures, but i'm not sure, that it is ok, that the new unit has no entries in unit class etc in the unit_set_junctions_table.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  8. #8
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    I think, i found the culprit:



    You have written Nab_Hellenic_Caravan_Guard two times in the VMD, so the unit_variants_table can't load the VMD.

    You must delete the too much entry.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  9. #9

    Default Re: New Unit Mod Not Showing in Game

    Unfortunately that was not the culprit - that was just something I didn't catch when I did a Rename All of the tables. But tested again after deleting the redundant name and still not showing up. As to the unit junction table, those three fields at the beginning are empty on all the mods I've checked and in the vanilla data pack, so not sure it could be that either.

    If the first pictures aren't showing up still, I can reupload them. I posted them a second time, and they seem to be opening for me.

    Regardless, appreciate your help!

  10. #10
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    Now they show up. The unit has an id in the main unit table?
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  11. #11

    Default Re: New Unit Mod Not Showing in Game

    Quote Originally Posted by Morticia Iunia Bruti View Post
    Now they show up. The unit has an id in the main unit table?
    Indeed it does. That's the last picture of the second photo dump.

  12. #12
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    If you want, i can tomorrow night look onto the mod. Mostly its always a slight missspelling in a table. On the first look Everything seems fine.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  13. #13

    Default Re: New Unit Mod Not Showing in Game

    Quote Originally Posted by Morticia Iunia Bruti View Post
    If you want, i can tomorrow night look onto the mod. Mostly its always a slight missspelling in a table. On the first look Everything seems fine.
    Yeah that'd be great! I can send you the dropbox link to the mod if that will help.

  14. #14
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    Yeah i will take a look tomorrow evening.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  15. #15

    Default Re: New Unit Mod Not Showing in Game

    Hey, sorry about the wait. I completely spaced actually putting the link in here. You should be able to download this via the link, but if not I'll come up with another solution. Can't seem to get dropbox to give me a link for edit access.

    https://www.dropbox.com/sh/e68hgcto9...8DNiZUWFa?dl=0

  16. #16
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    No problem i will take look look tomorrow. Now is sleeping time.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  17. #17
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    Your main unit table is yellow (outdated).



    You should copy the new main_table from the data_rome2.pack then add a new row with your changes and then delete the vanilla rows.

    It should look like this:



    The red marked columns are new, especially the last one.

    It should work then.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  18. #18

    Default Re: New Unit Mod Not Showing in Game

    Well womp womp to me, it's still not working. But that was good to know - I had an outdated schema, so I couldn't even open the main_units table in the data pack before to check it against the mod. After changes, unit is still not showing up though.

  19. #19
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    I will take a second look these days.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


  20. #20
    Morticia Iunia Bruti's Avatar Praefectus
    Join Date
    May 2015
    Location
    Deep within the dark german forest
    Posts
    6,429

    Default Re: New Unit Mod Not Showing in Game

    The factions are wrong named in these three tables:

    Nab_hellenic_caravan_guard_units_custom_battle_permissions_table



    Nab_hellenic_caravan_guard_unit_variants_table



    Nab_hellenic_caravan_guard_commander_unit_permissions_table



    In all three tables the faction entry must be renamed to rom_nabatea.

    3c_nabatea is for Nabatea in the Empire-Divided-DlC.
    Being like you are
    Well this is something else, who would comprehend?
    But some that do, lay claim Divine purpose blesses them
    That's not what I believe, and it doesn't matter anyway
    A part of your soul ties you to the next world
    Or maybe to the last, but I'm still not sure


    VNV Nation - Illusion


Page 1 of 2 12 LastLast

Posting Permissions

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