Greasy Fork is available in English.

Empire Overview

Script for Ikariam 8.x.x, Overview tables for resources, buildings and military inspired by Ikariam Empire Board

< Feedback on Empire Overview

سوئال / ئىنكاس

§
يوللانغان ۋاقتى: 2023-11-24

You need to add the building manually.
I added this @ line 9553:
SHRINE_OF_OLYMPUS: 'shrineOfOlympus'
(just after this, if you count varies: MARINE_CHART_ARCHIVE: 'marineChartArchive',)

and also this @10221 (after the last building)
shrineOfOlympus:
{
buildingId:34,
maxLevel:41,
wood:[765,959,1204,1509,1892,2373,2976,3732,4680,5868,7359,9229,11573,14513,18199,22821,28618,35887,45002,56434,70768,88743,111284,139550,174996,219445,275184,345081,432732,542646,680478,853320,1070063,1341859,1682692,2110096,2646060,3318159,4160972,5217859,6543195],
wine:[0,0,106,133,166,208,262,327,411,514,644,805,1008,1263,1581,1980,2479,3104,3887,4865,6092,7628,9550,11956,14970,18741,23465,29378,36782,46050,57655,72184,90375,113150,141663,177362,222058,278017,348077,435792,545613],
marble:[0,0,0,0,198,257,331,429,555,718,927,1200,1552,2006,2594,3354,4337,5608,7252,9377,12125,15677,20271,26211,33890,43820,56660,73261,94727,122482,158369,204772,264769,342347,442655,572354,740054,956889,1237257,1599774,2068508],
glass:[0,0,0,0,0,0,0,0,230,298,385,497,644,833,1076,1392,1800,2328,3010,3892,5032,6507,8414,10879,14067,18189,23518,30409,39319,50839,65735,84996,109900,142100,183736,237570,307179,397183,513557,664030,858590],
sulfur:[0,0,0,0,0,0,0,0,0,0,114,153,205,275,368,494,662,887,1189,1593,2135,2861,3833,5136,6883,9224,12359,16562,22194,29739,39851,53400,71557,95887,128489,172174,230714,309157,414270,555123,743864],
time:{a:96000,b:7,c:1.05,d:11880},
dur:(()=>{var t=[];var c={a:96000,b:7,c:1.05,d:11880};for(var i=0;i<32;i++){var d=Math.round(c.a/c.b*Math.pow(c.c,i+1)-c.d)-(c.e!=undefined?(c.e[i]!=undefined?c.e[i]:0):0);t.push((d>1728e3?1728e3:d));}return t;})(),
icon:'/cdn/all/both/img/city/shrineOfOlympus_l.png'
}

I only guessed the ID as 34, as its the next one thats free, perhaps it does not matter but it works

Last additions: i changed the second line in each of the three building orders to:
research: [Constant.Buildings.ACADEMY, Constant.Buildings.WORKSHOP, Constant.Buildings.TEMPLE, Constant.Buildings.SHRINE_OF_OLYMPUS],
(aadded the new building after temple, but you can put it anywhere)

i onl bitbanged this to make it show the tables, have not confirmed the build values (added these from help) and times, i only cloned another entry, so times will defo be off,but i dont care its only 7 expansions, done in 5 mins)

mrfixئاپتور
§
يوللانغان ۋاقتى: 2023-11-25

Very vwry thanx

mrfixئاپتور
§
يوللانغان ۋاقتى: 2023-11-25

Once again, thank you very much for your help in resuscitating the script.
If you can help with anything else, I will be only glad

e41
§
يوللانغان ۋاقتى: 2023-11-26

buildingId is actually 34.
Durations are not yet found.

§
يوللانغان ۋاقتى: 2023-11-26

i was looking for the ID but did not find it so guessed 34.

btw:
IDs 1,2 and 14 are apparently not used, any one any ideas why?

e41
§
يوللانغان ۋاقتى: 2023-11-29

No idea.
They must have remained used since the beginning of of the game
:-)

§
يوللانغان ۋاقتى: 2023-12-05

You need to add the building manually.
I added this @ line 9553:
SHRINE_OF_OLYMPUS: 'shrineOfOlympus'
(just after this, if you count varies: MARINE_CHART_ARCHIVE: 'marineChartArchive',)

and also this @10221 (after the last building)
shrineOfOlympus:
{
buildingId:34,
maxLevel:41,
wood:[765,959,1204,1509,1892,2373,2976,3732,4680,5868,7359,9229,11573,14513,18199,22821,28618,35887,45002,56434,70768,88743,111284,139550,174996,219445,275184,345081,432732,542646,680478,853320,1070063,1341859,1682692,2110096,2646060,3318159,4160972,5217859,6543195],
wine:[0,0,106,133,166,208,262,327,411,514,644,805,1008,1263,1581,1980,2479,3104,3887,4865,6092,7628,9550,11956,14970,18741,23465,29378,36782,46050,57655,72184,90375,113150,141663,177362,222058,278017,348077,435792,545613],
marble:[0,0,0,0,198,257,331,429,555,718,927,1200,1552,2006,2594,3354,4337,5608,7252,9377,12125,15677,20271,26211,33890,43820,56660,73261,94727,122482,158369,204772,264769,342347,442655,572354,740054,956889,1237257,1599774,2068508],
glass:[0,0,0,0,0,0,0,0,230,298,385,497,644,833,1076,1392,1800,2328,3010,3892,5032,6507,8414,10879,14067,18189,23518,30409,39319,50839,65735,84996,109900,142100,183736,237570,307179,397183,513557,664030,858590],
sulfur:[0,0,0,0,0,0,0,0,0,0,114,153,205,275,368,494,662,887,1189,1593,2135,2861,3833,5136,6883,9224,12359,16562,22194,29739,39851,53400,71557,95887,128489,172174,230714,309157,414270,555123,743864],
time:{a:96000,b:7,c:1.05,d:11880},
dur:(()=>{var t=[];var c={a:96000,b:7,c:1.05,d:11880};for(var i=0;i<32;i++){var d=Math.round(c.a/c.b*Math.pow(c.c,i+1)-c.d)-(c.e!=undefined?(c.e[i]!=undefined?c.e[i]:0):0);t.push((d>1728e3?1728e3:d));}return t;})(),
icon:'/cdn/all/both/img/city/shrineOfOlympus_l.png'
}

I only guessed the ID as 34, as its the next one thats free, perhaps it does not matter but it works

Last additions: i changed the second line in each of the three building orders to:
research: [Constant.Buildings.ACADEMY, Constant.Buildings.WORKSHOP, Constant.Buildings.TEMPLE, Constant.Buildings.SHRINE_OF_OLYMPUS],
(aadded the new building after temple, but you can put it anywhere)

i onl bitbanged this to make it show the tables, have not confirmed the build values (added these from help) and times, i only cloned another entry, so times will defo be off,but i dont care its only 7 expansions, done in 5 mins)

I tried some modifications by myself and it's working, except the times of the new building.

I add this lines to the script

