annoying error

Post your scripting questions / solutions here

Moderator: Moderators

HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post by HeavenBound »

Well, there should be a .scr file like "urmapname.scr"...Open up notepad, and drag ur .scr file into notepad...Copy and paste the text in that .scr file and post it here......
HeavenBound

I'm new at this :)
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

thanks got that cheers!!
know how to post a map??
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post by HeavenBound »

HeavenBound wrote:Well, there should be a .scr file like "urmapname.scr"...Open up notepad, and drag ur .scr file into notepad...Copy and paste the text in that .scr file and post it here......

to copy hit ctrl and c at the same time..... lol
HeavenBound

I'm new at this :)
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

u must think i'm stupid :)
once i COPY it where do i PASTE it,
and dont say something obvious please!!
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post by HeavenBound »

You know how ur replying? Post it in the reply box...so we can read it....and see what's wrong... lol
HeavenBound

I'm new at this :)
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

u cant read a map mate..
the guy asked for my MAP FILE and my script file, my script is already on the forum all i need to show is my map... but i dont think it will help.
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

it seems on every map the same thing happens, he sees an enemy and it immediatly freezes and returns me to the game menu!! it something to do with a loop or something - it says on the error i posted

Try to use the script that 'smithy' posted earlier and see if the same thing happens to you...
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

exec global/auto.scr
exec global/friendly.scr

level waittill prespawn
level waittill spawn

//----------------------------------------------------------------------------
main:
//----------------------------------------------------------------------------

thread FriendInit //or waitthread FriendInit

end

//----------------------------------------------------------------------------
FriendInit:
//----------------------------------------------------------------------------


level.friendly1.targetname = friend1


$friend1.destination = $player


// Sets the type of friendly soldier

$friend1.friendtype = 1

// stagger how far away they keep from their destinations

$friend1.distance = 175

// setup the friendlies to follow the player...

$friend1 thread global/friendly.scr::friendlythink

end
1215drew
Private
Posts: 6
Joined: Tue Jun 15, 2010 6:41 pm

Post by 1215drew »

I was having a similar problem untill i figured this out.
insert $friend1.waittime = 0.1 BEFORE $friend1 thread global/friendly.scr::friendlythink. additionally, and this is just from examining the stock maps, move the destination friendtype and distance commmands to AFTER $friend1 thread global/friendly.scr::friendlythink. hope this helps.
User avatar
dude77
Corporal
Posts: 49
Joined: Tue Sep 01, 2009 8:37 pm

Post by dude77 »

Great, i've been waiting ages for a reply, thanks!
but sadly since asking the question my computer crashed and i have currently not been mapping since as i have not got round to downloading it again! if i ever do i'll use your idea and i'll tell you if it works or fails

thanks
Post Reply