Hey guys,
Does anyone know why this is happening?
Story time:
So this is what is happening here in the GIF below. When ever i first call upon a new GFX which is hardcoded the GFX performs without any issues.
Below is an example I'm sending the GFX "2226" which is turmoil, it activates perfectly fine. As soon I try a new hardcoded GFX it all breaks.
In the GIF below i first perform 2226 which is turmoil, right after i try to perform the soulsplit GFX but it uses the turmoil model for some reason.
Does anyone know what I'm doing wrong here and how i could fix this? Did the same for animations and I have 0 issues there.
Unpacking method:
Code:
public static void init(FileArchive archive) {
Buffer buffer = new Buffer(archive.readFile("spotanim.dat"));
int amount = buffer.readUShort();
LOGGER.info("Total graphics loaded: " + amount + ", loading revision #" + Configuration.OSRS_VERSION);
if (graphics == null)
graphics = new Graphic[amount + 2_000];
int graphic = 0;
for (graphic = 0; graphic < amount; graphic++) {
if (graphics[graphic] == null) {
graphics[graphic] = new Graphic();
}
graphics[graphic].id = graphic;
graphics[graphic].readValues(buffer);
}
while (graphic < graphics.length) {
switch (graphic) {
case 2226:
graphics[graphic] = new Graphic();
graphics[graphic].modelId = 50778;
graphics[graphic].animationId = 12566;
graphics[graphic].animation = Animation.animations[12566];
break;
case 2263:
graphics[graphic] = new Graphic();
graphics[graphic].modelId = 50817;
graphics[graphic].animationId = 12586;
graphics[graphic].animation = Animation.animations[12586];
break;
case 2264:
graphics[graphic] = new Graphic();
graphics[graphic].modelId = 50817;
graphics[graphic].animationId = 12587;
graphics[graphic].animation = Animation.animations[12587];
break;
}
graphic++;
}
}
Kind regards,
Patrick