caius britannicus
11-04-2006, 22:28
I'm trying to get a building to work in my mod. Its the only building I've tried to add so far. Heres what has beeen done so far. Created the model and texture and put them in the appropriate folders in teh BI folder. I edited the descr_items and descr_items.db using alpacas method. THat worked. I then made a file dbb_crusades_keep.txt which I added the following entry to:
crusades_stronghold_keep
{
stat_cat indestructable
localised_name none
level
{
min_health 0
battle_stats
item crusades_stronghold_keep
physical_info none
}
}
Then I added the line
Include dbb_crusades_keep.txt
to the descr_buldings_battle.txt right after the line for the BI dbb include. I then went to my settlement plan that I am using:
plan
{
floor underlay_egyptian_fort.cas overlay_egyptian_fort.cas
street_plan pathfinding_egyptian_fort.cas
borders
{
gateway, -96, 0, -90, 0
gateway, 96, 0, 90, 0
gateway, 0, -160, 0, 0
straight, 96, -128, 90, 0
straight, 96, 64, 90, 0
straight, -96, -128, -90, 0
straight, -96, 64, -90, 0
straight, 64, 96, -180, 0
straight, -64, 96, -180, 0
straight_link, -96, -96, -90, 0
straight_link, 96, -96, 90, 0
straight_link, 32, 96, 180, 0
straight_link, -32, 96, 180, 0
straight, 96, -64, 90, 0
straight, -96, -64, -90, 0
straight, 0, 96, 180, 0
straight, -64, -160, 0, 0
straight, 64, -160, 0, 0
tower_external_corner_link, -96, -160, 0, 0
tower_external_corner_link, 96, -160, 90, 0
tower_external_corner_link, 96, 96, -180, 0
tower_external_corner_link, -96, 96, -90, 0
}
; road joiners
; must be called one of the following..
;slot_road_joiner_no_road_into_roman_town
;slot_road_joiner_muddy_path_into_roman_town
;slot_road_joiner_paved_road_into_roman_town
gateway_slot_into_flat_town, 128, 0, 0, 0
gateway_slot_into_flat_town, -128, 0, 180, 0
gateway_slot_into_flat_town, 0, -192, -90, 0
egyptian_haystack, -26.01, -83.94, 0, 0
roman_tenamentE , -80.5012, -142.749, 0.670731, 0
roman_tenamentB , -62.5864, -49.625, 180.0, 0
roman_tenamentB , -30.5864, -35.625, -0, 0
roman_tenamentA , 45.5231, -90.972, 180, 0
roman_tenamentC , -45, 55, -180, 0
roman_tenamentE , -70.5012, -25, 0.670731, 0
crusades_stronghold_keep , 70.743195, 82.567169, 180, 0
roman_tenamentD , -86.6774, -93.7838, 180.0, 0
cavalry_barracks, -50.9395, -109.089, 270.367, 0
cart_B , -70.7613, -66.5733, 86.1286, 0
crates, -54.5447, -66.5891, 180.0, 0
cart_B, -54.5447, -30.5891, 180.0, 0
BI_barb_christian_academic_lvl_3, 45.5231, -30.972, -90, 0
tree_E_palm, 27, -45, 90, 0
tree_E_palm, 154, -45, 90, 0
tree_B, 150, -40, 90, 0
tree_A, 145, -35, 90, 0
bush_A_palm, 144, -33, 90, 0
}
And added the part in bold (note that the plan works fine without the bolded entry. However when I try to view the settlement with the bold entry included the game crashes on loading the battlemap view. If I leave that entry out and just change one of the roman_tenaments to the keep entry I get a crash. I figure it can't be the model/item as the game successfully generated a working item file that I can import into 3ds max no problem. Any help or information into what may be the problem is greatly appreciated.
Right now my base assumption is that I am doing something wrong with the settlement plan.
EDIT: as my post below indicates theres nothing wrong with the settlement plan.
crusades_stronghold_keep
{
stat_cat indestructable
localised_name none
level
{
min_health 0
battle_stats
item crusades_stronghold_keep
physical_info none
}
}
Then I added the line
Include dbb_crusades_keep.txt
to the descr_buldings_battle.txt right after the line for the BI dbb include. I then went to my settlement plan that I am using:
plan
{
floor underlay_egyptian_fort.cas overlay_egyptian_fort.cas
street_plan pathfinding_egyptian_fort.cas
borders
{
gateway, -96, 0, -90, 0
gateway, 96, 0, 90, 0
gateway, 0, -160, 0, 0
straight, 96, -128, 90, 0
straight, 96, 64, 90, 0
straight, -96, -128, -90, 0
straight, -96, 64, -90, 0
straight, 64, 96, -180, 0
straight, -64, 96, -180, 0
straight_link, -96, -96, -90, 0
straight_link, 96, -96, 90, 0
straight_link, 32, 96, 180, 0
straight_link, -32, 96, 180, 0
straight, 96, -64, 90, 0
straight, -96, -64, -90, 0
straight, 0, 96, 180, 0
straight, -64, -160, 0, 0
straight, 64, -160, 0, 0
tower_external_corner_link, -96, -160, 0, 0
tower_external_corner_link, 96, -160, 90, 0
tower_external_corner_link, 96, 96, -180, 0
tower_external_corner_link, -96, 96, -90, 0
}
; road joiners
; must be called one of the following..
;slot_road_joiner_no_road_into_roman_town
;slot_road_joiner_muddy_path_into_roman_town
;slot_road_joiner_paved_road_into_roman_town
gateway_slot_into_flat_town, 128, 0, 0, 0
gateway_slot_into_flat_town, -128, 0, 180, 0
gateway_slot_into_flat_town, 0, -192, -90, 0
egyptian_haystack, -26.01, -83.94, 0, 0
roman_tenamentE , -80.5012, -142.749, 0.670731, 0
roman_tenamentB , -62.5864, -49.625, 180.0, 0
roman_tenamentB , -30.5864, -35.625, -0, 0
roman_tenamentA , 45.5231, -90.972, 180, 0
roman_tenamentC , -45, 55, -180, 0
roman_tenamentE , -70.5012, -25, 0.670731, 0
crusades_stronghold_keep , 70.743195, 82.567169, 180, 0
roman_tenamentD , -86.6774, -93.7838, 180.0, 0
cavalry_barracks, -50.9395, -109.089, 270.367, 0
cart_B , -70.7613, -66.5733, 86.1286, 0
crates, -54.5447, -66.5891, 180.0, 0
cart_B, -54.5447, -30.5891, 180.0, 0
BI_barb_christian_academic_lvl_3, 45.5231, -30.972, -90, 0
tree_E_palm, 27, -45, 90, 0
tree_E_palm, 154, -45, 90, 0
tree_B, 150, -40, 90, 0
tree_A, 145, -35, 90, 0
bush_A_palm, 144, -33, 90, 0
}
And added the part in bold (note that the plan works fine without the bolded entry. However when I try to view the settlement with the bold entry included the game crashes on loading the battlemap view. If I leave that entry out and just change one of the roman_tenaments to the keep entry I get a crash. I figure it can't be the model/item as the game successfully generated a working item file that I can import into 3ds max no problem. Any help or information into what may be the problem is greatly appreciated.
Right now my base assumption is that I am doing something wrong with the settlement plan.
EDIT: as my post below indicates theres nothing wrong with the settlement plan.