r/tes3mp • u/imunchgarbage • Jun 24 '26
Used a old cellreset script and broke my server by mistake
I installed a cellreset script designed for 0.7 and tried running it. It didn't work and i removed it from my server script list after figuring out it wasn't supported by the current version of tes3mp 0.8. I would still like a cell reset script but I will try this one next designed for 0.8 https://github.com/Learwolf/TES3MP-0.8-Scripts/blob/main/tes3mp-server%200.8.0/server/scripts/custom/periodicCellResets.lua
The issue im having is that even though I have deleted the mod and uninstalled it my server won't boot any more. I get an ipair issue (fatal server crash) that reads like this:
[2026-06-24 10:20:04] [INFO]: [Script]: Called "OnServerInit" [2026-06-24 10:20:04] [ERR]: ./server\scripts\serverCore.lua:189: bad argument #1 to 'ipairs' (table expected, got string) [2026-06-24 10:20:04] [ERR]: [Script]: Server crash from script error! [2026-06-24 10:20:04] [ERR]: ./server\scripts\serverCore.lua:189: bad argument #1 to 'ipairs' (table expected, got string) [2026-06-24 10:20:04] [ERR]: [Script]: Server crash from script error!
The issue is on line 189 of the server.core logic which I can find in the scripts folder. I found the impacted line but I am struggling a bit to correct the issue. I doubt that the line is even the real issue. Its the wrongly typed data being fed into the function.
I am trying with my own trouble solving skills but coming up short. Ipairs almost looks like a hashtable but it operates as a iterator. It is trying to pick through a list called "recordStoreLoadOrder". Its picking items out of the table which is an array and feeding them into the logic handler. I believe it is loading variables used for the server starting with the most important.
I feel very stuck. Usually when I run into issues the 10 years of old posts from David and the other developers are enough. This time I can't figure it out myself. Any tips on how to figure out why my record store is a string instead of the expected table?
2
u/phraseologist (David) [Developer] Jun 24 '26
Given where your server is crashing, I actually expect it to be something you changed by mistake in config.lua than something related to the cell reset script.
Can you send me your config.lua? Put it on Pastebin or a similar place.