DF-21 Forums Forum Index DF-21 Forums
The Dark Forces Community
 
DF-21.net Home | FAQ | Search | Memberlist  | Register 
Profile | Log in to check your private messages | Log in

Elevator Speeds
Goto page 1, 2  Next
 
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing
View previous topic :: View next topic  
Author Message
jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 19, 2004 23:53    Post subject: Elevator Speeds View user's profile Send private message Reply with quote

Is there a way to make an elevator change its speed? I want to have an elevator move at a speed for a while and then, after hitting a stop, change its speed. I'm sure this has to do with INF, which is not my strong suit, so detailed responses would be greatly appreciated. Thanks.

Burning Gundam
Kell Dragon

Joined: 28 Sep 2003

PostPosted: Oct 20, 2004 00:34    Post subject: View user's profile Send private message Send e-mail Reply with quote

The only way I think it can be done is through a complex series of dummy sectors and using a slave speed for each individual sector to be used with the elevator you wish to use. It might make an interesting showcase level if it can be done....

_________________
I don't think outside the box... I customize it.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 20, 2004 01:07    Post subject: View user's profile Send private message Reply with quote

Shoot. I had thought/hoped someone had done something like this already. Oh well, back to WDFuse.

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 20, 2004 01:21    Post subject: View user's profile Send private message Reply with quote

i made an elevator like that. First I attempted different events for the same sector...that was a disaster. As Burning Gundam said you have to use a bunch of dummies making your elevator slave to each of them. I did make an acclerating elevator a while back with that method but never posted it.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 20, 2004 01:34    Post subject: View user's profile Send private message Reply with quote

DF4GL4ever wrote:
i made an elevator like that.



Very Happy Would you mind making a showcase level (or maybe just posting some of the INF involved)? That would be really helpful.

Nottheking
Kell Dragon

Joined: 29 Sep 2003

PostPosted: Oct 20, 2004 13:57    Post subject: View user's profile Send private message Reply with quote

I see how I could put multiple elevator items into the same sector, but it might be too easy for the player to break it... I think I might give it a shot. Then again, mabye not...

_________________
Wake up, George Lucas... The Matrix has you..

Scape Goat
Dark Trooper Phase 2

Joined: 23 Sep 2003

PostPosted: Oct 20, 2004 18:16    Post subject: View user's profile Send private message Reply with quote

http://df-21.net/downloads/showcase/advinf.zip

If you just want it to go from point A to point B and not back again, then I'd do it something like this:

Code:
seq
  class: elevator move_fc
      speed: 10
      event_mask: 1024
    stop: 50 hold
    stop: 100 hold
seqend
seq
  class: elevator move_fc
      speed: 10
      event_mask: 0
    stop: 0 hold
    stop: 50 0
      message: 1 ThisSector goto_stop 1 1024
    stop: 100 hold
seqend


It'll go up at speed 10. At the halfway point, it speeds up to 20. Basically, when you have two elevators going on the same sector at the same time they add or subtract their speeds. For instance, if you have one going up at speed 10 and one going down at speed 6 the result is an elevator that goes up at a speed of 4.

Hope that makes sense and helps.

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 20, 2004 21:30    Post subject: View user's profile Send private message Reply with quote

It's on my computer at home 400miles away...so as soon as my little bro emails it up to me (meaning today hopefully) I'll post it as a showcase level.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 21, 2004 00:30    Post subject: View user's profile Send private message Reply with quote

Thanks guys! Very Happy ....the OP thanks you too.

Nottheking
Kell Dragon

Joined: 29 Sep 2003

PostPosted: Oct 21, 2004 03:13    Post subject: View user's profile Send private message Reply with quote

jimbo wrote:
....the OP thanks you too.


Uh-oh... I'm gonna have to see what it is you're putting in... Wink

_________________
Wake up, George Lucas... The Matrix has you..

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 21, 2004 17:52    Post subject: View user's profile Send private message Reply with quote

Hmm. I'm still having trouble getting the results I want. Since the OP isn't any kind of secret, I'll let you know what I want to happen:

Elevator moves down and then comes to a stop. It sits there for a time, and then falls to the bottom of the shaft at a higher speed. It then climbs back up at its original speed.

I tried to emulate what was going on in the showcase level, but my elevator was going too fast and going to stops out of order. Maybe what I want can only be accomplished through the dummy sectors people have mentioned (whatever those are). At any rate, maybe if I can't work this out someone else can take the project and make it work. Smile

