New Act7 'Index was outside the bounds of the array.'

12/13/2019 16:37 fiamma00#1
Hello, I'm parsing the new Act7 files, but everytime i'm getting 'Index was outside the bounds of the array.' on the factory.ImportNpcMonsters();. What could i do?
Before i had mostly issues on the npc."ELEMENT"Resistences, so i disabled those from parse and i got other array issues until I didn't displayed on the whole Function.

Any idea on how to fix?
12/13/2019 16:48 kurtmac#2
Need chnage to short
12/13/2019 17:56 Ritahxyel#3
Opennos.Data -> NpcMonsterDTO:

CHANGE :

public sbyte DarkResistance { get; set; }

public sbyte FireResistance { get; set; }

public sbyte LightResistance { get; set; }

public sbyte WaterResistance { get; set; }

BY:

public short DarkResistance { get; set; }

public short FireResistance { get; set; }

public short LightResistance { get; set; }

public short WaterResistance { get; set; }

and after ImportFactory:

CHANGE
npc.FireResistance = Convert.ToSByte(currentLine[4]);
npc.WaterResistance = Convert.ToSByte(currentLine[5]);
npc.LightResistance = Convert.ToSByte(currentLine[6]);
npc.DarkResistance = Convert.ToSByte(currentLine[7]);

BY

npc.FireResistance = Convert.ToInt16(currentLine[4]);
npc.WaterResistance = Convert.ToInt16(currentLine[5]);
npc.LightResistance = Convert.ToInt16(currentLine[6]);
npc.DarkResistance = Convert.ToInt16(currentLine[7]);