.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   Luck/Turmoil versus Nothing. (http://forum.shrapnelgames.com/showthread.php?t=45652)

militarist June 23rd, 2010 03:37 PM

Re: Luck/Turmoil versus Nothing.
 
ChrisP, the idea behind taking M3 is connected with one of my previous posts:
"One more interesting question. There is a number of good events which can happen with you theoretically. For example, there are many which require Magic 2 (or at least Magic 2) scale. With Magic lower then M2, you have shorter list of possible good events. Does it mean you will have less good events? Or just it means that you will have the same number of events but from shorter list?"

Edi says that to maximize effect from luck you should take at least magic 2 which switches on many events. The question which is interesting - If I take M2 in comparison with M0, will I have MORE events (as the list of good events is longer), or I will just BETTER events but amount will be the same. It's a big difference. In first case taking M3 could have some sense if you take Luck 3 even in multiplayer. In second - taking M3 adds much less value, as just replaces some cheap cash events by items
which can be worthless.

I didn't see anywhere any mentioning that there is such a thing as basis probability , which is not connected with amount of events possible with current scales.

Answer to this question is also valuable for understanding - what is better - to take one more growth scale of shift luck from luck 0 to luck 1. As luck 1 also switches on some events. And if these events just replace standard events, that the value of such increase is not so dramatic then if taking luck 1 would increase the probability of event by expanding the list of possible events.

chrispedersen June 23rd, 2010 06:08 PM

Re: Luck/Turmoil versus Nothing.
 
Actually, I did an analysis (and posted it) of the events, and death and magic are the two most relevent effects when you turn on luck.

turning on additional events is what I'm talking about in P(eip).
It seems to me there HAS to be an element tied to the province mask. Otherwise +3 luck and -3 Luck would be more likely to have the same values - and they dont.

thejeff June 23rd, 2010 06:38 PM

Re: Luck/Turmoil versus Nothing.
 
Thinking about how inefficient the "check for each possible event in a province" code would be, started me thinking about how else you could do it.

Seriously, you'd have to build a list of possible events for every province you wanted to check, they'd all be potentially different and then generate a random number and check against the probability for that province.
Why go to that trouble when you could just select 1 from the list? But then you'd still have to build the list and you'd always get one, which doesn't seem to match the results. OK, what if you just pick one from the full list and then check to see if it's valid for that province. If it is, great, if not you could give up and have no event or try again a limit number of times.

That seems to be a better mechanism for what chris is proposing, though I'm not sure if it makes any difference in results.

I still think there's some effect we're missing for the number of events, linked to empire size or possibly turn number.

We know some events that are linked to scales, but is there a complete list? Knowing which scale setting had the most and least possible events would help testing this.

chrispedersen June 24th, 2010 02:22 AM

Re: Luck/Turmoil versus Nothing.
 
Quote:

Originally Posted by thejeff (Post 749864)
Thinking about how inefficient the "check for each possible event in a province" code would be, started me thinking about how else you could do it.

Seriously, you'd have to build a list of possible events for every province you wanted to check, they'd all be potentially different and then generate a random number and check against the probability for that province.
Why go to that trouble when you could just select 1 from the list? But then you'd still have to build the list and you'd always get one, which doesn't seem to match the results. OK, what if you just pick one from the full list and then check to see if it's valid for that province. If it is, great, if not you could give up and have no event or try again a limit number of times.

That seems to be a better mechanism for what chris is proposing, though I'm not sure if it makes any difference in results.

I still think there's some effect we're missing for the number of events, linked to empire size or possibly turn number.

We know some events that are linked to scales, but is there a complete list? Knowing which scale setting had the most and least possible events would help testing this.

But jeff, a lot of this is what I said. Make a list of all available luck events in a province. this is what I call the province mask

now, you could just make a full listing of all eligible events and then roll randomly against the list. number of provinces would then not figure into it at all

The question still becomes - how do you generate the number of times to roll against the list.

Whereas, if you check All of a provinces random events, you would see what we see empirically happening - much more events for luck +-3.

chrispedersen June 24th, 2010 03:07 AM

Re: Luck/Turmoil versus Nothing.
 
So again, with the same nations, same cbm and the same luck scales 0 0 -3 +3
this time I added +3 order to all nations.

Strong results, again. Over 50 turns:

6,3,26,28 luck events

So the order cancelled out luck, even though luck was suppsed to have a stronger effect.

Personally considering how JK did % chances on magic paths, I feel sure that the addition or subtraction of chance is just added or subtracted from the base chance.

It seems to me, that this give us the base for testing.
Write a mod such that you increase the effect of order until such time as you no longer get any events.


However if you start with p=20, and then deduct 15 for order you'd get about 1/4 the events.

likewise with p=20 and o order +3/-3 luck would give a 41% luck chance - slightly more than doubling.

I again noticed fewer events in the start.

Finalgenesis June 24th, 2010 03:13 AM

Re: Luck/Turmoil versus Nothing.
 
At least that part is intuitive:

When it says +15% events, it really means +15% events....

That's good to know.

Throw in some magic +3 in there will you :P, that's the next big one I think.

thejeff June 24th, 2010 09:02 AM

Re: Luck/Turmoil versus Nothing.
 
Quote:

Originally Posted by chrispedersen (Post 749889)
But jeff, a lot of this is what I said. Make a list of all available luck events in a province. this is what I call the province mask

now, you could just make a full listing of all eligible events and then roll randomly against the list. number of provinces would then not figure into it at all

The question still becomes - how do you generate the number of times to roll against the list.

Whereas, if you check All of a provinces random events, you would see what we see empirically happening - much more events for luck +-3.

I think one of us is misunderstanding the other. Probably my fault, since I was describing how I came up with it as much as the theory itself.

Here's how it works under this theory:
First roll the chance of each of the 4 possible events, based on the capital (or pretender?) scales.
For each event generated, pick a random province. In each province pick a random event off the complete list. If the event is not possible, given the provinces scales, terrain and any other conditions, stop. No event happens. (Possibly, reroll a limited number of times.)

Thus, the more events your scales unlock, the more likely you'll actually get an event.
This should get similar effect to checking each possible event in a province with much less work and avoid some of the weirder side effects, such as events earlier in the list being more common than ones later in the list.

You get many more events for Luck +/-3 both do to the increase in chance of generating an event to start with and the increased number of events unlocked. I don't know enough about the number of events possible at different scales to guess how big the second factor is.

Does that make it more clear? Or am I still missing something?


I still think there's more going on. I'm not convinced that number of provinces doesn't play a role. I'll try to test a few more different size nations when I have the chance.
I'm also not sure about the base chances being based on capital scales. Possibly testable using 3L3T and skeptics to hold down capital dominion?

Also terrain plays a role in this. At the very least some events are only possible on land and others in the water. If there are less water events, then you should get less events in water provinces than elsewhere. This may be easier to test than events in different scales since terrain stays consistent and you don't have to worry about dominion spread.

chrispedersen June 24th, 2010 01:53 PM

Re: Luck/Turmoil versus Nothing.
 
Quote:

Originally Posted by thejeff (Post 749911)
Quote:

Originally Posted by chrispedersen (Post 749889)
But jeff, a lot of this is what I said. Make a list of all available luck events in a province. this is what I call the province mask

now, you could just make a full listing of all eligible events and then roll randomly against the list. number of provinces would then not figure into it at all

The question still becomes - how do you generate the number of times to roll against the list.

Whereas, if you check All of a provinces random events, you would see what we see empirically happening - much more events for luck +-3.

Here's how it works under this theory:
First roll the chance of each of the 4 possible events, based on the capital (or pretender?) scales.
For each event generated, pick a random province. In each province pick a random event off the complete list. If the event is not possible, given the provinces scales, terrain and any other conditions, stop. No event happens. (Possibly, reroll a limited number of times.)

Thus, the more events your scales unlock, the more likely you'll actually get an event.

Ok, we agree on most of this. The difference is that I suggested choosing an event from a tailored list for the province
you suggested pulling a random event and then checking if its applicable. I mentioned that as a possibility as well.

Essentially, logically, this means

Generate # of luck events.
Generate event for each luck event
Randomly choose province.
See if province allows event.

We know that JK likes bit masks, so the last step would just be XORing the event bit mask with the province mask and if true applying the event.

Quote:


This should get similar effect to checking each possible event in a province with much less work and avoid some of the weirder side effects, such as events earlier in the list being more common than ones later in the list.

I think thats a weekness, because if you take luck -3 and turmoil -3 you are going to get NEVER ENDING hordes of barbarians.

If you take Death 3 and misfortune 3 - you get never ending hordes of plague events.

It can't work this way - because the generation of the event would not generate all these barbarian events, death events.

Quote:

You get many more events for Luck +/-3 both do to the increase in chance of generating an event to start with and the increased number of events unlocked. I don't know enough about the number of events possible at different scales to guess how big the second factor is.

If you look at the results for Luck 3 vs luck -3, the both should have the same number of events. Luck -3 had 20%(?) more events. The second factor (unlocking events) has to be huge.

Also, if you look at luck 0 vs luck -3 - they are generating 2.5 times the number of events. The luck difference is supposed to be 21% more events - but it is 250%.

Quote:


I'm also not sure about the base chances being based on capital scales. Possibly testable using 3L3T and skeptics to hold down capital dominion?

Well, I think some useful tests are:

1. Make a mode that increases the order effect. Find out at what level you cease to get luck events.
This will allow us to isolate P(e).

Once you isolate P(e) you can check what effect dominion has. Personally I'm fairly sure that dominion is only relevent to determine the luck scale in a province.

2. Do a check with 1 province. Use turmoil 3 luck -3.
Examine the maxium number of events that occur Turns 1-10, Turns 11-20, 21-30, 30+

I'm pretty sure that you will see 4 events if you capture for 40 turns post turn 30.
And I'm bummed for not getting a single thanks for all these tests!!!

thejeff June 24th, 2010 03:16 PM

Re: Luck/Turmoil versus Nothing.
 
Quote:

Originally Posted by chrispedersen (Post 749934)
I think thats a weekness, because if you take luck -3 and turmoil -3 you are going to get NEVER ENDING hordes of barbarians.

If you take Death 3 and misfortune 3 - you get never ending hordes of plague events.

It can't work this way - because the generation of the event would not generate all these barbarian events, death events.

You're saying that events do seem to be weighted towards one end of the list? I'd expect that to manifest more as some events being more rare than they should be. Events early in the list will be more common, but only slightly so. To get the effects we see, P(eip) would have to be small enough that it makes it through the whole list fairly regularly, which means that any weighting towards the front of the list would be small. The cumulative effect might be large by the end, but still hard to detect.


Quote:


If you look at the results for Luck 3 vs luck -3, the both should have the same number of events. Luck -3 had 20%(?) more events. The second factor (unlocking events) has to be huge.



Also, if you look at luck 0 vs luck -3 - they are generating 2.5 times the number of events. The luck difference is supposed to be 21% more events - but it is 250%.
The first seems very weird to me. Without knowing more about how many events are possible at each scale, I'd hesitate to draw any conclusions from it.

The second may not be strange. If the bonus from luck scales is just added to the base chance, then it wouldn't be 21% more events. Assuming 10% base chance for the sake of argument, 21% more events would be 10% *1.21 = 12.1% chance
Straight addition gives you 10%+21% = 31%, a 310% increase.

Quote:

Well, I think some useful tests are:

1. Make a mode that increases the order effect. Find out at what level you cease to get luck events.
This will allow us to isolate P(e).

Once you isolate P(e) you can check what effect dominion has. Personally I'm fairly sure that dominion is only relevent to determine the luck scale in a province.

2. Do a check with 1 province. Use turmoil 3 luck -3.
Examine the maxium number of events that occur Turns 1-10, Turns 11-20, 21-30, 30+

I'm pretty sure that you will see 4 events if you capture for 40 turns post turn 30.
And I'm bummed for not getting a single thanks for all these tests!!!
Thanks for the tests :)