shrineOfOlympus:
{
buildingId:34,
maxLevel:41,
wood:[890, 1116, 1400, 1755, 2201, 2760, 3461, 4340, 5442, 6824, 8558, 10732, 13457, 16876, 21162, 26537, 33277, 41730, 52329, 65621, 82289, 103190, 129400, 162268, 203484, 255169, 319982, 401258, 503177, 630984, 791254, 992233, 1244260, 1560302, 1956619, 2453600, 3076815, 3858325, 4838340, 6067278, 7608367],
wine:[0, 0, 124, 155, 194, 243, 305, 381, 478, 598, 749, 937, 1173, 1469, 1839, 2303, 2883, 3610, 4520, 5658, 7084, 8870, 11105, 13903, 17407, 21793, 27285, 34161, 42770, 53547, 67041, 83936, 105088, 131570, 164725, 206236, 258208, 323276, 404741, 506736, 634434],
marble:[0, 0, 0, 0, 231, 299, 386, 499, 646, 835, 1079, 1396, 1805, 2333, 3017, 3901, 5044, 6522, 8433, 10904, 14099, 18230, 23571, 30478, 39408, 50954, 65884, 85188, 110148, 142421, 184151, 238107, 307872, 398079, 514716, 665528, 860528, 1112662, 1438672, 1860203, 2405243],
glass:[0, 0, 0, 0, 0, 0, 0, 0, 268, 347, 448, 579, 749, 969, 1252, 1619, 2094, 2707, 3500, 4526, 5852, 7567, 9784, 12651, 16357, 21150, 27347, 35360, 45720, 59116, 76437, 98833, 127791, 165233, 213647, 276245, 357185, 461841, 597160, 772128, 998361],
sulfur:[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 133, 178, 239, 320, 429, 575, 770, 1032, 1383, 1853, 2483, 3327, 4458, 5973, 8004, 10726, 14372, 19259, 25807, 34581, 46339, 62094, 83206, 111497, 149406, 200203, 268273, 359485, 481710, 645492, 864959],
time:{a:1472465,b:509,c:1.12,d:504.5},
dur:[60, 75, 94, 117, 146, 183, 229, 286, 358, 447, 559, 698, 873, 1091, 1364, 1705, 2132, 2665, 3331, 4140, 5160, 6480, 8100, 10140, 12660, 15840, 19800, 24960, 30960, 38760, 48420, 60540, 75720, 93600, 115200, 147600, 183600, 230400, 288000, 360000, 450000],
icon:'/cdn/all/both/img/city/shrineOfOlympus_l.png'
},

It's a little different, but I used the quantities and times from the help screen on a server without any research.
I have no idea about the coefficients a,b,c,d. I copied it from another building.

I added this line too:

mitology: [Constant.Buildings.SHRINE_OF_OLYMPUS]

§
يوللانغان ۋاقتى: 2023-12-05

I didn't mention that I'm using another version of the script:

// @author germano / 1.17 to 1.18 by Ariston / 1.18 germano / up 1.20 thomasccm

// @version 1.21

I also made some updates as the game updated, picking up bits of code here and there when something didn't work.
I'm also not a programmer and I've been playing Ikariam since 2008.

e41
§
يوللانغان ۋاقتى: 2023-12-05

The coefficients for Shrine are:
time:{a:48,b:1,c:1.25,d:0},

§
يوللانغان ۋاقتى: 2023-12-05

I didn't mention that I'm using another version of the script:

// @author germano / 1.17 to 1.18 by Ariston / 1.18 germano / up 1.20 thomasccm

// @version 1.21

I also made some updates as the game updated, picking up bits of code here and there when something didn't work.
I'm also not a programmer and I've been playing Ikariam since 2008.

https://github.com/IkariamPro/empire-overview/blob/master/empire_overview.user.js

§
يوللانغان ۋاقتى: 2023-12-05

The coefficients for Shrine are:
time:{a:48,b:1,c:1.25,d:0},

Thanks

§
يوللانغان ۋاقتى: 2023-12-05

Any ideas on what each coefficient means?

e41
§
يوللانغان ۋاقتى: 2023-12-05

In general, there is a general rule that the durations are geometric progressions.
It is also known that most of the buildings have a standard term that is subtracted from the durations.
Based on the above, D is the standard term, C is the r factor of the geometrical progression.
A and B and to be precise A/B is actually one coefficient but the fraction is used for better precision.
This is more or less the logic behind it.

mrfixئاپتور
§
يوللانغان ۋاقتى: 2024-01-20
The coefficients for Shrine are:
time:{a:48,b:1,c:1.25,d:0},

Thanx. updated

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.