Results 1 to 8 of 8

Thread: Black screen when adding unit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Black screen when adding unit

    hi there



    i was adding a new unit and i was stuck, everytime i do anything (in the battle models)the game gets a black screen when opening the splash screen

    i know it's an error from battle_models, but i really don't know where's the problem


    here's the entry:

    Code:
    26 dismounted_lazarus_knights
    1 
    4 
    70 unit_models/_Units/EN_Lmail_Hmail/dismounted_lazarus_knights_lod0.mesh 121 
    70 unit_models/_Units/EN_Lmail_Hmail/dismounted_lazarus_knights_lod1.mesh 900 
    70 unit_models/_Units/EN_Lmail_Hmail/dismounted_lazarus_knights_lod2.mesh 2500 
    70 unit_models/_Units/EN_Lmail_Hmail/dismounted_lazarus_knights_lod3.mesh 6400 
    2 
    9 jerusalem 
    73 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_lazarus.texture 
    80 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_lazarus_normal.texture 
    56 unit_sprites/antioch_Hospitaller_Sergeant_ug1_sprite.spr 
    7 antioch 
    78 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_hospitallerD.texture 
    82 unit_models/_Units/EN_Lmail_Hmail/textures/EN_Lmail_Hmail_crusaderD_normal.texture 
    56 unit_sprites/antioch_Hospitaller_Sergeant_ug1_sprite.spr 
    2 
    9 jerusalem 
    68 unit_models/AttachmentSets/Final Heater Special_antioch_diff.texture 
    68 unit_models/AttachmentSets/Final Heater Special_antioch_norm.texture 
    0  
    7 antioch 
    68 unit_models/AttachmentSets/Final Heater Special_antioch_diff.texture 
    68 unit_models/AttachmentSets/Final Heater Special_antioch_norm.texture 
    0  
    1 
    4 None 
    14 MTW2_Swordsman 
    0  
    2 
    18 MTW2_Sword_Primary 
    14 fs_test_shield 
    0 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

    and the export_descr_unit entry:

    Code:
    type             Dismounted Lazarus Knights
    dictionary       Dismounted_Lazarus_knights     ; Dismounted Lazarus Knights
    category         infantry
    class            heavy
    voice_type       Heavy
    banner faction   main_infantry
    banner holy      crusade
    soldier          Dismounted_Knights_Hospitaller, 48, 0, 1.2
    attributes       sea_faring, hide_forest, very_hardy, can_withdraw
    formation        1.2, 1.2, 2.4, 2.4, 4, square
    stat_health      1, 0
    stat_pri         15, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    ;stat_pri_ex      0, 0, 0
    stat_pri_attr    no
    stat_sec         0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    ;stat_sec_ex      0, 0, 0
    stat_sec_attr    no
    stat_pri_armour  5, 5, 8, metal
    ;stat_armour_ex   5, 0, 0, 0, 5, 8, 6, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        7
    stat_ground      1, -2, 3, 4
    stat_mental      11, normal, highly_trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 720, 155, 65, 150, 720, 4, 150
    armour_ug_levels 2
    armour_ug_models Dismounted_Lazarus_Knights
    ownership        antioch, slave
    era 0            antioch
    era 1            antioch
    ;unit_info        11, 0, 17
    recruit_priority_offset    20
    any help is greatly apreaciatted (sp)
    Last edited by Swagger; June 11, 2008 at 06:45 AM.
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Black screen when adding unit

    You have got the same sprite for two different textures, that might be the problem.
    If this is a complete new unit, you will have to increase the number in the first line.

    PS: if you want to use it for jerusalem then you will have to give ownership to jerusalem in the EDU.










  3. #3
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Black screen when adding unit

    the sprites mean nothing


    and the ownership is meanless


    the problem is IN THE BATTLE_MODELS, focus your attention on it..

    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Black screen when adding unit

    You might want to try this tool: http://www.twcenter.net/forums/downl...o=file&id=1180
    You will have to edit the checker to include all your non standard factions.










  5. #5
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Black screen when adding unit

    my battle_models is already formatted
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Black screen when adding unit

    I am not talking about formatting, I am talking about checking.
    And this is the first line in the ModelDB I was talking about earlier on:
    Code:
    22 serialization::archive 3 0 0 0 0 858 0 0
    You have to increase the number in blue by one if you have added a new unit.
    Last edited by Gigantus; June 12, 2008 at 11:53 AM.










  7. #7
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: Black screen when adding unit

    i know that


    and i added of course, i've already added a bunch of new units, but i haven't reached the limit (500)

    :hmmm:
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  8. #8

    Default Re: Black screen when adding unit

    The only thing I see out of place is this

    9 jerusalem
    68 unit_models/AttachmentSets/Final Heater Special_antioch_diff.texture
    68 unit_models/AttachmentSets/Final Heater Special_antioch_norm.texture
    0 <-----
    7 antioch
    68 unit_models/AttachmentSets/Final Heater Special_antioch_diff.texture
    68 unit_models/AttachmentSets/Final Heater Special_antioch_norm.texture
    0 <-----

    I looked in my models file and I dont have those zeros.

Posting Permissions

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