I've got a couple of things I want to try as well. I'm not as convinced as you are that number of provinces isn't a factor, so I want to run some tests with the scales I used before on smaller empires.

I'd also like to try something with a water nation, since there should be fewer events available underwater.

I really want a list of events & scales.

militarist June 24th, 2010 04:02 PM

Re: Luck/Turmoil versus Nothing.
 
"I really want a list of events & scales."

But there is an Edi's DB of events, you can find it easily.

thejeff June 24th, 2010 06:32 PM

Re: Luck/Turmoil versus Nothing.
 
I knew I'd seen something somewhere, but it didn't seem to be linked anywhere.
I didn't think to look in the obvious place for any documentation, Edi's signature.

Thanks.

And thanks Edi for putting it together.

militarist June 25th, 2010 01:39 AM

Re: Luck/Turmoil versus Nothing.
 
http://forum.shrapnelgames.com/showthread.php?t=45185

Finalgenesis June 25th, 2010 02:12 AM

Re: Luck/Turmoil versus Nothing.
 
Don't brigand / shark event seem a lot more prevalent then other events of the same frequency mask (in Edi's event list)? hmmm... observor bias?

chrispedersen June 25th, 2010 11:51 PM

Re: Luck/Turmoil versus Nothing.
 
No.

You're probably playing with scales that allow the brigands/sharks to occur more regulary.

I get barbarians all the time, because I prefer sloth.

Lingchih June 26th, 2010 01:38 AM

Re: Luck/Turmoil versus Nothing.
 
Odd events testing the latest True Firebird in the latest EDM test.

First two turns, while it sat in the cap, good events.

Next three turns, no events in the cap.

Next turn, moved it out of the cap, and got a good event in the prov where I sent it.

Next turn, moved it back into the cap. No events.

Next two turns, while it sat in the cap, no events.

This is all based on a luck 1 scale.

My only conclusion from all this, is that your luck taps out after a few turns, or perhaps more, due to the vagaries of the Dom3 random number generator.

*An interesting side note. (RNG) is apparently forbidden on the forums. I had to spell out the full name to get it through the filter.

chrispedersen June 26th, 2010 11:36 AM

Re: Luck/Turmoil versus Nothing.
 
Thats hardly surprising Ling....
P(e) is probably betweeen 10-20. Thats before event masks for the territory.

Go with a lady of fortune, luck 1, order three you will still see LOTS of turns without luck events.

thejeff July 3rd, 2010 10:05 AM

Re: Luck/Turmoil versus Nothing.
 
I finally had a chance to come back to this and run a few more tests:
Looking at the relationship between number of provinces and number of events

T3L3 Dom10 pretender over 30 turns
2 provinces:
Nation1: 39
Nation2: 39

