Code:
Problem description:
i follow the instructions on the "my first world tutorial, but when i get to part when it tells me to make a mapfile.dmp it says it cant read the map!!!!!!!!!!?!?!?!?!?
ID:168507
Oct 5 2005, 2:44 pm
|
|
In response to Sinoflife
|
|
the only error it tells me is cant read map
|
In response to McDeath
|
|
Compile the code (ctrl+K) to see what the error are. If any of the errors refer to the map file (such as an undedined path ... or something of the like), you just have to tweak that double clicking the error... well you have to double click the errors to quickly go to the source of the problem... :X
...I'm lazy to rephrase the above - GhostAnime |
In response to GhostAnime
|
|
what does "inconsistent identation" mean
|
In response to McDeath
|
|
heres what i have coded so far
mob icon='person.dmi' var hp=10 str=5 def=2 turf grass icon='person.dmi' turf water icon='person.dmi' icon_state="water" density=1 world name="my first game" turf=/turf/grass icon_state="grass |
In response to McDeath
|
|
1) Do not double post, just edit your last post!
2) Put code files using this: CODE HERE 3) Indention errors refer that you have (usually) too many indent (spacing), such as [> will refer to 'tab spacing'] world var The var Ix is indented one too many time, it shouldve been >> but it was >>> In your problem it was this: world name (Press ctrl+t to see these tab spacings though instead of one '>' or spacing, it'll be a smaller '>>') 4)Delete the second turf and properly fix the indent in world... which I done in the following: mob Someone correct me if I am wrong :X - GhostAnime |
In response to GhostAnime
|
|
you were wrong, that didnt work
|
In response to McDeath
|
|
it still says inconsistant indentation
|
In response to McDeath
|
|
OMG, read the number 1 thing I put down... no double posting!!!
Besides, it would be helpful to know which line is the inconsistant indentation at...afterall, we don't have your coding and uyou just gave us some codes expecting us to find out which one it was suppose to be EDIT: I noticed the indention in vars so here's the top part: mob Maybe I shouldn't of helped you because you obviously didn't read what I said... - GhostAnime |
In response to GhostAnime
|
|
mob
icon='person.dmi' var hp=10 str=5 def=2 turf grass icon='person.dmi' icon_state="grass" water icon='person.dmi' icon_state="water" world name="my first game." turf=/turf/grass if you can, just try to fix it up for me there |
In response to McDeath
|
|
God, read my posts with the numbers a few posts ago, I told you to use
for codes... ANd I think I noticed the other indention part...
mob Now I gotta go work on my english assignments due tomorrow -_-' - GhostAnime |
In response to GhostAnime
|
|
now its saying bad argument definition
mob login() usr.icon_state=input("what gender")in list("male","female") usr.move(locate(1,1,1)) |
In response to McDeath
|
|
Code:
mob Problem description: there is a indentation error and a bad argument definition(?) what are they |
In response to McDeath
|
|
mob |
In response to GhostAnime
|
|
It would be best to call ..() after they select a gender and after they're located so they can't do stuff while they're selecting.
|
In response to GhostAnime
|
|
Everything after login needs to be indented once more:
mob |
In response to McDeath
|
|
It is usually a better idea to use src in such situations as the Login proc, because depending on how it was called, usr may not always be the person.
icon_state=input(src,"what gender")in list("male","female") You could also put src. on the variables, although the src is already implied and not really needed. |
In response to Nick231
|
|
You're abusing usr in there.. :|
O-matic |
In response to O-matic
|
|
Well poo... Damn contest frying my brain... Fixed up above.
|
Okay, first of all, when it says it can't be opened due to compilation errors, it means it can't be opened because there's something wrong when you compile. Please post the relevant code and the errors you get when you compile.