Results 1 to 9 of 9

Thread: Sandbox: Testing New Things

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Sandbox: Testing New Things

    This thread will be used to provide some small updates that myself or someone else want people to test before adding into a patch or to conclude some research into how something works.

    --------------------------------------------

    I will try and get the first test thing up today, which is that I'd like a few people testing some recruitment pool combination's so we can see how replenishment rate and similar things work onto each other when two units with different stats in the same building are present. Confusing? Maybe, but it's integral to determine how exactly this works for our recruitment system, as depending on if it works as I expect we may have to re-think some of the pool modification ideas.

  2. #2

    Default Re: Sandbox: Testing New Things

    Sounds good. I'm sure we'll have lots of volunteers.

  3. #3
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Sandbox: Testing New Things

    Okay. This will work kind of like a survey test. I have created 5 different recruitment pool scenarios that should allow for easily observable results(one way or another). These are attached to some accept-decline scrolls to provide easy access. I want as many people to do this as possible because any scientific observation needs to be proven again and again before it can be accepted as fact. If only 1 or 2 people get results, even if they're similar results, it's hard to conclude anything.

    Our Goal: Determine certain properties of the recruitment pools in regards to how two pools act upon each other for usage with scripts and events.

    What You Do: Download the files, follow the instructions, and report your results.

    It is recommended that you run the game in Windowed mode whenever you're testing anything of your own or otherwise since CTDs are more tolerable and you can easily switch between the game and the forum. To do so open up auh.cfg(in your main M2 directory) and add the part in red:

    [video]
    movies = false
    windowed = true

    Download

    Grab the files from the bottom of this post where they are attached.
    • Backup the files(or temporarily rename so there's no overwrite). Use test environment installation if applicable.
    • Add the new files. Folders indicated in respect to main M2 directory.(There's a different campaign script for each test so I wouldn't have to find different ways to fire all of them)
      • export_descr_buildings.txt - /data/
      • descr_strat.txt - /data/world/maps/campaign/imperial_campaign/
      • campaign_script.txt - /data/world/maps/campaign/imperial_campaign/


    Test #1

    The goal of Test #1 is to determine what will happen when two recruitment pools with different parameters but that recruit the same unit from the same building, are active at the same time.

    Instructions

    Note: If the game CTDs at any time, first try repeating the steps twice more after starting a new campaign before answering Yes to it CTDing. It's possible the game might CTD randomly due to an unrelated problem and we don't want that influencing the results.

    1. Add in the campaign_script_test1.txt and rename it campaign_script.txt.
    2. Start new campaign game as Song Dynasty.
    3. Select Lin'an settlement and go to Recruitment tab.
    4. Answer Question #1 below.
    5. End Turn.
    6. Select Lin'an settlement and go to Recruitment tab.
    7. Answer Question #2 below.
    8. Recruit two units of Song Zhanmadao. End Turn.
    9. Select Lin'an settlement and go to Recruitment tab.
    10. Answer Question #3 below.
    11. Select the Song Zhanmadao unit you recruited and look at its stats.
    12. Answer Question #4 below.

    Questions

    Please answer all questions when indicated in the instructions, and include anything interesting you might notice.

    1. Do you see Song Zhanmadao in the Recruitment area? What is the current stock of the unit? What is the experience level of the unit?

    2. Did the game CTD? If not, do you still see Song Zhanmadao in the Recruitment area? What is the stock now? What is the experience level now? Are there two pools of Song Zhanmadao or just one?

    3. Did the game CTD? If not, do you still see Song Zhanmadao in the Recruitment area? What is the stock now? What is the experience level now?

    4. What is the experience level of the recruited Song Zhanmadao?

    Conclusions

    These are things we can conclude based on the above.
    Spoiler Alert, click show to read: 

    If the game CTDs...

    Before Question #2 - The game will not accept two recruitment pools active in the same place at the same time.

    Before Question #3 - The game will accept the pools but error once it tries to build the unit with conflicting stats.

    If you don't see Song Zhanmadao in the recruitment area...

    The game won't accept two pools active at the same time and will not show it as a result.

    If you see ___ recruitment pools for Song Zhanmadao...

    One - The game combines recruitment pools that are active at the same time, in some way, shape, or form.

    Two - The game separates recruitment pools that are active at the same time.

    If the current stock after Question #2 is...

    2 - Either stock is changed before the script to add the event counter is run(unlikely), or the pool is only accepting the replenishment rate for the first entry.

    3 - The pool is only accepting the replenishment rate for the second entry.

    4 - The pool added the replenishment rates for both pools.

    5 - The pool is only accepting the replenishment rate for the first entry, and it added the starting stock of the second entry once it was activated.

    7 - The pool added the starting stock of the second entry and the sum of both replenishment rates.

    Other - Unknown. Possible bad test results or otherwise. If any unit was recruited prior to Question #2 then that would influence the outcome by -1(and the test wasn't followed properly).

    If the current experience after Question #2 is...

    0 - The experience from the first pool is being used

    1 - The experience is the arithmetic mean of the values of the pools

    2 - The experience from the second pool is being used(or the sum of both)

    If the current stock after Question #3 is...

    This will depend on the value observed after the second question.

    -1 - First pool being used

    +0 - Second pool being used

    +1 - Mean of replenishment rates being used, determined due to 1.5 being generated each turn end resulting in 2 of the 3 replenished units showing up on the second turn.

    If the current experience/unit experience after Question #3 is...

    Results will be similar to the experience after #2



    Thank you. Tests #2-5 will be added later.

  4. #4

    Default Re: Sandbox: Testing New Things

    TEST 1:


    Question1: I can see
    Song Zhanmadao. The stock is 1, the experience level 0.

    Question2: No CTD. I still see Song Zhanmadao, stock 2 and experience level 2. One pool.

    Question3: No CTD. The unit is still there, stock 3 experience 2.

    Question4: Experience level is 2.
    Last edited by RobinCato; June 21, 2009 at 07:32 AM.

  5. #5
    Wundai's Avatar Artifex
    Join Date
    Mar 2006
    Location
    Eindhoven
    Posts
    5,332

    Default Re: Sandbox: Testing New Things

    Ok Here are my results :

    -------------------
    Question 1:
    Song Zhanmadao is in the Recruitment Tab,
    Stock 1
    Experience Level: 0

    Question 2:
    Game did NOT CTD
    Song Zhanmadao is still there
    Stock 2
    Experience Level: 2

    Question 3:
    Game did NOT CTD
    Song Zhanmadao has been recruited twice
    Song Zhanmadao still in the Recruitment Area
    Stock: 3
    Experience Level: 2

    Question 4:
    Experience Level of Recruited Song Zhanmadao is: 2
    -----------------------------

  6. #6
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Sandbox: Testing New Things

    Thanks. My results were identical. Robin seems to have 1 less stock logged in Question #2 but otherwise the results are the same(I have to assume he just mis-typed it or he wouldn't have been able to recruit 2 units after #2).

  7. #7

    Default Re: Sandbox: Testing New Things

    Quote Originally Posted by Augustus Lucifer View Post
    Thanks. My results were identical. Robin seems to have 1 less stock logged in Question #2 but otherwise the results are the same(I have to assume he just mis-typed it or he wouldn't have been able to recruit 2 units after #2).
    Look at my post. Sorry, mate. I tried everything again and there are 2 stocks in Question 2, I miss typed.

  8. #8
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Sandbox: Testing New Things

    Quote Originally Posted by RobinCato View Post
    Look at my post. Sorry, mate. I tried everything again and there are 2 stocks in Question 2, I miss typed.
    Yup, no problem, I think you changed it while I had mine typed.

  9. #9
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Sandbox: Testing New Things

    After reviewing the test results and making a few edits and testing it more myself(mainly by making sure that the sum of A and B doesn't equal B), I've concluded that when two pools of the same unit in the same building are active at the same time, the game will read the latter pool and ignore the former.

    I've also concluded that the game either stocks the pools before running the FactionTurnEnd event(possibly at the SettlementTurnEnd event), or that somehow the counter isn't read by the EDB as being active until after the pools are stocked. This is instanced by the fact that the second pool should activate on the first end turn(and it is active the next turn as shown by the experience), but you only gain 1 unit, which is the replenish rate of the former pool.

    Have a few more things I'd like to test, but currently working on some scripting endeavors.
    Last edited by Augustus Lucifer; June 22, 2009 at 02:19 PM.

Posting Permissions

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