PDA

View Full Version : Problem with subways


alejandro
10-23-2001, 05:56 PM
Hi

I am making a subway on my map, i have one track with one subway (3 cars) and it works correctly, but i made another subway and it mixes with the first subway (?!) What am i missing, or what is wrong?

Bye

Ding Bat
10-24-2001, 02:21 AM
If you mean by mixing, connecting the second track with the first track, you can't do that.

NutWrench
10-24-2001, 05:16 AM
If the second subway is on a different track, then you need to give both subway cars different HiTags to keep them from mixing.

Here's a level I made (http://worldzone.net/art/jrbobdobbs//cos.zip) that has two subways in it. In this example I used "[1,0]" for the subways on one level and "[4,0]" for the subways on the other level. (I could have made the second subway "[2,0]". If you're wondering why I jumped from 1 to 4: my original level idea was a LOT more ambitious. images/icons/grin.gif )

[edit] In case you're talking about 2 subways on the SAME track that are mixing:
Subways always start at Locator 0, work their way up to the highest Locator and then seek out the 0 Locator again. If you place subway cars on another part of the same track, away from Locator 0, make sure you give the "engine" [0,6] and any trailing cars [0,14] the same hightag as the Locator directly in fron of the car. For example, if your subway starts out on the opposite side of the track, just before Locator 19, make sure the engine is tagged "[19,6]" and any trailing cars are tagged "[19,14]". If you don't do this, the subway will head straight for Locator 0, when you start the map for the first time, passing through walls and other objects until it gets to Locator 0. This looks very weird and will be very uncomfortable for anyone riding the subway when this happens. images/icons/grin.gif

P.S. Make sure your are using Locators and not ActivatorLockeds. Locators look almost identical, except that they have a little "+" sign next to them.

[ 10-24-2001: Message edited by: NutWrench ]

alejandro
10-24-2001, 09:15 AM
Ok, now the 2 subways work fine (they are in the same track, the problem was that I don't gave them the same hitag as nearest locator)

Thanx!
Bye

[ 10-24-2001: Message edited by: alejandro ]

Kef Nukem
10-24-2001, 09:54 AM
City of Screams rock images/icons/smile.gif
Btw Alejandro, if you have more questions, don't hesitate to ask 'em images/icons/smile.gif you can always ask me via icq ok?

martyd
12-10-2001, 11:20 AM
Okay, I have this slightly different querry. I made this really long sub track and I get these wierd things like the single engine going through walls and such. I checked the 40 plus locators for errors, widened the track, all sorts of things but haven't found what it wants. The track is all one sector and not sloped or with panned floor/ceiling. images/icons/rolleyes.gif (I got a lot of stuff like this I'm trying to solve [gulp]). Thanx.

Ding Bat
12-11-2001, 03:24 AM
<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Originally posted by martyd:
Okay, I have this slightly different querry. I made this really long sub track and I get these wierd things like the single engine going through walls and such. I checked the 40 plus locators for errors, widened the track, all sorts of things but haven't found what it wants. The track is all one sector and not sloped or with panned floor/ceiling. images/icons/rolleyes.gif (I got a lot of stuff like this I'm trying to solve [gulp]). Thanx.<hr></blockquote>

I'm not sure exactally what you talking about, but double check your locator numbers and make sure you start off with no hitag then make sure the rest tags are sequential(NO SKIPPED OR DOUBLED UP NUMBERS)

cyborg
12-11-2001, 01:15 PM
In order to sucessfully have two sets of locators the objects which use the locators must find the locator with the hitag you want them to find, as if you hadn't noticed you'll now have a lot of locators which are basically the same.
Now I'm not sure I remember exactly how Duke3d is programmed to search out the next locators but it probably simply searches up through the sprite list for the next locator sprite with the correct hitag. This would mean that if you have two hitags with the same number then the one with the lower hitag is the one that will be found first. Hence if you were building your tracks at the same time the internal sprite list would be a bit like this:
L0L0L1L1L2L2 etc...
and only one track would ever be used since the lower sprite number locator would always be used. The locators must be organised like this:
L0L1L2L0L1L2
As you should be able to see when starting at either L0 you'll progress up the list. Once at the end of the list I suspect that it would use a pointer to get quickly back to L0 rather than search from the start. If this method is the one used then if the second built loop has more locators then clearly the loops would mix.
The other method would be to seek out the nearest locator but I'm not sure about this as this would again basically require searching up the list but it would assume it expects to find more than one - judging by the docs I don't think this is the way Todd Replogle would have programmed it.
Hence I can probably safely say that you must ensure that your sprite numbers don't cross and that each sucessive loop has fewer or the same number of locators than the last.

Q-qeo
04-28-2008, 08:15 AM
Hi,
I have a problem with the locaters on the subway, see the picture..
I hope you can help me :)

http://forums.3drealms.com/vb/album.php?albumid=206

Usurper
04-28-2008, 08:29 AM
Tx showed me where you put the pic in your profile. If you send the map to usurper @ duke4.net I can look at it for you.

Q-qeo
04-28-2008, 08:39 AM
Hi,

I sent the picture in the album you see it?....

Q-qeo
04-28-2008, 09:03 AM
Subway error

Hi All,

I have this error when I lauching Duke "Could not find any locators for SE# 6 and 14 whith a hitag of 1"
Strange message, can you help my with this??...

Greetings Fred.