More SP errors...

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

More SP errors...

Post 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
ImageImage
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

NULL

Post 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.
Tom Trude,

Image
Master-Of-Fungus-Foo-D
Muffin Man
Posts: 1544
Joined: Tue Jan 27, 2004 12:33 am
Location: cali, United States

Post by Master-Of-Fungus-Foo-D »

The one with the SAS angent. Free the allied prisoner and he follows you around.
Image
The Fungus Theme song!!!

Code: Select all

while (local.player istouching self)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
Mj
Map Reviewer
Posts: 1394
Joined: Sun Apr 25, 2004 3:36 pm
Location: England

Post by Mj »

#fnum#
:shock: :? :o

Do i need to use this fnum in the script? or just make sure he (they) have one?
ImageImage
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :)
Image
Post Reply