Interface improvements with user scripts & styles

Forum rules
Please DO NOT POST BUGS on this forum. Please report (and vote) bugs on : https://boardgamearena.com/#!bugs
Post Reply
User avatar
yzemaze
Posts: 51
Joined: 23 May 2011, 12:49

Interface improvements with user scripts & styles

Post by yzemaze »

Carcassonne’s bugs and interface deficiencies are well known but nonetheless no one from BGA seems to care enough to fix them – even though in at least some cases it should be quite easy. I’m confident this annoys the hell out of many players. For me personally a WTCOC game of (my teammate) Medusahope 4 weeks ago was the straw that broke the camel’s back. He discarded CCCC and of course told his opponent immediatley. Later Alexey_LV was on stream and not being able to see previous chat messages or discarded tiles initially thought Medusahope might have neglected to do so. It definitely wasn’t his fault, but the suspicion irked me a lot.

Long story short: I started coding right away to fix and improve what can be done from the outside. The resulting scripts are available on github and feature:
  • Highlight discard messages in the log.
  • Show discarded tiles permanently.
  • Fix distorted tiles in the log (and if desired align them to the right).
  • Border width and colors for last placed tiles.
  • Starting player icon (not limited to Carcassonne!).
  • Replace second edition tiles everywhere with the original tiles.
  • Shrink playerboards on mobile devices or smaller windows (<= 960 px). (With 640 px wide windows distributed over 2 screens you can watch all duels of a WTCOC match and a stream simultaneously. ;) )
  • keyboard support for replays
  • decluttered game logs (say goodbye to friends’ status spam …)
Quick preview:
Image

I tested them in some games and they do seem to work fine in most cases. At least my one beta tester was quite happy. (Thanks Raf!) The discard highlighting/displaying and starting player icon are affected by an unsolved problem, because early log messages can get wiped in later game stages. It shouldn’t be a problem though if you do play live games. Additionally these scripts need configuration if you don’t run BGA in EN (or DE). Please look out for corresponding comments in the script description or code.
I had hoped for feedback from WTCOC organizers, given that at least the permanent display of discarded tiles could be labelled a "memory aid" and hence a rules infraction. But as I didn’t get any reply in the last two weeks I really don’t care anymore. Just be aware that some people might consider using this specific script an unfair advantage – even though the original manual doesn’t specify whether tiles should be discarded face down or not.
PS: Official feedback has arrived and the gist is "any addition is prohibited".

Feedback, suggestions, issues, PRs etc. on github would be great, but I’ll check back here, too.
User avatar
Remkar
Posts: 444
Joined: 25 March 2021, 22:10

Re: Interface improvements with user scripts & styles

Post by Remkar »

Have you given any thought to seeing if you can take over development of the game and fix things from within? It certainly sounds like you have the motivation and skill set.

BGA does not directly manage the games themselves, just the framework. And I don't think the original developer is on BGA any more, and the new volunteer developer hasn't logged in for a while.
User avatar
yzemaze
Posts: 51
Joined: 23 May 2011, 12:49

Re: Interface improvements with user scripts & styles

Post by yzemaze »

I actually have (again). After a hiatus of 10+ years I returned to playing Carcassonne in 2022 on BGA. Almost immediately I was annoyed by the interface (e.g. the confirmation steps suck if you’re used to BSW’s no-frills implementation). So I had a look at the front end (public) part of the source. But I actively dislike(d) JavaScript and didn’t do anything with it.
Before starting with my scripts I checked into BGA studio, but it’s not (even) possible to get a read-only access to Carcassonne’s source. Then I stumbled upon CraftyRaf’s post mentioning a meeting with BGA in January. I had a nice chat with him (and several since) and got the impression that BGA is actively working on fixing some bugs. As I wasn’t keen on waiting and wanted a quick solution I opted for the scripts/hacks – knowing full well that they might become obsolete rather soon. That meant learning (enough) JS on the run. It was interesting enough and definitely the right way for me. Through Raf’s back channel at least one of BGA’s admins knows I’d be willing to try fixing some bugs. That said I think there are other people who actually know what they are doing and would be far more qualified. Whoever did the tile tracker extension for Chrome is worth their salt e.g. The logic is pretty sound and the source looks almost squeaky clean to me.
In the end it’s about time someone does justice to Carcassonne on here. The game and the (tournament) community deserves so much more.
User avatar
Remkar
Posts: 444
Joined: 25 March 2021, 22:10

Re: Interface improvements with user scripts & styles

Post by Remkar »

Thanks for the explanation, and thanks for the work you've put in and attempted!
User avatar
yzemaze
Posts: 51
Joined: 23 May 2011, 12:49

Re: Interface improvements with user scripts & styles

Post by yzemaze »

FYI: As nothing had happened since January I asked for source code access two weeks ago. It was denied yesterday, because they started an internal project to improve Carcassonne. No timeline given though, so no clue when we should expect changes to materialize. Let’s hope it’ll be rather soon.
Post Reply

Return to “Carcassonne”