I've compiled my project but after i run it, the dream seeker window doesnt show. Tskmngr shows that the process for DreamSeeker is running. Happened right after i added in some combat AI codes. No errors or warnings were showed
mob
proc/EnemyCombatAI()
while(src)
for(var/mob/M in oview())
if(!(src.Faction.Find(M.tagT)))
if(get_dist(src,M)<=1)
src.dir=get_dir(src,M)
src.Fight()
else
step_to(src,M)
break
else
spawn() EnemyCombatAI()
sleep(rand(4,8))
mob
proc/AllyCombatAI()
while(src)
for(var/mob/M in oview())
if(!(src.Faction.Find(M.tagT)))
if(get_dist(src,M)<=1)
src.dir=get_dir(src,M)
src.Fight()
else
step_to(src,M)
break
else
spawn() AllyCombatAI()
sleep(rand(4,8))
You're using a while() loop to keep the AI running for the course of its life (later on you should look into only running the AI when players are near, but that's another discussion). However, you're also spawn()ing off a second AI loop any time you find an "ally", causing a potentially infinite number of loops to be running simultaneously for each AI.