lfnetwork.com mark read register faq members calendar

Thread: Learning to build Doors - GtkRadiant 1.5.0
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 10-23-2005, 08:38 PM   #81
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
So, it would look like this:

set ( "waypoint_navgoal", "t2" )

correct?



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-23-2005, 09:47 PM   #82
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
set ( /*@SET_TYPES*/ "SET_NAVGOAL", "t2" );

I was saying in the editor use nav_goals instead of ref_tags
shukrallah is offline   you may: quote & reply,
Old 10-23-2005, 10:06 PM   #83
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
OK, I'll get to that in a bit. Though, is ref_tag really all that different? It is just an entity... don't answer that one, I'm gonna find out.



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-23-2005, 10:12 PM   #84
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Im not sure, but I figured it was worth a try... I always used navgoals because thats what they are for. Reftags work for things like cameras.... so... crap it might work. But then again the script actually calls for navgoals (SET_NAVGOAL) so... yeah, play with it a bit and see what happens...
shukrallah is offline   you may: quote & reply,
Old 10-24-2005, 04:10 AM   #85
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Use navgoals. Like shukrallah said (what kind of name is this anyway, your old one was better, man, this is impossible to remember...), that's what navgoals are for. I wouldn't personally even know at what height you should place a ref_tag, even if it worked. Navgoal can be placed normally so that it touches the floor just like NPC_spawners themselves. But a ref_tag..? Who knows, even if it worked, which I doubt.

And even if it was half sarcastic, it still contained the info, eh? You can store the navgoal info (name) also in entity parms or variables, and then it would be close to the method you used. Sometimes that can be very useful.


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-24-2005, 10:09 AM   #86
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
Quote:
And even if it was half sarcastic, it still contained the info, eh?
Eh. Yeah, OK, I will. But first, I want to solve a very irritating problem I'm having in SwKotor I. Thinking about burning that game...

Quote:
what kind of name is this anyway, your old one was better, man, this is impossible to remember..
Gotta agree, shukrallah. Sorry, maybe if we knew what that name meant, we'd think of it as normal. But Lukeskywalker1 was Star Wars oriented, man!



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-24-2005, 04:07 PM   #87
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Lol, I actually laughed when reading that.

Its actually arabic... "shukra allah" (or some sort of spelling) means thanks to God. Im 50% lebanese, and it happens to be my last name (its christian)

IDK, the lukeskywalker1 thing sorta got old... im not as big of a star wars fan as I once was.

Quote:
Eh. Yeah, OK, I will. But first, I want to solve a very irritating problem I'm having in SwKotor I. Thinking about burning that game...
You mod KOTOR as well? Or are you just having tech problems?
shukrallah is offline   you may: quote & reply,
Old 10-24-2005, 06:11 PM   #88
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
I'm having tech problems with that game, where I have a severe framerate issue in one place. Anyway, the thread is in the Workbench under the thread title "After upgrading, I can't play SwKotor". So far, I've reinstalled twice, to no avail. I probably need a different brand of video card. Anyway, since there are no replies there yet, I'm gonna get to work on scripting.



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-24-2005, 06:33 PM   #89
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
Okay, it doesn't work, and I may know why. I know I need to define the navgoal entities, but I am unsure as to how. Would that be the declare function? Because that's how vB does it. I am unsure.

Although I left the rems and the tasknames the same, I changed the navgoals to navgoal entities, marked Test1, Test2, and Test3. I also have changed the wait... thingies... to the kind I used before, having the script wait intil "walk to t2" is done, etc.

Code:
//Generated by BehavEd

rem ( "Opening" );
camera ( /*@CAMERA_COMMANDS*/ ENABLE );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam1", ORIGIN)$, 0 );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam1", ANGLES)$, < 0.000 0.000 0.000 >, 0 );

