matviy
11-16-2011, 02:37 AM
I'm not sure you have the right points...
Go in to the mine and use SPS_GetMyPos
I used MSPaint to get the coordinates, It would be rediculously annoying to have to do that with SPS_GetMyPoint considering you can't walk to some areas i need.
I asked around and people said that using MSPaint should work, and i checked with GetMyPoint and i seem to have the correct points.
It's nice to see you're working on this. :) Rename your tileBox field to spsBox and it should work.
Still nothing. I'm trying to start my script in the essence mine and have it pick up where it is. It tries, but fails.
...
[0:00:50]: [ Matviy ] ------ Players Found: 0
[0:00:51]: [ Matviy ] ------ Scanning for randoms...
[0:00:53]: [ Matviy ] ---- MSI_SetPlayerLoc
[0:00:53]: [ Matviy ] ------ MSI_AtLocation
[0:00:53]: [ Matviy ] ---------- MSI_GetMyPos(): (360, 850) <--- These don't even seem to be valid points.
[0:00:53]: [ Matviy ] -------- Checking sub-location: Varrock East Bank
[0:00:53]: [ Matviy ] -------- Player not at Varrock East Bank
[0:00:53]: [ Matviy ] ------ MSI_AtLocation: False
[0:00:53]: [ Matviy ] ------ MSI_AtLocation
[0:00:53]: [ Matviy ] ---------- MSI_GetMyPos(): (360, 850) <--- These don't even seem to be valid points.
[0:00:53]: [ Matviy ] ---------- MSI_ValidSubLoc (Varrock East Essence Center): False
[0:00:53]: [ Matviy ] -------- Checking sub-location: Varrock East Essence North East
[0:00:53]: [ Matviy ] -------- Checking sub-location: Varrock East Essence North West
[0:00:53]: [ Matviy ] -------- Checking sub-location: Varrock East Essence South East
[0:00:53]: [ Matviy ] -------- Checking sub-location: Varrock East Essence South West
[0:00:53]: [ Matviy ] -------- Player not at Varrock East Essence Mine
[0:00:53]: [ Matviy ] ------ MSI_AtLocation: False
[0:00:53]: [ Matviy ] ------ MSI_WalkPath: To Location (LOC_VE_BANK to LOC_VE_ESSMINE)
[0:00:53]: [ Matviy ] -------- Walking attempts: 1
[0:00:53]: [ Matviy ] -------- SPS Info.: Surface: 1, Areas: ['11_7', '0_1']
[0:00:53]: [ Matviy ] -------- MSI_WalkTPA
[0:00:53]: [ Matviy ] ---------- Path: [(4835, 2949), (4847, 3013), (4831, 3045)]
...
(360, 850) definatly isn't where I'm standing since i checked with SPS_GetMyPos after setting up SPS_Setup(DUNGEON_ESSENCE_MINE, ['0_1']);
That seems to give me the right points.
matviy
11-16-2011, 02:48 AM
Setting up MSI took 1812 ms.
SRL Compiled in 16 msec
SMART Initialized.
Loaded: Server 10, Members: False, Signed: True, Super Detail: False.
[0:00:08]: [ Matviy ] ---- Player[0].script[0].reportInfo.items := [[[174, 175], [174, 175]]]
[0:00:08]: [ Matviy ] -- SPS Info.: Surface: 1, Areas: ['11_7', '0_1']
[0:00:08]: [ Matviy ] -- MSI_SetupPlayer
[0:00:08]: [ Matviy ] ------ Players Found: 0
[0:00:08]: [ Matviy ] ------ Scanning for randoms...
[0:00:10]: [ Matviy ] ---- MSI_SetPlayerLoc
[0:00:10]: [ Matviy ] ------ MSI_AtLocation
[0:00:11]: [ Matviy ] ---------- MSI_GetMyPos(): (385, 850)
[0:00:11]: [ Matviy ] -------- Checking sub-location: Varrock East Bank
[0:00:11]: [ Matviy ] -------- Player not at Varrock East Bank
[0:00:11]: [ Matviy ] ------ MSI_AtLocation: False
[0:00:11]: [ Matviy ] ------ MSI_AtLocation
[0:00:11]: [ Matviy ] ---------- MSI_GetMyPos(): (385, 850)
[0:00:11]: [ Matviy ] ---------- MSI_ValidSubLoc (Varrock East Essence Center): False
[0:00:11]: [ Matviy ] -------- Checking sub-location: Varrock East Essence North East
[0:00:11]: [ Matviy ] -------- Checking sub-location: Varrock East Essence North West
[0:00:11]: [ Matviy ] -------- Checking sub-location: Varrock East Essence South East
[0:00:11]: [ Matviy ] -------- Checking sub-location: Varrock East Essence South West
[0:00:11]: [ Matviy ] -------- Player not at Varrock East Essence Mine
[0:00:11]: [ Matviy ] ------ MSI_AtLocation: False
[0:00:11]: [ Matviy ] ------ MSI_WalkPath: To Location (LOC_VE_BANK to LOC_VE_ESSMINE)
[0:00:11]: [ Matviy ] -------- Walking attempts: 1
[0:00:11]: [ Matviy ] -------- SPS Info.: Surface: 1, Areas: ['11_7', '0_1']
[0:00:11]: [ Matviy ] -------- MSI_WalkTPA
[0:00:11]: [ Matviy ] ---------- Path: [(4835, 2949), (4847, 3013), (4831, 3045)]
[0:00:11]: [ Matviy ] ------------ MSI_PointOnPath: Index = 7
[0:00:11]: [ Matviy ] ------------ MSI_GetMyPos(): (385, 850)
[0:00:11]: [ Matviy ] ------------ MSI_PointOnPath: Index = -1
[0:00:11]: [ Matviy ] ------------ MSI_EnterPath: false
[0:00:11]: [ Matviy ] -------- MSI_WalkTPA: False
[0:00:11]: [ Matviy ] -------- MSI_WalkTPA
[0:00:11]: [ Matviy ] ---------- Path: [(176, 305), (320, 310), (181, 183), (317, 184), (249, 236)]
[0:00:11]: [ Matviy ] ------------ MSI_PointOnPath: Index = 33
[0:00:12]: [ Matviy ] ------------ MSI_GetMyPos(): (385, 850)
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = -1
[0:00:12]: [ Matviy ] ------------ MSI_EnterPath: false
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA: False
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA
[0:00:12]: [ Matviy ] ---------- Path: [(4835, 2949), (4847, 3013), (4831, 3045)]
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = 7
[0:00:12]: [ Matviy ] ------------ MSI_GetMyPos(): (385, 850)
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = -1
[0:00:12]: [ Matviy ] ------------ MSI_EnterPath: false
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA: False
[0:00:12]: [ Matviy ] -------- SPS Info.: Surface: 1, Areas: ['11_7']
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA
[0:00:12]: [ Matviy ] ---------- Path: [(4831, 3045), (4831, 3029)]
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = 1
[0:00:12]: [ Matviy ] ------------ MSI_GetMyPos(): (4660, 2920)
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = -1
[0:00:12]: [ Matviy ] ------------ MSI_EnterPath: false
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA: False
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA
[0:00:12]: [ Matviy ] ---------- Path: [(176, 305), (320, 310), (181, 183), (317, 184), (249, 236)]
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = 33
[0:00:12]: [ Matviy ] ------------ MSI_GetMyPos(): (4660, 2920)
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = -1
[0:00:12]: [ Matviy ] ------------ MSI_EnterPath: false
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA: False
[0:00:12]: [ Matviy ] -------- MSI_WalkTPA
[0:00:12]: [ Matviy ] ---------- Path: [(4831, 3045), (4831, 3029)]
[0:00:12]: [ Matviy ] ------------ MSI_PointOnPath: Index = 1
[0:00:13]: [ Matviy ] ------------ MSI_GetMyPos(): (4660, 2920)
[0:00:13]: [ Matviy ] ------------ MSI_PointOnPath: Index = -1
[0:00:13]: [ Matviy ] ------------ MSI_EnterPath: false
[0:00:13]: [ Matviy ] -------- MSI_WalkTPA: False
[0:00:13]: [ Matviy ] -------- MSI_AtLocation
[0:00:13]: [ Matviy ] ------------ MSI_GetMyPos(): (4660, 2920)
[0:00:13]: [ Matviy ] ------------ MSI_ValidSubLoc (Varrock East Essence Center): False
[0:00:13]: [ Matviy ] ---------- Checking sub-location: Varrock East Essence North East
[0:00:13]: [ Matviy ] ---------- Checking sub-location: Varrock East Essence North West
[0:00:13]: [ Matviy ] ---------- Checking sub-location: Varrock East Essence South East
[0:00:13]: [ Matviy ] ---------- Checking sub-location: Varrock East Essence South West
[0:00:13]: [ Matviy ] ---------- MSI_Relocate (Varrock East Essence Mine)
[0:00:13]: [ Matviy ] -------------- MSI_GetMyPos(): (4660, 2920)
[0:00:13]: [ Matviy ] -------------- MSI_ValidSubLoc (Varrock East Essence Center): False
[0:00:13]: [ Matviy ] -------------- Players Found: 0
[0:00:13]: [ Matviy ] -------------- Scanning for randoms...
Exception: Range check error at line 1704
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]
I think i see the problems, but i have no idea what to do about them.
Coh3n
11-16-2011, 02:56 AM
[0:00:08]: [ Matviy ] -- SPS Info.: Surface: 1, Areas: ['11_7', '0_1']
That's your problem right there. Surface 1 is RUNESCAPE_SURFACE. You need to properly set these in the TScript record. Like this (from Guild Miner):
with PathInfo do
begin
Name := 'LOC_FE_BANK to LOC_GUILD_MINE';
StartLoc := LOC_FE_BANK;
EndLoc := LOC_GUILD_MINE;
SPSPath := [
// Bank -> Ladder Down
TPointArray([Point(3890, 3233), Point(3937, 3256),
Point(3921, 3304)]),
// Ladder Up -> In Mine
TPointArray([Point(280, 506), Point(370, 493)])
];
SPSSurfaces := [RUNESCAPE_SURFACE, DWARVEN_MINE];
SPSAreas := [TStringArray(['9_7, 9_8']), TStringArray(['0_1'])];
Obstacles[OBS_LOC_TO] := [OBS_LADDER_MG_DOWN];
Obstacles[OBS_LOC_FROM] := [OBS_LADDER_MG_UP];
end;
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.