GreaseMonkey'ing Cantr - customizing Cantr, clientside

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

Moderators: Public Relations Department, Players Department

User avatar
Chroma Key
Posts: 1667
Joined: Sat Apr 24, 2010 11:40 pm

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Chroma Key » Tue Sep 24, 2013 8:14 pm

I asked that question (about my own language) several months ago! :lol: It would be a huge help.
"She could make something sound stupid just by hearing it.”
"For a short moment there, you almost sounded human."
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 » Wed Sep 25, 2013 10:41 pm

New version 2.1

- Support for Finnish
- Removed B&V grouping, because it's no longer needed
- Bookmarks/Highlights for buildings&vehicles work again
‘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
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 » Sun Oct 27, 2013 5:06 pm

Please update to newest version 2.3 as soon as possible.

I'll introduce CE events page features to the game soon.

They are not compatible with old Cantr Enhanced version and will lead to serious errors.
New version is slightly faster and will make CE still work correctly after introducing mentioned features.
‘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
computaertist
Posts: 674
Joined: Sun Dec 30, 2012 3:33 am

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby computaertist » Fri Nov 01, 2013 7:36 pm

Awesome interface changes, Greek! :mrgreen:

Spotted a little bug between CE version 2.3.0 and the changes, in Chrome: When left-clicking a name in a line with event grouping, it behaves as it did before the update instead of after it.
Mark Twain wrote:Truth is stranger than fiction, but it is because Fiction is obliged to stick to possibilities; Truth isn't.
User avatar
destinysWalrus
Posts: 243
Joined: Wed Oct 23, 2013 12:03 am
Location: Southern California

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby destinysWalrus » Mon Sep 01, 2014 8:08 pm

Is there any working way to get the greasemonkey script? Userscripts is broken, and I'm trying to make a script of my own - but I'm not sure how to get it to behave. An example that did work would be helpful.
User avatar
Pies
Programming Dept. Member
Posts: 383
Joined: Sat Nov 29, 2008 1:32 pm
Location: https://314es.pl/irc
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Pies » Mon Sep 01, 2014 9:15 pm

If anybody else would be looking for ce script - I uploaded last version I had (2.4.0) - http://314es.pl/cantr_CE.js

have fun!
Pies
dwudziestoletni mężczyzna wrote:"OOC: Jak ci się nie podoba, to nie graj. Ta gra nie szuka więcej graczy."

kaloryfer wrote:This game already has a lot of problems, new players would only bring new ones.
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 Oct 31, 2014 8:09 pm

I've updated Natso's old script to support some of Cantr's newer features.
You can get it here: https://openuserjs.org/scripts/AniCator/Cantr_Visual_Enhancer

Tested it using Greasemonkey (Firefox) and Tampermonkey (Chrome).

Updates:

Code: Select all

* Fixed real-time event support.
* Added support for character description boxes.
* Limited the amount of events the script translates on page load to speed it up. (limit is set to 100 now)
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Doug R. » Mon Nov 03, 2014 5:04 pm

Is there a way to configure it? It changed my display preferences (I had emotes yellow instead of gray).
Hamsters is nice. ~Kaylee, Firefly
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 » Mon Nov 03, 2014 6:51 pm

Right now there isn't but I can add an option for it.
Were you using another script to make them yellow originally?
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 » Mon Nov 03, 2014 8:04 pm

Code: Select all

1.4.3
*Added a basic options menu that allows you to change the colour used for emotes.

Image Image

I added an option to change the emote colours. The value is saved as soon as you change it. It's pretty basic.
You will have to reload the page afterwards though.

PS: It can take some time before the script is updated from 1.4.2 to 1.4.3 on your local machine. It depends on your userscript update settings.

EDIT: I quickly updated the script another time. You don't have to reload the page for the color changes anymore. (1.4.4)
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 » Mon Nov 03, 2014 10:37 pm

Code: Select all

1.4.5
* Moved options to the bottom of the screen. (clicking on the bar makes the CVE options pop up)
* Added experimental color picker.
* Added preview text.
* Enabled CVE on all Cantr pages.

1.4.4
* Emote color changes now update instantly (no page reload required)
User avatar
Bmot
Game Mechanics Chair / HR/PD Member
Posts: 2631
Joined: Sat Jun 30, 2012 3:59 pm
Location: The Hague - Netherlands

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Bmot » Mon Nov 03, 2014 10:48 pm

Could it be that version 1.4.5 messed up the navigation buttons on the character page?

The row events-inventory- etc. buttons don't seem to work anymore, and neither do the whisper button thingies, or using enter to talk to all, all since I updated.

-edit: also, when I turn it off, all buttons are working again.
Richard Dawkins wrote:We privileged few, who won the lottery of birth against all odds, how dare we whine at our inevitable return to that prior state from which the vast majority have never stirred?
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 » Mon Nov 03, 2014 10:56 pm

Ah crap, you're right. Gonna look into it.
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 » Mon Nov 03, 2014 11:00 pm

Fixed it. Sorry for the spam. :p
User avatar
Doug R.
Posts: 14857
Joined: Wed Mar 23, 2005 6:56 pm
Contact:

Re: GreaseMonkey'ing Cantr - customizing Cantr, clientside

Postby Doug R. » Tue Nov 04, 2014 2:28 pm

AniCator wrote:Right now there isn't but I can add an option for it.
Were you using another script to make them yellow originally?


I was using the Interface menu under player settings, but it seems that the script supercedes those settings. This is what I have in my interface box:

Code: Select all

.cvee_emote {
color: #EEEE00;
font-style: italic;
}
.cvee_quote {
color: #ffffff;
}
.cvee_character {
color: #ff9700;
}
.cvee_event {
color: #999999;
}
Hamsters is nice. ~Kaylee, Firefly

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest