Templayer wrote:LadySoulCrystal wrote:EDIT:
Unrelated, went to go boot up my game this morning and was hit with this script and then an infinite death cutscene. Earlier save loaded fine, wasn't sure if this needed to be reported as i can't make too much of the script. Looks like something is out of bounds, but what?
Code: Select all
Scripts/Core/RSMem.lua:1383: array index (0) out of bounds [0, -1]
[C]: in function 'error'
Scripts/Core/RSMem.lua:1342: in function '__index'
Scripts/Core/RSMem.lua:1383: in function '__index'
...mes\Might and Magic 8\Scripts\General\NPCMercenaries.lua:578: in function 'v'
Scripts/Core/EventsList.lua:68: in function <Scripts/Core/EventsList.lua:63>
arguments of '__index':
t = (table: 0x2566f638)
a = 0
v = nil
local variables of '__index':
aorig = 0
a1 = 0
n = 0
upvalues of '__index':
ptr = nil
u4 = (table: 0x057b5e88)
GetPtr = (function: 0x057a1a18)
obj = (table: 0x05a8f958)
o = 12044876
assertnum = (function: 0x05770dc8)
error = (function: 0x0579a080)
type = (function: builtin#3)
SetLen = (function: 0x05a7fde8)
low = 0
GetLen = (function: 0x05a88320)
lenP = 12044896
lenA = (table: 0x057a1ef0)
count = 5
size = 4
_index = nil
_newindex = nil
tonumber = (function: builtin#17)
beyondLen = nil
f = (function: 0x05b0d1b8)
format = (function: builtin#91)
sOutOfBounds = "array index (%s) out of bounds [%s, %s]"
tostring = (function: builtin#18)
tostring2 = (function: 0x0579d8a8)
>LadySoulCrystal wrote:I don't have the save anymore, (sorry about that) but i can say that before i had the issue I had used several Decks of Fate on my Master Archer who had already happened to be at 255 for her accuracy (just wanted to get them out of my inventory). Its possible i caused an overflow that only triggered when the game attempted to reload. However I can see in the code that it mentioned NPCMercenaries, which at the time i had no followers. Unless Mercenaries refers to anyone in your party, in which case I have a group of five.
I do have some saves before I dropped my Enroth items off and warped to Antigarich, so if you want me to test my Deck of Fate theory I can (same with Magic Lamp, i have some of those too)
Both have been added to the Bug Tracker and made into GitLab Issues:
Infinite Death Cutscene
Testing would be very nice.
I tested several times with both Magic Lamps and decks of fate and could not replicate the glitch. Makes me wonder/worried that it was a freak glitch incident that the games code did. If it ever does come back up again i will be sure to make a copy of that save file and hold onto it. I did use Notepad++ just to glance over the lines of code that were mentioned in the error and i feel like it had something to do with whatever mercenary the game tried to generate in a training camp. Maybe it goofed when trying to load? Hope no one else experiences this glitch :c