Results 1 to 3 of 3

Thread: Modding Error: modded building causes crash

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Modding Error: modded building causes crash

    I am a newb in this forum and in RTW modding.
    I tried to add a new building to the game using a guide I found on this forum. I copy-pasted an entry in export_descr_buildings for a temple to the bottom of the and edited the information, based on the guidelines I found, into four new temples.

    The original entry is:
    Spoiler Alert, click show to read: 

    building temple_of_battle
    {
    levels temple_of_battle_shrine temple_of_battle_temple temple_of_battle_large_temple temple_of_battle_awesome_temple temple_of_battle_pantheon
    {
    temple_of_battle_shrine requires factions { dacia, thrace, }
    {
    capability
    {
    happiness_bonus bonus 1
    }
    construction 1
    cost 400
    settlement_min town
    upgrades
    {
    temple_of_battle_temple
    }
    }
    temple_of_battle_temple requires factions { dacia, thrace, }
    {
    capability
    {
    recruit "barb naked fanatics dacian" 0 requires factions { dacia, }
    happiness_bonus bonus 2
    }
    construction 2
    cost 800
    settlement_min large_town
    upgrades
    {
    temple_of_battle_large_temple
    }
    }
    temple_of_battle_large_temple requires factions { dacia, thrace, }
    {
    capability
    {
    recruit "barb naked fanatics dacian" 1 requires factions { dacia, }
    happiness_bonus bonus 3
    recruits_morale_bonus bonus 1
    }
    construction 3
    cost 1600
    settlement_min city
    upgrades
    {
    temple_of_battle_awesome_temple
    }
    }
    temple_of_battle_awesome_temple requires factions { thrace, }
    {
    capability
    {
    recruit "barb naked fanatics dacian" 1 requires factions { dacia, }
    happiness_bonus bonus 4
    recruits_morale_bonus bonus 1
    }
    construction 5
    cost 3200
    settlement_min large_city
    upgrades
    {
    temple_of_battle_pantheon
    }
    }
    temple_of_battle_pantheon requires factions { thrace, }
    {
    capability
    {
    recruit "barb naked fanatics dacian" 2 requires factions { dacia, }
    happiness_bonus bonus 7
    recruits_morale_bonus bonus 2
    }
    construction 6
    cost 6400
    settlement_min huge_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }


    And I changed it to:
    Spoiler Alert, click show to read: 

    building temple_of_north_wind
    {
    levels temple_of_north_wind_shrine temple_of_north_wind_temple temple_of_north_wind_large_temple temple_of_north_wind_awesome_temple temple_of_north_wind_pantheon
    {
    temple_of_north_wind_shrine requires factions { thrace, }
    {
    capability
    {
    happiness_bonus bonus 1
    law_bonus bonus 1
    }
    construction 1
    cost 400
    settlement_min town
    upgrades
    {
    temple_of_north_wind_temple
    }
    }
    temple_of_north_wind_temple requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 2
    happiness_bonus bonus 2
    }
    construction 2
    cost 800
    settlement_min large_town
    upgrades
    {
    temple_of_north_wind_large_temple
    }
    }
    temple_of_north_wind_large_temple requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 3
    happiness_bonus bonus 3
    recruits_morale_bonus bonus 1
    }
    construction 3
    cost 1600
    settlement_min city
    upgrades
    {
    temple_of_north_wind_awesome_temple
    }
    }
    temple_of_north_wind_awesome_temple requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 4
    happiness_bonus bonus 4
    recruits_morale_bonus bonus 1
    }
    construction 5
    cost 3200
    settlement_min large_city
    upgrades
    {
    temple_of_north_wind_pantheon
    }
    }
    temple_of_north_wind_pantheon requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 7
    happiness_bonus bonus 7
    recruits_morale_bonus bonus 3
    }
    construction 6
    cost 6400
    settlement_min huge_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    building temple_of_west_wind
    {
    levels temple_of_west_wind_shrine temple_of_west_wind_temple temple_of_west_wind_large_temple temple_of_west_wind_awesome_temple temple_of_west_wind_pantheon
    {
    temple_of_west_wind_shrine requires factions { thrace, }
    {
    capability
    {
    happiness_bonus bonus 1
    armour 1
    }
    construction 1
    cost 400
    settlement_min town
    upgrades
    {
    temple_of_north_wind_temple
    }
    }
    temple_of_west_wind_temple requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 1
    happiness_bonus bonus 2
    armour 2
    }
    construction 2
    cost 800
    settlement_min large_town
    upgrades
    {
    temple_of_north_wind_large_temple
    }
    }
    temple_of_west_wind_large_temple requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 2
    happiness_bonus bonus 3
    recruits_morale_bonus bonus 1
    armour 3
    }
    construction 3
    cost 1600
    settlement_min city
    upgrades
    {
    temple_of_north_wind_awesome_temple
    }
    }
    temple_of_west_wind_awesome_temple requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 2
    happiness_bonus bonus 4
    recruits_morale_bonus bonus 2
    armour 3
    weapon_simple 1
    }
    construction 5
    cost 3200
    settlement_min large_city
    upgrades
    {
    temple_of_north_wind_pantheon
    }
    }
    temple_of_west_wind_pantheon requires factions { thrace, }
    {
    capability
    {
    law_bonus bonus 7
    happiness_bonus bonus 7
    recruits_morale_bonus bonus 3
    armour 3
    weapon_simple 3
    }
    construction 6
    cost 6400
    settlement_min huge_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    building temple_of_south_wind
    {
    levels temple_of_south_wind_shrine temple_of_south_wind_temple temple_of_south_wind_large_temple temple_of_south_wind_awesome_temple temple_of_south_wind_pantheon
    {
    temple_of_south_wind_shrine requires factions { thrace, }
    {
    capability
    {
    happiness_bonus bonus 1
    trade_fleet 1
    }
    construction 1
    cost 400
    settlement_min town
    upgrades
    {
    temple_of_south_wind_temple
    }
    }
    temple_of_south_wind_temple requires factions { thrace, }
    {
    capability
    {
    trade_fleet 2
    happiness_bonus bonus 2
    }
    construction 2
    cost 800
    settlement_min large_town
    upgrades
    {
    temple_of_south_wind_large_temple
    }
    }
    temple_of_south_wind_large_temple requires factions { thrace, }
    {
    capability
    {
    happiness_bonus bonus 3
    trade_fleet 2
    trade_base_income_bonus bonus 1
    }
    construction 3
    cost 1600
    settlement_min city
    upgrades
    {
    temple_of_south_wind_awesome_temple
    }
    }
    temple_of_south_wind_awesome_temple requires factions { thrace, }
    {
    capability
    {
    trade_base_income_bonus bonus 2
    happiness_bonus bonus 4
    trade_fleet 3
    }
    construction 5
    cost 3200
    settlement_min large_city
    upgrades
    {
    temple_of_south_wind_pantheon
    }
    }
    temple_of_south_wind_pantheon requires factions { thrace, }
    {
    capability
    {
    trade_base_income_bonus bonus 3
    happiness_bonus bonus 7
    trade_fleet 3
    }
    construction 6
    cost 6400
    settlement_min huge_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    building temple_of_east_wind
    {
    levels temple_of_east_wind_shrine temple_of_east_wind_temple temple_of_east_wind_large_temple temple_of_east_wind_awesome_temple temple_of_east_wind_pantheon
    {
    temple_of_east_wind_shrine requires factions { thrace, }
    {
    capability
    {
    happiness_bonus bonus 2
    }
    construction 1
    cost 400
    settlement_min town
    upgrades
    {
    temple_of_north_wind_temple
    }
    }
    temple_of_east_wind_temple requires factions { thrace, }
    {
    capability
    {
    population_health_bonus bonus 1
    farming_level 1
    happiness_bonus bonus 2
    }
    construction 2
    cost 800
    settlement_min large_town
    upgrades
    {
    temple_of_east_wind_large_temple
    }
    }
    temple_of_east_wind_large_temple requires factions { thrace, }
    {
    capability
    {
    population_health_bonus bonus 2
    happiness_bonus bonus 3
    farming_level 2
    }
    construction 3
    cost 1600
    settlement_min city
    upgrades
    {
    temple_of_east_wind_awesome_temple
    }
    }
    temple_of_east_wind_awesome_temple requires factions { thrace, }
    {
    capability
    {
    population_health_bonus bonus 3
    happiness_bonus bonus 4
    farming_level 3
    }
    construction 5
    cost 3200
    settlement_min large_city
    upgrades
    {
    temple_of_east_wind_pantheon
    }
    }
    temple_of_east_wind_pantheon requires factions { thrace, }
    {
    capability
    {
    population_health_bonus bonus 4
    happiness_bonus bonus 8
    farming_level 4
    }
    construction 6
    cost 6400
    settlement_min huge_city
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }

    I also edited the export_descr_buildings file accordingly. The game does not error or crash, it just flashes to the title screen for a while and then abruptly vanishes. What did I miss or do wrong?

    I backed up the files and I know how to bring them back to normal so it's no big deal, but I'm kinda bummed out.

    Edited (Brusilov): Added spoiler tags....
    Last edited by Brusilov; February 19, 2013 at 08:27 AM.

  2. #2
    AngryTitusPullo's Avatar Comes Limitis
    Join Date
    Jan 2006
    Location
    Kuala Lumpur
    Posts
    13,018

    Default Re: Modding Error: modded building causes crash

    Dia you add -show_err in the shortcut ? Did you delete map.rwm before starting the game ?

    Did you add the new entries in the export_buildings.txt as well ?

    Did you add the new image buildings (shouldn't caused error though placeholder building will bge shown).


    CIVITATVS CVM AVGVSTVS XVI, MMVI
    IN PATROCINIVM SVB Dromikaites SVB MareNostrum SVB Quintus Maximus
    Want to know more about Rome II Total Realism ? Follow us on Twitter & Facebook

  3. #3

    Default Re: Modding Error: modded building causes crash

    Quote Originally Posted by LestaT View Post
    Dia you add -show_err in the shortcut ? Did you delete map.rwm before starting the game ?

    Did you add the new entries in the export_buildings.txt as well ?

    Did you add the new image buildings (shouldn't caused error though placeholder building will bge shown).
    1 - I didn't know about that, how do I do it?

    2 - Yeah. still doesn't work :/

    3 - I didn't. How do I do that?

Posting Permissions

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