Simutrans Forum Archive

The International Simutrans Forum > Requests and Discussion > Extension Requests (Moderator: fagonella) > Topic: Scripts for ways, or anything?
Author
Topic: Scripts for ways, or anything?  (Read 1286 times)
Killua Zaoldyeck
Topic Eraser >.<
Member
*
*
Gender: Male
Posts: 94
Hasn't Customized Profile Yet
Scripts for ways, or anything?
Like City building rules, what about the scripts to control the ways when building them?
Such as building roundabouts (however, this thought is denied) in 2x2 tiles
Like Network Addon Mod for Simcity4, there can be roundabouts (good curves) in 2x2 or 3x3 tiles...
raven
Guest
Re: Scripts for ways, or anything?
the city building rules are followed by road building rules, just honour cityrules.tab with a look.
Killua Zaoldyeck
Topic Eraser >.<
Member
*
*
Gender: Male
Posts: 94
Hasn't Customized Profile Yet
Re: Scripts for ways, or anything?

the city building rules are followed by road building rules, just honour cityrules.tab with a look.
I know that, however, it's too difficult to set independence rules for specific ways...
Timothy
Member
*
*
*
*
*
Gender: Male
Posts: 2163
pak64 - every pixel counts
Re: Scripts for ways, or anything?
I've asked for this before...

http://forum.simutrans.com/index.php/topic,3050.msg21207.html

<< Click here for a list of my Simutrans creations >>
Killua Zaoldyeck
Topic Eraser >.<
Member
*
*
Gender: Male
Posts: 94
Hasn't Customized Profile Yet
Re: Scripts for ways, or anything?
Maybe...
In addition, could we use the "Way Scripts System" to control the position of the vehicles passting by?
Then, we could easily define single way and multi-lane way.
(Left-drive may need 3-lane way at crossroad for left turn...)
We will easily to solve such problem...
http://forum.simutrans.com/index.php/topic,4359.0.html

Howerver, someone may denie my request...
Ooooooooops...
fagonella
live from Bucharest
Board Mod
Member
*
*
*
*
*
*
*
Gender: Male
Posts: 4016
Re: Scripts for ways, or anything?
I have had an idea for quite a long time.

Every vehicle (I mean EVERY: trains, busses, citcars, ships, barges etc...) coud be aligned at the center of the tile in their sources.
Then, each way pak could define how the way is used: if we had the four-lanes system (½ + 1 + 1 + 1 + ½), being the shoulders for sidewalks only, we could have three "useful" lanes, named left, middle, right.
We could set
Code:

left=S,E
middle=-
right=N,W

for current behaviour and
Code:

left=S,E
middle=turn
right=N,W

for using the middle lane as a turning lane, but we could use as well
Code:

left=-
middle=S,E
right=N,W

to make the road vehicles use only middle and right lane, usd together with
Code:

left=N,S,E,W
middle=-
right=-

for the tram track. The latter would produce this:

|   |   |   |
| T | Λ | V |
|   |   |   |

—————
  >
—————
  <
—————
  T
—————
Killua Zaoldyeck
Topic Eraser >.<
Member
*
*
Gender: Male
Posts: 94
Hasn't Customized Profile Yet
Re: Scripts for ways, or anything?
Last Edit: December 19, 2006, 10:20:41 AM by Killua Zaoldyeck
But it seem too difficult to change 2-lane to 3-lane way...
for example, the road before crossroad for left-driving...

* 2-to-3.png (1.58 KB, 384x128 - viewed 26 times.)
Isaac.Eiland-Hall
Benevolent Dictator
Member
*
*
*
Gender: Male
Posts: 6700
Re: Scripts for ways, or anything?
None of this is very likely at all to happen, so it's very most likely just speculation anyway...
Timothy
Member
*
*
*
*
*
Gender: Male
Posts: 2163
pak64 - every pixel counts
Re: Scripts for ways, or anything?
A 3-path per direction/8 direction/specific path system of tiles and wayfinder is something I've been playing with, would solve most of the problems in one (two-way/double track, realistic switches, interesting road layouts, highways etc...), but I doubt such a system could be implemented for Simutrans without significant re-writing ponder

<< Click here for a list of my Simutrans creations >>
Isaac.Eiland-Hall
Benevolent Dictator
Member
*
*
*
Gender: Male
Posts: 6700
Re: Scripts for ways, or anything?
If a scriptable path system is considered, certainly some way of defining a tile like the system used to blend the climate tiles would be cool -- some way of indicating paths on tiles...
prissi
Member
*
*
*
*
*
*
*
*
Gender: Male
Posts: 5135
Re: Scripts for ways, or anything?
The vehicles must sit on the tiles exactly where they are; otherwise this will result in severe drawing errors.
Killua Zaoldyeck
Topic Eraser >.<
Member
*
*
Gender: Male
Posts: 94
Hasn't Customized Profile Yet
Re: Scripts for ways, or anything?

The vehicles must sit on the tiles exactly where they are; otherwise this will result in severe drawing errors.
Well, then we can define the x,y-offset on coordinate for the paths and center the vehicle images...
such as:
N-S
(0.25,1)->(0.25,0)
S-N
(-0.25,0)->(-0.25,1)
middle
(0,0)<->(0,1)
prissi
Member
*
*
*
*
*
*
*
*
Gender: Male
Posts: 5135
Re: Scripts for ways, or anything?
No, if they are drawn at other position, they will be overlapped by scenery (just like overlong vehicles on bridges).
Killua Zaoldyeck
Topic Eraser >.<
Member
*
*
Gender: Male
Posts: 94
Hasn't Customized Profile Yet
Re: Scripts for ways, or anything?

No, if they are drawn at other position, they will be overlapped by scenery (just like overlong vehicles on bridges).

And ,Will anyone change the system of vehicle images in futrue?ponder
skreyola
Skrey (simpak64LinWin)
Member
*
Posts: 21
Re: Scripts for ways, or anything?

Every vehicle (I mean EVERY: trains, busses, citcars, ships, barges etc...) coud be aligned at the center of the tile in their sources.
Then, each way pak could define how the way is used: if we had the four-lanes system (½ + 1 + 1 + 1 + ½), being the shoulders for sidewalks only, we could have three "useful" lanes, named left, middle, right.


I love this idea!  It would make the denied both-lanes-same-way request possible, too.
--Skreyola
  Using PAK 64 Linux Micosoft Windows
kierongreen
Member
*
*
*
Gender: Male
Posts: 1538
kierongreen@msn.com
Re: Scripts for ways, or anything?
Quote
It would make the denied both-lanes-same-way request possible, too.

3 lanes on a tile would have the same problems as both-lanes-same-way...
The International Simutrans Forum > Requests and Discussion > Extension Requests (Moderator: fagonella) > Topic: Scripts for ways, or anything?