Jump to content
Mike Ontry

[Userscript] Politics and War Helper

Recommended Posts

No buttons whatsoever, and I reinstalled completely thinking that would solve, to no avail.

 

 

Same for me.  The rest of the script works as it's supposed to and has done with no problems for the months that I've used it.

 

Can't get this new addition to work even with reinstall though.  I have adblock disabled on P&W.

 

Ok I think I know what's causing this and will work on a fix as soon as I get back home from work today. The script is pulling the nation name from the basic information table on your nation page but I did not consider the 'VIP' image that is there on some peoples. Thanks for reporting guys!

 

Update is live and now it should work for everyone. Thanks again for the bug reports!  B)

Edited by Mike Ontry

Share this post


Link to post
Share on other sites

It works now :)

 

Appearance wise though, only the first column looks right.

 

eg

KbS3J02.png

Edited by Dan77

Share this post


Link to post
Share on other sites

Looks I'm going to have to figure out a way to make the design a little more responsive.

 

I guess the more cities you have the smaller the columns get. I designed it with 5 cities in my manager. I'll come up with a solution soon.

 

Updated!

Edited by Mike Ontry

Share this post


Link to post
Share on other sites

That looks much better :D

 

Good work.

 

Would it be possible to show the used/capacity improvement slots for each city on this page too?  e.g. 26/26

 

Like it does on the city page.  That way we can see what we have available without having to leave the city manager page.  It would need to update each time something was added/removed though in order to be truly useful.

Share this post


Link to post
Share on other sites

That looks much better :D

 

Good work.

 

Would it be possible to show the used/capacity improvement slots for each city on this page too?  e.g. 26/26

 

Like it does on the city page.  That way we can see what we have available without having to leave the city manager page.  It would need to update each time something was added/removed though in order to be truly useful.

 

I've been looking into that already. It will be in the next update.

Share this post


Link to post
Share on other sites

No buttons whatsoever, and I reinstalled completely thinking that would solve, to no avail.

 

Update: On Chrome still no buttons, but on Firefox I have buttons.

Share this post


Link to post
Share on other sites

That looks much better :D

 

Good work.

 

Would it be possible to show the used/capacity improvement slots for each city on this page too?  e.g. 26/26

 

Like it does on the city page.  That way we can see what we have available without having to leave the city manager page.  It would need to update each time something was added/removed though in order to be truly useful.

 

Done.

Share this post


Link to post
Share on other sites

It doesn't look like the tool tips match up based on continent. For example, I'm on South America and can thus produce Oil, Bauxite, and Lead, but my tool tips for those mines show Coal, Iron, and Uranium, respectively.

Share this post


Link to post
Share on other sites

It doesn't look like the tool tips match up based on continent. For example, I'm on South America and can thus produce Oil, Bauxite, and Lead, but my tool tips for those mines show Coal, Iron, and Uranium, respectively.

 

Crap! Another thing I have overlooked. Thanks DMJ I'll fix this as soon as I can.

 

Should be good now!

Edited by Mike Ontry

Share this post


Link to post
Share on other sites

Tried to sell a steel mill from the city manager page.  It told me I don't have any oil refineries to sell.  Good job I didn't, otherwise it would have sold the wrong thing.

 

I tried it twice to make absolutely sure that I hadn't clicked the wrong button by mistake.

  • Upvote 1

Share this post


Link to post
Share on other sites

Tried to sell a steel mill from the city manager page.  It told me I don't have any oil refineries to sell.  Good job I didn't, otherwise it would have sold the wrong thing.

 

I tried it twice to make absolutely sure that I hadn't clicked the wrong button by mistake.

 

Thanks for this report and my apologies. I am glad this didn't cause you to lose any of your improvements!

 

This was caused by the last update. The settings modal adds two submit buttons. The advanced city manager page actually loads the individual city's page that you are changing into an invisible iframe on the bottom of the page. Based on what button you click on the city manger page the script is told to click a button on the city page that is loaded in the iframe. Since the game's html is not very good about having any specific ids or other identifiable info I have to go by the order of the submit buttons in the html. The settings modal update changed the place of the improvement submit buttons by 2.

 

This has now been fixed and thanks again for letting me know!

Share this post


Link to post
Share on other sites

I use violent monkey for maxthon but I am having problems. Can someone see if if its me using maxthon and have to switch to chrome or what. Nothing is coming up.

Share this post


Link to post
Share on other sites

I can confirm that the script is not working in Violentmonkey. I have edited the original post to recommend tampermonkey for the opera browser. I'm not familiar with the maxthon browser so I don't have any recommendations as of now.

 

I'll be looking into what is causing problems with violentmonkey.

Share this post


Link to post
Share on other sites

maxthon=firefox and some operah and a little chrome. uses vm, so that shouldn't be the problem though. its faster than chrome so thats why i use it.

Share this post


Link to post
Share on other sites

Does anyone still use this? and are you having problems with the buy/sell improvements from the city manager page option? When I try  to buy/sell improvements from a category, it actually, buy/sells improvements, from the category ABOVE the category I originally toggled. For example, when I tried to purchase a coal plant, it returned an error message about the length of my city name :huh:  :unsure:  

 

Im totally ignorant about script, so I could be doing something wrong. But, if not, I hope there's an updated version out there somewhere or that one day Sheepy will integrate it into the game because going back to the old way would be uncivilized. lol 

Edited by кคllเรtเ

Share this post


Link to post
Share on other sites

Sheepy should really integrate stuff like this.

 

Ease of access and quality of life suggestions get ignored in this game too much.

 

Certainly would be a better addition then some of the other useless mechanics.

Share this post


Link to post
Share on other sites

Does anyone still use this? and are you having problems with the buy/sell improvements from the city manager page option? When I try  to buy/sell improvements from a category, it actually, buy/sells improvements, from the category ABOVE the category I originally toggled. For example, when I tried to purchase a coal plant, it returned an error message about the length of my city name :huh:  :unsure:  

 

Im totally ignorant about script, so I could be doing something wrong. But, if not, I hope there's an updated version out there somewhere or that one day Sheepy will integrate it into the game because going back to the old way would be uncivilized. lol 

The last time the script was updated was over a year ago. Its sadly seriously broken & I don't understand it well enough to update it yet.

Share this post


Link to post
Share on other sites

sad little leech here, bumping to see if anybody has done anything with this and hasn't posted.

 

You never know. :)

  • Upvote 1

Share this post


Link to post
Share on other sites

sad little leech here, bumping to see if anybody has done anything with this and hasn't posted.

 

You never know. :)

I had a go at it once but then decided that I didn't care enough to do anything.

Share this post


Link to post
Share on other sites

Really nice script!

 

I'd suggest making a +100/-100 infra and +500/-500 land buttons on the city manager as well.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.