You are providing a free tool. You don't need to apologise for developing it at your own pace!
Printable View
You are providing a free tool. You don't need to apologise for developing it at your own pace!
Troops out are now included on the military training page. An option to disable this feature has also been added for those that prefer.
Edit: Buildings calculator now accepts floating point values. Chris121 - any number of decimals can be used ;)
The troops out/total is bugged, it seems to be displaying them as a string (So 56 + 56 + 56 = 565656) rather than an int.
For a moment I thought Utopia was ****ed up, then realized it was a new feature =P
Thanks Chaddie. In the last couple of versions, if I set chat window right, it is pushing the chat window to the bottom of the screen on the right hand side, instead of the top on the right hand side.
The bottom causes an issue because the UpoOpu extension button is at the bottom right, and I can't move that. So with chat there too, I can't click the Upo button (it is covered by the chat). If I turn off your tool, chat goes to the top.
Ps. I could fix this by putting chat on the left and side bar on the right. But I prefer the chat on the right because if I use the side bar on the right, then the side bar covers the Account details drop down arrow when I am on a laptop.
I see, thanks for letting me know. It's hard to get that sidebar to work in all different screen resolutions and with other tools!
How about I make more options? Like instead of just left or right, top left, top right, bottom left, bottom right. Would that solve it?
Chaddie - it is displaying the wrong ppa/per acre values here (intra KD SoT). I have amended the name and removed the loc (not sure if names are allowed or not).
The Province of name (x:yy)
April 7 of YR4 (next tick: 33 minutes)
Race Undead Soldiers 328
Ruler Lord Sonicaus the Warrior Skeletons 974 (0.7 ospa)
Land 444 Zombies 4,100 (3.0 dspa)
Peasants 4,599 (3.4 ppa) Ghouls 826 (0.6 epa)
Building Eff. 90% Thieves Unknown (0.0 tpa)
Money 191,752 Wizards Unknown (0.0 wpa)
Food 1,949 War Horses 3,200
Runes 1,135 Prisoners 0
Trade Balance 1,776 Off. Points 28,321 (21 opa)
Networth 75,561 gold coins (55 nwpa) Def. Points 34,598 (25 dpa
here are 2 more data points of the same person (I attacked him in between each)
The Province of name (x:yy)
April 7 of YR4 (next tick: 24 minutes)
Race Undead Soldiers 311
Ruler Knight Sonicaus the Warrior Skeletons 974 (0.7 ospa)
Land 365 Zombies 3,809 (2.8 dspa)
Peasants 4,278 (3.1 ppa) Ghouls 818 (0.6 epa)
Building Eff. 90% Thieves Unknown (0.0 tpa)
Money 191,752 Wizards Unknown (0.0 wpa)
Food 1,949 War Horses 3,200
Runes 1,135 Prisoners 0
Trade Balance 1,776 Off. Points 27,691 (20 opa)
Networth 68,734 gold coins (50 nwpa) Def. Points 32,360 (24 dpa)
The Province of name (x:yy)
April 7 of YR4 (next tick: 22 minutes)
Race Undead Soldiers 295
Ruler Knight Sonicaus the Warrior Skeletons 974 (0.7 ospa)
Land 300 Zombies 3,532 (2.6 dspa)
Peasants 3,979 (2.9 ppa) Ghouls 810 (0.6 epa)
Building Eff. 90% Thieves Unknown (0.0 tpa)
Money 191,752 Wizards Unknown (0.0 wpa)
Food 1,949 War Horses 3,200
Runes 1,135 Prisoners 0
Trade Balance 1,776 Off. Points 27,528 (20 opa)
Networth 62,835 gold coins (46 nwpa) Def. Points 30,201 (22 dpa)
Riots due to housing shortages from overpopulation are hampering tax collection efforts!
Thanks for letting me know Chris121, it should be fixed in 2.3.1, which was just published.
chadde,
It seems there is still an issue with the raze prefilling. If you change your build to a lower building %, and hit raze, its putting ALL buildings in the raze field instead of what you changed.
I just literally razed all my buildings on accident because I was clicking to fast. In fact, due to the loading times, I manually entered 24 buildings to raze farms, and right before I hit the submit button, it prefilled ALL the buildings and it was too late for me to cancel as I hit the button just moments afterwards! Luckily I was able to turn this setting off for now, but I thought I would let you know it hasnt been working properly lately.
Isn't prefilling a violation of rules?
Pretty sure the current interpretation requires a button press for any filling of fields.
Doesn't munk have autofill options for the buildings? Can't you save a preferred % build setup and have it autofill?
I think the autofill is acceptable. But an auto-click is unacceptable. So click to autofill, and click to build is okay, but a click to auto-fill & build would not be okay.
With munk you have to press a button to load, fill and execute. I guess its just minimal difference.
Thats how munk does it so should be fine.
Please let me know if the button fixed the calculation error or if it remains.
Chaddie, for me it has not solved the bug. It has added a button, but once the button is pressed it still pre-fills EVERTHING in raze. ie it is not telling us what we should raze, it is suggesting we raze everything.
You need to have a desired build keyed in the building helper on the growth page and then go to the raze page and click the raze autofill button to raze all of the buildings required to reach said build. If you leave the building helper blank, than it will assume you want to raze all of your buildings when you use the autofill raze button. It worked similarly before, minus the auto-raze button. Never had an issue with this feature, so I am going to chalk it up to user error on your part.
The buildings were filled in on the growth page.
May I suggest to just not fill anything in the case it can't find a build?
That one very esoteric use-case of someone using the plugin to raze all buildings doesn't seem to be worth the possible havoc IMO.
I think I finally found the bug. It didn't happen to me because I was below 1000 acres when I looked for it. When >1k acres it was parsed as 1 acre, which of course made it seem like you had way too many buildings of each kind.
Hope this fixed it, let me know if not.
That sounds right. I am over 1k and have been the whole time I noticed the bug. It did work fine previously, which I assume was when I was under 1k.
I don't think the update rolled out to me yet but I will check again tomorrow.
Looks like it is okay now (haven't tested thoroughly but on my current set up it is correctly only telling me to raze 4 buildings).
Thanks Chaddie.
Thank you. That works great.
And btw the small menu icons (from a while ago) are great. I turned that option back on now.
I'm assuming this bug was related to the comma, lol.
The built-in Espionage page suffers from this same problem. If you try to sort by defense (ascending) it will list somebody with 10,000 defense as being less than somebody with 11 defense =D
Hi Chadde,
Can you have a look at the posts in page 5 of this thread about white screens: http://forums.utopia-game.com/showth...ad-times/page5
I know nothing about coding or plug ins, but my guess is whether it is being caused by the side bar trying to pull data from multiple pages in game at the same time (spells, army, honour). Would that require it to "load" more pages than the one I am on - if so, I wonder if the throttling Utopia now has in place is causing white screens. If so, a solution might be to slow down the speed at which the side bar pulls the data from other pages. I could be totally wrong about all this.
I was noticing the same thing yesterday. The 429 errors are causing the plugin to not load some of the data, and I'm assuming it's the same thing causing the white screens. When I was building it, I was actually concerned about the number of requests, but since the server seemed to not mind I thought it would be fine.
You are right in your assumption that it loads more than one page. Kd data from kd page, honor from state council etc.
I'm going to work on a fix for the issue today, most likely by caching the data and not automatically refresh everything on every page load.
Hey, I didn't realise your pluggin pulled multiple pages at once but if it's pulling excessive pages then yes, you'll get fired back a 429 page. If you want me to verify the load on the updated plugin let me know.
The sidebar gives a lot of information not otherwise available on the current screen. In order to get that data, it is pulling multiple pages to parse specific details from a page...and it will do this every time we change pages.
Perhaps there is an easier way to grab that data? I'm not sure how Munk does it - but he has a similar end result (Ex: Showing you which spells are active on your Mystics page, without having to look at the advisor).
Grabbing individual bits of data rather than parsing multiple pages would have a huge impact on load time with the plugin as well.
Yeah it pulls and parses five or six pages. The sixth one depending on whether you're at war or not. This is so the sidebar can display active spells, armies out etc.
The way it worked was that ever time you hit a game page those 5/6 requests would be made. So that can add up to quite a few if you for example are running ops on someone.
I just published version 2.4.0. It now stores the data locally every time a page is parsed. Each type of page has an expiry time. For example if you're refreshing your throne page 100 times, only one request will be made. For the rest of the page loads the sidebar data will be pulled from local storage.
Once that data is deemed expired (45 seconds for throne page) a new requests will be made. This should significantly cut the number of requests.
The expiry times are:
throne page: 45s
state council: 100s
military council: 60s,
mystics council: 55s,
kd page: 120s,
enemy kd: 240s
I haven't gotten a 429 yet in this version, so hopefully it fixes it. The only thing that is a little tricky is when you first sign in after being off for a while, and all the data is expired. This means all 5/6 requests need to be made. I have tried to work around it now by delaying some of them and it seems to be working.
Throne and kingdom are the only ones parsed on page load, the rest are delayed randomly by between 0.5 and 1.5 seconds. As a result some of the data in the sidebar will have that same delay before showing. We can probably live with that.
I would appreciate if you guys can test out the new version and let me know of any problems/errors you find.
And Bishop, if you can somehow confirm that the requests are within the allowed amount that would be awesome.
Thanks
If there's an easier way, I don't know about it. I would love to be able to read the data from an API instead of parsing HTML pages, but as far as I know no such API exists.
Munk, if you're listening and are sitting on a secret API, share it for the good of the game, man! :)
First of all I would like to thank you for creating an awesome and useful tool for Utopia. Your efforts are greatly appreciated and a welcome contribution to the Utopia community!
I wanted to commend you on your implementation of the sidebar and data overlays. Making relevant as well as contextual information glanceable is exactly the kind of functionality Utopia needs. Though some may hold fast to what is familiar, the learning curve for new players is made that much more difficult simply because of poor design. The current system of navigating pages within the game for bits of information is a much more cumbersome process than actually playing the game. The more elements that can be logically arranged, the better.
Utopia is in dire need of current standards based development with its UI as well as an API developers can interface with. Development of an API is of particular importance as it is key to the overall longevity and scaleability of the Utopia platform. Android/iOS apps, browser extensions, as well as sites like Munk's and UpoOpu are a step in the right direction with the additional accessibility, tactical information, and functionality they add to the game but the current system of parsing whole HTML pages for bits of data is inefficient and unnecessarily increases server loads.
May the powers that be develop or release an API and what you have developed continue to evolve. I look forward to the continued growth of what you have created in Utopia Enhancer.
A... P... I... *clap* A P I *clap* API! *clap*