The International Simutrans Forum

PakSets and Customization => Pak128 => Pak128 Bug Reports => Topic started by: uci on February 19, 2018, 12:09:38 PM

Title: Misspelled parameters in DAT files
Post by: uci on February 19, 2018, 12:09:38 PM
I have compiled pak128 and looked at the warnings generated by Makeobj. There are many, most of them harmless. However, some warnings related to misspelled parameters in DAT files might have bad consequences in game.

Here is a summary of warnings which should be eliminated (instructions included).

Code: [Select]
Compiling Pedestrians
Makeobj version 60.0 for Simutrans 120.2 and higher
Warning: BICYCLE_RIDER_0:    Entry "image[ns]=privat-pedestrians_2-128.0.7" ignored (check spelling)
Warning: BICYCLE_RIDER_1:    Entry "image[ns]=privat-pedestrians_2-128.1.7" ignored (check spelling)
Warning: DOG_WALKER_0:    Entry "image[ns]=privat-pedestrians_2-128.2.7" ignored (check spelling)
Warning: DOG_WALKER_1:    Entry "image[ns]=privat-pedestrians_2-128.3.7" ignored (check spelling)
Warning: MOTOBIKER_0:    Entry "image[ns]=privat-pedestrians_3-128.0.7" ignored (check spelling)
Warning: MOTOBIKER_1:    Entry "image[ns]=privat-pedestrians_3-128.1.7" ignored (check spelling)
Warning: MOTOBIKER_2:    Entry "image[ns]=privat-pedestrians_3-128.2.7" ignored (check spelling)
Warning: GROUP_0:    Entry "image[ns]=privat-pedestrians_3-128.3.7" ignored (check spelling)
Warning: GROUP_1:    Entry "image[ns]=privat-pedestrians_3-128.4.7" ignored (check spelling)
Warning: GROUP_2:    Entry "image[ns]=privat-pedestrians_3-128.5.7" ignored (check spelling)
In file
pak128\base\pedestrians\Pedestrians.dat
replace
Image[NS] -> Image[SW]

Code: [Select]
Compiling Trams
Makeobj version 60.0 for Simutrans 120.2 and higher
Warning: T_101:    Entry "constraint[prev][1]=none" ignored (check spelling)
In file
pak128\vehicles\trams\t_101.dat
replace
constraint[next][0]=T_101 -> constraint[prev][0]=T_101

Code: [Select]
Reading object data from pak128-r1926/...
Warning: sound_desc_t::get_sound_id():    sound "engine-start-diesel_0" not found
Warning: sound_desc_t::get_sound_id():    sound "engine-start-diesel_0" not found
Warning: sound_desc_t::get_sound_id():    sound "engine-start-diesel_0" not found
Warning: sound_desc_t::get_sound_id():    sound "engine-start-diesel_0" not found
In files
pak128\vehicles\road-psg+mail\irisbus_magelys_hd.dat
pak128\vehicles\road-psg+mail\irisbus_magelys_hdh.dat
pak128\vehicles\road-psg+mail\man_lions_city.dat
pak128\vehicles\road-psg+mail\man_lions_city_g_front.dat
replace
sound=engine-start-diesel_0 -> sound=engine-start-diesel-0.wav
Title: Re: Misspelled parameters in DAT files
Post by: gauthier on February 20, 2018, 06:21:44 PM
Well, indeed I'm seeing them for a long time but I have never been brave enough to fix them. I will work on them for the next release, thanks for reporting.
Title: Re: Misspelled parameters in DAT files
Post by: uci on February 25, 2018, 07:46:30 PM
More corrections:

In
pak128\pak128.prototype\config\menuconf.tab
replace line
toolbar[0][11]=toolbar[9],31,,NGTOOLS,special.txt
with
toolbar[0][11]=toolbar[9],31,,NARROWGAUGETOOLS,railtools.txt

In
pak128\vehicles\road-cargo\mja-volvof88-128set.dat
replace
Sound=truck.wav -> sound=engine-start-diesel_d.wav

Should I paste these to first post to have them in one place?
Also, are these reports in a format suitable for you?
Title: Re: Misspelled parameters in DAT files
Post by: gauthier on February 26, 2018, 05:14:23 PM
It's okay like that, I will port them to SVN as soon as possible. Thank you very much ;)
Title: Re: Misspelled parameters in DAT files
Post by: gauthier on March 10, 2018, 10:14:18 AM
The warnings you reported are fixed, thank you very much ! I will take a look at other warnings too.