[Lix guide, written at v0.10.36] How the nuke/overtime system works

Started by Silken Healer, November 13, 2026, 03:20:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Silken Healer

Disclaimer: This guide is written in good-faith but I am not responsible for any harm if this guide is wrong. Anyone else (particularly Simon) is free to correct me if they spot any mistakes

Simon told me that a lot of people don't understand how the nuke/overtime system works, so I thought I'd make a guide explaining how it works.

Lix overtime and nuke mechanics.drawio.png

What is the intent behind the system?
Quote[2026-11-13 03:06:36] ␃20␈<␈SilkenHealer_␈>␈␏␃99 Can I ask for your input about what the intentions of the nuke are? I understand the code itself as you told me before␏
[2026-11-13 03:06:45] ␃18␈<␈SimonN␃18␈>␈␏ There are at least 2 special cases. People with 0 points don't trigger the nuke, and 0-overtime maps behave differently from > 0 overtime.
[2026-11-13 03:07:05] ␃20␈<␈SilkenHealer_␈>␈␏␃99 Is the idea behind it so Lix levels don't go on forever right?␏
[2026-11-13 03:08:01] ␃20␈<␈SilkenHealer_␈>␈␏␃99 and it also functions as like a system where if you get enough Lix home as quickly as possible you can then nuke and hope everyone doesn't catch up during overtime␏
[2026-11-13 03:08:52] ␃18␈<␈SimonN␃18␈>␈␏ Hmmm, you're drilling into a sore spot. The idea is to somehow force the game to a close when one player is clearly winning. I don't know what "clear" is; it depends on the map and the players. I don't like to make a hard time limit from the level's start. I agree with Kory Heath in how a hard timer it's the least satisfying way to solve a problem.
[2026-11-13 03:09:39] ␃18␈<␈SimonN␃18␈>␈␏ These nuke routes (save some quickly, then nuke and hope) are a by-product. I'm neutral toward them. Interesting emergent design, but I'm not attached to them.

Quote[2026-11-13 03:31:05] ␃20␈<␈SilkenHealer_␈>␈␏␃99 What's the point behind the team needing at least one point before global overtime runs␏
[2026-11-13 03:32:49] ␃18␈<␈SimonN␃18␈>␈␏ Point is to unrestrict level authors. Otherwise, level authors would have to make overtime at least as long as how long it takes to build a route. If author doesn't, weak players could always nuke to force a draw.

Changelog
2026-11-13 03:58:14 deleted the guide as I figured a mistake but then I couldn't understand what Simon was talking about in IRC anyway and I wanted a break
2026-11-13 04:25 Rewrote the guide
2026-11-13 04:27 Mildly changed an imagequote
2026-11-13 04:28 Changed the code blocks of the IRC conversations to quote blocks as I want text wrapping

Simon

Thanks for describing it.

The code for the nuke decisions is in src/physics/world/world.d, see world.d lines 80-145 on github.

Each player is exactly one of ...

  • Happily playing: You still have lix, you haven't nuked.
  • Preferring for the game to end but nonetheless still not triggering overtime: You've lost all lix, or you've pressed the nuke button, but you haven't scored a point yet. Once you score a point in this situation (because another player puts a lix into your exit), you'll be a sufficient reason to start overtime.
  • Sufficient reason to start overtime: You've scored a point, and you also satisfy at least one of the following 3 criteria: You've lost all lix, or you pressed nuke, or the overtime is configured to be 0 in this level.

Overtime starts when at least one sufficient reason to start it exists, or when all players prefer the game to end, whichever happens sooner.

It's a ludicrous amount of and-or-and-or-and chains to write it all down without leaving anything out. I suspect that even my explanation here has some minor overlap or some misses. These rules work in practice, but it's too complicated to explain.

A strange experience for a new player is: The new player presses nuke, but his lix don't explode, and others continue to play. Now he has no skills. And this makes new players feel bad! The nuke button isn't really a nuke; rather, it's a way to surrender.

-- Simon