News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Recent posts

#31
Bug Reports / Github Actions - Automated Tes...
Last post by Andarix - March 22, 2024, 08:24:35 AM
Quoterun-tests-linux
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
#32
Pak128 / Re: Pak128 cost balance, speed...
Last post by Andarix - March 22, 2024, 07:42:40 AM
Quote from: obluda on March 21, 2024, 02:38:49 PMI play on stable, true. And I suspect lots of perspective players would play on stable since logic suggest, nightly builds are for devs, stable is for fun.
This is news for me and I fail to grasp what motivation might be to not fix old and known bugs, since keeping them in-game kinda chase new or casual players off. :-|

Bah, nevermind. Since my post generally address problems and mechanics of stable branch, I hope it will help someone to not write game off.



I can understand your disappointment. A new release with all bug fixes is in preparation.

Simutrans is not developed commercially but for leisure purposes. And free time is scarce for many people. Unfortunately, Simutrans has very few active people at any time. People come and go when their private and professional lives no longer leave enough time for Simutrans.

And that's where we come to the pak128. There hasn't been anyone who cares about it for years. Because Simutrans as a program is one thing and the pak128 as a package is another.

And what was said for pak128 also applies to many of the other packages for Simutrans.

Wiki - List of Pakset
#33
Simutrans-Extended bug reports / Re: Crash with new line
Last post by deMangler - March 21, 2024, 04:49:00 PM
Quote from: Ranran(retired) on March 21, 2024, 03:19:09 PMhttps://github.com/Ranran-the-JuicyPork/simutrans-ex-fix/actions/runs/8376773224
You can download the build that matches you from the bottom right of this page.
EDIT:It seems that you need to register and log in to a github account to download the executable file.

If the crash cannot be reproduced using this build, it means the bug fix will be successful.
That fixed it !
:)
#34
Simutrans-Extended bug reports / Re: Crash with new line
Last post by Ranran(retired) - March 21, 2024, 03:19:09 PM
https://github.com/Ranran-the-JuicyPork/simutrans-ex-fix/actions/runs/8376773224
You can download the build that matches you from the bottom right of this page.
EDIT:It seems that you need to register and log in to a github account to download the executable file.

If the crash cannot be reproduced using this build, it means the bug fix will be successful.
#35
An error starting Simutrans after this patch was reported on Discord



I think it will be better if we ship a default font instead of relying on the system font. Not only we will avoid situations like these, we can also guarantee that the first user experience will be a good, unified one, regardless of its system.

Yes, it will come at the cost of a few MBs, but It will be worth it, and nobody cares about a few MBs when games today weight dozens of GB.

____________________________

Tangentially related, in the middle of this being incorporated, OpenTTD also announced they would be switching from bitmap to TrueType fonts. And they made a font from scratch to ship OpenTTD with (unfortunately for European languages only, for now).
#36
Pak128 / Re: Pak128 cost balance, speed...
Last post by obluda - March 21, 2024, 02:38:49 PM
Quote from: TurfIt on March 21, 2024, 02:10:14 PMI suspect you may be caught up in this bug: Bug in speedbonus.tab with air vs air_wt
As the stable release is soo old, it's not fixed there - use a nightly, or the workaround in that post.


I play on stable, true. And I suspect lots of perspective players would play on stable since logic suggest, nightly builds are for devs, stable is for fun.
This is news for me and I fail to grasp what motivation might be to not fix old and known bugs, since keeping them in-game kinda chase new or casual players off. :-|

Bah, nevermind. Since my post generally address problems and mechanics of stable branch, I hope it will help someone to not write game off.


#37
Pak128 / Re: Pak128 cost balance, speed...
Last post by TurfIt - March 21, 2024, 02:10:14 PM
Quote from: obluda on March 20, 2024, 12:53:12 PMBase speed is computed as average speed of vehicle available in class as per timeline. Everytime new vehicle is introduced of obsolete removed from depot shop, base speed is recalculated for whole class - engines, cars, passenger trains, etc.
The above is the 'legacy' calculation used only if speedbonus.tab is missing. Otherwise the values from speedbonus.tab are used which are fixed, not defendant upon available vehicles.


Quote from: obluda on March 20, 2024, 12:53:12 PMSo far, at least for pak128 vehicle profitability has no relation to settings in speedbonus.tab.
...
For example aircrafts are reported as weird and unbalaced.
I suspect you may be caught up in this bug: Bug in speedbonus.tab with air vs air_wt
As the stable release is soo old, it's not fixed there - use a nightly, or the workaround in that post.


Quote from: obluda on March 20, 2024, 12:53:12 PMLetting cargo trains on express track, means flushing premiums on passengers down the drain.
...
Winding tracks forcing deceleration or detours are thing to avoid at all cost, especially with express lines. Terraforming is expensive, but may be considered cheap when compared to missed profits.
For speedbonus purposes, the actual achieved speed is irrelevant, only the achievable speed is taken into account. e.g. If too many wagons are added to the train for the loco to pull at full speed, the reduced max speed is used. Also, if the convoi's speed is limited by a slow speed limit, the tiles reduced limit is proportionately used.  If a convoi is slowed due to traffic congestion, red lights, etc., it still counts as traveling at its max speed in the speedbonus calculation.
#38
Simutrans-Extended bug reports / Re: Crash with new line
Last post by deMangler - March 21, 2024, 11:12:41 AM
I found this thread while wanting to report:
FATAL ERROR: minivec_tpl<T>::[] - index out of bounds: 0 not in 0..-1
Aborting program execution ...

