SRL Archive - SRL Positioning System

Cannot Load Custom with Normal Maps.


Brandon

2012-04-24 17:46:37

I have a custom map and I'm loading normal maps along with it (SPS 2.0):

SPS_SETUP(RUNESCAPE_SURFACE, ['0_0Custom', '2_5', '3_10', '4_10']);

Throws the error:

[BANANA]
SPS_GetArea ERROR: Exception: Error while reading stream: File "C:\Simba\Includes\SPS\img\runescape_surface\0_-1.png" does not exist
SPS_MergeAreas ERROR: Exception: You are accessing an invalid point, (0,0) at bitmap[3]
We have 4 ring charges left
Error: Exception: Access violation at line 305
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 4, 6]
[/BANANA]


Removing either all of the normal maps will fix it.. OR removing just the custom map will fix it.. In the end I cannot remove either or my script will die.

Olly

2012-04-24 17:55:35

Why not just put the custom map in runescape_other file?

Brandon

2012-04-24 18:01:40

From: Ollybest
Why not just put the custom map in runescape_other file?


Doesn't work either. That isn't the problem :S

Olly

2012-04-24 19:33:23

Just in case you haven't tried making the custom map 500x500?

Coh3n

2012-04-26 00:54:29

I don't think you can name it like that. Try just calling it 0_0. It should work just fine if you put it in the runescape_other folder and call SPS_Setup again.

Brandon

2012-04-28 16:05:13

@Coh3n.. Your solution results in:

[Banana]
Error: Exception: Access violation at line 305
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 3]
[/Banana]

This is the code:

RequirementsCheck;
Smart_Server := 72;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;

SetupSRL;
DeclarePlayers;
LoginPlayer;

SPS_Setup(RUNESCAPE_OTHER, ['zanaris', 'ancient_caverns']);
[LEFT]
[/LEFT]


Highlights:
Line 305, SPS.Simba: FoundMatches := SPS_FindMapInMap(P.x, P.y, SPS_AreaMaps, SmallMap, SPS_Tolerance);


Also does this for any custom maps such as in my summoning script I do:

SPS_SETUP(RUNESCAPE_OTHER,[ '0_0']); //This will load perfectly fine..

SPS_SETUP(RUNESCAPE_OTHER,[ '0_0', '0_1']); //This will result in the error above..

SPS_Setup(RUNESCAPE_OTHER, ['ancient_caverns']); //throws an error.

Coh3n

2012-04-30 16:38:13

I'm not sure why it's throwing an error, but you can't have multiple maps when using runescape_other.

I'm not sure why your third one would give an error.

E:

SPS_Setup(RUNESCAPE_OTHER, ['zanaris', 'ancient_caverns']);
Results in:

SRL Compiled in 0 msec
SPS_Setup(): Invalid dungeon areas. You can only select one!
Successfully executed.
Which is what it's supposed to do. Same with your second one.

You sure your Simba and SPS are up to date? E: I'm using Simba 984.

Recursive

2012-05-10 12:37:05

Coh3n Please help

Input:
SPS_Setup(RuneScape_other,['ancient_cavern']);

Output:
[Error] (605:13): Unknown identifier 'RuneScape_other' at line 604
Compiling failed.

I went through the sps code and I could not find Runescape_other in it. Is there a version of sps that contains this or a fix for it?

Kyle Undefined

2012-05-10 19:09:16

From: Chig
Coh3n Please help

Input:
SPS_Setup(RuneScape_other,['ancient_cavern']);

Output:
[Error] (605:13): Unknown identifier 'RuneScape_other' at line 604
Compiling failed.

I went through the sps code and I could not find Runescape_other in it. Is there a version of sps that contains this or a fix for it?


Do you have SPS 2?

Coh3n

2012-05-13 21:01:35

@Chig, you have an outdated version of SPS.