Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: delete

Hybrid View

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

    Default delete

    no longer interested in participating
    Last edited by RubiconDecision; November 13, 2011 at 09:33 PM.

  2. #2
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    Can you think of a more simple way to ask your question? It's hard to see what you are after, RTW's population/recruitment mechanics maybe?
    Last edited by Taiji; January 27, 2011 at 08:33 AM.

  3. #3
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    That's RTW and I think it's possible to enable the feature, but I've no idea where you'd find out how.

  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    Sorry I misunderstood. Seeing what you are doing there I really have no suggestions to offer.
    Last edited by Taiji; January 27, 2011 at 12:08 PM.

  5. #5
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    FactionTurnEnd doesn't export a settlement (the log probably tells you as much if you check it), you can use SettlementTurnEnd instead.
    Last edited by Taiji; January 27, 2011 at 12:12 PM.

  6. #6

    Default Re: Decrementing population for soldiers generated from a settlement

    Take a look in descr_campaign_db.xml the first section is recruitment, I'd suggest some experimentation with the 'deplenish' lines. Although they may refer to something else, but if so I don't know what...

  7. #7
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    I think those deplenish lines refer to the recruitment pool.

    For example; <deplenish_multiplier float="0.5"/> with that I'd imagined that perhaps we can have 1 listed in the pool, but then be able to recruit 2 units because recruiting 1 unit reduces the pool by 0.5 units.

    Pretty sure I read somewhere that RTW's thing can be turned on... No idea where though.

    RubiconDecision, you're welcome. I wish I could remember this RTW thing, it might save you a load of work scripting roughly the same feature.
    Last edited by Taiji; January 27, 2011 at 01:09 PM.

  8. #8
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    Notice that Tsarsies does it to the player only in those examples. Even in RTW where it was a standard feature the AI handled it badly.

  9. #9
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    Quote Originally Posted by RubiconDecision View Post
    Can you elaborate on why the RTW AI handled decrementing the populace badly?
    Sorry, yes, I should have explained it in that post but I was too busy.

    Basically I think the AI looks at how much money it has and then spends, it doesn't check populations. So the interesting mechanic of recruitment reducing population is simply a game the AI doesn't play. Any time we try to get the AI to play a game it isn't designed for it falls flat on it's face, and let's face it - it stumbles around as it is, so it's not surprising.

    In that instance 'falling flat on it's face' would mean that it will prevent itself from being able to upgrade settlements (if they still require population level x). An extreme example would be if it decides to exterminate a settlement and then recruit troops, the population is going nowhere. The settlement actually becomes something of a liability, because it keeps producing the only troops it can and will not develop to be able to produce better troops. So the faction has a portion of it's military effectively 'retarded', so to speak.

    Quote Originally Posted by Gigantus View Post
    monitor_event SettlementTurnEnd SettlementName London
    console_command add_population London -500
    end_monitor
    That looks like it should work if assumptions are correct, e.g. minus values are allowed.

    But RubiconDecision's results seem to indicate that the command is not having an effect. Good idea to check that, Gigantus.
    Last edited by Taiji; January 28, 2011 at 10:53 AM.

  10. #10
    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: Decrementing population for soldiers generated from a settlement

    I remember playing RTW in the old days and was initially puzzled why the AI settlements (most notably Gaul) never grew, not even to the next level. I eventually took a settlement somewhere in the North West and it didn't even a population of 1000! And that was somewhere around round 150.

    But it certainly made for some epic battles!

    The reason why Tsarsies script works, is because the command "add_population" is a console command and needs that 'prefix':

    console_command add_population

    You had forgotten that.

    This will probably work:

    monitor_event SettlementTurnEnd SettlementName London
    and GarrisonToPopulationRatio > 50
    console_command add_population London -500
    end_monitor










  11. #11
    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: Decrementing population for soldiers generated from a settlement

    These are the examples from the DocuDemons:

    add_population, London 500 or add_population London, -500

    Why don't you first determine if that command works by running a simple monitor without any other conditions:

    monitor_event SettlementTurnEnd SettlementName London
    console_command add_population London -500
    end_monitor










  12. #12
    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: Decrementing population for soldiers generated from a settlement

    I ran the script with a little adjustment for my mod (1648). See pics for results

    monitor_event SettlementTurnEnd SettlementName Visby
    console_command add_population Visby -5000
    end_monitor
    Which means it works. Only problem could be the spelling of your settlement, make sure it is the same as in the descr_regions file










  13. #13
    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: Decrementing population for soldiers generated from a settlement

    London_Province = Region name
    London = Settlement name

    Is your campaign_script actually working? There is a simple way to test it:

    1. Check if you have this entry right at the bottom of your descr_strat
    script
    campaign_script.txt

    2. add this line right underneath the 'script' entry in your script
    restrict_strat_radar false

    This entry will remove the radar map restriction (the plank on the left side of it) provided your script works. If the plank doesn't disappear, then you have a problem with your script and need to check your log for errors.
    Last edited by Gigantus; January 29, 2011 at 07:49 AM.










  14. #14
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Decrementing population for soldiers generated from a settlement

    Quote Originally Posted by RubiconDecision View Post
    Did some checking. Apparently Deus lo Vult uses Tsarsies decrement increment script for population. I'm re-downloading it to see how script works and track down my error.
    You'll find that it doesn't contain that script.

  15. #15
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Decrementing population for soldiers generated from a settlement

    One thing you must remember when using console_command commands is to always have a campaign_wait, after each line. This allows the event to be processed, before moving on to subsequent lines of code. I suggest something like campaign_wait of 0.2, or something.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  16. #16
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Decrementing population for soldiers generated from a settlement

    Nah, a 0.1 wait is almost imperceptible unless you use it on a vast scale.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  17. #17
    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: Decrementing population for soldiers generated from a settlement

    Gigantus' Help Service proudly presents: "The thingy that spoiled the script" - coming to a mod near you

    The thingy that spoiled the script
    14:03:14.488 [game.script] [error] Script parsing error at line 1398, column 15 in mods/kingdoms_grand_campaign_mod/data/world/maps/campaign/imperial_campaign/campaign_script.txt
    invalid faction type


    Simply search the log for this entry: [error] (you got quite a few of those)
    Last edited by Gigantus; January 30, 2011 at 03:32 AM.










  18. #18
    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: Decrementing population for soldiers generated from a settlement

    Did you click on that dark thingy to see the error that crashes your script? About 'wrong faction'?










  19. #19
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Decrementing population for soldiers generated from a settlement

    Use Notepad++. I use it so I have the line numbers.

  20. #20
    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: Decrementing population for soldiers generated from a settlement

    In notepad you simply press Ctrl+G and then enter the required line number. But it only works if you don't have wordwrap (Format\WordWrap) switched on.

    Your problem actually lies in the descr_cultures file. The mesoamerican culture hasn't got castles assigned to them in there, but apparently in the EDB the conversion from city to castle and vice versa lists the mesoamerican culture in the building requirements, probably as a faction or as a culture or as 'all'. Same problem with the apache I would guess.

    To ease the suffering, I would suggest to copy the castle entries in descr_cultures form the southern_european culture into these cultures. Don't forget to make a backup before you start.










Page 1 of 2 12 LastLast

Posting Permissions

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