affect ( "SceneJedi", FLUSH )
{
	set ( "SET_BEHAVIORSTATE", "BS_DEFAULT" );
	set ( "SET_WALKING", "true" );

	task ( "Walk to t2" )
	{
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test1" );
		do ( "Walk to t2" );

		task ( "Walk to t3" )
		{
			set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test2" );
			do ( "Walk to t3" );

			task ( "Walk to t4" )
			{
				set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test3" );
				do ( "Walk to t4" );
			}

			wait ( "Walk to t2" );
			rem ( "From Camera I to Camera II" );
			camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam2", ORIGIN)$, $5000$ );
			camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam2", ANGLES)$, < 0.000 0.000 0.000 >, 5000 );
			wait ( "Walk to t3" );
			rem ( "From II to III" );
			camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam3", ORIGIN)$, 5000 );
			camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam3", ANGLES)$, < 0.000 0.000 0.000 >, 5000 );
			camera ( /*@CAMERA_COMMANDS*/ ZOOM, 30.000, 3000 );
			wait ( "Walk to t4" );
			camera ( /*@CAMERA_COMMANDS*/ DISABLE );
		}

	}

}



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-25-2005, 05:43 AM   #90
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
You have a structural problem now. Don't place the DO inside a task, and don't place tasks inside other tasks. But your set_navgoal commands look good now. You just enter a targetname in the properties of a navgoal in Radiant, and then type that targetname straight in the set_navgoal command. It looks like you have done that. That's the simplest and most common way of using navgoals, and nothing else is needed.

Usually scripts (or let's say individual affects as tasks are affect specific and there can be more than one affect per script) are built so that you have all the tasks in the beginning, one after another (but not inside each other), and then at proper place and time you DO (or DOWAIT) those tasks later in the script. That way you can quickly scan all the tasks later on if needed. However, it doesn't really matter technically as long as the task is defined before the DO command.

So, reparse your script so that you have a few tasks that contain nothing but the set_navgoal command belonging to that particular task. And after those tasks have the rest of the script, including the DOs and camera commands and waits and stuff.


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-25-2005, 06:22 PM   #91
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
Now the cutscene fails to load at all. It skips right to the game.

Code:
//Generated by BehavEd

rem ( "Opening" );
camera ( /*@CAMERA_COMMANDS*/ ENABLE );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam1", ORIGIN)$, 0 );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam1", ANGLES)$, < 0.000 0.000 0.000 >, 0 );

affect ( "SceneJedi", FLUSH )
{
	set ( "SET_BEHAVIORSTATE", "BS_CINEMATIC" );
	set ( "SET_WALKING", "true" );
}


task ( "Walk to t2" )
{
	set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test1" );
}

do ( "Walk to t2" );

task ( "Walk to t3" )
{
	set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test2" );
}

do ( "Walk to t3" );

task ( "Walk to t4" )
{
	set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test3" );
}

do ( "Walk to t4" );
wait ( "Walk to t2" );
rem ( "From Camera I to Camera II" );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam2", ORIGIN)$, $5000$ );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam2", ANGLES)$, < 0.000 0.000 0.000 >, 5000 );
wait ( "Walk to t3" );
rem ( "From II to III" );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam3", ORIGIN)$, 5000 );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam3", ANGLES)$, < 0.000 0.000 0.000 >, 5000 );
camera ( /*@CAMERA_COMMANDS*/ ZOOM, 30.000, 3000 );
wait ( "Walk to t4" );
camera ( /*@CAMERA_COMMANDS*/ DISABLE );



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-25-2005, 07:36 PM   #92
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Uhhuh. Your tasks and other commands aren't anymore inside the Affect. You gotta be more careful and meticulous with the code.


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-25-2005, 08:54 PM   #93
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Thats why I use behaved...

Whats wrong with BehavEd anyways? Its so much easier than notepad.
shukrallah is offline   you may: quote & reply,
Old 10-26-2005, 06:05 PM   #94
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
I do use Behaved. Look at the first line: //Generated by BehavEd.

