Page 1 of 1

More SP errors...

Posted: Tue Jun 15, 2004 3:06 pm
by Mj
I'm attempting to make a single player map... but when i actually get my guys to follow me, it crashes my level :(

Its says it has something to do with an infinate loop in the friendly.scr... and something to do with "NULL"

Sorry for lack of 'detailed error reporting'

But if anyone can help, i would be grateful :D

Mj

NULL

Posted: Tue Jun 15, 2004 5:27 pm
by tltrude
NULL must be like NEL, which means "no value". You must be calling the frindly script wrong. Have you studied the game scripts where the frindlies follow you? The first m5 map does that, I think.

Posted: Tue Jun 15, 2004 7:13 pm
by Master-Of-Fungus-Foo-D
The one with the SAS angent. Free the allied prisoner and he follows you around.

Posted: Tue Jun 15, 2004 7:21 pm
by lizardkid
go mj!!! sp rocks!!!

in any case, make sure you have proper pathnodes, your friendly is named $friendly1 (or any num really) and he has #fnum# (where the end # is a number, never tried it above 9) etc.

Posted: Tue Jun 15, 2004 7:38 pm
by Mj
#fnum#
:shock: :? :o

Do i need to use this fnum in the script? or just make sure he (they) have one?

Posted: Tue Jun 15, 2004 7:45 pm
by lizardkid
that may be your problem, it's a property for the ai, so put it in via the Entitiy window, key/value like so

#fnum - 1

that may be it, let me know if it isn't....

another thing, have you specifed the friendlytype? regular infantry should be friendlytype = 1

Posted: Wed Jun 16, 2004 9:51 am
by jv_map
Make a log with logfile 2, then start your map, and when it has crashed look at main/qconsole.log.

You'll probably find a huge list of errors at the bottom of the file, so scroll up and post the first error right here :)