Lin Jen-Shin activity https://gitlab.com/godfat 2026-03-16T18:18:06Z tag:gitlab.com,2026-03-16:5209598139 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-16T18:18:06Z godfat Lin Jen-Shin

Lin Jen-Shin (9a134fb2) at 16 Mar 18:18

Shorten the SHA1 so that /logs has shorter width for mobile

tag:gitlab.com,2026-03-16:5209484693 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-16T17:43:58Z godfat Lin Jen-Shin

Lin Jen-Shin (4da2d6de) at 16 Mar 17:43

Correct the use of p

... and 1 more commit

tag:gitlab.com,2026-03-16:5209360075 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-16T17:08:05Z godfat Lin Jen-Shin

Lin Jen-Shin (6ded914c) at 16 Mar 17:08

Mention the changes to mobile view

... and 2 more commits

tag:gitlab.com,2026-03-16:5209319238 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-16T16:56:59Z godfat Lin Jen-Shin

Lin Jen-Shin (6485e15f) at 16 Mar 16:56

Improve mobile/phone view by better utilizing spaces

... and 1 more commit

tag:gitlab.com,2026-03-16:5208444422 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-16T13:48:46Z godfat Lin Jen-Shin

Lin Jen-Shin (772e04b3) at 16 Mar 13:48

Update event data

tag:gitlab.com,2026-03-11:5191990825 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-11T11:40:45Z godfat Lin Jen-Shin

Lin Jen-Shin (2656d37c) at 11 Mar 11:40

Update event data

tag:gitlab.com,2026-03-09:5182394763 Lin Jen-Shin commented on merge request !53 at Lin Jen-Shin / battle-cats-rolls 2026-03-09T12:39:16Z godfat Lin Jen-Shin

Thank you! Merged in adc387f9 and I wrapped it up with f1bd4ef9

tag:gitlab.com,2026-03-09:5182390112 Lin Jen-Shin commented on merge request !53 at Lin Jen-Shin / battle-cats-rolls 2026-03-09T12:38:19Z godfat Lin Jen-Shin

Merged in adc387f9

CSS cache is an annoying issue. I am thinking about appending a digest with the URL so every time we update the content it'll not use it from the cache.

I did this here: f1bd4ef9

tag:gitlab.com,2026-03-09:5182389974 Lin Jen-Shin commented on merge request !53 at Lin Jen-Shin / battle-cats-rolls 2026-03-09T12:38:18Z godfat Lin Jen-Shin

This is updated in f1bd4ef9

tag:gitlab.com,2026-03-09:5182364279 Lin Jen-Shin accepted merge request !53: Display rarity for owned cats at Lin Jen-Shin / battle-cats-rolls 2026-03-09T12:33:08Z godfat Lin Jen-Shin

Rarity is now visible for owned cats — the cell shows the rarity color on the left and azure on the right, instead of azure overriding the rarity color entirely. Note: CI may fail on my fork due to GitLab's unverified identity requirement, not a code issue. All tests pass locally.

tag:gitlab.com,2026-03-09:5182364133 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-09T12:33:06Z godfat Lin Jen-Shin

Lin Jen-Shin (f1bd4ef9) at 09 Mar 12:33

Wrapping up color coding for owned cats

... and 6 more commits

tag:gitlab.com,2026-03-09:5182233017 Lin Jen-Shin approved merge request !53: Display rarity for owned cats at Lin Jen-Shin / battle-cats-rolls 2026-03-09T12:06:09Z godfat Lin Jen-Shin

Rarity is now visible for owned cats — the cell shows the rarity color on the left and azure on the right, instead of azure overriding the rarity color entirely. Note: CI may fail on my fork due to GitLab's unverified identity requirement, not a code issue. All tests pass locally.

tag:gitlab.com,2026-03-09:5182229389 Lin Jen-Shin commented on merge request !53 at Lin Jen-Shin / battle-cats-rolls 2026-03-09T12:05:16Z godfat Lin Jen-Shin

@asHOH Sorry for the delay and thanks a lot, this looks good!

It's actually slightly different than what it was before, but it's also looking better. On Chrome it looks like it even fixed a small 1px gap. Well done!

tag:gitlab.com,2026-03-09:5182074886 Lin Jen-Shin left project ron cheung / justanotherproject 2026-03-09T11:33:44Z godfat Lin Jen-Shin tag:gitlab.com,2026-03-09:5181709877 Lin Jen-Shin commented on issue #56 at Lin Jen-Shin / battle-cats-rolls 2026-03-09T10:17:48Z godfat Lin Jen-Shin

No problem. Hope you had a great vacation.

Hmm. From my experience, division by 0 would usually crash the program (especially with the same compiler and compile option, clang -O2 in this case), and I forgot it's probably also dereferencing a pointer from malloc(0). From my experience that could indeed lead to getting random numbers, and then it might break the conditions for the loop. Maybe that's how it's running indefinitely on Mac.

While we have jokes on "undefined behaviour" to launch a nuke, or Principle of Explosion to derive someone's phone number, I would still expect some explanation since a lot of that were done by practical reasons.


Anyway, back to the topic. I checked the log and this case seems to still happen a lot.

Sometimes I do see browser can somehow reset the banner under some conditions (like restoring from cache, or back page or something like that?), and that's probably why some did pick platinum banner for seeking rare cats...

It happens often enough that I think we should still address this.

I think ideally the seeker shouldn't crash in any way. However, the input is indeed also invalid, so I think it does make sense to check it before passing to the seeker as well.

This one is less easy to check, but I think we can still do a quick sanity check to ensure that slots are not going out of bound.

It would be the best to prevent the browsers from resetting banners like this, but I am not sure how without knowing how exactly why the browser is doing that.

In summary I think we have 3 things here:

  • Prevent seeker from crashing
  • Make sure input is valid before passing to the seeker
  • Prevent browsers from using inconsistent states

We should address all of them, but I am ok if we just check the input to address this for now.

tag:gitlab.com,2026-03-09:5181597003 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-09T09:54:41Z godfat Lin Jen-Shin

Lin Jen-Shin (52bc84e1) at 09 Mar 09:54

Update BCJP app data

tag:gitlab.com,2026-03-09:5181559462 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-09T09:46:37Z godfat Lin Jen-Shin

Lin Jen-Shin (110a61e4) at 09 Mar 09:46

Update app data and add talent counter-surge

tag:gitlab.com,2026-03-04:5167619041 Lin Jen-Shin commented on issue #56 at Lin Jen-Shin / battle-cats-rolls 2026-03-04T18:25:00Z godfat Lin Jen-Shin

There's another crash similar to this, but other than that, it seems to be working fine now.

tag:gitlab.com,2026-03-04:5167578313 Lin Jen-Shin pushed to project branch master at Lin Jen-Shin / battle-cats-rolls 2026-03-04T18:11:24Z godfat Lin Jen-Shin

Lin Jen-Shin (c9412aad) at 04 Mar 18:11

Set OOMPolicy=continue for Varnish