I use notepad to rearrange the commands a bit easier. Just gotta be a bit more careful about how, no?

Do I have to say it now? What... did... I... screw... up... on... this... time???

Code:
//Generated by BehavEd

rem ( "Opening" );
camera ( /*@CAMERA_COMMANDS*/ ENABLE );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam1", ORIGIN)$, 0 );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam1", ANGLES)$, < 0.000 0.000 0.000 >, 0 );

affect ( "SceneJedi", FLUSH )
{
	set ( "SET_BEHAVIORSTATE", "BS_CINEMATIC" );
	set ( "SET_WALKING", "true" );

	task ( "Walk to t2" )
	{
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test1" );
	}


	task ( "Walk to t3" )
	{
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test2" );
	}


	task ( "Walk to t4" )
	{
		set ( /*@SET_TYPES*/ "SET_NAVGOAL", "Test3" );
	}

}

do ( "Walk to t2" );
do ( "Walk to t3" );
do ( "Walk to t4" );
wait ( "Walk to t2" );
rem ( "From Camera I to Camera II" );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam2", ORIGIN)$, $5000$ );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam2", ANGLES)$, < 0.000 0.000 0.000 >, 5000 );
wait ( "Walk to t3" );
rem ( "From II to III" );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam3", ORIGIN)$, 5000 );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam3", ANGLES)$, < 0.000 0.000 0.000 >, 5000 );
camera ( /*@CAMERA_COMMANDS*/ ZOOM, 30.000, 3000 );
wait ( "Walk to t4" );
camera ( /*@CAMERA_COMMANDS*/ DISABLE );



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic

Last edited by StaffSaberist; 10-26-2005 at 06:43 PM.
StaffSaberist is offline   you may: quote & reply,
Old 10-26-2005, 07:08 PM   #95
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Quote:
Originally Posted by StaffSaberist
Do I have to say it now? What... did... I... screw... up... on... this... time???
Well, I would like to say you failed to even read what I have written before, but saying such a thing would form a paradox of redundancy as it would logically lead to the conclusion you won't read even this post...

So, all in all, it doesn't matter what I write here. But just to be unnaturally friendly, I will quote myself and underline the important and relevant part:

