The International Simutrans Forum

 

Author Topic: Introduction of new waytypes  (Read 305 times)

0 Members and 1 Guest are viewing this topic.

Offline Phystam jp

  • *
  • Posts: 175
  • Pak256-Ex developer
  • Languages: JP, EN
Introduction of new waytypes
« on: February 05, 2019, 04:36:19 AM »
Hello everyone!

We pak256-ex team are thinking introduction of new waytypes.
1) decoration waytype:
Code: [Select]
waytype=decoration
Among Japanese simutrans players, "building station(stop)s on the way(canal)" is famous way to build various station, like follows:


But I think that canal should be used as canal, and it is inconvenient when using station filter. In order to construct various type of stations or pedestrian way, I would like to introduce a new waytype.

2) narrowgauge tram waytype:
Code: [Select]
waytype=narrowgauge_tram_track
or
waytype=narrowgauge_track
system_type=7
Narrow gauge should be similar to track, but there is some restriction than normal track waytype.
In the early era, narrow gauge track on road existed like this picture:

Currently we could not construct it. If narrowgauge tram waytype exists, it would be more flexible for construction.

How do you think about them?

Offline Vladki cz

  • Devotee
  • *
  • Posts: 2436
    • My addons, mostly roadsigns
  • Languages: EN, CS
Re: Introduction of new waytypes
« Reply #1 on: February 05, 2019, 07:44:35 AM »
For decorations there are already some addons like noise barriers, that use way type track, system type 255. (look for french pak128 addons)

Also you can also make decorative wayobjects which are not providing electricity, like street lamps (pak128.cs)

Narrow gauge tram is not possible but I would like it too. That would need some change in code.


Offline Phystam jp

  • *
  • Posts: 175
  • Pak256-Ex developer
  • Languages: JP, EN
Re: Introduction of new waytypes
« Reply #2 on: February 05, 2019, 09:23:51 AM »
Noise barriers are just a waytype for wayobj -- it is currently unable to use as a way.
What I need are:
1) not connected with other waytype such as track, road and so on;
2) the stop for new waytype acts like an extension of station;
3) can be constracted above existing station.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18050
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Introduction of new waytypes
« Reply #3 on: February 05, 2019, 10:35:04 AM »
Narrow gauge tram track would be a worthwhile addition; I do not have the time to code this myself at present, as there is a very long queue of bugs and balance critical features, but if you would like to code this, do go ahead.

Incidentally, if you are adding new way types, it might be worthwhile considering altering the way in which way types are represented in the code so as to allow arbitrary way types  so that future way types can be added just by changing configuration files rather than changing the code each time.

Narrow gauge tram track was used in the British isles, too: the Birmingham trams were all narrow gauge, and the Manx Electric Railway in the Isle of Man is a narrow gauge electric tramway, albeit one travelling between small towns on that island rather than within a large town as in Birmingham.

Offline ACarlotti

  • *
  • Posts: 299
Re: Introduction of new waytypes
« Reply #4 on: February 05, 2019, 04:01:57 PM »
This sounds like something that wouldn't be out of place in Standard, so I'd suggest checking whether they'd want it. If they do, then you can develop it in a form that they would accept too.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18050
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Introduction of new waytypes
« Reply #5 on: February 05, 2019, 04:36:44 PM »
This sounds like something that wouldn't be out of place in Standard, so I'd suggest checking whether they'd want it. If they do, then you can develop it in a form that they would accept too.

This is probably sensible - I believe that this has been discussed for Standard in the past.

Offline Phystam jp

  • *
  • Posts: 175
  • Pak256-Ex developer
  • Languages: JP, EN
Re: Introduction of new waytypes
« Reply #6 on: February 05, 2019, 05:06:06 PM »
Thank you, probably I can bring the feature of narrowgauge tram to Standard.

Now, maybe I successed to construct narrowgauge on road and make schedules as same as tram_track.


However I cannot load existing save data; I will try to fix it.
--
version increments:
Code: [Select]
EX_VERSION_MINOR 4
EX_SAVE_MINOR 6
MAKEOBJ_VERSION "60.1"

---
now I could open existing file.
I pushed it to https://github.com/Phystam/simutrans-extended/tree/narrowgauge_tram_track.
I prepared pak256-Ex pakset for the test:
https://github.com/Phystam/pak256-release/tree/test_for_narrowgauge_tram_track.
« Last Edit: February 05, 2019, 05:57:02 PM by Phystam »