Here's the proc:
proc
Load_Pic(mob/M, x, y, filename)
var/
icon/I
obj/bigpic/
P
PO
is = ""
is_coord
I = new(filename)
P = new()
P.icon = I
P.icon_state = "0,0"
P.screen_loc = "[x],[y]"
for(is in icon_states(I))
if(is == "0,0" || !is)
continue
is_coord = dd_text2list(is, ",")
PO = new()
PO.icon = I
PO.icon_state = is
PO.pixel_x = 32 * is_coord[1] /* Runtime error */
PO.pixel_y = 32 * is_coord[2]
P.overlays += PO
if(M && M.client)
M.client.screen += P
return P
And the runtime error:
runtime error: Undefined operation proc name: Load Pic (/proc/Load_Pic) source file: loadpic.dm,30 usr: Thanatos (/mob/live/player) src: null call stack: Load Pic(null, 4, 4, "Data/Pics/016.bmp")
A couple of notes:
1) Yes, the image is a .bmp. I plan to change this to .png later when I've set everything up.
2) The path to the image is relative to the .dmb/.dme, and is correct. (It gives different runtime errors if it's wrong. :P)
[EDIT]
Line thrity is "PO.pixel_x = 32 * is_coord[1]"
The output of is_coord with
for(var/i in is_coord)
world << i
is:
1 0
[/EDIT]
Thanks for any help!
-Lute