bmaupin / micro-beyond-earth

Play Beyond Earth with extremely small maps and additional game options for shorter games
https://steamcommunity.com/sharedfiles/filedetails/?id=3309221969
0 stars 0 forks source link

Lua error #1

Open bmaupin opened 4 weeks ago

bmaupin commented 4 weeks ago

I just started a second game with this mod and the map was messed up. I saw this error in the Lua log. Not sure if it's related to the mod:

[2048.569] Runtime Error: Assets\dlc\expansion1\UI\frontend\gamesetup\advancedsetup.lua:464: operator - is not supported for nil - number
stack traceback:
    Assets\dlc\expansion1\UI\frontend\gamesetup\advancedsetup.lua:464: in function '(anonymous)'
    Assets\dlc\expansion1\UI\frontend\gamesetup\advancedsetup.lua:1501: in function 'ForEachScreenOption'
    Assets\dlc\expansion1\UI\frontend\gamesetup\advancedsetup.lua:1507: in function 'PerformFullSync'
    Assets\dlc\expansion1\UI\frontend\gamesetup\advancedsetup.lua:1817: in function '(anonymous)'
    [C]: in function 'func'
    [C]: in function '(anonymous)'

It was a lush, terran, duel map. Possible that there was an error generating the map due to the small size?

bmaupin commented 4 weeks ago

I can reproduce it but it's hard to do so consistently.

I can somewhat reproduce it when loading a particular saved game and then starting a game with the mod afterwards.

No errors in the logs this time; could it be related to this?

[134.387] Map Script: Resources To Set Outer ProductionOrEnergy:    nil
bmaupin commented 3 weeks ago

Loading the problematic game (which includes the mod) and then a normal game caused the error.

I don't think the ProductionOrEnergy: nil message mentioned above has anything to do with this.

Is this related? It is a legitimate error:

ERROR STILL NEED TO SET RESOURCES

That error seems to come from assignstartingplots.lua. But it's not clear to me if or why it's an actual problem. Seems like this could just be a natural side effect of the map being so small.

bmaupin commented 1 day ago

Is it possible this is related to #7 ? As best as I can tell, the games I was testing with at the time are all duel. And now they seem to be crashing instead of showing map errors. Not sure why that is (maybe I accidentally changed one of the game's Lua files).

I'll keep this open a bit longer in case it happens again, but I suspect the fix for #7 may have fixed this as well if the previous duel map size was too small.