GreaseMonkey'ing Cantr - customizing Cantr, clientside

General out-of-character discussion among players of Cantr II.

Moderators: Public Relations Department, Players Department

User avatar
nateflory
Posts: 586
Joined: Tue Jan 17, 2006 5:54 pm
Location: upstate, NY

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby nateflory » Thu Jan 14, 2016 4:47 pm

This thread intrigues me.... I had not noticed there were cool plugins and addons and other Wonky-ness-Reducers out there.
Now, to just figure out when the actual Project ticks happen "locally". I have no idea what "x.19 Projects are processed" means from the wiki description because approx twenty-after-the-hour my-time is not seeming correct. :P
hoping this Greasy Monkey thing will help there eventually . :D
---------------------------------
"Nature may reach the same result in many ways." - Nikola Tesla
"Dare to be naïve". - "Unity is plural and, at minimum, is two." - Bucky Fuller
User avatar
SekoETC
Posts: 15523
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby SekoETC » Thu Jan 14, 2016 5:50 pm

Not-so-sad panda
User avatar
nateflory
Posts: 586
Joined: Tue Jan 17, 2006 5:54 pm
Location: upstate, NY

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby nateflory » Fri Jan 15, 2016 3:06 am

SekoETC wrote:This might help:
http://joo.freehostia.com/cantr/ticks/


Don't take this wrong, but... I <3 U. :P
---------------------------------
"Nature may reach the same result in many ways." - Nikola Tesla
"Dare to be naïve". - "Unity is plural and, at minimum, is two." - Bucky Fuller
User avatar
prometheus
Posts: 222
Joined: Tue Aug 11, 2015 11:16 pm

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby prometheus » Fri Jan 15, 2016 6:23 am

Once Greek fixes Cantr enhanced, that thing is a lifesaver. It displays how long to the next tick and what it is underneath the time in game.
"Thank my bottom and call me a biscuit."
User avatar
Marian
Posts: 3190
Joined: Thu Dec 15, 2005 12:16 am

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Marian » Fri Jan 15, 2016 7:31 am

And let's you bookmark buildings and vehicles. All these towns are impossible to navigate now.

We shouldn't let Greek quit until he incorporates all the Enhanced features into the game itself. :P
User avatar
prometheus
Posts: 222
Joined: Tue Aug 11, 2015 11:16 pm

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby prometheus » Fri Jan 15, 2016 7:57 am

Do you have CVE marian? That still works, and the entire reason I love it so much is that if you're in a character but tabbed away, it plays a sound when something new happens. Perfect for longer RP. It also recognizes emotes italicizes and colors them.
"Thank my bottom and call me a biscuit."
User avatar
Marian
Posts: 3190
Joined: Thu Dec 15, 2005 12:16 am

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Marian » Fri Jan 15, 2016 2:10 pm

prometheus wrote:Do you have CVE marian? That still works, and the entire reason I love it so much is that if you're in a character but tabbed away, it plays a sound when something new happens. Perfect for longer RP. It also recognizes emotes italicizes and colors them.



Never used it. Sounds nice but I wouldn't see it as a necessity the way Enhanced is.
User avatar
Marian
Posts: 3190
Joined: Thu Dec 15, 2005 12:16 am

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Marian » Sat Jan 16, 2016 5:24 am

Yesssss.

Back in action. Thanks Greek! :D
User avatar
Greek
Programming Dept. Member/Translator-Polish
Posts: 4726
Joined: Mon Feb 13, 2006 5:41 pm
Location: Kraków, Poland
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Greek » Tue Jan 19, 2016 1:27 am

Yes, I've updated Cantr Enhanced to work again:
https://greasyfork.org/pl/scripts/7409-cantr-enhanced
‘Never! Run before you walk! Fly before you crawl! Keep moving forward! You think we should try to get a decent mail service in the city. I think we should try to send letters anywhere in the world! Because if we fail, I’d rather fail really hugely’
User avatar
Wolfsong
Posts: 1277
Joined: Sun Dec 13, 2009 5:33 am
Location: Australia

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Wolfsong » Tue Jan 19, 2016 9:07 am

Thought I'd give this a go... Downloaded Tampermonkey, added the Cantr Enhanced script... and nothing. It says the script is running and enabled, but nothing has changed at all. What do I need to do to get this working?

Edit: Reinstalled it a few times and it started working.

Any way to show all ticks at once, instead of just the one tick?
Image
User avatar
Wolfsong
Posts: 1277
Joined: Sun Dec 13, 2009 5:33 am
Location: Australia

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Wolfsong » Wed Jan 20, 2016 3:41 am

So with ticks, all I see when Cantr Enhanced is toggled is...

Image

Should there also be travel and project ticks?

Edit: I see. It only shows the most recent tick.
Image
User avatar
AniCator
Posts: 114
Joined: Mon Jun 10, 2013 5:34 pm
Location: The Netherlands
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby AniCator » Fri Feb 26, 2016 3:09 pm

I've pushed out a small update for my script.
It includes an unfinished version of the wiki fetching functionality for food items and I've added two options that allow you to choose if you want emotes to be displayed bold and/or use italics.

Those who already have the script installed should get the update automatically depending on the settings of their UserScript extension.

For everyone else that is interested, here's a link: https://openuserjs.org/scripts/AniCator/Cantr_Visual_Enhancer

Let me know if anything breaks. :)
User avatar
AniCator
Posts: 114
Joined: Mon Jun 10, 2013 5:34 pm
Location: The Netherlands
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby AniCator » Fri Feb 26, 2016 10:26 pm

Quick update, pushed out a patch that should make everything work on Firefox as well. Yay!
User avatar
AniCator
Posts: 114
Joined: Mon Jun 10, 2013 5:34 pm
Location: The Netherlands
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby AniCator » Sat Feb 27, 2016 2:46 pm

Added a feature that allows you to set a global default color for names and also color individual names.
Let me know if anything goes wrong.

https://openuserjs.org/scripts/AniCator/Cantr_Visual_Enhancer

Changelogs of the last few updates:

Code: Select all

1.5.1
* Added name coloring feature that allows you to color individual names and a default name color (may not work together with Cantr Enhanced, untested)
* Improved detection of character names

1.5.0.2
* Fixed bug that prevented the script from analyzing new incoming events in Firefox

1.5.0.1
* Fixed various bugs that stopped the addon from working in Firefox

1.5.0
* Added option that enables the retrieval of information from the wiki (requires browser permissions to fetch unsafe data)
* It is now possible to toggle the font styles of the emotes (i.e. enabling bolding and/or italics)


Note: Do not edit name colors on multiple tabs. This will overwrite whatever changes you have made to the colors on the other tab.
User avatar
AniCator
Posts: 114
Joined: Mon Jun 10, 2013 5:34 pm
Location: The Netherlands
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby AniCator » Sun Dec 16, 2018 8:58 pm

It's necro time! I recently started playing a bit of Cantr again and I noticed some parts of the CVE script were broken.
I've also included some previous updates that I never uploaded.
This mainly addresses a bug that caused the script to no longer process newly received asynchronous events.
This update should make those be colored and processed correctly again.

Tampermonkey Script: https://openuserjs.org/scripts/AniCator ... l_Enhancer

Change log:

Code: Select all

1.5.1.3
* Fixed bug that caused new asynchronously received events to no longer be processed by CVE.

1.5.1.2
* Improved usability of name colouring feature
* Fixed a couple of minor bugs
* Fixed issue that caused the page to scroll back to the top every time you switched option tabs

1.5.1.1
* Fixed typo for some NaN checks

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest