Results 1 to 10 of 10

Thread: Cannot Load Custom with Normal Maps.

  1. #1
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default Cannot Load Custom with Normal Maps.

    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.
    I am Ggzz..
    Hackintosher

  2. #2
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Why not just put the custom map in runescape_other file?

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    Why not just put the custom map in runescape_other file?
    Doesn't work either. That isn't the problem :S
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

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

  5. #5
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    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.

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    @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:
    Simba 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.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    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:
    Simba Code:
    SPS_Setup(RUNESCAPE_OTHER, ['zanaris', 'ancient_caverns']);
    Results in:
    Progress Report:
    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.
    Last edited by Coh3n; 04-30-2012 at 08:43 PM.

  8. #8
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    Coh3n Please help

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

    Output:
    Code:
    [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?

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by Chig View Post
    Coh3n Please help

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

    Output:
    Code:
    [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?
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  10. #10
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    @Chig, you have an outdated version of SPS.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •