The International Simutrans Forum

 

Author Topic: Simuconf dupes  (Read 90 times)

0 Members and 1 Guest are viewing this topic.

Offline Freahk

  • Devotee
  • *
  • Posts: 1473
  • Languages: DE, EN
Simuconf dupes
« on: May 02, 2021, 03:04:51 PM »
I just threw a quick and dirty dupe searching script at simuconf.tab and found the following redefinition/overrides of parameters:
      3 intro_month[106][1]
      2 intro_month[107][1]
      2 intro_month[109][2]
      2 intro_month[26][0]
      2 intro_month[55][1]
      2 intro_month[82][4]
      3 intro_year[106][1]
      2 intro_year[107][1]
      2 intro_year[109][2]
      2 intro_year[26][0]
      2 intro_year[55][1]
      3 livery[106][1]
      2 livery[107][1]
      2 livery[109][2]
      2 livery[26][0]
      2 livery[55][1]
      2 livery_scheme[26]
      2 retire_month[26]
      2 retire_year[26]
      2 use_timeline

I don't know the livery system quite well so I am not sure which values are intended and which are not, but reassigning the same variable in simuconf like a potential bug to me.

For reference: The command pipeline I used is
Code: [Select]
cat ./simuconf.tab | perl -n -e '/^ *([^#].*) *=/ && print $1."\n"' | sort | uniq -cdWhich basically means we like cats, ignore comments and lines without any equals and print out the part left from the equals.
Then pick dupes and count the number of occourences.
« Last Edit: May 02, 2021, 03:21:24 PM by Freahk »