Comprehensive Colony/OSB Overview Tool

Complain about the nerfs here
no avatar
User

RAM

Rank

Captain

Captain
Posts

847

Joined

Thu Sep 22, 2016 6:36 am

Re: Comprehensive Colony/OSB Overview Tool

Postby RAM » Sat Mar 23, 2019 7:35 pm

Loke wrote:RAM, do you know if its possible to extract info of how many levels of enhacned production buildings are upgraded with?


It is not possible currently.
"The UNCA is not your boss!" ~ Jessica Steele
Fan Fiction from an old timer - RAM Memories
User avatar
User

Loke

Rank

Commander

Commander
Posts

368

Joined

Mon Jun 30, 2014 7:39 pm

Re: Comprehensive Colony/OSB Overview Tool

Postby Loke » Sun Mar 24, 2019 7:38 am

Loke wrote:Removing th *2 on line 305 and 306 in analyzer.js should make it correct:
Code: Select all
   //Winery,Brewery Daily Needs
   if (structType[br][4] > 0) structType[gr][13] += structType[br][4] * 2;
   if (structType[wi][4] > 0) structType[or][13] += structType[wi][4] * 2;

With the *2 there it shows 4 tons of grain/fruit used to make 1 ton beer/wine. I didnt find where the other 2* is, but I assume its done the same as for cigars, which is already correct.

Actually you have to remove those 2 lines altogether, the daily needs for winery and brewery are accounted for elsewhere, and those 2 lines just adds to it. After I removed them, the anayzer calculates correct on my local copy.
Callsign: Fraaggii or Loke
Senator Loke of Primo Spe, 8086, New Horizon, Skadi, Darkfield and Niu Heimar
Statistics for Nio and Tin prices: viewtopic.php?f=9&t=3427
User avatar
User

Loke

Rank

Commander

Commander
Posts

368

Joined

Mon Jun 30, 2014 7:39 pm

Re: Comprehensive Colony/OSB Overview Tool

Postby Loke » Sun Mar 24, 2019 10:26 am

RAM wrote:
Loke wrote:RAM, do you know if its possible to extract info of how many levels of enhacned production buildings are upgraded with?


It is not possible currently.

Thx for answering. yeah, I see farms and mines only have Enhanced production bonus in position 19, so no easy way of getting that info. But I also found that brewery, graph factories etc is different, they have the upgraded level in position 19 (probably because bonus is +1 per level). Which makes it possible to see that Tigs Treehouse has average upgrade level of 11 for graph factories. Only by doing this in the analyzer:
Code: Select all
//after this line "structType[j][4] += structure[i][9]*1;" add this line:
structType[j][7] += structure[i][19]*1;

//And then later just do this to get average:
structType[gf][7] = Math.round(structType[gf][7] / structType[gf][5]);

I just reused structType[][7] that was used for Pwr off, just to get the result out without making other changes. I never have any buildings pwr off anyway.

Doesnt work while upgrades are being constructed, but that is just a few hours now and then. This is quite useful actually :)

Image


Edit:
And if you add
structType[j][7] += structure[i][23]*1;
instead, it will give out the average core sample the mines and farms are placed on:
Image
Callsign: Fraaggii or Loke
Senator Loke of Primo Spe, 8086, New Horizon, Skadi, Darkfield and Niu Heimar
Statistics for Nio and Tin prices: viewtopic.php?f=9&t=3427
no avatar
User

RAM

Rank

Captain

Captain
Posts

847

Joined

Thu Sep 22, 2016 6:36 am

Re: Comprehensive Colony/OSB Overview Tool

Postby RAM » Sun Mar 24, 2019 3:27 pm

I power a lot of structures on and off. Would need to create a new column for that.

I will try to find some motivation to look at this this week.

AscentExtras.com will no longer exist after this month. I will carry all the tools on another domain I have. They will still be available, but at a new address.
"The UNCA is not your boss!" ~ Jessica Steele
Fan Fiction from an old timer - RAM Memories
no avatar
User

RAM

Rank

Captain

Captain
Posts

847

Joined

Thu Sep 22, 2016 6:36 am

Re: Comprehensive Colony/OSB Overview Tool

Postby RAM » Thu Mar 28, 2019 8:22 pm

Fixed the Firefox issue.

New web address:

http://colony.dataus.net/
"The UNCA is not your boss!" ~ Jessica Steele
Fan Fiction from an old timer - RAM Memories
User avatar
User

Loke

Rank

Commander

Commander
Posts

368

Joined

Mon Jun 30, 2014 7:39 pm

Re: Comprehensive Colony/OSB Overview Tool

Postby Loke » Fri Mar 29, 2019 5:21 pm

RAM wrote:Fixed the Firefox issue.

Nice! What did you need to change?

I did figured out how upgrades are calucluated for mines and farms:
base * 0.075 * upgrade_level = Enhanced production bonus

in analyzer.js that refers to:
base: structure[i][23] = Base production
Enhanced production bonus: structure[i][19] = Enhanced production bonus

So to find level of enhanced this needs to be calculated:
Enhanced production bonus / (0.075 * base)

To add this to analyzer I think its easiest to first get the average for base:
structType[j][14] += structure[i][23]*1; //line 196
structType[ve][14] = Math.round(structType[ve][14] / structType[ve][5]); // after line 261

Which is a useful output on its own.

Then get average of enhanced bonus:
structType[j][15] += structure[i][19]*1; //add after line 196
structType[ve][15] = Math.round(structType[ve][15] / structType[ve][5]); // after line 261


And lastly divide average of ehnaced bonus by (0.075 * average base)
should give correct enhanced level. I have not put this into analyzer.js to test yet, just an idea how it could be done.


I also found that decreased production do to lack of power is found here:
structure[i][13] = Insufficient power decreased production
Callsign: Fraaggii or Loke
Senator Loke of Primo Spe, 8086, New Horizon, Skadi, Darkfield and Niu Heimar
Statistics for Nio and Tin prices: viewtopic.php?f=9&t=3427
no avatar
User

RAM

Rank

Captain

Captain
Posts

847

Joined

Thu Sep 22, 2016 6:36 am

Re: Comprehensive Colony/OSB Overview Tool

Postby RAM » Mon Apr 01, 2019 3:54 pm

Loke wrote:Nice! What did you need to change?


Remmed out line 73. Having trouble reading the time stamp of the file.
"The UNCA is not your boss!" ~ Jessica Steele
Fan Fiction from an old timer - RAM Memories
User avatar
User

Mooncrest

Rank

Commodore

Commodore
Posts

1720

Joined

Sat Nov 01, 2014 6:19 pm

Location

MITH Menzel 3

Re: Comprehensive Colony/OSB Overview Tool

Postby Mooncrest » Tue May 28, 2019 5:58 pm

I have added the link to the Colony Analyser at the bottom of the Main Page the Wiki.

RAM, I can you change the link on the first post of this thread to the correct addrress, please.
no avatar
User

RAM

Rank

Captain

Captain
Posts

847

Joined

Thu Sep 22, 2016 6:36 am

Re: Comprehensive Colony/OSB Overview Tool

Postby RAM » Fri Sep 13, 2019 2:30 pm

Updated the URL to colony.dataus.net/

Should make it easier to pass on the location. Works from either address.

I need to take a look at Loke's improvements one day.
"The UNCA is not your boss!" ~ Jessica Steele
Fan Fiction from an old timer - RAM Memories
Previous

Who is online

Users browsing this forum: No registered users and 0 guests

Powered by phpBB ® | Style by KomiDesign | Modified by Chris Valleriani