Quote:
Originally Posted by /me
Usually scripts (or let's say individual affects as tasks are affect specific and there can be more than one affect per script) are built so that you have all the tasks in the beginning, one after another (but not inside each other), and then at proper place and time you DO (or DOWAIT) those tasks later in the script. That way you can quickly scan all the tasks later on if needed. However, it doesn't really matter technically as long as the task is defined before the DO command.


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-26-2005, 08:51 PM   #96
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Why do you rearange in notepad? Here look-

http://img448.imageshack.us/img448/3457/script4ft.jpg

Another thing you can do is connect the navgoals together in order and tell the NPC to walk to the first one and it should follow the path (I assume, I think Lassev told me about this once) it could make things easier for you...
shukrallah is offline   you may: quote & reply,
Old 10-26-2005, 09:19 PM   #97
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
lassev - Sorry, it's been a long few days. I've been distracted by events at home. Please don't get angry with me. I am frustrating myself just as much. And I do pay attention. I didn't... I... ah, to hell with it, I was STUPID, ALRIGHT?? I am trying so darn hard to get this, and angering you in the process. I can say with some degree of accuracy that after this huge hurdle is passed, I will not need help again to script, map, or any of it. This will be the END of this thread, if there is one in sight. After I get this going, nobody in this forum will hear about it again until you see it as a WIP in the Showcase. Until then, I just have to get how to script it. You can see that I ALMOST HAVE IT, and probably will. And I do read what you say, I merely misinterpreted it.

Remember before, when I had the affect, Walk1 inside if Affect, Walk2 inside of Walk 1, Walk3 inside of Walk2, then all the rest of the script inside of Walk4? Well, I got rid of that. I organized it BETTER, I just didn't do it the BEST. This angers me to no end, but I WILL have this project DONE BEFORE I GET A DRIVER'S LICENSE IN 1 1/4 YEARS! I say this long because I work alone. SO, I will get to work again. My apologies, lassev. No hard feelings, please. Please remember my n00b status!

And as for you, shukrallah... just kidding. I will get this done. I really can't say anything that I haven't already said. So, I will play a little bit and relax. Then I'll tackle this scripting.

Wait, now I do. I made my script as close to yours as possible. But the whole cutscene doesn't load. I'm uploading an image via imageshack. You should be able to tell me exactly what I did wrong. It looks like yours, and I'm 99.9% sure it's all set up in Radiant. I was just in there. I'm too tired now, I can't go on for a little bit. But I want this taken care of so I can get this and move ahead in this project, one that seems now to have no end. I dread going to it. If the next fix doesn't take care of this, I am going to take a 3-day vacation. It can't be healthy for me to do this all day.

http://img380.imageshack.us/my.php?i...enshot63id.jpg

*collapses after a long day*



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic

Last edited by StaffSaberist; 10-26-2005 at 09:41 PM.
StaffSaberist is offline   you may: quote & reply,
Old 10-27-2005, 04:24 AM   #98
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Quote:
Originally Posted by shukrallah
Another thing you can do is connect the navgoals together in order and tell the NPC to walk to the first one and it should follow the path (I assume, I think Lassev told me about this once) it could make things easier for you...
I don't think I have ever said such a thing. I don't believe it yields anything to link navgoals together. As far as I know, the only way to use nav_goals is to use specifically the set_navgoal command. Although there are a few problems with that if you want the NPC to walk through a line of navgoals with consecutive DOWAIT("task")s, as it results to jerky moving, because the NPC slows down just before each navgoal. I'll need to solve this issue eventually...

StaffSaberist, I think shukrallah mentioned earlier you need to have waits between the DO("tasks"). When you use the DO command, it doesn't pause the script. It will just set the task in motion and then immediately continue with the following commands in the script. That means basically only your last set_navgoal has any effect, as it overrides the two earlier ones. So, use WAIT("task") (or DOWAIT) or time it manually using wait(milliseconds).

The exact same thing is true for you camera commands. If you enter a time of 5000 ms for a camera command, but it won't pause the script. The camera will start to move (or pan or whatever) using the given time limit, but the script will immediately go on, and in your case, execute the next camera command, thus overriding the old one immediately. You need ordinary wait(milliseconds) between the camera commands.


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-27-2005, 04:19 PM   #99
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Exactly, you will just have to guess about the time it takes for the NPC to reach the navgoal.

Quote:
I don't think I have ever said such a thing. I don't believe it yields anything to link navgoals together.
Hmmm... Must have been something else...
shukrallah is offline   you may: quote & reply,
Old 10-27-2005, 06:12 PM   #100
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
Okay. I have an exam to study for, can't get to work as of 3:11 Pacific Time. This is a break between home and studying. I'll get to that soon. So, these problems will cause the whole thing not to run? OK, makes sense. If I need to gauge the time... that must be the real reason it takes so long to publish a level.



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-27-2005, 08:40 PM   #101
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
Now I have a more interesting, if less frustrating, problem.

The Jedi still won't haul @$$ when I want him to. Another interesting error: The camera works to a certain point. The camera starts at the ref_tag called "cam1". It then moves to "cam2", and there the script fails. After the camera reaches cam2, I get booted out of camera mode. On a whim, I added a "do" to do the affect, but that locked me in camera mode, so I deleted that line. Getting somewhere now, but not quite working!

The link should take you to imageshack, where I updated the thing. The pic, however, is slightly out of date: The manual waits are now 8000ms and 12000ms respectively.

http://img388.imageshack.us/my.php?i...enshot73ne.jpg



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-27-2005, 08:46 PM   #102
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Well... the manual is just an example. You have to decide how long you think it will take the NPC to get to the nav goal. Most of the time it shouldn't take too long. Trust me, no one wants to watch an NPC walk for 8-12 seconds straight..

*looks at pic*

AH! A problem- for your camera- try adding a 3-4 second wait after the zoom! What you have done is told it to switch to cam3, zoom, and turn off at the same time. Simple fix!

As for your walking- use "do" and put waits between them If it takes 2 seconds for the NPC to walk to the first nav_goal, throw in a wait 2000. If 3 seconds, then wait 3000. Take a guess, and if its too long shorten the time, or lengthen it accordingly
shukrallah is offline   you may: quote & reply,
Old 10-27-2005, 09:19 PM   #103
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
OK, the camera is working (the timing is off, though ) but the Jedi still just stands there. He won't move.

http://img459.imageshack.us/my.php?i...enshot89uo.jpg

Updated script.



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-28-2005, 03:24 AM   #104
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
I don't know if the DO command is case sensitive. Might be worth it to be more careful, though.

Is the NPC in bs_cinematic? Check the targetnames once again in Radiant to be sure there are no typos.

Perhaps it's purposefully, but your last camera movement hasn't yet finished, when you terminate the camera mode.

Oh, and I doubt the NPC can take 3 steps in 1 second...


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-28-2005, 09:55 AM   #105
riceplant
Junior Member
 
riceplant's Avatar
 
Join Date: Jul 2005
Posts: 348
I'm just wondering why you are using tasks but only do, not dowait or wait. There doesn't seem much point to me. It doesn't make a difference really, but it's another thing that can go wrong. And what lassev is trying to say (I think) is that the task names are case sensitive, not the 'do' command itself. That first 'do' should be "Walk to t2" not "walk to t2". Also, don't forget the key should be "NPC_targetname" not "targetname" or "script_targetname", which are used for editor targeting, and script targeting of non-NPCs respectively.
riceplant is offline   you may: quote & reply,
Old 10-28-2005, 10:45 AM   #106
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Quote:
Originally Posted by riceplant
And what lassev is trying to say (I think) is that the task names are case sensitive, not the 'do' command itself.
If a command is case sensitive, it means it separates upper and lower cases in its accepted parametres. Whether how you write the command itself (if you decide to use Notepad) matters is up to the IBIze compiler.

But pardon me, I'm only trying to say something...


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-28-2005, 11:47 AM   #107
riceplant
Junior Member
 
riceplant's Avatar
 
Join Date: Jul 2005
Posts: 348
Sorry lassev, my point was that StaffSaberist may or may not know the terminology here, and I was trying to remove, or at least reduce, any ambiguity that might confuse anyone who didn't know that.
riceplant is offline   you may: quote & reply,
Old 10-28-2005, 06:27 PM   #108
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
"I don't know if the DO command is case sensitive. Might be worth it to be more careful, though."

Good point. I'll check that out.

"Is the NPC in bs_cinematic? Check the targetnames once again in Radiant to be sure there are no typos."

Whoops, deleted the bs_cinematic line. Put it back in. Radiant.... checked! no typos.

"Perhaps it's purposefully, but your last camera movement hasn't yet finished, when you terminate the camera mode."

Oh. whoops again. Taken care of. The manual waits are now 6000 and 8000.

"I'm just wondering why you are using tasks but only do, not dowait or wait."

Placed back in.

"But pardon me, I'm only trying to say something..."

You guys crack me up sometimes.

"Sorry lassev, my point was that StaffSaberist may or may not know the terminology here, and I was trying to remove, or at least reduce, any ambiguity that might confuse anyone who didn't know that."

Actually, I did understand it, but thanks for making sure.

OK, compiled and done. Checklist:

(X) Get the cameras rolling!
( ) Get SceneJedi to haul kiester!

You guessed it: The darn Jedi won't move. Cams are perfect, now.

http://img411.imageshack.us/my.php?i...enshot99yf.jpg




Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-28-2005, 07:58 PM   #109
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Hmm... One more thing I should ask. How are the navgoals located? How far is first navgoal from the NPC, and considering the NPC's angles, is it in front of him (inside his fov, that is) or is it perhaps behind his back? And a bit related to that, is the first navgoal clearly in fov in general, with a good los? I have noticed an NPC might not walk (or run) even to a closeby navgoal, if it happens to be behind his back. And most certainly not if it's too far away or behind some structure disrupting los. These cases can often be solved with passive waypointing, though, that is, by building a waypoint network. Uh... I'm not sure if this has been actually mentioned already earlier, so sorry if this is redundant...

A little legend (for riceplant ) :
fov = field of vision
los = line of sight


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-28-2005, 08:59 PM   #110
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
I needed that legend too!

*loads up Radiant 1.4*

You know, I never thought about the angle *notices I can't tell the angle of the NPC in 1.4* *Closes 1.4, opens 1.5, sets angle* But he definitely is close to the navgoal, and now he is facing it. *compiles* He should be able to see navgoal 2 in front, they're in a straight line. And there are no pillers blocking. It is close to the playerspawn, but since he isn't there yet, I see no problems there. And I take it my script, at long last, is perfect? *loads up JA* That was a long time for such a simple script. *types "devmap staffsaberist_level1* *slaps self in face for forgetting the disc*

OK, he is looking directly at the navgoal. Come on, move! *groan* Now what?

(I love using those asteroids, as my favorite teacher of all time calls them)

No changes were made to the script. The computer has survived... this time!



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-29-2005, 12:24 PM   #111
riceplant
Junior Member
 
riceplant's Avatar
 
Join Date: Jul 2005
Posts: 348
Try removing the tasks, and timing your waits manually. Also, can we see a screenshot of your map, including the entity window for, say, your 'Test1' navgoal. Just in case it's a problem in the map you may have missed.
riceplant is offline   you may: quote & reply,
Old 10-29-2005, 12:40 PM   #112
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Make also sure no entities aren't by mistake inside architecture. Even one unit inside the floor is probably enough to cause troubles.


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Old 10-29-2005, 12:41 PM   #113
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
Alright. You wanted it... you got it. Riceplant, I am uploading to Imageshack:

PIC I - Radiant. I have selected the NPC_SceneJedi, as well as the three navgoals, for easy viewing.

http://img137.imageshack.us/my.php?i...nshot105mo.jpg

PIC II - BehavEd. My changes to the script.

http://img407.imageshack.us/my.php?i...nshot110si.jpg

PIC III - Radiant again. Entity window for Test1.

http://img407.imageshack.us/my.php?i...shot126nm.jpg\

Another for good measure. Do not fear about the archi -- I've decided to work it over a bit after I am done scripting.



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-29-2005, 01:24 PM   #114
riceplant
Junior Member
 
riceplant's Avatar
 
Join Date: Jul 2005
Posts: 348
Got it. Your 'SET("BEHAVIOURSTATE","BS_CINEMATIC")' Should be 'SET(<SET_TYPES> "SET_BEHAVIOR_STATE", "BS_CINEMATIC")'. You really should use the preset commands where they exist, if you had, your guy would be walking already.
riceplant is offline   you may: quote & reply,
Old 10-29-2005, 01:41 PM   #115
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
I always just checked "cinematic" in radiant, much easier.


Are you guys sure spaces work in waits and dos? I always put _ just to be sure... :-\ worth a shot if the above comment doesn't work out.
shukrallah is offline   you may: quote & reply,
Old 10-29-2005, 02:16 PM   #116
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
shukrallah, I deleted the tasks, and therefore the 'do' and 'wait'.

Riceplant, a noble idea, but it failed. I set it in Radiant, and deleted the line in BehevEd. He still doesn't move.

It's not all bad news for the project, though: I did find some better music to replace the single .wav file I have. I learned how to shamelessly rip Kotor I music. Analyzing the files has proven most promising. Including a few music files that were NEVER USED in Kotor! Er, maybe not. Never finished the dark side one... anyway, it's in 22k format, so I don't get that stupid error message everytime the music loops. Only problem is, the transition music (from battle to area music) won't play correctly in the Miles Sound System. I hope (or rather, I pray to God) that JA will recognize it. I could create custom dynamic music. Cool! *play's Malak's battle music*.



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-29-2005, 10:08 PM   #117
shukrallah
White Dragon
 
shukrallah's Avatar
 
Join Date: Nov 2002
Posts: 3,250
Dynamic Music Tutorial - http://map-review.com/index.php?page...ial_view&id=21

Anyways, I made a map and script showing luke walking to 3 navgoals, fully tested and working properly.

http://www.megaupload.com/?d=ADN7YVGJ

Last edited by shukrallah; 10-30-2005 at 08:41 AM. Reason: Fixed the link....
shukrallah is offline   you may: quote & reply,
Old 10-29-2005, 11:04 PM   #118
StaffSaberist
DECEPTION IS FINISHED! :D
 
StaffSaberist's Avatar
 
Join Date: Oct 2005
Location: The United States of America... and damn proud of it!
Posts: 1,092
I know what the problem is!

For odd reasons I cannot comprehend, I do not create THIS:

set ( /*@SET_TYPES*/ "SET_NAVGOAL", "walk1" )

Ehenever I try "set types", it says, Include error!!! and I cannot change it. I may have to do this part in Notepad (look, I'm trying to get off of Notepad, and finding it difficult.)

Also, instead of

affect ( "luke_walk", /*@AFFECT_TYPE*/ FLUSH )

I have

affect ( "luke_walk", FLUSH)

or something like that. Very odd. Thanks for the dynamic music tutorial. I will definitely need it for the trials ahead.

I'll get to work on those scripts. I wonder why BehavEd is trying to <tick> me off so much. It has succeeded thus far.



Deception, the best SP level-set in the world, is done! Get it here!
"Query: What is it you wish, fat one?" - HK-47 at his best
I have begun modding TSL. Check it out here. and My Fanfic
StaffSaberist is offline   you may: quote & reply,
Old 10-30-2005, 01:52 AM   #119
wedge2211
Commander, Rogue Squadron
 
wedge2211's Avatar
 
Join Date: Jul 2002
Location: Ithaca, NY
Posts: 2,320
Quote:
Originally Posted by StaffSaberist
*notices I can't tell the angle of the NPC in 1.4* *Closes 1.4, opens 1.5, sets angle*
Ther's really no need for allt he flipping between versions, 1.4 can really do all that stuff on its own.


wedge2211 is offline   you may: quote & reply,
Old 10-30-2005, 04:11 AM   #120
lassev
cryptoscripter
 
lassev's Avatar
 
Join Date: Jun 2002
Location: Finland
Posts: 1,087
Quote:
Originally Posted by StaffSaberist
I know what the problem is!

For odd reasons I cannot comprehend, I do not create THIS:

set ( /*@SET_TYPES*/ "SET_NAVGOAL", "walk1" )

Ehenever I try "set types", it says, Include error!!! and I cannot change it. I may have to do this part in Notepad (look, I'm trying to get off of Notepad, and finding it difficult.)

Also, instead of

affect ( "luke_walk", /*@AFFECT_TYPE*/ FLUSH )

I have

affect ( "luke_walk", FLUSH)

or something like that. Very odd. Thanks for the dynamic music tutorial. I will definitely need it for the trials ahead.

I'll get to work on those scripts. I wonder why BehavEd is trying to <tick> me off so much. It has succeeded thus far.

Go to the BehavEd prefs and set the paths to point to proper places / files. That will solve these problems.


Frozen by ICARUS
lassev is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Mapping > Learning to build Doors - GtkRadiant 1.5.0

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:57 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.