The International Simutrans Forum


Author Topic: Speed Limit Signs  (Read 3593 times)

0 Members and 1 Guest are viewing this topic.

Offline Bub

  • *
  • Posts: 51
Speed Limit Signs
« on: January 29, 2011, 11:23:02 PM »
Dear Simutrans team, In pak 64 I am aware that there is a sign stating that there is a minimum speed of 80 km/h, but I would like to see other speed limit numbers. Eg. Speed Limit 25; Speed Limit 45; Speed Limit 70; etc. These new speed limits would prevent a fast car approaching a slow car to come to an abrupt stop. Use of this Idea would be highly appreciated.


Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
Re: Speed Limit Signs
« Reply #1 on: January 30, 2011, 12:06:45 AM »
You can make a roadsign with any minimum speed, it's just a case of graphics and the appropriate settings for the compiled object. See here for some more example road signs:

Offline Bub

  • *
  • Posts: 51
Re: Speed Limit Signs
« Reply #2 on: February 02, 2011, 09:29:17 PM »
Will the cars know what the sign means. I have the "create a sign" button in pak 64, but I try putting signs such as eg. Dead End; No Outlet; Traffic Light Ahead; etc. and the cars on the road don't seem to respond and react to the sign.

Offline Lmallet

  • Devotee
  • *
  • Posts: 727
  • 128 on the brain...
  • Languages: FR, EN
Re: Speed Limit Signs
« Reply #3 on: February 02, 2011, 09:45:24 PM »
I somewhat fear the day when vehicles will be smart enough to read any random sign and know what to do...

Offline Erik

  • *
  • Posts: 219
  • Languages: NL, EN
Re: Speed Limit Signs
« Reply #4 on: February 02, 2011, 10:09:53 PM »
Are you building new signs with the "create a sign" button?
Then I don't know. I have no experience with this button.
(Is this button also available on pak 128 ???)

Or are you making hole new signals with makeobj?
Then it will work only if the used parameters in the .dat file are defined in the source code.
So you can't just typ a (new) parameter and aspect it will work as you think it is.
Here's a page on the wiki about building signals.

A max speed from signals is not defined in the source code.
I'm working on something familiar who could implement this.
But it's progressing really slow.
(The game still don't recognize the new type of signal.)

Offline Bub

  • *
  • Posts: 51
Re: Speed Limit Signs
« Reply #5 on: February 02, 2011, 11:00:03 PM »
    Although I've attempted to download pak 128 many times, all times have tragically a failure.
    Is there a makeobj button on pak 64?

Offline sdog

  • Devotee
  • *
  • Posts: 2039
Re: Speed Limit Signs
« Reply #6 on: February 03, 2011, 03:45:44 AM »
makeobj is a tool, a separate program, used to build pak sets from their source code and image files. There is no makeobj button.

How did your downloads of the pak fail? Was the download aborted, was it not possible to unpack the file, failed simutrans to load with the pak set or something completely different?
Unless you explain what went wrong in more detail noone will be able to help you.

Offline Václav

  • Devotee
  • *
  • Posts: 3304
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Speed Limit Signs
« Reply #7 on: February 03, 2011, 07:05:30 AM »
I looked into source of pak128 ... And I see signs with any minimum speed have order: min_speed=speed.

... I am not only sure with order single_way=1.

This is code of *.dat file for pak128's highway:
Code: [Select]
copyright=Fabio Gonella
#price in credits, not in cents
icon=> autobahn.1.5
#Direction 4 - South only
#Direction 1 - North only
#Direction 2 - West only
#Direction 8 - East only

Makeobj (or PakHelper) will know what will be created - and of course, cars will know meaning of those signs. If you use PakHelper, making for any available graphic set is easier than with only MakeObj, itself. Only you choose size of pak.

Publish your work files (png and dat) and I will give you final product.
« Last Edit: February 03, 2011, 07:15:43 AM by VaclavMacurek »

Offline skreyola

  • *
  • Posts: 337
  • Trivial Troubleshooter
Re: Speed Limit Signs
« Reply #8 on: February 03, 2011, 10:51:45 PM »
I don't think a new sign is needed, since each road type has an implied speed limit sign (vehicles don't go faster than the max speed of the road type). The routefinder simply needs to not use a dirt road when a paved one is available (and might already, if I'm remembering other comments rightly).
Now, I would support the idea (proposed in another thread) of signs that block a road to commercial vehicles.

Offline Bub

  • *
  • Posts: 51
Re: Speed Limit Signs
« Reply #9 on: February 04, 2011, 10:25:54 PM »
Where can I get Makeobj, and how do I set it up in sync with simutrans 102.2.2?

Offline IgorEliezer

  • Devotee
  • Administrator
  • *
  • Posts: 4091
  • Cake recipes are cool... REALLY!
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: Speed Limit Signs
« Reply #10 on: February 04, 2011, 11:15:11 PM »