Hextorio - Build in hexagons


Adds dungeons, quests, an economy/trading system, scaling DPS boss fights, ability to level up items, new music for the title screen, and an extra tier for many things such as belts, modules, combat robots, nauvis ores (endgame), and more. Also divides the planets into hexagons, which contain resources, enemy bases, or profitable trades. Get rich by selling your production, buy hexagons, and plunder the powerful dungeons on every planet!

Overhaul
8 days ago
2.0
4.32K
Factorio: Space Age Icon Space Age Mod
Transportation Logistics Combat Enemies Environment Mining Manufacturing Storage

b Significant slowdowns in 1.7

13 days ago
(updated 13 days ago)

I ran into some significant slowdowns, and running a quick profile it looks like the issue is with queued free item buffs - it appears to be checking every tick whether it can afford the next buff, and is spending a lot of time in get_cheapest_item_buff (a majority of which is in coin_tiers.multiply). And if it can't afford anything, this continues happening forever.

In my game, this is making hextorio take a constant 5ms per tick, with occasional spikes to 10ms - running /c __hextorio__ storage.item_buffs.free_buffs_remaining = 0 to clear the free item buff queue fixes the problem, and hextorio starts taking only 0.4ms per tick.

Some sort of buff cost caching, or simply don't check free buffs every tick, would likely help.

13 days ago

It's a state machine that is supposed to be spending one tick caching buffs that are available to upgrade as soon as either free_buffs_remaining becomes nonzero or the maximum achieved global net coin production increases. I suspect it's currently failing on that condition for some reason, so it's probably recomputing the available item buffs constantly. I can't fix it right now, but I will when I have the time.

New response