The International Simutrans Forum

PakSets and Customization => Pak128.Britain => Pak128.Britain Bug Reports => Topic started by: jamespetts on March 26, 2010, 12:53:32 pm

Title: [Bug/fix] Monuments
Post by: jamespetts on March 26, 2010, 12:53:32 pm
Two of the monuments (the knight and the war memorial) were not showing in the game. I tracked the problem down to the use of the "-" character in the names, which I replaced with the underscore ("_"). Below are the fixed attractions:

Code: [Select]
Obj=building
name=Knight_Monument
type=mon
intro_year=1700
intro_month=12
build_time=1000
chance=100
p****engers=20
dims=1,1,4
needs_ground=1
BackImage[0][0][0][0][0][0]=images/mon/knight-monument.0.0
BackImage[1][0][0][0][0][0]=images/mon/knight-monument.0.3
BackImage[2][0][0][0][0][0]=images/mon/knight-monument.0.2
BackImage[3][0][0][0][0][0]=images/mon/knight-monument.0.1
BackImage[0][0][0][0][0][1]=images/mon/knight-monument.1.0
BackImage[1][0][0][0][0][1]=images/mon/knight-monument.1.3
BackImage[2][0][0][0][0][1]=images/mon/knight-monument.1.2
BackImage[3][0][0][0][0][1]=images/mon/knight-monument.1.1

Code: [Select]
Obj=building
name=War_Memorial
type=mon
intro_year=1918
intro_month=11
retire_year=1950
retire_month=1
build_time=1000
chance=10
p****engers=20
dims=1,1,4
needs_ground=1
BackImage[0][0][0][0][0][0]=images/mon/war-memorial.0.0
BackImage[1][0][0][0][0][0]=images/mon/war-memorial.0.3
BackImage[2][0][0][0][0][0]=images/mon/war-memorial.0.2
BackImage[3][0][0][0][0][0]=images/mon/war-memorial.0.1
BackImage[0][0][0][0][0][1]=images/mon/war-memorial.1.0
BackImage[1][0][0][0][0][1]=images/mon/war-memorial.1.3
BackImage[2][0][0][0][0][1]=images/mon/war-memorial.1.2
BackImage[3][0][0][0][0][1]=images/mon/war-memorial.1.1

The relevant part of en.tab will need to be updated as follows:

Code: [Select]
Knight_Monument
Monument of a Knight
War_Memorial
War Memorial
Title: Re: [Bug/fix] Monuments
Post by: The Hood on March 26, 2010, 01:36:05 pm
These have always worked for me - what exactly is the problem?  Easy enough to change though.
Title: Re: [Bug/fix] Monuments
Post by: jamespetts on March 26, 2010, 01:39:26 pm
The monuments simply don't appear in the game when the hyphenated form of the name is used. At least, they don't for me...
Title: Re: [Bug/fix] Monuments
Post by: The Hood on March 26, 2010, 02:14:36 pm
Which game and pak version?  Windows I presume, which makes it hard for me to test.  Would be interesting if anyone else is having similar problems.  I'm most definitely not (1.07 and r3055, and indeed have had these monuments in test games for all the time I can remember...)
Title: Re: [Bug/fix] Monuments
Post by: jamespetts on March 26, 2010, 02:31:38 pm
Windows indeed, and the latest binary release. I was using -Experimental, but it's hard to see how that would affect this issue.