ID:142593
 
Code:


Problem description:
After running the game for a while I start getting tons of runtimes saying out of resources. its gives a file name and a line. This is something Ive never seen before and have no idea how to even start looking for a fix.
And what's the proc and expression the line shown refers to?

Anyway, looks like you've run out of memory or hit a limit(s). This might be anywhere in your code; like the error said, you're using too many resources. The code the error refers to may help, though.
In response to Kaioken
mob/Stat
for(var/mob/M in src.party) << line runtime points too
bla bla stuff here
mob/var/tmp/list/party

In response to Dpheonix7
Post the whole code. Also, try and validate the contents of the party list? Also, unrelated, but I don't think you should want to make the party a tmp var.
In response to Kaioken
party needs to be a tmp var to avoid bugs with other players. the party list only holds up to four mobs.

*code* snip (not getting the whole code, its over 30k lines.
mob
PC
icon = 'Player.dmi'
pixel_y=6

Fighter
GoofOff
Hero
Merchant
Pilgrim
Sage
Soldier
Merchant
Wizard

Stat()
statpanel("Info")
for(var/mob/M in src.party)
var/menuname = M.name
if(length(menuname) >= 4)
menuname = FixText(menuname,4)
var/mtitle = menuname
if(M.poison == 1)
stat("[mtitle] HP, [M.hp]/[M.maxhp] ([M.maxhp==0?0:round(100*M.hp/M.maxhp)]% ) MP, [M.mp]/[M.maxmp] ([M.maxmp==0?0:round(100*M.mp/M.maxmp)]% ) Lvl, [M.level] Poisoned")
else if(M.currmenu && !M.inbattle)
stat("[mtitle] HP, [M.hp]/[M.maxhp] ([M.maxhp==0?0:round(100*M.hp/M.maxhp)]% ) MP, [M.mp]/[M.maxmp] ([M.maxmp==0?0:round(100*M.mp/M.maxmp)]% ) Lvl, [M.level] In menu")
else if(M.inbattle && M.misturn >= 1)
stat("[mtitle] HP, [M.hp]/[M.maxhp] ([M.maxhp==0?0:round(100*M.hp/M.maxhp)]% ) MP, [M.mp]/[M.maxmp] ([M.maxmp==0?0:round(100*M.mp/M.maxmp)]% ) Lvl, [M.level] Is turn")
else
if(M.density == 0)
stat("[mtitle] HP, [M.hp]/[M.maxhp] ([M.maxhp==0?0:round(100*M.hp/M.maxhp)]% ) MP, [M.mp]/[M.maxmp] ([M.maxmp==0?0:round(100*M.mp/M.maxmp)]% ) Lvl, [M.level]")
if(M.density == 1)
stat("[mtitle] HP, [M.hp]/[M.maxhp] ([M.maxhp==0?0:round(100*M.hp/M.maxhp)]% ) MP, [M.mp]/[M.maxmp] ([M.maxmp==0?0:round(100*M.mp/M.maxmp)]% ) Lvl, [M.level] Is Leader")
stat("Gold: [num2text(src.gold,12)]")