Help - Search - Members - Calendar
Full Version: Fixing the Tunnels (****)
TiberiumWeb.org Community Forums > Tiberian Sun > TS Mapping > Mapping Tutorials
Ixith
QUOTE (Team Black @ Jan 20 2009, 07:57 PM) *
this tutorial is obsolete, go HERE for a better one



Tutorial By: dEw_MaN
(Thanks to Wess for posting it up in my WIP map thread. Figured it would be nice to have it up as a tutorial to since that is what it is ya know. wink1.gif )

QUOTE
There is a long standing error in Final Sun editor with tunnels. Read on to find out how to fix that annoying error.

First: apply your tubes one set of three tube applied only not two sets.
This means you trace the tunnel tubes one time for each connection. This will make a total of three connections between to tunnels.

Second: open your map in notepad. Find the tube section. Turn off word wrap so the section look some thing like this.

[Tubes]
0=79,100,0,79,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-1,-1=79,83,4,79,100,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,-1,-1,- 2=80,100,0,80,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-1,- 3=80,83,4,80,100,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,-1,-1,- 4=81,100,0,81,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-1,- 5=81,83,4,81,100,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,-1,-1,-

NOTE: I removed the (-1) so this can fit the page. So do not remove all of the (-1) or you may have problems.

In this sample if you look at the first two strings like this. This makes one tube. Each string is a one-way passage throw the tunnels. One for one direction and one for the return direction.

0=79,100,0,79,83,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-1,-1=79,83,4,79,100,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,-1,-1,-

Now we will look at the part that is giving you the problem

0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-1,-
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,-1,-1,-

This part is it. If you cont the (0) then cont the (4) you will see that the (0) are sort by one (0). To correct this change the next (-1) to a (0) (or the number in your strange) final sun all ways make this mistake.

What you are looking at represents the direction numbers (represents by the numbers themselves) and the number of tile movements (represents by how many numbers shown in the string.) this part of the strings should look some thing like this after you fix it. You can see that the amount of numbers match.

0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,-1,-1,-

Then you will need to repeat this for the next two sets of tubes.

NOTE: Do not use these string as a replacement, these are just samples. Do not cut the strings apart like this. This was only to make it easier to see the problem.
Aro
I TOLD YOU! That there was a thread on this somewhere! tongue.gif Cheer's Wess and Ix'.
Lin Kuei Ominae
Is there a max length for tunnels? (e.g. a tunnel from the upper west corner to the bottom east on a 200x200 map)
Can you add additional "direction numbers" to the strings, if the ones created from finalsun aren't enough to represent the length of your tunnel?
Crash
About time someone added it here. Good job Ix! biggrin.gif
IcySon55
QUOTE (Lin Kuei Ominae @ Dec 17 2007, 05:04 PM) *
Is there a max length for tunnels? (e.g. a tunnel from the upper west corner to the bottom east on a 200x200 map)
Can you add additional "direction numbers" to the strings, if the ones created from finalsun aren't enough to represent the length of your tunnel?

Don't know about a max length, but you can add more numbers indeed. Also create turns using this method as Ixith posted here.
Team Black
this tutorial is obsolete, go HERE for a better one
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.