30 provinces:
Nation1: 57
Nation2: 54

300 provinces:
Nation1: 66
Nation2: 62


That looks strongly to me like number of provinces matters, especially on the low end.

Finalgenesis July 3rd, 2010 11:06 AM

Re: Luck/Turmoil versus Nothing.
 
Thanks for the data TJ

Oh here's a Void summon data for Ryleth lovers, (definitely not enough turns to conclude on anything):

MA Ryleth over 30 turns
a) only summoner(3) is used, priest replaced on lvlup
b) Summon begins on 3rd turn
test 1: 1 order 3 luck 3 magic 3 growth 3 cold
test 2: 3 hot, all other baseline

Test 1: 8 success, 15 spawns total
Test 2: 7 success, 11 spawns total

I can post spawn types on request.

Quality of spawn shows no correlation, all over the place. High summon skill seems to be most important in determining quality. Scales don't seem to have a noticable impact on void summon base on this tiny testing population.

chrispedersen July 3rd, 2010 11:48 AM

Re: Luck/Turmoil versus Nothing.
 
Quote:

Originally Posted by thejeff (Post 750883)
I finally had a chance to come back to this and run a few more tests:
Looking at the relationship between number of provinces and number of events

T3L3 Dom10 pretender over 30 turns
2 provinces:
Nation1: 39
Nation2: 39

30 provinces:
Nation1: 57
Nation2: 54

300 provinces:
Nation1: 66
Nation2: 62


That looks strongly to me like number of provinces matters, especially on the low end.


I don't see how you can say this. I wish you had done 50 turns, so we could directly compare with my results. However adding 2/3 the events (30 turns * 2/3 = 50 turns) gives you 62 events on your size two nations - which is *more* than my size 4 nations, by about 5.

Also how did you start with 300 province nations? (starting methodology matters)

Finally, you went from 30 provinces to 300 provinces a factor of 10 increase, and only got an 18% increase in the number of events.

This suggests pretty strongly to me that it *isn't* a matter of of f(#). It looks to me like it is merely that with more provinces, that you will run into more provinces with bigger province terrain masks.

Interesting test would be to dump 10 lady of fortunes in a province and see what happens.

thejeff July 3rd, 2010 12:53 PM

Re: Luck/Turmoil versus Nothing.
 
I was using T3L3, largely because that's what I used on my earlier 300 province test. That does mean it's not directly comparable to your tests.

In both the 30 & 300 province tests, I used map commands to assign provinces to both nations and to put a temple in every province. That's the fastest way I could think of to boost dominion and scales with it. If you can think of a faster way, I'd love to hear it. Events seem to be scarcest in the first 10 turns or so. I'd like to see if that's just scale spreading or something more hardcoded. I think there are a handful of events restricted in the first few turns, but I didn't think it would be that big an effect.

I don't think that more provinces with bigger province terrain masks makes sense. At least not if we're still thinking you start by picking 0 to 4 provinces and checking for events in them. I could see that having a large effect in the small tests, where you might have a province with (terrain/population?) that restricts many events. But scales should have been similar in most provinces and those unlock the largest number of events right?

I suppose I could try modifying a map to have only one terrain type and rerun them against that, but it doesn't seem very useful.

The province number effect is obviously not linear and I don't have an idea for how it's generated, but I'm not sure how I can demonstrate it more clearly.

sector24 July 4th, 2010 11:21 AM

Re: Luck/Turmoil versus Nothing.
 
Something I noticed. Chris, when you were determining whether number of provinces affected the number of events, you used a territory size of 4 vs 8.

Quote:

ok; With 50 turns, 0 luck 0 luck -3 +3 4 territories
22, 27, 54, and 46 luck events

With 8 territories same scales
24 24 64 55 luck events.
This was clearly (to me) not a test of whether terrority size affects the number of events. Simply not enough provinces to provide any meaningful results. Then when a test comes along using larger number of provinces that actually might provide an accurate test of the hypothesis, you bash it. But you bash it by comparing it to your 4 vs 8 province test! Everyone else can make up their own minds, but I find a significant lack of objectivity here.

chrispedersen July 4th, 2010 07:32 PM

Re: Luck/Turmoil versus Nothing.
 
Quote:

Originally Posted by sector24 (Post 750977)
Something I noticed. Chris, when you were determining whether number of provinces affected the number of events, you used a territory size of 4 vs 8.

Quote:

ok; With 50 turns, 0 luck 0 luck -3 +3 4 territories
22, 27, 54, and 46 luck events

With 8 territories same scales
24 24 64 55 luck events.
This was clearly (to me) not a test of whether terrority size affects the number of events. Simply not enough provinces to provide any meaningful results. Then when a test comes along using larger number of provinces that actually might provide an accurate test of the hypothesis, you bash it. But you bash it by comparing it to your 4 vs 8 province test! Everyone else can make up their own minds, but I find a significant lack of objectivity here.

I certainly do not bash the test, and in fact welcome more tests.
And I wouldn't mind being proved wrong on it either.

I certainly don't *mind* if there is an alternate mechanism.

I certainly have no problem with the data,
However having a 1000% increase in the number of provinces yielding an 18% increase in the number of events does not qualify as support saying that events are a function of # of territories. IF we are going to get a valid model here, I think we have to poke holes in all theories.

For curiousity sake, I wonder why do you think that a 4 territory vs an 8 territory is insufficient to determine meaningful results? Especially over 50 turns?

thejeff July 4th, 2010 08:40 PM

Re: Luck/Turmoil versus Nothing.
 
Well, it's obvious from experience and a casual look at the tests that any relationship isn't linear. If it was, either you'd get almost no events with 1 province or you'd max out at 4 a turn well under 300 provinces.
That's partly what I was trying to confirm.

One potential issue with the 4 vs 8 test is that, assuming your theory about terrain masks limiting the number of events holds, it's much more likely that the smaller number won't be a representative sample of terrain types.
If you're testing for the effects of number of provinces, number of turns is less important. Going for a big difference magnifies any effects so they're more easily noticeable. If the effect is a 1.18 multiplier for every 10-fold increase, a simple doubling might not be noticeable in the random noise.
I'd done the 300 first for other reasons, then tried the 2. When I found so many less events in 2, I tried 30 to see if it would fall neatly in between, which it did.

And, frankly, if it's repeatable, a 18% increase in events for a 10 fold increase in province is precisely a function based on number of territories. What's needed to confirm it is more tests. See if the pattern holds. It's quite possible the randomness is so high, it will be hard to pick any actual meaning without huge amounts of data. And since there isn't any easy way to automate this, it's boring, and I'm not being paid, I'm not planning to run hundreds of tests.

militarist July 5th, 2010 01:34 AM

Re: Luck/Turmoil versus Nothing.
 
It's also possible that it's linear, just Capital is counted as 10-20 provinces for all calculations.

chrispedersen July 7th, 2010 03:08 AM

Re: Luck/Turmoil versus Nothing.
 
50 turns.

#turmoilevents set to 20.
Nation 1: O3P3 9 events
Nation 2: O3P3 6 events
Nation 3: 03P3 4 events
Controls:
Nation 4: -P3 5 events
Nation 5: P3 22 events.

One territory.

With turmoil events set to 20, this should be a -60% chance of events.

I have no explantion for nation 4, either.

chrispedersen July 7th, 2010 03:41 AM

Re: Luck/Turmoil versus Nothing.
 
5 nations turmoil events set to 20
50 turns.

8 territories.

ermor O3 5 events
Mar o0 30 events
Saur 03 5 rvents
Agartha o3 5 events
Kailas o0 31 events

Oh, and dominions crashed with turmoil events set to 25.


All times are GMT -4. The time now is 03:23 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.