View Full Version : [Resolved] Cannot Load Custom with Normal Maps.
Brandon
04-24-2012, 09:46 PM
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:
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]
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.
Why not just put the custom map in runescape_other file?
Brandon
04-24-2012, 10:01 PM
Why not just put the custom map in runescape_other file?
Doesn't work either. That isn't the problem :S
Just in case you haven't tried making the custom map 500x500?
Coh3n
04-26-2012, 04:54 AM
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
04-28-2012, 08:05 PM
@Coh3n.. Your solution results in:
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]
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']);
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
04-30-2012, 08:38 PM
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
05-10-2012, 04:37 PM
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
05-10-2012, 11:09 PM
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
05-14-2012, 01:01 AM
@Chig, you have an outdated version of SPS.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.