ID:162596
 
i get an error when hosting a game, but there is no error on the dm ?

error


the soldier (/mob/fighter): Move(the sand (78,22,2) (/turf/sand), 8)
runtime error: Cannot execute null.Move().
proc name: Move (/mob/Move)
usr: the soldier (/mob/fighter)
src: the soldier (/mob/fighter)
call stack:


proc Move is a process for following main char? do i have to change that process's name?
Runtime errors are nothing out of the ordinary. The compiler can't catch everything.

You're calling something.Move() somewhere within mob/Move(), but that something is null. Therefore: an error. We'd need to see your Move() proc.

And this belongs in Code Problems.
In response to Garthor
sorry for the missplaced message :0

mob

Move()
var/lastfollow = loc
.=..()
if( . && follower)
follower.Move(lastfollow)

In response to Kylemark
You are assigning the follower variable incorrectly. Show where you set it.
In response to Garthor
Garthor you rock!
mob

var/mob/follower1
var/mob/follower2
var/mob/follower = 0
In response to Kylemark
incorrect
In response to Obs
should they = ""
or.. what/why they wrong?
In response to Kylemark
No. They should never be "", or 0, or anything that isn't a mob or null. Technically, setting the variable to 0 will not cause an error, but that doesn't make it correct.

The error stems from some other part of your code, where you are setting the variable to something like "Bob" or 1. Both of these are very wrong, as neither of them are mobs, and your variable is of type /mob.

A proper example of how you'd assign the variable:

mob/verb/follow(var/mob/M)
M.follower = src


(Not actually a good verb to use, it's just an example)

What YOU probably did is M.follower = "[src]", or something similar. This is totally wrong and will cause an error.