Array help

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

Moderator: Core Staff

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 16th, 2010, 9:35 pm

It’s exactly the same as yours, I just made a little test map to make sure it worked right.
Well I did change one thing, in the for there was an l instead of ;.

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

Re: Array help

Post by Drofder2004 » August 16th, 2010, 11:04 pm

Code: Select all

// Start opening door etc
And what did you replace this line with?
the code at the moment is just a shell that works in the background looping, you need to add the code that actually does something.

I suggest "iprintln("Testing");" to simply test 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

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 16th, 2010, 11:14 pm

Oh yeah i did have
self movez (100,3);

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

Re: Array help

Post by Drofder2004 » August 16th, 2010, 11:55 pm

Any errors?

Have you correctly named your doors and correctly made your triggers?

Edit:

Code: Select all

trig = getent(self.target, "targetname");
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

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 17th, 2010, 12:39 am

Thats making my cod crash now.

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

Re: Array help

Post by Drofder2004 » August 17th, 2010, 12:48 am

mp_doortest.zip
mp_doortest.map
mp_doortest.gsc
prefab_door.map

---

Prefab =

Door + Origin brush = script_brushmodel (targetname = door).
Trigger = "door".

Map =
Prefab facing all four compass directions.

Gsc =
Code to rotate the door upon trigger press.


Tested and working fine.
You do not have the required permissions to view the files attached to this post.
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

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 17th, 2010, 1:04 am

When I try to open the .maps my cod radiant crashes with this:

ParseEntity: { not found
GetLastError() = 0 - 0
An unrecoverable error has occured. Would you like to edit Preferences before exiting Q3Radiant?

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

Re: Array help

Post by Drofder2004 » August 17th, 2010, 4:28 am

Major Tom wrote:When I try to open the .maps my cod radiant crashes with this:

ParseEntity: { not found
GetLastError() = 0 - 0
An unrecoverable error has occured. Would you like to edit Preferences before exiting Q3Radiant?
fix197.zip
Open that zip, inside you will see and EXE.
Double click that.
Then drag and drop the maps onto it and it should fix them.
You do not have the required permissions to view the files attached to this post.
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

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 17th, 2010, 6:05 am

It said did not modify.
Also i opened the map file up in a text editor and it had iwmap 4 at the top but i checked all mine none of them had that.
And also textures dont sound like any from cod 1.

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

Re: Array help

Post by Drofder2004 » August 17th, 2010, 11:31 am

oops, I havent got CoD1 tools installed. So yes, all CoD4.
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

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 17th, 2010, 6:12 pm

Ah well I dont think cod 1 has the merge thing, never seen it used in cod 1 just 2+.

megazor
CJ Worshipper
CJ Worshipper
Posts: 414
Joined: July 22nd, 2009, 3:02 am
Location: Russia, Vladivostok

Re: Array help

Post by megazor » August 18th, 2010, 3:00 am

u can merge patches' verticles.

have u fixed ur map?

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 18th, 2010, 6:19 pm

Nope.

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

Re: Array help

Post by Drofder2004 » August 18th, 2010, 7:22 pm

When you say merge, do you mean the "link"?

I think CoD1 may have been CTRL+K, but this is totally off memory.

If not, open the trigger up and give it a targetname of "auto1" and then select the door and do "target = auto1" (as keys)
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

Major Tom
CJ Wannabe
CJ Wannabe
Posts: 17
Joined: May 9th, 2009, 6:59 am

Re: Array help

Post by Major Tom » August 18th, 2010, 11:09 pm

Awesome that worked.
I did need to link the triggers to and use damage instead of use but im sure I can figure that out by myself.
Thank you very much for the help.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests