Results 1 to 6 of 6

Thread: Modding Alliance

  1. #1

    Default Modding Alliance

    I modded the AI by changing
    1) core_attitudes
    2) faction relationships
    3) campaign AI settings

    All of these have been tweaked somewhat to an extent where I have factions that have military access, alliance, trade rights granted to each other, right when you start the campaign. Now romans arent the only once who form unbreakable alliances. I did these so everything is balanced though.

    Now the question I had was what triggers the roman factions later in the game to become hostile to you, is it scripted somewhere? Or are they always your friends until you back stab em ...hehe.

    Also I changed a few other things and use show_err if the game goes back to the main menu when I try to start a new campaign. Unfortuanetly show_err doesnt work if my game crashed to desktop when during AI turn... it sucks so much because I thought I finally fixed all the errors, and like on the tenth turn as the egyptians, it just CTDs' and never shows what went wrong...

    I hope someone can give me an idea, or a tool that can check for errors that makes the game CTD.

  2. #2

    Default Modding Alliance

    Well, I tested my game yesterday, and I was very surprised at what happened.
    I was playing carthage and numidia back stabbed me! even though I had military access and an alliance with it just like roman factions have with each other if you check out the descr_strat.txt.
    here is the modded code:
    Also factions that were hostile to others like spain and gaul (410) formed an alliance and attacked me instead (carthage).
    And hostile factions (410) made alliances with thier worst enemies and I could not even get a trade agreement with egypt which had no relationship to me.
    What is up with all this. Why does Rome stay allied so well, and how do I share LOS with my -10 100 allies (core attitude -10, faction relation 100)

    >>>> start of diplomacy section <<<<
    ;DS_ALLIED = 0
    ;DS_SUSPICIOUS = 100
    ;DS_NEUTRAL = 200
    ;DS_HOSTILE = 400
    ;DS_AT_WAR = 600

    core_attitudes romans_julii, -10 romans_brutii, romans_scipii, romans_senate
    core_attitudes romans_julii, 400 carthage, gauls
    core_attitudes romans_julii, 600 slave
    core_attitudes romans_brutii, -10 romans_julii, romans_scipii, romans_senate
    core_attitudes romans_brutii, 600 slave
    core_attitudes romans_scipii, -10 romans_julii, romans_brutii, romans_senate
    core_attitudes romans_scipii, 600 slave
    core_attitudes romans_senate, -10 romans_julii, romans_brutii, romans_scipii
    core_attitudes romans_senate, 600 slave
    core_attitudes macedon, 90 romans_brutii
    core_attitudes macedon, -10 seleucid, greek_cities
    core_attitudes macedon, 600 slave
    core_attitudes egypt, 410 numidia
    core_attitudes egypt, 600 slave
    core_attitudes seleucid, 410 parthia
    core_attitudes seleucid, -10 greek_cities, macedon
    core_attitudes seleucid, 600 slave
    core_attitudes carthage, 410 romans_julii, romans_scipii
    core_attitudes carthage, -10 numidia
    core_attitudes carthage, 600 slave
    core_attitudes parthia, -10 armenia
    core_attitudes parthia, 600 slave
    core_attitudes pontus, 410 armenia
    core_attitudes pontus, 600 slave
    core_attitudes gauls, 410 romans_julii, spain
    core_attitudes gauls, 600 slave
    core_attitudes gauls, -10 britons
    core_attitudes germans, 90 gauls
    core_attitudes germans, 310 britons
    core_attitudes germans, 600 slave
    core_attitudes britons, 310 germans
    core_attitudes britons, -10 gauls
    core_attitudes britons, 600 slave
    core_attitudes armenia, -10 parthia
    core_attitudes armenia, 600 slave
    core_attitudes dacia, 90 romans_julii
    core_attitudes dacia, 410 germans
    core_attitudes dacia, -10 thrace
    core_attitudes dacia, 600 slave
    core_attitudes greek_cities, 410 romans_brutii, romans_scipii
    core_attitudes greek_cities, -10 macedon, seleucid
    core_attitudes greek_cities, 600 slave
    core_attitudes numidia, -10 carthage
    core_attitudes numidia, 600 slave
    core_attitudes scythia, 600 slave
    core_attitudes spain, 410 gaul
    core_attitudes spain, 310 carthage
    core_attitudes spain, 600 slave
    core_attitudes thrace, 310 romans_brutii
    core_attitudes thrace, -10 dacia
    core_attitudes thrace, 600 slave
    core_attitudes slave, 600 romans_julii, romans_brutii, romans_scipii, romans_senate, macedon, egypt, seleucid, carthage, parthia, pontus, gauls, germans, britons, armenia, dacia, greek_cities, numidia, scythia, spain, thrace

    faction_relationships romans_julii, 100 romans_brutii
    faction_relationships romans_julii, 100 romans_scipii
    faction_relationships romans_julii, 100 romans_senate
    faction_relationships romans_julii, 600 slave
    faction_relationships romans_brutii, 100 romans_julii
    faction_relationships romans_brutii, 100 romans_scipii
    faction_relationships romans_brutii, 100 romans_senate
    faction_relationships romans_brutii, 600 slave
    faction_relationships romans_scipii, 100 romans_julii
    faction_relationships romans_scipii, 100 romans_brutii
    faction_relationships romans_scipii, 100 romans_senate
    faction_relationships romans_scipii, 600 slave
    faction_relationships macedon, 600 slave
    faction_relationships macedon, 100 greek_cities
    faction_relationships macedon, 100 seleucid
    faction_relationships egypt, 600 slave
    faction_relationships seleucid, 100 greek_cities
    faction_relationships seleucid, 100 macedon
    faction_relationships seleucid, 600 slave
    faction_relationships carthage, 100 numidia
    faction_relationships carthage, 600 slave
    faction_relationships parthia, 100 armenia
    faction_relationships parthia, 600 slave
    faction_relationships pontus, 600 slave
    faction_relationships gauls, 100 britons
    faction_relationships gauls, 600 slave
    faction_relationships germans, 600 slave
    faction_relationships britons, 100 gauls
    faction_relationships britons, 600 slave
    faction_relationships armenia, 100 parthia
    faction_relationships armenia, 600 slave
    faction_relationships dacia, 100 thrace
    faction_relationships dacia, 600 slave
    faction_relationships greek_cities, 600 slave
    faction_relationships greek_cities, 100 seleucid
    faction_relationships greek_cities, 100 macedon
    faction_relationships numidia, 100 carthage
    faction_relationships numidia, 600 slave
    faction_relationships scythia, 600 slave
    faction_relationships spain, 600 slave
    faction_relationships thrace, 100 dacia
    faction_relationships thrace, 600 slave
    faction_relationships slave, 600 romans_julii, romans_brutii, romans_scipii, romans_senate, macedon, egypt, seleucid, carthage, parthia, pontus, gauls, germans, britons, armenia, dacia, greek_cities, numidia, scythia, spain, thrace

  3. #3
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: Modding Alliance

    Hi there,
    Not 100% sure, but I think that those attitudes and relationships are mostly for AI factions. The game tends to attack more frequently to the human player, irrespective of those parameters.
    Regarding the romans, a superfaction is over them, the senate, that seems to control the relationships between the three roman factions in a different way from the relationships between the rest of factions.

    In conclusion, and unfortunately, things are not so simple as they seem.

    Questions as number of troops, paths to expansion, presence of rebel regions, etc, condition the AI behavior.

  4. #4

    Default Re: Modding Alliance

    Oh, so is there anyway to create custom alliances between factions where they dont go backstabbing you in the tenth round? I want to create a Macedon, Greek, Seleucid super alliance with all factions having military access, and traderights. I know the basic stuff where I change the core_attitude to -10 and faction relationship to 100. But how do I make them not break this alliance, is there a way to copy the model for the roman alliance?

  5. #5
    Member Member Stuie's Avatar
    Join Date
    Aug 2001
    Location
    Upper Gwynedd, PA
    Posts
    406

    Default Re: Modding Alliance

    Quote Originally Posted by AlexanderTheNotSoGreat
    Oh, so is there anyway to create custom alliances between factions where they dont go backstabbing you in the tenth round?
    I have yet to find a way to do this. The AI could care less about the diplo settings - it wants to expand and will go through the human player if there are no weak rebel provinces available.

    It's kind of sad because it is so predictable - same back-stab every game.

  6. #6

    Default Re: Modding Alliance

    You are right, but not if you play the romans, they never back stabd each other, well as long as Ive played them.
    I think the thing to look for in the descr_strat.txt file is SUPERFACTION, because you find it under the roman factions names somewhere, and this must have something to do with the unbreakable alliance and shared line of sight between roman factions.
    Anyone know anything more about this?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO