The International Simutrans Forum

 

Author Topic: 0.100.0, r1973, r1986 : maintenance_building  (Read 2733 times)

0 Members and 1 Guest are viewing this topic.

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
0.100.0, r1973, r1986 : maintenance_building
« on: September 02, 2008, 08:12:21 PM »
testet Windows XP Pro

create a simuconf.tab in [userdir]/simutrans

entries

Code: [Select]
# display (screen/window) width
# also see readme.txt, -screensize option
display_width  = 900

# display (screen/window) height
# also see readme.txt, -screensize option
display_height = 560

the maintenance from player building level 1 and 2 is 200 Cr
level 4 is 400 Cr
« Last Edit: December 14, 2008, 04:34:18 PM by Frank »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10642
  • Languages: De,EN,JP
Re: 0.100.0, r1973, r1986 : maintenance_building
« Reply #1 on: September 02, 2008, 08:44:32 PM »
no bits_per_day entry? This is the usual cause for this ...

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: 0.100.0, r1973, r1986 : maintenance_building
« Reply #2 on: September 03, 2008, 01:14:47 PM »
bits_per_day -> bits_per_month ?

bits_per_month varies for different paksets. A global value for all Paksets is impractical.

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: 0.100.0, r1973, r1986 : maintenance_building
« Reply #3 on: September 04, 2008, 05:22:53 AM »
This will solve the problem.

simmain.cc:285
Quote
   umgebung_t::maint_building = contents.get_int("maintenance_building", 5000);
=>
Quote
   umgebung_t::maint_building = contents.get_int("maintenance_building", umgebung_t::maint_building);

BTW, Default umgebung_t::maint_building is only 500. Is this the right value ?  ???

dataobj/umgebung.cc:66
Quote
sint32 umgebung_t::maint_building = 500;

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: 0.100.0, r1973, r1986 : maintenance_building
« Reply #4 on: September 06, 2008, 06:25:17 PM »
r2002

fix this problem

Thanks