The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Out of Bounds Errors
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #1
Out of Bounds Errors
Ok. I'm unfortunately back at this one, clearly I buggered something, server ran for 90 minutes after running the script before I got the error:

Code:
18:44:ERROR:Point(2132,-1): trying to get a sector for point on map #0 out of bounds for this map(7168,4096). Defaulting to sector 0 of the map.
18:44:WARNING:Attempting to access invalid memory block at 2132,-1,-5.
18:44:WARNING:GetMapBlock failed at 2132,-1,-5.
18:44:ERROR:Point(3711,-1): trying to get a sector for point on map #0 out of bounds for this map(7168,4096). Defaulting to sector 0 of the map.
18:44:WARNING:Attempting to access invalid memory block at 3711,-1,-5.
18:44:WARNING:GetMapBlock failed at 3711,-1,-5

This is coming from part of my background spawning system, which I have just updated to prevent some "silly" spawning going on.
The part of the script responsible for the placing of the gembits, and thus this stupid error is:

Code:
    WHILE (<EVAL <VAR0.TEMPX>> <= 4904)
        VAR.TEMPY=20
        WHILE (<EVAL <VAR0.TEMPY>> <= 3992)
            f_spawnbackground_check_terrain <ARGN1>
            VAR.TEMPY=<VAR0.TEMPY> + <ddef.gembit_gap>
        ENDWHILE
    VAR.TEMPX=<VAR0.TEMPX> + <ddef.gembit_gap>
    ENDWHILE
    SYSMESSAGE @0,0 Spawning for Map: <EVAL <ARGN1>> Complete!

ARGN1 is derived from the function which calls this script, not an issue.

My sphere.ini is set in the manner posted by RanXerox.
Code:
// To activate ML-sized map #0 uncomment the next line (don't forget to uncomment
// sphere_map0_ml.scp and sphere_map_points0_ml.scp in spheretables.scp if you want
// to use the default areas)
Map0=7168,4096,-1,-1

// To activate ML-sized map #1 uncomment the next line
//Map1=7168,4096,-1,-1


MAP2=2304,1600,32,2,2
MAP3=2560,2048,32,3,3
MAP4=1448,1448,8,4,4
MAP5=1280,4096,64,5,5

// To enable the use of MapDif*.mul and StaDif*.mul files, set this to 1.
UseMapDiffs=1

The answer to this is probably staring me in the face, I just need a fresh set of eyes on it...

[Image: 2nis46r.jpg]
(This post was last modified: 08-16-2012 10:23 AM by Mordaunt.)
08-16-2012 10:22 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Out of Bounds Errors - Mordaunt - 08-16-2012 10:22 AM
RE: Out of Bounds Errors - Shaklaban - 08-16-2012, 03:31 PM
RE: Out of Bounds Errors - Mordaunt - 08-17-2012, 04:26 AM
RE: Out of Bounds Errors - Extreme - 08-17-2012, 04:48 AM
RE: Out of Bounds Errors - Mordaunt - 08-17-2012, 05:59 AM
RE: Out of Bounds Errors - Mordaunt - 08-17-2012, 07:06 AM
RE: Out of Bounds Errors - Extreme - 08-17-2012, 10:34 AM
RE: Out of Bounds Errors - Mordaunt - 08-17-2012, 11:10 AM
RE: Out of Bounds Errors - Extreme - 08-17-2012, 12:16 PM
RE: Out of Bounds Errors - Mordaunt - 08-17-2012, 12:28 PM
RE: Out of Bounds Errors - Extreme - 08-17-2012, 12:33 PM
RE: Out of Bounds Errors - Mordaunt - 08-17-2012, 12:37 PM
RE: Out of Bounds Errors - Extreme - 08-17-2012, 12:47 PM
RE: Out of Bounds Errors - Mordaunt - 08-17-2012, 12:50 PM
RE: Out of Bounds Errors - Mordaunt - 08-18-2012, 05:05 AM
RE: Out of Bounds Errors - Extreme - 08-18-2012, 09:41 AM
RE: Out of Bounds Errors - Mordaunt - 08-18-2012, 10:29 AM
RE: Out of Bounds Errors - Extreme - 08-18-2012, 03:42 PM
RE: Out of Bounds Errors - htid4life - 08-18-2012, 11:44 PM
RE: Out of Bounds Errors - Extreme - 08-19-2012, 02:55 AM
RE: Out of Bounds Errors - xwerswoodx - 08-19-2012, 03:01 AM
RE: Out of Bounds Errors - Mordaunt - 08-19-2012, 03:28 AM
RE: Out of Bounds Errors - Mordaunt - 08-19-2012, 11:01 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)