So when ever i host my game i get this lil guy does anyone have any clue what it is and how to fix it ive tried everything but i cant even isolate it . Please help me out
runtime error: list index out of bounds
proc name: New (/obj/mapinfo/New)
source file: map_grid.dm,18
usr: null
src: Map z33 (10, 2) (/obj/mapinfo)
call stack:
Map z33 (10, 2) (/obj/mapinfo): New(the water (1,100,33) (/turf/water))
Map z33 (10, 2) (/obj/mapinfo): New(the water (1,100,33) (/turf/water)
Apr 14 2012, 5:02 am
|
|
Go to line 18 of map_grid.dm to find the line causing the error--as the runtime mentioned. You're likely accessing a list by an index that is beyond its length. If you can't figure it out, post the /obj/mapinfo/New() process here (surround it with <dm> and </dm> tags) and we'll help you fix it.
|
var |
map_coords[oX][oY+1] = src This is the line that's giving the error, meaning that map_coords isn't large enough to have an item at Ox or oY+1. How are you setting the mapinfo's oX and oY variables? Are you setting them through the map editor? I would guess they're outside the 1-9 and 1-10 range (respectively) of the map_coords list. So increase the dimensions of the map_coords list to fit whatever you're doing. |
You'll have to tell me how you're placing the mapinfo objects and how you're setting their oX/oY values before I can elaborate much further.
|
Might I suggest that you spend some time following these? It might ease some of the confusion:
http://www.byond.com/forum/?post=292504 http://www.byond.com/docs/guide/ http://www.byond.com/docs/ref/index.html |
ive tried just about everything, and i cant Isolate this damn thing i need hel finding the Needed information =.=
|
In response to Shikaphobia
|
|
Yes. The 9 is setting the "width" (accessed by oX) and the 10 is setting the "height" (accessed by oY). It's not big enough right now to hold the values of oX/oY that it's getting.
|