Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Tech level and Admin level calculation

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Shadow Empire >> Tech level and Admin level calculation Page: [1]
Login
Message << Older Topic   Newer Topic >>
Tech level and Admin level calculation - 12/22/2020 2:47:04 PM   
beyondwudge

 

Posts: 74
Joined: 12/22/2020
Status: offline
Hi,

From the manual and in-game tool tips, I gather that:

Tech level = sqrt(techs_you_have)
Admin level = sqrt(sqrt(BP_per_turn))+sqrt(organisations).

In my current game I have 13 techs researched and sqrt(13) is around 3.606 (rounded). However, my Empire dashboard gives 3.68.

Likewise, I have a BP_per_turn of 155 (ignoring +76 size bonus) and 6 council/organisations. Sqrt(sqrt(155)) + sqrt(6) gives 5.978 (rounded). However, my dashboard reads 5.91.

For context, my civilisation level is reported fairly accurately with the calculation of sqrt(18)-1 given as just 3.24.

I have noticed that many value shifts in the game are rounded or at least reported with some rounding. In this case though, going from 3.61 to 3.68 and from 5.98 to 5.91 doesn't sound like a rounding issue. Also, the magnitude of both shifts being very similar, at about 0.07 from what their rounded value would be, suggests something systematic.

Does anyone else get this discrepancy and know the source of it?

< Message edited by beyondwudge -- 12/22/2020 2:49:24 PM >
Post #: 1
RE: Tech level and Admin level calculation - 12/22/2020 3:07:59 PM   
Soar_Slitherine

 

Posts: 423
Joined: 6/7/2020
Status: offline
For calculating the tech level it seems to add up all research progress, not just completed techs - a 50% researched tech will count as half a tech for tech level purposes. At least, I assume that's why I've observed tech level rising even on turns where no techs are completed.

(in reply to beyondwudge)
Post #: 2
RE: Tech level and Admin level calculation - 12/22/2020 3:41:21 PM   
zgrssd

 

Posts: 3190
Joined: 6/9/2020
Status: offline
Chances are Vic is using a floating point number for those calculations. Given the only .NET and Mono functions for this only take and return floats and doubles it seems like a given.

And while float math a lot of things, precise is not one of them. It is infuriatingly inprecise.
Usually you do not have such a massive inprecision with such a short number (you got way more significant digits). But usually you also do not run the Squareroot function if you can avoid it - so no idea what it might be doing wrong wich results in a very wierd value down the line.

(in reply to Soar_Slitherine)
Post #: 3
RE: Tech level and Admin level calculation - 12/22/2020 4:46:53 PM   
beyondwudge

 

Posts: 74
Joined: 12/22/2020
Status: offline
Soar,

I have a 47% researched tech. If I take sqrt(13.47) I do get 3.6701 which is very close to the reported 3.68 (within 0.01). However, even if I use 13.5 the figure is still 3.674 which rounds down to 3.67 and is a little bit off.

Zgrssd,

Given the above being true, it may be the last 0.01 is accounted for by the imprecision in the data types, their implementations and how they are being operated upon.

Soar,

If the partial tech is counted for calculating the tech level then do you have any ideas what might be subtracted from either a BP_per_turn or from the organisation count to give the slightly smaller result? I think we can rule out BP_per_turn being a float or double that is reported as a whole number because you would require a BP of 143 or 144 (instead of 155) to reduce the result with 6 organisations down to 5.91 with rounding.


(in reply to Soar_Slitherine)
Post #: 4
RE: Tech level and Admin level calculation - 12/22/2020 5:44:37 PM   
Soar_Slitherine

 

Posts: 423
Joined: 6/7/2020
Status: offline
Perhaps admin level doesn't count BP income from population (the service tax), since that BP income is actually modified based on admin level (manual 5.3.14.1.), so the equation would be recursive otherwise. I haven't checked if this assumption matches up with actual results, however. If you want to do the math on that, service tax BP income can be found under Reports -> Zones.

< Message edited by Soar_Slitherine -- 12/22/2020 5:46:18 PM >

(in reply to beyondwudge)
Post #: 5
RE: Tech level and Admin level calculation - 12/23/2020 1:54:09 AM   
beyondwudge

 

Posts: 74
Joined: 12/22/2020
Status: offline
Soar,

We would expect service tax collection to be 11 or 12 BP to cause the shift.

Service tax collection := 29 BP
Adjusted BP_per_turn = 155 BP - 29 BP = 126 BP

Adjusted Admin level = 5.79 = 5.8 (rounded) [ can't post the actual number, the forum seems to think I am posting a phone number... and therefore I'm not allowed to yet]?
Actual Admin level = 5.91.

However, that gives me the idea to list all the BP sources and see if a combination explains the actual admin level. I'll let you know if I find anything.



< Message edited by beyondwudge -- 12/23/2020 1:57:47 AM >

(in reply to Soar_Slitherine)
Post #: 6
RE: Tech level and Admin level calculation - 12/28/2020 4:14:08 PM   
beyondwudge

 

Posts: 74
Joined: 12/22/2020
Status: offline
I did some tests, running a game with a different combination of assets turned on and off and observing the change in admin level. Attached is a simple table of the BP contributions and the admin level that resulted (I tried to post it as text, but got the phone number error again). I forgot to include the org count but it stayed the same through-out all the rows below (I believe the count was 2).




It appears that service tax and bonus BP do not affect the rating. However, it also appears that even with all the assets turned off there it is as if at least 25 BP is still being fed into the calculation. This hidden BP however seems to decrease as more asset produced BP is inputted. It might be possible to plot the hidden BP decline as a function of the asset BP, but, there is another issue.

The admin level for +40 asset and +50 asset is the same. The calculated result increases by about 0.1, which is enough for the Admin Level at 3 significant figure precision to change, but it doesn't. This suggests that the Admin Level calculation is based on more than the factors I've identified, that the Admin Level calculation only updates in steps as with Administrative strain, or that the Admin Level metric is misreporting the figure.

Attachment (1)

< Message edited by beyondwudge -- 12/29/2020 1:36:13 PM >

(in reply to beyondwudge)
Post #: 7
RE: Tech level and Admin level calculation - 12/28/2020 7:27:10 PM   
zgrssd

 

Posts: 3190
Joined: 6/9/2020
Status: offline
quote:

It appears that service tax and bonus BP do not affect the rating. However, it also appears that even with all the assets turned off there it is as if at least 25 BP is still being fed into the calculation. This hidden BP however seems to decrease as more asset produced BP is inputted. It might be possible to plot the hidden BP decline as a function of the asset BP, but, there is another issue.

Maybe it works similar to skill group sharing?

Grouped skills on a leader get a bonus from the largest skill, if they themself are low.
IIRC, the bonus is:
[Highest Skill value from the group] - [Skill value in this skill] / 2.
It is possible he did something similar here, feeding a 25 into the formula.

(in reply to beyondwudge)
Post #: 8
RE: Tech level and Admin level calculation - 12/29/2020 1:49:27 PM   
beyondwudge

 

Posts: 74
Joined: 12/22/2020
Status: offline
<I did some calculations but the forum keeps insisting that I'm posting a phone number, email or some such that is not allowed. Even embedding a screenshot of the text I typed is causing the warning. I'll sort this out then come back to this.>

Attachment (1)

< Message edited by beyondwudge -- 12/29/2020 2:20:29 PM >

(in reply to zgrssd)
Post #: 9
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Shadow Empire >> Tech level and Admin level calculation Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.195