When clicking schedule this happens.
until it is fixed, where can I find the most recent working version?
Thanks.
#39
Simutrans-Extended bug reports / Re: Crash with new line
Last post by tplanner - March 20, 2024, 12:59:05 PM
Many thanks for the update and for all your hard work.
#40
Pak128 / Pak128 cost balance, speedbonu...
Last post by obluda - March 20, 2024, 12:53:12 PM
Hi,
I have struggled with profitability for some time and tried in vain a lot of suggestions of this otherwise excellent forum.
I have read some wild posts on profitability and I have decided to add my two cents.
So far, at least for pak128 vehicle profitability has no relation to settings in speedbonus.tab.
Let me present formula which I have so far deducted from various posts and experiments.
Speedbonus formula is not mine, and I cannot find original poster for the hell of it. If he reads it, please comment for credit.
Speedbonus based on average speed was deducted by many experiments. If there is coder who can correct me, I would be happy.

Now to actual data.

Speed bonus is computed as percentage bonus over base speed of vehicle class.
Say base speed is 100mph. Vehicle sustainable speed is 120mph. Which gives 1,2 (positive) speedbonus factor.
Base income is $0,043 per unit per mile (experimetally deducted, coders may supply more accurate value).
Transport speed premium, (fixed percentage value in goods table) is modified by speedbonus factor
With passenger speed premium 18%, base income is increased by (0,18*1,2), that is $0,043 + $0,009288 = $0,052288 per passenger per mile as long as vehicle moves at top speed whole time.

Vehicle moving with speed 1*(base speed), that is speedbonus factor = 1 or 100% on goods table, has income $(0,043 * 1,18) = $0,05074 per passenger per mile.
Vehicle with speed 2*(base speed) has gross income $(0,043 * 1,36) = $0,05848 per passenger per mile.
Of course, vehicle per mile cost must be substracted from this income

Hope this clears how the gross income is calculated. Remember that while game display values rounded to two decimals, internally it does not round or at very high precision.

Now how to compute base speed, is the trickiest of all if you want to plan investments. Current value is shown on goods table. Select mode of transport, and it will show speed needed for neutral speedbonus factor.
This speed is however changing over time. Base speed is computed as average speed of vehicle available in class as per timeline. Everytime new vehicle is introduced of obsolete removed from depot shop, base speed is recalculated for whole class - engines, cars, passenger trains, etc.

Now to ballancing issues. Above system is in my view good and well ballanced as long as there is knowledge and acceptance among vehicle designers.
For example aircrafts are reported as weird and unbalaced.
It starts OK with props. Then with lots of slow prop planes, Comet gets in with speed high above average. Premiums on Comet served lines skyrocket, until old prop planes gets retired and average speed rises. Then high per mile cost of Comet kicks in and eats away most of profits. Same is true opposite, with introduction of jets and average speed rise, props are almost instantly generating loss even with full cabin.
Next *oh crap* point is Concorde introduction. For some time (1971 - 1975) Concorde is only one profitable plane at all, until high-capacity low-cost planes are available. Even then Concorde generates triple the profit of next best plane.
Both these moments are capable of ruining surprised player within span of year.

I have created spreadsheet calculating above factors to be able to profit, and plan replacement of planes, but as it looks into future, it could be considered cheating. Before you ask, it is not fit for publishing, it is rather mess.

Remember that cost of convoi is calculated per map square crossed, income is from Manhattan distance modified by average speed of transport (loadup time to offload time). Circling above full airport is HUGE premium cut for whole flight.

Next, trains profitability. Passenger trains are same as aircraft, easy to calculate, with added cost of track maintenance. Even so, more profitable than aircraft lines, almost all the time. There are no sharp jumps in average speed so train profitability is much more predictable. With lots of low-speed cargo cars and engines in shop, average speed is kept low and express premiums high :-)
Cargo trains however have low or no speed premium, so building discrete passenger high-speed lines and budget low-speed cargo tracks is a must. Letting cargo trains on express track, means flushing premiums on passengers down the drain. Lowest per-mile cost is most profitable. Cars upgrade is almost always recommended, engine not so much. Calculation of return of investment is a wise man way. Cost of some powerful engines on low-yield cargo lines makes them net zero investment in many years, or never at all.
Winding tracks forcing deceleration or detours are thing to avoid at all cost, especially with express lines. Terraforming is expensive, but may be considered cheap when compared to missed profits.

Road transport.
All above applies, with one important addenum. City speed is limited to 50mph, which make city buses almost non-profitable at certain point. Streetcars are not subject to speed limit have separate average speed, think of it.

Ships.
QEII is one of most profitable vehicles in game, thanks to speed high above average at all times. Terraform to avoid detours and with full cabin it is moneymaker like no other.

Few notes to vehicle designers.
More attention to cost per mile in vehicle design and also careful setting of introduction and retirement date. For example Concorde profit spike can be easily offset by adding more slower but low-cost planes to same era, lowering average speed to profitable levels even for subsonic planes. At the same time, increased price and cost per mile of Concorde would keep return of investmens in line and game balanced.
737's notably, have no retirement date, lowering avg speed and possily unbalancing whole system.
There is no suitable prop plane at later date for low intensity lines where even smallest jets cannot generate profit. Fokker F-27, single prop is actually never profitable due to high cost per mile and jets offseting average speed.
Postal planes are mess until high jet age, with Ju-52 retired in 1955 and F-27 introduced in 1960. Later on there are no low-capacity postal plane at all.
Cargo planes are mostly OK.
Most importantly, introduction of new vehicle (by designer) may totally derail previously fine tuned state. Designers and maintainers should develop some mathematical model to keep vehicle design in some mantinels.

This was rather longer than anticipated, thanks to all who suffered my rants until this point.