Also, does anyone know if there is a way to have a floor be glass and be able to look through it and (in this case) see stars?

Casey Neumiller
Gamorrean

Joined: 24 Sep 2003

PostPosted: Oct 21, 2004 18:09    Post subject: View user's profile Send private message Send e-mail Reply with quote

That's simple, Jimbo-you need a 3DO textured as a glass pane that fits the area that's accessible. Then you simply set the sector flag to no floor and use a second altitude.

The problem with this, though, is that enemies will fall right through the second altitude and die.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 21, 2004 19:52    Post subject: View user's profile Send private message Reply with quote

Casey Neumiller wrote:
Then you simply set the sector flag to no floor and use a second altitude.

The problem with this, though, is that enemies will fall right through the second altitude and die.



I fall right through the second altitude as well. I think my program has some kind of problem with those as this is not my first run-in with a second altitude problem. If my plan does work, however, there will be no enemies in this sector, only objects. Those would stay on the second altitude, right?

Casey Neumiller
Gamorrean

Joined: 24 Sep 2003

PostPosted: Oct 21, 2004 21:35    Post subject: View user's profile Send private message Send e-mail Reply with quote

Objects would stay. Check to make sure that the player is entering the sector above the second altitude. (Stupid thing, I know, but I've made that mistake.) Make sure the altitude is positive, too.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 21, 2004 23:13    Post subject: View user's profile Send private message Reply with quote

Casey Neumiller wrote:
Make sure the altitude is positive, too.



So much for that idea. Thanks Casey.

Casey Neumiller
Gamorrean

Joined: 24 Sep 2003

PostPosted: Oct 22, 2004 02:02    Post subject: View user's profile Send private message Send e-mail Reply with quote

...why do you need a negative altitude for that?

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 22, 2004 02:15    Post subject: View user's profile Send private message Reply with quote

Maybe I'm not understanding what's going on. Here's the deal:

The floor I want to be see through has an altitude of -30 so I figured my second altitude would be -29. When I did that, I fell through the floor and died. Then I saw your post saying the second altitude should be at a positive altitude, so I assumed (I need to stop doing that) that meant a second altitude could not be a negative number.

...and to answer your question, I thought I needed a negative altitude because the floor is a negative altitude. I probably answered this earlier but I'm trying to be as clear as possible to try to help you help me, which I am very glad you are doing. Thanks again.

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 22, 2004 06:03    Post subject: View user's profile Send private message Reply with quote

Alrighty here's my little test gob of stuff. http://jpowermacg4.com/poiu/phpatm_120/files/xpglegg/EXPRMNTS.gob Right-click the link and select save as... Made it on mac but it should work fine on all machines. Robotics is the level youre gonna want to open, Jabba has a primitive elevator with diff speeds and fuel station is just other tests I was doing. The first elevator you see in robotics is huge and fast.dont go in without laimlame. The good elevator is down the long hallway(use headlight or infrared goggles). These are a few of the levels I made when I was learning how to do stuff in DarkForge so they're real simple.

Casey Neumiller
Gamorrean

Joined: 24 Sep 2003

PostPosted: Oct 22, 2004 06:18    Post subject: View user's profile Send private message Send e-mail Reply with quote

Second altitudes are calculated as +number off the height of the floor. If your floor is at -29 and you want your second altitude at -28, you'd set the second altitude to +1. Negative altitudes are used only for water/sewage.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 22, 2004 22:29    Post subject: View user's profile Send private message Reply with quote

Well, my glass floor idea won't work in the area now as I've decided to go for something else. Thanks for your help Casey, second altitudes really make more sense now Smile

I'm still having issues with my elevator though. This is one thing that still fits the situation and I really want it to be in the level. Something must be off in my INF work because I can't get things to turn on when they're supposed to, be at a stop when they're supposed to, or go at the right speeds. Mad I know I'm on the right track, but I guess I'm not doing everything I'm supposed to. This might be something I'll have to come back to later, or maybe someone with more INF experience can take care of it.

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 22, 2004 22:51    Post subject: View user's profile Send private message Reply with quote

In your case the slave method would probably be the most reliable, and you only have a couple stops so only a few dummy sectors are needed. Were you able to check out the elevator i posted in robotics.lev ?

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 22, 2004 23:55    Post subject: View user's profile Send private message Reply with quote

DF4GL4ever wrote:
Were you able to check out the elevator i posted in robotics.lev ?



Yes I was. I have been trying to get my elevator to do what you were able to....only different. Mine is more complicated (probably because I'm the one working on it Embarassed ), and maybe even not possible. Here goes:

Start point 1 - up - down - DOWN - up - End point 1
Start point 2 - up - down - up - DOWN - up - down - End point 2

As you might have guessed, I want the elevator to go faster where I have the words in caps, and also Start point 2=End point 1, Start point 1=End point 2. I've gotten the elevator to go to the first set of stops now, but it does not increase speed at the appropriate time (the speed does not change at all right now). I haven't tried the second set yet because I figured if I didn't get this right I wouldn't get that right. Anyway, if you have any ideas, they would definitely be appreciated.

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 23, 2004 00:41    Post subject: View user's profile Send private message Reply with quote

Quick question...is this elevator one time use? As in makes it to high destination and then back to starting destination and thats it?

I think I got the elevator to work right... but for repeated uses there's gonna be a bit of a trick the way it stands right now involving having doors into the elevator room.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 23, 2004 01:45    Post subject: View user's profile Send private message Reply with quote

DF4GL4ever wrote:
Quick question...is this elevator one time use?



The elevator is intended for one time use (as in one time down, one time up).

DF4GL4ever wrote:
I think I got the elevator to work right...



Great! I have gotten a lot better at INF over the past week, but I am having a terrible time trying to figure this one out. Any hints, tips, or walkthroughs for this elevator you can throw my way would awesome Smile

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 23, 2004 04:08    Post subject: View user's profile Send private message Reply with quote

jimbo wrote:
DF4GL4ever wrote:
Quick question...is this elevator one time use?



The elevator is intended for one time use (as in one time down, one time up).



Ok cool, the elevator is a simpler job with just one up and one down...repeated use got a little messy. I've reuploaded the exprmnts.gob file, and Talay.lev has the elevator I came up with. As of now all the sound is turned off...you can page a sound in each dummy elevator for each segment of motion. I'm not sure if this setup is exactly correct but I followed your pattern of stops. There's probably a better way to do this but I've gotta do some more experimenting to find it Very Happy

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 24, 2004 18:20    Post subject: View user's profile Send private message Reply with quote

Well, I've been trying to get this for the last two days, but I haven't gotten it to work Sad Just for whatever reason, when I try to do what you did for my elevator it doesn't work. This is exactly (with any luck) what I want my elevator to do:

Code:
speed: 2
  stop: 25 hold
  stop: 28 2
  stop: 16 2
speed: 30
  stop: -14 2
speed: 2
  stop: -10 hold
  stop: -7 1
  stop: -9 1
  stop: -5 2
speed: 30
  stop: -14 2
speed: 2
  stop: 43 1
  stop: 25 hold


I don't know if this can be done with those stops, but if someone can figure out a way to make this work, please either contact me with some info or take the OP and work you magic [/shameless plug] I'm just at a loss for ideas to make this work right now.

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 24, 2004 19:44    Post subject: View user's profile Send private message Reply with quote

As far as I know I've got the stops right and the speeds. I reuploaded EXPRMNTS.GOB0, modified 12:40PM Pacific today, the correct elevator is in Talay.lev. Open the level in Dark Forces to verify that the stops are correct with LADATA.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 24, 2004 21:04    Post subject: View user's profile Send private message Reply with quote

Thanks a lot DF4GL4ever! Is there anything with INF you can't do? Wink

DF4GL4ever
Gamorrean

Joined: 15 Apr 2004

PostPosted: Oct 25, 2004 17:39    Post subject: View user's profile Send private message Reply with quote

Ha a whole lot I can't do Very Happy Tictactoe rooms come to mind... Anyway glad it worked ok. There's gotta be a more efficient way than using six dummies so I'm gonna do some more investigating on this different speed elevator stuff.

jimbo
Gamorrean

Joined: 29 Feb 2004

PostPosted: Oct 25, 2004 18:02    Post subject: View user's profile Send private message Reply with quote

Mad Yes it did work in your experiment, but I couldn't get it be at the right stop when I did it. I believe I copied down all the INF correctly and did what you did, but it won't start at the right stop. This elevator is part of the Open Project, something I will be uploading later today and hopefully it will be available for download today as well. If you don't mind, could you download it when it is available and check my work? I really don't see why it won't work when I put in the INF....mystery of DF editing I guess...some have it, some don't.

Display posts from previous:   
Post new topic   Reply to topic    DF-21 Forums Forum Index -> Dark Forces Levels & Editing All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group