11-04-2012, 01:18 AM
Ok, seems like bug is fixed.
What it was:
Somehow using file = io.open(PLUGIN:GetLocalDirectory().."/portals_portals.dat", "w+") with "w+" mode caused data to be corrupted upon re-writing. Using just "w" mode works just fine (or, at least, seems to be fine at first test).
I'll do some more my lua magic and then will upload updated version, I guess. In case anyone suffers the bug and needs it immediately I can provide quick-fixed version.
What it was:
Somehow using file = io.open(PLUGIN:GetLocalDirectory().."/portals_portals.dat", "w+") with "w+" mode caused data to be corrupted upon re-writing. Using just "w" mode works just fine (or, at least, seems to be fine at first test).
I'll do some more my lua magic and then will upload updated version, I guess. In case anyone suffers the bug and needs it immediately I can provide quick-fixed version.