Script Compile error

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Locked
Spyhunter

Script Compile error

Post by Spyhunter » March 18th, 2006, 9:38 pm

hey,

I want 2 make 2 doors that go open to the sieds, so i made a map with 2 doors in it gave it a targetname and stuff.
I also put a trigger_multiple for it. i made this script, but this isnt orking

Code: Select all

main()
{
maps\mp\_load::main();
thread begin_bewegen();
thread begin_bewegen2();
}

begin_bewegen()
{
deur1 = getent ("deur1","targetname");
trig = getent ("deur1_trig","targetname");
trig waittill ("trigger");
deur1 moveto ( (-64, 200, 128), 10);
wait(10);
deur1 moveto ((0, 200, 128), 10); 
}

begin_bewegen2()
{
deur2 = getent ("deur2","targetname");
trig = getent ("deur2_trig","targetname");
trig waittill ("trigger");
deur2 moveto ( (128, 200, 128), 10);
wait(10);
deur2 moveto ((64, 200, 128), 10); 
}
here's the exact error
http://img452.imageshack.us/my.php?imag ... led2ei.jpg

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » March 18th, 2006, 9:43 pm

did you give the doors the script_brushmodel? Its saying that a line in your script is trying to make an object that doesnt exsist move
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

Pedsdude
Site Admin
Site Admin
Posts: 15914
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » March 18th, 2006, 9:47 pm

I think Nightmare is right - looks like you didn't give them script_brushmodel's.
Image
Image

Guest

Post by Guest » March 18th, 2006, 9:47 pm

Yeah, i did if you want my map / gsc add me to your msn randy_dhondt_5@hotmail.com

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » March 18th, 2006, 10:49 pm

Its your triggers that are not working not your doors.

Make sure your trigger is made of only the trigger texture on all sides. Right cliukc and make it a trigger mulitple. Press n and give it a targetname. If it doesnt work, remake the trigger.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » March 18th, 2006, 10:58 pm

Ok, after inspecting you .map carefully I found something wrong with how you typed in your entities:

Code: Select all

Key: deur1_trigger
Value: targetname
when it should have been

Code: Select all

Key: targetname
Value: deur1_trigger
I also changed the door and trigger names to something alittle easier to understand and I also made your script alot simpler

Here is the zip with the .map, the gsc in txt format and the pk3


http://s59.yousendit.com/d.aspx?id=2BO9 ... CCFV661ZTX


I have to say, that was pretty well hidden :P

Score one for me :D
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

Pedsdude
Site Admin
Site Admin
Posts: 15914
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » March 18th, 2006, 11:38 pm

Nice one Nightmare :) Topic locked.
Image
Image

Locked

Who is online

Users browsing this forum: No registered users and 3 guests