Page 7 of 19 FirstFirst 1234567891011121314151617 ... LastLast
Results 121 to 140 of 409

Thread: How to add new building slots upgrading cities - NEW

Hybrid View

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

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Lazy Knight View Post
    i got a questions: Is it still the 10th and 11th row in the siegable garrison for the coordinates? Or 11th and 12th? (they look more alike).

    Ok, stupid question, they still are.
    the 12th is UInt, not Int....
    That's right. I don't know if you use AOR in your mod but have in mind that some regions do not allow to add recourse (CTD on first turn hit) but you can change an existing. E.g. in RTI 3 french_guiana.




  2. #2
    SonOfOdin's Avatar More tea?
    Join Date
    Mar 2009
    Location
    Malta
    Posts
    6,934

    Default Re: How to convert a minor city to a major one-FINAL

    I'll try to change Valletta to a Major Settlement...
    /The Eagle Standard/Under the patronage of Omnipotent-Q/Werder Bremen fan/

  3. #3

    Default Re: How to convert a minor city to a major one-FINAL

    If you follow the tutorial you will do it. The numbers (Id's) are different after 1.4 patch but the procedure is the same. If any problem post and I'll help you out. Good lack!




  4. #4

    Default Re: How to convert a minor city to a major one-FINAL

    Can't I just copy the building_slot into the other regions array? Instead of deleting them there and adding them there with entering the entries again?


  5. #5

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Lazy Knight View Post
    Can't I just copy the building_slot into the other regions array? Instead of deleting them there and adding them there with entering the entries again?
    I think you have to change more entries in this way buy yes you can do it. Personally I delete them and assign the cai slots of deleted building in the remaining government building (one building with 4 or 5 cai records). In this way I can check the downgrade starting the campaign, since the next checking point will be at the end of the procedure (actually there is none). So if a mistake has happened is easier to spot it.




  6. #6

    Default Re: How to convert a minor city to a major one-FINAL

    sorry for continuing to spam your beatiful thread, but:
    Should one not convert the not-deleted Region Slot Entry to settlement_minor?
    (and the building to a one fitting that slot)
    Last edited by Lazy Knight; September 28, 2009 at 02:41 PM.


  7. #7

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Lazy Knight View Post
    sorry for continuing to spam your beatiful thread, but:
    Should one not convert the not-deleted Region Slot Entry to settlement_minor?
    (and the building to a one fitting that slot)
    I think it works either type. I prefer the settlement_government since it has more levels for development and I think recruits more types of units.




  8. #8

    Default Re: How to convert a minor city to a major one-FINAL

    Ok, it will keep the Major City options then. So it's not converted in a real minor city

    Also, should the region.esf's entries for the new minor cities building slots not be deleted?


    Edit: I got it working! At last! Heureka!

    Thanks for the tutorial man
    Last edited by Lazy Knight; September 28, 2009 at 03:34 PM.


  9. #9

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Lazy Knight View Post
    Ok, it will keep the Major City options then. So it's not converted in a real minor city

    Also, should the region.esf's entries for the new minor cities building slots not be deleted?


    Edit: I got it working! At last! Heureka!

    Thanks for the tutorial man
    You are welcome ! As you should already know you don't change x-major (and now minor) regions.esf entries, or you get a CTD.




  10. #10
    Gomer_Pyle's Avatar Ducenarius
    Join Date
    May 2007
    Location
    Norway
    Posts
    909

    Default Re: How to convert a minor city to a major one-FINAL

    Hi husserlTW. I have followed your tut to the letter and I simply get CTD when starting to load the campaign. Have you changed the tut anything? Last time I did this i seem to remember that you had to delete building slots from region.esf from your region turned minor (from major). Example. Tunis made minor and Hannover made major. Add slots for hannover and delete for tunis? Or dont touch it???

    Also...

    Quote you:

    Last step is to make some changes in regions.esf file. Open the file with EsfEditor and in root/region_data/regions find the region of the city you are converting (Hannover). In regions/settlement_and_slots/slot_descriptions clone 4 times the first slot_descriptions. In the first slot_descriptions change the …..: settlement_minor in the first and second line with settlement_government.

    Do you need to change the second line? Lets say first line is settlement:savoy:turin:settlement_government and second line: settlement_minor Then why doesnt it crash with this? What does the second line actually do?

    Hope i made sence. Thanks.

    We make war that we may live in peace.

    -Aristotle-

  11. #11

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Gomer_Pyle View Post
    Hi husserlTW. I have followed your tut to the letter and I simply get CTD when starting to load the campaign. Have you changed the tut anything? Last time I did this i seem to remember that you had to delete building slots from region.esf from your region turned minor (from major). Example. Tunis made minor and Hannover made major. Add slots for hannover and delete for tunis? Or dont touch it???

    Also...

    Quote you:

    Last step is to make some changes in regions.esf file. Open the file with EsfEditor and in root/region_data/regions find the region of the city you are converting (Hannover). In regions/settlement_and_slots/slot_descriptions clone 4 times the first slot_descriptions. In the first slot_descriptions change the …..: settlement_minor in the first and second line with settlement_government.

    Do you need to change the second line? Lets say first line is settlement:savoy:turin:settlement_government and second line: settlement_minor Then why doesnt it crash with this? What does the second line actually do?

    Hope i made sence. Thanks.
    You don't touch the regions.esf entries for the x-major and now minor city (Tunis in your case). The errors are usually made by wrong entries like id's, type of buildings, grammatical errors, etc.

    Edit: Be sure that you used the right CAI_SETTLEMENT id. Check if they belong to the right region/faction.
    Last edited by husserlTW; October 15, 2009 at 11:16 AM.




  12. #12
    Gomer_Pyle's Avatar Ducenarius
    Join Date
    May 2007
    Location
    Norway
    Posts
    909

    Default Re: How to convert a minor city to a major one-FINAL

    I did this for Jerusalem and Savoy once and then i deleted the old entries for jerusalem (turned minor) and that worked.

    Also I put CAI_SETTLEMENT id (hannover = 2361) over the 3 buildings i took from tunis. Tunis had 1543 . And the building ID was correct too. Did this over and over again 3 times.

    How is the coordinates for newly made minor city done in region.esf then? i know we did change it in startpos.esf (bottom of your DataConvSheet)


    Edit: I managed to get it to work. You must delete the region.esf slots for your old major city. Only way i got it to work. Cannot see anything not working correctly.
    Last edited by Gomer_Pyle; October 15, 2009 at 11:47 AM.

    We make war that we may live in peace.

    -Aristotle-

  13. #13

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Gomer_Pyle View Post
    I did this for Jerusalem and Savoy once and then i deleted the old entries for jerusalem (turned minor) and that worked.
    Do as you like, my opinion is not to touch them or else you'll get a CTD.

    How is the coordinates for newly made minor city done in region.esf then? i know we did change it in startpos.esf (bottom of your DataConvSheet)
    DataConvSheet is only for startpos.esf (Tunis) not regions.esf. The coordinates of regions.esf has nothing to do with the position of the city in campaign map (that is determined by startpos). They link to several records of CAI field in startpos and to other map files like poi.esf, etc., that's why you can't delete regions.esf entries. You are allowed only to add.




  14. #14
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: How to convert a minor city to a major one-FINAL

    I snooped around more in the CAI entries. I'm pretty sure now that this method is NOT AI-safe. I don't want to go much into, but the AI will not be able to upgrade your buildings because it won't even know they're there. You have to edit the appropriate CAI_INTERFACE_MANAGERs by removing the beliefs, desires and intentions related to the slots from the old AI and adding them to the new AI. Did you ever see the AI building up these new slots?

    No thing is everything. Every thing is nothing.

  15. #15

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by alpaca View Post
    I snooped around more in the CAI entries. I'm pretty sure now that this method is NOT AI-safe. I don't want to go much into, but the AI will not be able to upgrade your buildings because it won't even know they're there. You have to edit the appropriate CAI_INTERFACE_MANAGERs by removing the beliefs, desires and intentions related to the slots from the old AI and adding them to the new AI. Did you ever see the AI building up these new slots?
    I think this is not quite right. Here we don't have to do with new id's. That was the problem with the exiting bug. The AI finds the entries because they exist and adds them to the new faction owner's BDI as it is determined by the CAI owner id. It is like they've been captured by another faction.

    Anyway if this side of view was correct we shouldn't be able to make any ownership changes in regions, armies, etc. But we can do all these and teh AI has no problem to handle them.




  16. #16
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by husserlTW View Post
    I think this is not quite right. Here we don't have to do with new id's. That was the problem with the exiting bug. The AI finds the entries because they exist and adds them to the new faction owner's BDI as it is determined by the CAI owner id. It is like they've been captured by another faction.

    Anyway if this side of view was correct we shouldn't be able to make any ownership changes in regions, armies, etc. But we can do all these and teh AI has no problem to handle them.
    Hmm that's a point indeed. So if you check a savegame the CAI entries have moved to the correct interface manager?

    No thing is everything. Every thing is nothing.

  17. #17
    Gomer_Pyle's Avatar Ducenarius
    Join Date
    May 2007
    Location
    Norway
    Posts
    909

    Default Re: How to convert a minor city to a major one-FINAL

    hussarltw: Well it works and we in IS havent had a CTD with this approach to this date. If we do then I will do as you think.

    alpaca: Have you actually seen this happen? The AI not upgrading i mean? Reason being I do beleave I saw Savoy upgrading buildings.

    Anyways. The slots from the old AI you talk about. Are they linked to the CAI buildings??? The ones I just changed ownership on???

    Let me refrase this. How would you know which slots in CAI_INTERFACE_MANAGER that is owned by in my example Hannover and Barbary States.
    Last edited by Gomer_Pyle; October 15, 2009 at 12:12 PM.

    We make war that we may live in peace.

    -Aristotle-

  18. #18
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Gomer_Pyle View Post
    hussarltw: Well it works and we in IS havent had a CTD with this approach to this date. If we do then I will do as you think.

    alpaca: Have you actually seen this happen? The AI not upgrading i mean? Reason being I do beleave I saw Savoy upgrading buildings.

    Anyways. The slots from the old AI you talk about. Are they linked to the CAI buildings??? The ones I just changed ownership on???

    Let me refrase this. How would you know which slots in CAI_INTERFACE_MANAGER that is owned by in my example Hannover and Barbary States.
    Well I have tried adding a slot to a faction and it worked fine for the player but the AI couldn't do anything with it. I'd be happy to be proven wrong anyways so if you have time and a startpos where this is implemented, conduct a test. Run the game and see if the AI upgrades the slots you added. If it didn't after 30 turns I'm probably right.

    You would search for the ID of your CAI_WORLD_BUILDING_SLOT and find the CAI_BELIEF that is tied to it. The CAI_INTERFACE_MANAGERS are for specific factions, so the faction that has the right beliefs, desires and intentions, should think it owns the slot while the faction you added the slot to won't believe it has it. At least, that's my current understanding.

    No thing is everything. Every thing is nothing.

  19. #19
    Gomer_Pyle's Avatar Ducenarius
    Join Date
    May 2007
    Location
    Norway
    Posts
    909

    Default Re: How to convert a minor city to a major one-FINAL

    Will do... Thanks Alpaca.

    I thought the BELIEF was tied up to religion???

    Edit:

    I got a guy testing it now. He says Hannover upgraded the military and happiness buildings in turn 2. Will test myself too.
    Last edited by Gomer_Pyle; October 15, 2009 at 12:34 PM.

    We make war that we may live in peace.

    -Aristotle-

  20. #20
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: How to convert a minor city to a major one-FINAL

    Quote Originally Posted by Gomer_Pyle View Post
    Will do... Thanks Alpaca.

    I thought the BELIEF was tied up to religion???

    Edit:

    I got a guy testing it now. He says Hannover upgraded the military and happiness buildings in turn 2. Will test myself too.
    No, it's not tied to religion

    Sounds like a good piece of news though.

    No thing is everything. Every thing is nothing.

Posting Permissions

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