SRL Archive - MSI Bugs

MSI LOCATIONS: Error.


Fog856

2011-12-08 10:43:40

PowerChopper Draynor Willows:

Line 165: := (MSI_Locations[Location].SubLocs[CurrentPoint].Camera = false);

Error: Out Of Range at line 165
The following DTMs were not freed: [Bronze Pickaxe, Iron Pickaxe, Steel Pickaxe, Mithril Pickaxe, Adamant Pickaxe, Rune Pickaxe, Dragon Pickaxe, Bronze Hatchet, Iron Hatchet, Steel Hatchet, Mithril Hatchet, Adamant Hatchet, Rune Hatchet, Dragon Hatchet, Normal Logs, Oak Logs, Willow Logs, Maple Logs, Yew Logs, Magic Logs, Clay Ore, Copper Ore, Tin Ore, Iron Ore, Silver Ore, Coal Ore, Gold Ore, Mithril Ore, Adamantite Ore, Runite Ore, Small Fishing Net, Crayfish Cage, Fishing Rod, Fishing Bait, Fly Fishing Rod, Harpoon, Barb-Tail Harpoon, Lobster Pot, Raw Shrimps, Raw Crayfish, Raw Sardines, Raw Anchovies, Raw Herring, Raw Trout, Raw Pike, Raw Salmon, Raw Tuna, Raw Lobster, Raw Swordfish, Raw Monkfish, Raw Shark, Cooked Shrimps, Cooked Crayfish, Cooked Sardines, Cooked Anchovies, Cooked Herring, Cooked Trout, Cooked Pike, Cooked Salmon, Cooked Tuna, Cooked Lobster, Cooked Swordfish, Cooked Monkfish, Cooked Shark, Uncut Sapphire, Uncut Emerald, Uncut Ruby, Uncut Diamond, Bird'S Nest, Feather, Staff Of Air, Staff Of Water, Staff Of Earth, Staff Of Fire, Air Rune, Body Rune, Mind Rune, Earth Rune, Fire Rune, Water Rune, Chaos Rune, Law Rune, Cosmic Rune, Death Rune, Nature Rune, Rune Essence, Pure Essence, Soft Clay, Vial, Vial Of Water, Jug, Jug Of Water, Bowl, Bowl Of Water, Bucket, Bucket Of Water, Air Tiara, Body Tiara, Mind Tiara, Earth Tiara, Fire Tiara, Water Tiara, Dwarven Army Axe, SRL - Lamp bitmap, 104]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
File[C:\Simba\Includes\MSI\Debug Logs\08-12-11 at 09 06 59 PM.txt] has not been freed in the script, freeing it now.

Smidqe

2011-12-08 11:14:37

What file did it open?

It would help a lot.

Fog856

2011-12-08 11:32:04

Woodcutting

Woodcutting.simba

Coh3n

2011-12-08 21:13:38

Replace IsChopping in your Woodcutting.simba with this. Let me know if it works.

function MSI_IsChopping(): boolean;
var
b: boolean;
begin
with MSI_Players[CurrentPlayer] do
begin
if (length(MSI_Locations[Location].SubLocs) > 0) then
begin
{$IFDEF SRL5}
b := (MSI_Locations[Location].SubLocs[CurrentPoint].Camera = SRL_ANGLE_LOW);
{$ELSE}
b := (MSI_Locations[Location].SubLocs[CurrentPoint].Camera = false);
{$ENDIF}

if (b) then
result := MSI_IsAnimating(MSI_GetAnimation(ANIM_CHOPPING_NEW))
else
result := MSI_IsAnimating(MSI_GetAnimation(ANIM_CHOPPING));
end else
result := MSI_IsAnimating(MSI_GetAnimation(ANIM_CHOPPING));
end;
end;
E: Resolved in the next version.