ID:264465
 
Code:
/* Generated list at compile time.
Screen Width: 11*/

var/list/ListOfRaysAngles = new/list("NORTH" = new/list(
120,114.545,109.091,103.636,98.1818,92.7273,87.2727,81.8182,76.3636,70.9091,65.4546,60,54.5455),
"NORTHEAST" = new/list(
75,69.5455,64.0909,58.6364,53.1818,47.7273,42.2727,36.8182,31.3636,25.9091,20.4546,15,9.54546),
"EAST" = new/list(
30,24.5455,19.0909,13.6364,8.18182,2.72727,357.273,351.818,346.364,340.909,335.455,330),
"SOUTHEAST" = new/list(
345,339.545,334.091,328.636,323.182,317.727,312.273,306.818,301.364,295.909,290.454,285),
"SOUTH" = new/list(
300,294.545,289.091,283.636,278.182,272.727,267.273,261.818,256.364,250.909,245.454,240),
"SOUTHWEST" = new/list(
255,249.545,244.091,238.636,233.182,227.727,222.273,216.818,211.364,205.909,200.455,195,189.545),
"WEST" = new/list(
210,204.545,199.091,193.636,188.182,182.727,177.273,171.818,166.364,160.909,155.455,150,144.545),
"NORTHWEST" = new/list(
165,159.545,154.091,148.636,143.182,137.727,132.273,126.818,121.364,115.909,110.455,105,99.5455))

mob/Login()

return ..()

#define X_Screen_Left src.x-5
#define X_Screen_LeftEnd src.x-1
#define X_Screen_Right src.x+1
#define X_Screen_RightEnd src.x+5

#define Y_Screen_Down src.y-5
#define Y_Screen_DownEnd src.y-1
#define Y_Screen_Up src.y+1
#define Y_Screen_UpEnd src.y+5

#define tan(angle) sin(angle)/cos(angle)

var/distanceToPlane = 11/2 / (tan(60/2))
mob/var/screen[11]

#define ceil(x) (-round(-(x)))

var/screen_height = 11


Problem description:

The problem is dreamseeker. It's not loading the interface or any thing when I run it from dreemmaker. I looked at the Win Task Manager and it said dreemseeker was running at 99% CPU and 200 something MB of memory.

So I think it either has something to do with what happens when I first login or the global variables that I am declaring. I have given the Login() procedure along with all of my global variables that I am declaring. If any of you see any thing that could be causing the problem and can give me a solution, I would be very grateful.

Other than that, the objects on the map are loaded but... there is nothing special about the objects on the map.

To be honest nothing like this has happened to me before so I am really stumped.
Well I'm guessing it's because you used the list() wrong.

new/list() will make a list using the numbers in the parameters as the size of the list. Which would cause huge processing and then a crash.

Try removing the new's and I'm sure it will work.
In response to T3h P3ngu1n
T3h P3ngu1n wrote:
Well I'm guessing it's because you used the list() wrong.

new/list() will make a list using the numbers in the parameters as the size of the list. Which would cause huge processing and then a crash.

Try removing the new's and I'm sure it will work.

(Que Homer Simpon, Doh!) :)

Thanks a lot T3h P3ngu1n it works great now.