ID:268327
 
Okay, i'm coding my game, and when I made a new DMP File, I go to open it off of the object tree and lo and behold, an error.

Here is the exact message the error gives me:

"Due to compilation errors, the object tree cannot be trusted for map generation. These errors must be corrected before editing the map."

And

"Unable to read world.dmp"


I cannot compile because of 4 errors in my mob variables:

mob
icon = rock.dmi
var
hp = 50
str = 20
def = 70

Could someone give me a nudge as to what I am doing wrong?
(P.S the errors are the word var, hp = 50, str = 20, and def = 70.)

Add single-quotes around your icon name.


icon = 'blah.dmi'

instead of..

icon = blah.dmi
In response to Nadrew
That doesn't seem to help with the


mob
icon = 'person.dmi'
var
hp = 10
str = 5
def = 2


And i've tried putting single quotes around var, hp = 10, str = 5, and def = 2.
In response to Uber Soldier
Your problem is that you're defining the hp, str, and def variables for mobs twice. Go read over a tutorial again.