Territory Claim


You will have to pay for territory in this planet! Each terrain lot has a price you have to pay in items. Compatible with other mods that creates teams forces for pvp/pve. Now with terrain dispute.

Content
8 days ago
0.17 - 2.0
1.52K
Environment

b Non-recoverable error (0.18.6)

4 years ago

Love the mod - haven't played in a few weeks, so there were lots of version changes both to base and TC.
Starting up an existing save hard-crashes with the following error:

Error while running event territory_claim::on_nth_tick(130)
territory_claim/control.lua:358: attempt to index field 'maf_main_menu_frame' (a nil value)
stack traceback:
territory_claim/control.lua:358: in function 'check_player_land'
territory_claim/control.lua:368: in function <territory_claim/control.lua:365>

For yuks, I tested a new game - no issue. Adding TC to a save that didn't initially have it also produces this same error, but why would it suddenly barf on a save that had it all along?

4 years ago

Got it. Fixing now. Thanks for the report

4 years ago
(updated 4 years ago)

Thanks for the quick response - sadly, it's spitting a new error (but hey, the old one got fixed!)

Error while running event territory_claim::on_configuration_changed
territory_claim/utils.lua:285: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
territory_claim/utils.lua:285: in function 'in_list'
territory_claim/control.lua:85: in function 'check_reset_prices'
territory_claim/control.lua:68: in function <territory_claim/control.lua:66>
Interestingly, it works fine when added to a save file that didn't have TC (doesn't spawn any territories to claim, understandably, but it doesn't error out), just this one save that had it all along.
If it's a dead savegame situation, c'est la vie, but I'm grateful for the effort.

(5 funny ol' bugs in the code, 5 funny ol' bugs, you take one down, send patches around, 7 funny ol' bugs in the code...)

4 years ago

Ouchh.... Please try again

4 years ago
(updated 4 years ago)

Third try's the charm!
Dang.

Error while running event territory_claim::on_nth_tick(130)
territory_claim/control.lua:384: attempt to index field 'maf_main_menu_frame' (a nil value)
stack traceback:
territory_claim/control.lua:384: in function 'check_player_land'
territory_claim/control.lua:394: in function <territory_claim/control.lua:391>

Looks like back to the original crash, but with different lua references. How vexing!

4 years ago

Incidentally, I'm super chuffed at how much work you've put into this error. <3

4 years ago

Ohh, no.. is it from an old save ? can you send me your save ?

4 years ago

It is an older save - still 0.18.x...
Last had TC 0.18.20
I'll ping a link on Discord. =)

4 years ago

Fixed

New response