Skip to content

Commit ef45489

Browse files
committed
passengers & level cleared up
`passengers` only work with hq, tow, cur & mon. `level` works with any building type, but may only be used by stops/stations, the recommendation seems to be to not use it and set the capacity by hand. Otherwise capacity will be level*32. `level` won't replace `capacity`. `level` is only meant for res, com & ind. It will set passenger and mail generation. It may work with `obj=factory`, though it's better use `pax_level`.
1 parent bd4da39 commit ef45489

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

simutrans_dat.tmLanguage

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
animation_time, animation_time_open, animation_time_closed, axle_load, build_time, capacity, catg, chance, clusters, cost, dims, distributionweight, electricity_amount, electricity_boost, electricity_demand, expand_minimum, expand_probability, expand_range, expand_times, fixed_cost, gear, hq_level, intro_year, level, length, loading_time, mail_boost, mail_demand, maintenance, max_fields, max_height, max_length, max_lenght, max_weight, min_fields, min_speed, offset_left, passengers, passenger_boost, passenger_demand, payload, pax_level, pillar_distance, power, probability_to_spawn, productivity, range, retire_year, runningcost, smokeoffset, smoketile, smokespeed, sound_nr, speed_bonus, start_fields, station_capacity, station_maintenance, station_price, system_type, topspeed, value, weight, weight_per_unit
5151
</string>
5252
<key>match</key>
53-
<string>(^(([mM]ax_[lL]enght)|([lL]evel)|([sS]tation_([cC]apacity|maintenance))|([sS]tation_[pP]rice)|([eE]lectricity_[aA]mount)|[aA](xle_[lL]oad|nimation_[tT]ime(_([oO]pen|[cC]losed))?)|[bB]uild_[tT]ime|[cC](apacity|atg|hance|lusters)|([fF]ixed_|[rR]unning)?[cC]ost|[dD](ims|istribution[wW]eight)|[eE]xpand_([pP]robability|[mM]inimum|[rR]ange|[tT]imes)|([eE]lectricity|[pP]assenger|[mM]ail)_([bB]oost|[dD]emand)|[gG]ear|[hH][qQ]_[lL]evel|([iI]ntro|[rR]etire)_year|[lL](ength|oading_[tT]ime)|[mM](aintenance|ax_([fF]ields|[hH]eight|[lL]ength|[wW]eight)|in_([fF]ields|[sS]peed))|[oO]ffset_[lL]eft|[pP](assengers|ay[lL]oad|ax_[lL]evel|illar_[dD]istance|ower|robability_[tT]o_[sS]pawn|roductivity)|[sS](moke([oO]ffset|[tT]ile|[sS]peed)|peed_[bB]onus|ound_[nN]r|tart_[fF]ields|ystem_[tT]ype)|[rR]ange|[tT]op[sS]peed|[vV]alue|[wW]eight(_per_unit)?))\b([ \t]*=[ \t]*[-]?(\d+)\b)?</string>
53+
<string>(^(([mM]ax_[lL]enght)|([sS]tation_([cC]apacity|maintenance))|([sS]tation_[pP]rice)|([eE]lectricity_[aA]mount)|[aA](xle_[lL]oad|nimation_[tT]ime(_([oO]pen|[cC]losed))?)|[bB]uild_[tT]ime|[cC](apacity|atg|hance|lusters)|([fF]ixed_|[rR]unning)?[cC]ost|[dD](ims|istribution[wW]eight)|[eE]xpand_([pP]robability|[mM]inimum|[rR]ange|[tT]imes)|([eE]lectricity|[pP]assenger|[mM]ail)_([bB]oost|[dD]emand)|[gG]ear|([hH][qQ]_)?[lL]evel|([iI]ntro|[rR]etire)_year|[lL](ength|oading_[tT]ime)|[mM](aintenance|ax_([fF]ields|[hH]eight|[lL]ength|[wW]eight)|in_([fF]ields|[sS]peed))|[oO]ffset_[lL]eft|[pP](assengers|ay[lL]oad|ax_[lL]evel|illar_[dD]istance|ower|robability_[tT]o_[sS]pawn|roductivity)|[sS](moke([oO]ffset|[tT]ile|[sS]peed)|peed_[bB]onus|ound_[nN]r|tart_[fF]ields|ystem_[tT]ype)|[rR]ange|[tT]op[sS]peed|[vV]alue|[wW]eight(_per_unit)?))\b([ \t]*=[ \t]*[-]?(\d+)\b)?</string>
5454
<key>captures</key>
5555
<dict>
5656
<key>1</key>
@@ -64,21 +64,16 @@
6464
<string>invalid.deprecated.parameter.use-max_length.simutrans_dat</string>
6565
</dict>
6666
<key>4</key>
67-
<dict>
68-
<key>name</key>
69-
<string>invalid.deprecated.parameter.use-passengers.simutrans_dat</string>
70-
</dict>
71-
<key>5</key>
7267
<dict>
7368
<key>name</key>
7469
<string>invalid.deprecated.parameter.drop-station_.simutrans_dat</string>
7570
</dict>
76-
<key>7</key>
71+
<key>6</key>
7772
<dict>
7873
<key>name</key>
7974
<string>invalid.deprecated.parameter.use-cost.simutrans_dat</string>
8075
</dict>
81-
<key>8</key>
76+
<key>7</key>
8277
<dict>
8378
<key>name</key>
8479
<string>invalid.deprecated.parameter.use-electricity_demand.simutrans_dat</string>

0 commit comments

Comments
 (0)