The International Simutrans Forum

 

Author Topic: Duplicate field value declerations in dat files.  (Read 798 times)

0 Members and 1 Guest are viewing this topic.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2709
  • Languages: EN
Duplicate field value declerations in dat files.
« on: April 22, 2018, 07:53:15 AM »
I am not entirely familiar with the details of how the pakset maker parses the dat files of a pakset. However from what I can tell duplicate field (key) value declarations are treated such that the second declaration value is ignored.

From analysing the dat files I detected the following list of duplicated field value declarations.
Code: [Select]
Field collision detected: file=ways\signals_maglev.dat, entry=1, field=signal_groups, value=7, collision_value=5.
Field collision detected: file=ways\wood-trestle-elevated-road.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=0, field=enables_pax, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=0, field=enables_pax, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=0, field=enables_post, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=1, field=enables_pax, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=1, field=enables_post, value=1, collision_value=1.
Field collision detected: file=trams\caf-urbos-3.dat, entry=3, field=gear, value=80, collision_value=80.
Field collision detected: file=industry\car-factory.dat, entry=7, field=has_snow[0], value=1, collision_value=1.
Field collision detected: file=industry\car-factory.dat, entry=12, field=Image[3], value=car-fields.1.3, collision_value=car-fields-snow.1.3.
Field collision detected: file=industry\car-factory.dat, entry=13, field=Image[3], value=car-fields.0.3, collision_value=car-fields-snow.0.3.
Field collision detected: file=industry\car-factory.dat, entry=14, field=Image[3], value=car-fields.3.0, collision_value=car-fields-snow.3.0.
Field collision detected: file=london-underground\1983-tube-stock.dat, entry=3, field=retire_month, value=9, collision_value=4.
Field collision detected: file=trains\br-156.dat, entry=0, field=gear, value=50, collision_value=50.
Field collision detected: file=goods\goods-128.dat, entry=3, field=speed_bonus, value=18, collision_value=2.
Field collision detected: file=goods\goods-128.dat, entry=6, field=metric, value=paletten, collision_value=tonnen.
Field collision detected: file=goods\goods-128.dat, entry=40, field=to_distance[3], value=160, collision_value=0.
Field collision detected: file=trains\lswr-k10.dat, entry=0, field=EmptyImage[NE][4], value=./images/lswr-k10-austerity.1.3, collision_value=./images/lswr-k10-austerity.1.3.
Field collision detected: file=ways\electrification.dat, entry=1, field=BackImageUp[12], value=./images/tram-wires-back-slope-half-12.0.0, collision_value=./images/tram-wires-back-slope-half-12.0.0.
Field collision detected: file=industry\bakery.dat, entry=1, field=copyright, value=Archon, collision_value=James.
Field collision detected: file=ways\masonry-viaduct-elevated.dat, entry=0, field=maintenance, value=750, collision_value=750.
Field collision detected: file=trains\br-460.dat, entry=0, field=min_loading_time, value=17, collision_value=17.
Field collision detected: file=trains\br-460.dat, entry=0, field=max_loading_time, value=60, collision_value=60.
Field collision detected: file=stations\goods-rail-stations.dat, entry=0, field=intro_year, value=1750, collision_value=1750.
Field collision detected: file=bus\optare-metrorider-long.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav.
Field collision detected: file=ways\signals-narrow.dat, entry=21, field=signal_groups, value=2, collision_value=2.
Field collision detected: file=ways\tunnels.dat, entry=4, field=BackImage[E][0], value=images/channel-tunnel-portal.1.2, collision_value=images/channel-tunnel-portal-snow.1.2.
Field collision detected: file=ways\tunnels.dat, entry=5, field=BackImage[E][0], value=images/channel-tunnel-portal.1.2, collision_value=images/channel-tunnel-portal-snow.1.2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=0, field=backPillar[S][0], value=images/wood-trestle-road.4.3,0,2, collision_value=images/wood-trestle-road.4.5,0,2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=0, field=backPillar[W][0], value=images/wood-trestle-road.4.2,0,2, collision_value=images/wood-trestle-road.4.4,0,2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=2, field=backPillar[S][0], value=images/wood-trestle-road-surfaced.4.3,0,2, collision_value=images/wood-trestle-road-surfaced.4.5,0,2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=2, field=backPillar[W][0], value=images/wood-trestle-road-surfaced.4.2,0,2, collision_value=images/wood-trestle-road-surfaced.4.4,0,2.
Field collision detected: file=ways\masonry-viaduct-road.dat, entry=0, field=pillar_distance, value=1, collision_value=1.
Field collision detected: file=ways\masonry-viaduct-road.dat, entry=0, field=pillar_asymmetric, value=1, collision_value=1.
Field collision detected: file=boats\fifie.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=bus\optare-excel.dat, entry=0, field=sound, value=ff3170-mcw-metrobus.wav, collision_value=video47-optare-tempo.wav.
Field collision detected: file=trams\croydon-variobahn.dat, entry=3, field=gear, value=80, collision_value=80.
Field collision detected: file=ways\concrete-viaduct-elevated-narrow.dat, entry=0, field=max_weight, value=200, collision_value=120.
Field collision detected: file=bus\aec-regal.dat, entry=0, field=sound, value=gareth-bull-leyland-titan-td1.wav, collision_value=gareth-bull-leyland-titan-td1.wav.
Field collision detected: file=boats\sr-n4-mountbatten-mk3.dat, entry=0, field=intro_month, value=3, collision_value=1.
Field collision detected: file=ways\iron-arch-rail.dat, entry=0, field=max_weight, value=520, collision_value=50.
Field collision detected: file=ways\iron-girder-elevated.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=bus\optare-metrorider-short.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav.
Field collision detected: file=bus\optare-excel-2.dat, entry=0, field=sound, value=hkmtrhah-volvo-bm10.wav, collision_value=video47-optare-tempo.wav.
Field collision detected: file=industry\brewery.dat, entry=4, field=copyright, value=James, collision_value=James.
Field collision detected: file=industry\butchery.dat, entry=1, field=copyright, value=Archon, collision_value=James.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=0, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=1, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=2, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=3, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=4, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=5, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=trains\bury-bar-frame-passenger.dat, entry=1, field=copyright, value=Kieron/JamesPetts, collision_value=Kieron/JamesPetts.
Field collision detected: file=london-underground\district-e-stock.dat, entry=3, field=Constraint[Next][9], value=District_E_StockMiddle-first, collision_value=none.
Field collision detected: file=industry\fishing-port.dat, entry=0, field=max_distance_to_consumer, value=50, collision_value=50.
Field collision detected: file=industry\fishing-port.dat, entry=1, field=max_distance_to_consumer, value=250, collision_value=200.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[E][9], value=./images/4wheel-second-covered-b&djr_E.0.0, collision_value=./images/4wheel-second-covered-l&br_E.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[SE][9], value=./images/4wheel-second-covered-b&djr_SE.0.0, collision_value=./images/4wheel-second-covered-l&br_SE.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[S][9], value=./images/4wheel-second-covered-b&djr_S.0.0, collision_value=./images/4wheel-second-covered-l&br_S.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[SW][9], value=./images/4wheel-second-covered-b&djr_SW.0.0, collision_value=./images/4wheel-second-covered-l&br_SW.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[W][9], value=./images/4wheel-second-covered-b&djr_W.0.0, collision_value=./images/4wheel-second-covered-l&br_W.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[NW][9], value=./images/4wheel-second-covered-b&djr_NW.0.0, collision_value=./images/4wheel-second-covered-l&br_NW.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[N][9], value=./images/4wheel-second-covered-b&djr_N.0.0, collision_value=./images/4wheel-second-covered-l&br_N.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=EmptyImage[NE][9], value=./images/4wheel-second-covered-b&djr_NE.0.0, collision_value=./images/4wheel-second-covered-l&br_NE.0.0.
Field collision detected: file=ways\plate-girder.dat, entry=1, field=max_weight, value=140, collision_value=535.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=0, field=cost, value=125000, collision_value=65000.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=0, field=runningcost, value=50, collision_value=10.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=1, field=cost, value=125000, collision_value=65000.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=2, field=cost, value=125000, collision_value=65000.
Field collision detected: file=bus\daf-cf-rigid.dat, entry=0, field=runningcost, value=50, collision_value=10.
Field collision detected: file=trains\wagon-hta.dat, entry=0, field=axle_load, value=26, collision_value=1.
Field collision detected: file=industry\brickworks.dat, entry=0, field=copyright, value=James, collision_value=James.
Field collision detected: file=trains\wagon-tanker-rch.dat, entry=0, field=bidirectional, value=0, collision_value=1.
Field collision detected: file=ways\masonry-viaduct-elevated-narrow.dat, entry=0, field=max_weight, value=60, collision_value=120.
Field collision detected: file=air\dh-91-albatross.dat, entry=1, field=waytype, value=air, collision_value=air.
Field collision detected: file=attractions\knight-monument.dat, entry=0, field=class_proportion[3], value=25, collision_value=30.
Field collision detected: file=industry\oil-refinery.dat, entry=0, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=industry\oil-refinery.dat, entry=1, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=industry\oil-refinery.dat, entry=2, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=industry\oil-refinery.dat, entry=3, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=boats\wooden-hull-dumb-barge.dat, entry=4, field=liverytype[0], value=Private, collision_value=Private.
Field collision detected: file=boats\wooden-hull-dumb-barge.dat, entry=4, field=liverytype[1], value=BW-Standard, collision_value=BW-Standard.
Field collision detected: file=industry\claypit.dat, entry=0, field=copyright, value=James, collision_value=James.
Field collision detected: file=trains\sr-augmentation-trailers.dat, entry=3, field=runningcost, value=36, collision_value=34.
Field collision detected: file=stations\deco-terminal.dat, entry=2, field=intro_year, value=1922, collision_value=3.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=speed, value=20, collision_value=18.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=length, value=3, collision_value=3.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=weight, value=1.2, collision_value=1.6.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=cost, value=101000, collision_value=680000.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=runningcost, value=22, collision_value=7.
Field collision detected: file=trains\lms-hughes.crab.dat, entry=1, field=liverytype[0], value=LMS-Standard, collision_value=LMS-Standard.
Field collision detected: file=trains\lms-hughes.crab.dat, entry=1, field=liverytype[1], value=BR-Early, collision_value=WW2-Austerity.
Field collision detected: file=citybuildings\ind-1930.dat, entry=1, field=intro_year, value=1930, collision_value=1930.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=0, field=topspeed, value=175, collision_value=160.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=0, field=cost, value=570000, collision_value=570000.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=1, field=topspeed, value=200, collision_value=200.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=1, field=cost, value=720000, collision_value=720000.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=2, field=topspeed, value=225, collision_value=225.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=3, field=intro_year, value=1978, collision_value=1978.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=3, field=topspeed, value=320, collision_value=320.
Field collision detected: file=ways\signals.dat, entry=4, field=signal_groups, value=7, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=10, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=11, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=12, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=13, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=14, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=15, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=16, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=41, field=Image[8], value=images/signal-4-aspect-route-indicator-caution.1.2,42,-2, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.2,42,-2.
Field collision detected: file=ways\signals.dat, entry=41, field=Image[9], value=images/signal-4-aspect-route-indicator-caution.1.0,-37,12, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.0,-37,12.
Field collision detected: file=ways\signals.dat, entry=41, field=Image[10], value=images/signal-4-aspect-route-indicator-caution.1.1,-7,-18, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.1,-7,-18.
Field collision detected: file=ways\signals.dat, entry=41, field=Image[11], value=images/signal-4-aspect-route-indicator-caution.1.3,10,27, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.3,10,27.
Field collision detected: file=ways\signals.dat, entry=57, field=Image[8], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.2,42,-2, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.2,42,-2.
Field collision detected: file=ways\signals.dat, entry=57, field=Image[9], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.0,-37,12, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.0,-37,12.
Field collision detected: file=ways\signals.dat, entry=57, field=Image[10], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.1,-7,-18, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.1,-7,-18.
Field collision detected: file=ways\signals.dat, entry=57, field=Image[11], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.3,10,27, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.3,10,27.
Field collision detected: file=ways\signals.dat, entry=59, field=signal_groups, value=2, collision_value=2.
Field collision detected: file=ways\signals.dat, entry=86, field=signal_groups, value=2, collision_value=2.
Field collision detected: file=ways\signals.dat, entry=96, field=allow_underground, value=1, collision_value=1.
Field collision detected: file=gui\gui64\new_menus.dat, entry=3, field=Image[29], value=> menu_buttons.8.6, collision_value=> menu_buttons.7.11.
Field collision detected: file=gui\gui64\new_menus.dat, entry=3, field=Image[32], value=> menu_buttons.7.14, collision_value=> -.
Field collision detected: file=london-underground\district-bcd-stock.dat, entry=3, field=Constraint[Next][9], value=District_E_StockMiddle-first, collision_value=none.
Field collision detected: file=boats\ap1-88.dat, entry=0, field=intro_month, value=3, collision_value=11.
Field collision detected: file=boats\ap1-88.dat, entry=1, field=intro_month, value=3, collision_value=11.
Field collision detected: file=boats\ap1-88.dat, entry=2, field=intro_month, value=3, collision_value=11.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=ImageUp[3][0], value=./images/fishbelly-narrow.4.2, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.2.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=ImageUp[6][0], value=./images/fishbelly-narrow.4.3, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.3.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=ImageUp[9][0], value=./images/fishbelly-narrow.4.0, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.0.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=ImageUp[12][0], value=./images/fishbelly-narrow.4.1, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.1.
Field collision detected: file=boats\sr-n6-winchester.dat, entry=0, field=intro_month, value=6, collision_value=3.
Field collision detected: file=citybuildings\res-1800.dat, entry=0, field=Level, value=2, collision_value=4.
Field collision detected: file=bus\optare-solo.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimagetype[3], value=Moebel, collision_value=beer.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][E], value=images/RMU_boxcars.3.4,0,-3, collision_value=images/RMU_boxcars.3.0,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][SE], value=images/RMU_boxcars.3.5,0,-3, collision_value=images/RMU_boxcars.3.1,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][S], value=images/RMU_boxcars.3.6,0,-3, collision_value=images/RMU_boxcars.3.2,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][SW], value=images/RMU_boxcars.3.7,0,-3, collision_value=images/RMU_boxcars.3.3,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][W], value=images/RMU_boxcars.3.0,0,-3, collision_value=images/RMU_boxcars.3.4,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][NW], value=images/RMU_boxcars.3.1,0,-3, collision_value=images/RMU_boxcars.3.5,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][N], value=images/RMU_boxcars.3.2,0,-3, collision_value=images/RMU_boxcars.3.6,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=FreightImage[3][NE], value=images/RMU_boxcars.3.3,0,-3, collision_value=images/RMU_boxcars.3.7,0,-3.
Field collision detected: file=boats\dogger.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=bus\optare-delta.dat, entry=0, field=sound, value=ff3170-mcw-metrobus.wav, collision_value=hkmtrhah-volvo-bm10.wav.
Field collision detected: file=citybuildings\com-70.dat, entry=0, field=intro_year, value=1960, collision_value=1970.
Field collision detected: file=industry\1750-clothes-shop.dat, entry=1, field=copyright, value=James, collision_value=James.
Field collision detected: file=industry\1750-clothes-shop.dat, entry=2, field=copyright, value=James, collision_value=James.
Field collision detected: file=industry\1750-clothes-shop.dat, entry=3, field=copyright, value=Kieron & WLindley, collision_value=James.
Field collision detected: file=london-underground\district-f-stock.dat, entry=1, field=comfort[0], value=0, collision_value=59.
Field collision detected: file=bus\sentinel-standard.dat, entry=0, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=1, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=2, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=3, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=4, field=way_wear_factor, value=1250, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=5, field=way_wear_factor, value=1250, collision_value=2500.
Field collision detected: file=london-underground\district-klmn-stock.dat, entry=1, field=Constraint[Next][3], value=District_E_StockMiddle, collision_value=District_E_StockMiddle.
Field collision detected: file=london-underground\district-klmn-stock.dat, entry=1, field=Constraint[Next][4], value=District_BCD_StockMiddle, collision_value=District_BCD_StockMiddle.
Field collision detected: file=attractions\nelson-column.dat, entry=0, field=class_proportion[3], value=25, collision_value=30.
Field collision detected: file=london-underground\met-mv-stock.dat, entry=1, field=liverytype[0], value=Metropolitan-Red, collision_value=Metropolitan-Red.
Field collision detected: file=london-underground\met-mv-stock.dat, entry=1, field=liverytype[1], value=LT, collision_value=LT.
Field collision detected: file=trains\lswr-l11.dat, entry=0, field=EmptyImage[NE][4], value=./images/lswr-l11-austerity.1.3, collision_value=./images/lswr-l11-austerity.1.3.
Field collision detected: file=industry\papermill.dat, entry=4, field=level, value=15, collision_value=19.
Field collision detected: file=stations\airport.dat, entry=2, field=needs_ground, value=1, collision_value=1.
I am not sure if some of them serve a mechanical purpose. However many appear to be copy and paste errors. There are even a few consistency errors in there.

Off topic but are field names case sensitive in files? Many vehicles have their "name" field as "Name".
« Last Edit: April 22, 2018, 08:06:43 AM by DrSuperGood »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #1 on: April 22, 2018, 12:55:44 PM »
Thank you for analysing that. May I ask what you did to obtain the warnings? I do not see those warnings when using makeobj.

From what I understand, the field names are not case sensitive.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2709
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #2 on: April 22, 2018, 06:54:48 PM »
Quote
May I ask what you did to obtain the warnings?
They are produced by a Java program which is creating a csv file of part of the data. The parsing is not as comprehensive as make objected but suitable to get values such as costs and names.
Quote
I do not see those warnings when using makeobj.
It does not throw such warnings. When it parses tab files it silently ignores duplicate fields (keys) that it encounters.

Quote
From what I understand, the field names are not case sensitive.
In that case here is an updated list...
Code: [Select]
Field collision detected: file=ways\signals_maglev.dat, entry=1, field=signal_groups, value=7, collision_value=5.
Field collision detected: file=ways\wood-trestle-elevated-road.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=0, field=enables_pax, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=0, field=enables_pax, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=0, field=enables_post, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=1, field=enables_pax, value=1, collision_value=1.
Field collision detected: file=industry\oil-rig.dat, entry=1, field=enables_post, value=1, collision_value=1.
Field collision detected: file=trams\caf-urbos-3.dat, entry=3, field=gear, value=80, collision_value=80.
Field collision detected: file=industry\car-factory.dat, entry=7, field=has_snow[0], value=1, collision_value=1.
Field collision detected: file=industry\car-factory.dat, entry=12, field=image[3], value=car-fields.1.3, collision_value=car-fields-snow.1.3.
Field collision detected: file=industry\car-factory.dat, entry=13, field=image[3], value=car-fields.0.3, collision_value=car-fields-snow.0.3.
Field collision detected: file=industry\car-factory.dat, entry=14, field=image[3], value=car-fields.3.0, collision_value=car-fields-snow.3.0.
Field collision detected: file=london-underground\1983-tube-stock.dat, entry=3, field=retire_month, value=9, collision_value=4.
Field collision detected: file=trains\br-156.dat, entry=0, field=gear, value=50, collision_value=50.
Field collision detected: file=goods\goods-128.dat, entry=3, field=speed_bonus, value=18, collision_value=2.
Field collision detected: file=goods\goods-128.dat, entry=6, field=metric, value=paletten, collision_value=tonnen.
Field collision detected: file=goods\goods-128.dat, entry=40, field=to_distance[3], value=160, collision_value=0.
Field collision detected: file=trains\lswr-k10.dat, entry=0, field=emptyimage[ne][4], value=./images/lswr-k10-austerity.1.3, collision_value=./images/lswr-k10-austerity.1.3.
Field collision detected: file=ways\electrification.dat, entry=1, field=backimageup[12], value=./images/tram-wires-back-slope-half-12.0.0, collision_value=./images/tram-wires-back-slope-half-12.0.0.
Field collision detected: file=industry\bakery.dat, entry=1, field=copyright, value=Archon, collision_value=James.
Field collision detected: file=ways\masonry-viaduct-elevated.dat, entry=0, field=maintenance, value=750, collision_value=750.
Field collision detected: file=trains\br-460.dat, entry=0, field=min_loading_time, value=17, collision_value=17.
Field collision detected: file=trains\br-460.dat, entry=0, field=max_loading_time, value=60, collision_value=60.
Field collision detected: file=stations\goods-rail-stations.dat, entry=0, field=intro_year, value=1750, collision_value=1750.
Field collision detected: file=bus\optare-metrorider-long.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav.
Field collision detected: file=ways\signals-narrow.dat, entry=21, field=signal_groups, value=2, collision_value=2.
Field collision detected: file=ways\tunnels.dat, entry=4, field=backimage[e][0], value=images/channel-tunnel-portal.1.2, collision_value=images/channel-tunnel-portal-snow.1.2.
Field collision detected: file=ways\tunnels.dat, entry=5, field=backimage[e][0], value=images/channel-tunnel-portal.1.2, collision_value=images/channel-tunnel-portal-snow.1.2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=0, field=backpillar[s][0], value=images/wood-trestle-road.4.3,0,2, collision_value=images/wood-trestle-road.4.5,0,2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=0, field=backpillar[w][0], value=images/wood-trestle-road.4.2,0,2, collision_value=images/wood-trestle-road.4.4,0,2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=2, field=backpillar[s][0], value=images/wood-trestle-road-surfaced.4.3,0,2, collision_value=images/wood-trestle-road-surfaced.4.5,0,2.
Field collision detected: file=ways\wood-trestle-road.dat, entry=2, field=backpillar[w][0], value=images/wood-trestle-road-surfaced.4.2,0,2, collision_value=images/wood-trestle-road-surfaced.4.4,0,2.
Field collision detected: file=ways\masonry-viaduct-road.dat, entry=0, field=pillar_distance, value=1, collision_value=1.
Field collision detected: file=ways\masonry-viaduct-road.dat, entry=0, field=pillar_asymmetric, value=1, collision_value=1.
Field collision detected: file=boats\fifie.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=bus\optare-excel.dat, entry=0, field=sound, value=ff3170-mcw-metrobus.wav, collision_value=video47-optare-tempo.wav.
Field collision detected: file=trams\croydon-variobahn.dat, entry=3, field=gear, value=80, collision_value=80.
Field collision detected: file=ways\concrete-viaduct-elevated-narrow.dat, entry=0, field=max_weight, value=200, collision_value=120.
Field collision detected: file=bus\aec-regal.dat, entry=0, field=sound, value=gareth-bull-leyland-titan-td1.wav, collision_value=gareth-bull-leyland-titan-td1.wav.
Field collision detected: file=boats\sr-n4-mountbatten-mk3.dat, entry=0, field=intro_month, value=3, collision_value=1.
Field collision detected: file=ways\iron-arch-rail.dat, entry=0, field=max_weight, value=520, collision_value=50.
Field collision detected: file=ways\iron-girder-elevated.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=bus\optare-metrorider-short.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav.
Field collision detected: file=bus\optare-excel-2.dat, entry=0, field=sound, value=hkmtrhah-volvo-bm10.wav, collision_value=video47-optare-tempo.wav.
Field collision detected: file=industry\brewery.dat, entry=4, field=copyright, value=James, collision_value=James.
Field collision detected: file=industry\butchery.dat, entry=1, field=copyright, value=Archon, collision_value=James.
Field collision detected: file=industry\butchery.dat, entry=3, field=range, value=8, collision_value=18.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=0, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=1, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=2, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=3, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=4, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=bus\sentinel-standard-6t.dat, entry=5, field=way_wear_factor, value=5526, collision_value=11052.
Field collision detected: file=trains\bury-bar-frame-passenger.dat, entry=1, field=copyright, value=Kieron/JamesPetts, collision_value=Kieron/JamesPetts.
Field collision detected: file=london-underground\district-e-stock.dat, entry=3, field=constraint[next][9], value=District_E_StockMiddle-first, collision_value=none.
Field collision detected: file=industry\fishing-port.dat, entry=0, field=max_distance_to_consumer, value=50, collision_value=50.
Field collision detected: file=industry\fishing-port.dat, entry=1, field=max_distance_to_consumer, value=250, collision_value=200.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[e][9], value=./images/4wheel-second-covered-b&djr_E.0.0, collision_value=./images/4wheel-second-covered-l&br_E.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[se][9], value=./images/4wheel-second-covered-b&djr_SE.0.0, collision_value=./images/4wheel-second-covered-l&br_SE.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[s][9], value=./images/4wheel-second-covered-b&djr_S.0.0, collision_value=./images/4wheel-second-covered-l&br_S.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[sw][9], value=./images/4wheel-second-covered-b&djr_SW.0.0, collision_value=./images/4wheel-second-covered-l&br_SW.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[w][9], value=./images/4wheel-second-covered-b&djr_W.0.0, collision_value=./images/4wheel-second-covered-l&br_W.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[nw][9], value=./images/4wheel-second-covered-b&djr_NW.0.0, collision_value=./images/4wheel-second-covered-l&br_NW.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[n][9], value=./images/4wheel-second-covered-b&djr_N.0.0, collision_value=./images/4wheel-second-covered-l&br_N.0.0.
Field collision detected: file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[ne][9], value=./images/4wheel-second-covered-b&djr_NE.0.0, collision_value=./images/4wheel-second-covered-l&br_NE.0.0.
Field collision detected: file=ways\plate-girder.dat, entry=1, field=max_weight, value=140, collision_value=535.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=0, field=cost, value=125000, collision_value=65000.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=0, field=runningcost, value=50, collision_value=10.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=1, field=cost, value=125000, collision_value=65000.
Field collision detected: file=bus\leyland-daf-85-rigid.dat, entry=2, field=cost, value=125000, collision_value=65000.
Field collision detected: file=bus\daf-cf-rigid.dat, entry=0, field=runningcost, value=50, collision_value=10.
Field collision detected: file=trains\wagon-hta.dat, entry=0, field=axle_load, value=26, collision_value=1.
Field collision detected: file=industry\brickworks.dat, entry=0, field=copyright, value=James, collision_value=James.
Field collision detected: file=trains\wagon-tanker-rch.dat, entry=0, field=bidirectional, value=0, collision_value=1.
Field collision detected: file=ways\masonry-viaduct-elevated-narrow.dat, entry=0, field=max_weight, value=60, collision_value=120.
Field collision detected: file=air\dh-91-albatross.dat, entry=1, field=waytype, value=air, collision_value=air.
Field collision detected: file=attractions\knight-monument.dat, entry=0, field=class_proportion[3], value=25, collision_value=30.
Field collision detected: file=industry\oil-refinery.dat, entry=0, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=industry\oil-refinery.dat, entry=1, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=industry\oil-refinery.dat, entry=2, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=industry\oil-refinery.dat, entry=3, field=needs_ground, value=1, collision_value=1.
Field collision detected: file=boats\wooden-hull-dumb-barge.dat, entry=4, field=liverytype[0], value=Private, collision_value=Private.
Field collision detected: file=boats\wooden-hull-dumb-barge.dat, entry=4, field=liverytype[1], value=BW-Standard, collision_value=BW-Standard.
Field collision detected: file=industry\claypit.dat, entry=0, field=copyright, value=James, collision_value=James.
Field collision detected: file=trains\sr-augmentation-trailers.dat, entry=3, field=runningcost, value=36, collision_value=34.
Field collision detected: file=stations\deco-terminal.dat, entry=2, field=intro_year, value=1922, collision_value=3.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=speed, value=20, collision_value=18.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=length, value=3, collision_value=3.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=weight, value=1.2, collision_value=1.6.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=cost, value=101000, collision_value=680000.
Field collision detected: file=trains\stagecoach-rail.dat, entry=0, field=runningcost, value=22, collision_value=7.
Field collision detected: file=trains\lms-hughes.crab.dat, entry=1, field=liverytype[0], value=LMS-Standard, collision_value=LMS-Standard.
Field collision detected: file=trains\lms-hughes.crab.dat, entry=1, field=liverytype[1], value=BR-Early, collision_value=WW2-Austerity.
Field collision detected: file=citybuildings\ind-1930.dat, entry=1, field=intro_year, value=1930, collision_value=1930.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=0, field=topspeed, value=175, collision_value=160.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=0, field=cost, value=570000, collision_value=570000.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=1, field=topspeed, value=200, collision_value=200.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=1, field=cost, value=720000, collision_value=720000.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=2, field=topspeed, value=225, collision_value=225.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=3, field=intro_year, value=1978, collision_value=1978.
Field collision detected: file=ways\concrete-viaduct-elevated.dat, entry=3, field=topspeed, value=320, collision_value=320.
Field collision detected: file=ways\signals.dat, entry=4, field=signal_groups, value=7, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=10, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=11, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=12, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=13, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=14, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=15, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=16, field=signal_groups, value=5, collision_value=5.
Field collision detected: file=ways\signals.dat, entry=41, field=image[8], value=images/signal-4-aspect-route-indicator-caution.1.2,42,-2, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.2,42,-2.
Field collision detected: file=ways\signals.dat, entry=41, field=image[9], value=images/signal-4-aspect-route-indicator-caution.1.0,-37,12, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.0,-37,12.
Field collision detected: file=ways\signals.dat, entry=41, field=image[10], value=images/signal-4-aspect-route-indicator-caution.1.1,-7,-18, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.1,-7,-18.
Field collision detected: file=ways\signals.dat, entry=41, field=image[11], value=images/signal-4-aspect-route-indicator-caution.1.3,10,27, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.3,10,27.
Field collision detected: file=ways\signals.dat, entry=57, field=image[8], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.2,42,-2, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.2,42,-2.
Field collision detected: file=ways\signals.dat, entry=57, field=image[9], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.0,-37,12, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.0,-37,12.
Field collision detected: file=ways\signals.dat, entry=57, field=image[10], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.1,-7,-18, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.1,-7,-18.
Field collision detected: file=ways\signals.dat, entry=57, field=image[11], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.3,10,27, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.3,10,27.
Field collision detected: file=ways\signals.dat, entry=59, field=signal_groups, value=2, collision_value=2.
Field collision detected: file=ways\signals.dat, entry=86, field=signal_groups, value=2, collision_value=2.
Field collision detected: file=ways\signals.dat, entry=96, field=allow_underground, value=1, collision_value=1.
Field collision detected: file=gui\gui64\new_menus.dat, entry=3, field=image[29], value=> menu_buttons.8.6, collision_value=> menu_buttons.7.11.
Field collision detected: file=gui\gui64\new_menus.dat, entry=3, field=image[32], value=> menu_buttons.7.14, collision_value=> -.
Field collision detected: file=london-underground\district-bcd-stock.dat, entry=3, field=constraint[next][9], value=District_E_StockMiddle-first, collision_value=none.
Field collision detected: file=boats\ap1-88.dat, entry=0, field=intro_month, value=3, collision_value=11.
Field collision detected: file=boats\ap1-88.dat, entry=1, field=intro_month, value=3, collision_value=11.
Field collision detected: file=boats\ap1-88.dat, entry=2, field=intro_month, value=3, collision_value=11.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=imageup[3][0], value=./images/fishbelly-narrow.4.2, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.2.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=imageup[6][0], value=./images/fishbelly-narrow.4.3, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.3.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=imageup[9][0], value=./images/fishbelly-narrow.4.0, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.0.
Field collision detected: file=ways\fishbelly-narrow.dat, entry=0, field=imageup[12][0], value=./images/fishbelly-narrow.4.1, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.1.
Field collision detected: file=boats\sr-n6-winchester.dat, entry=0, field=intro_month, value=6, collision_value=3.
Field collision detected: file=citybuildings\res-1800.dat, entry=0, field=level, value=2, collision_value=4.
Field collision detected: file=bus\optare-solo.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimagetype[3], value=Moebel, collision_value=beer.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][e], value=images/RMU_boxcars.3.4,0,-3, collision_value=images/RMU_boxcars.3.0,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][se], value=images/RMU_boxcars.3.5,0,-3, collision_value=images/RMU_boxcars.3.1,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][s], value=images/RMU_boxcars.3.6,0,-3, collision_value=images/RMU_boxcars.3.2,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][sw], value=images/RMU_boxcars.3.7,0,-3, collision_value=images/RMU_boxcars.3.3,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][w], value=images/RMU_boxcars.3.0,0,-3, collision_value=images/RMU_boxcars.3.4,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][nw], value=images/RMU_boxcars.3.1,0,-3, collision_value=images/RMU_boxcars.3.5,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][n], value=images/RMU_boxcars.3.2,0,-3, collision_value=images/RMU_boxcars.3.6,0,-3.
Field collision detected: file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][ne], value=images/RMU_boxcars.3.3,0,-3, collision_value=images/RMU_boxcars.3.7,0,-3.
Field collision detected: file=boats\dogger.dat, entry=0, field=intro_month, value=1, collision_value=1.
Field collision detected: file=bus\optare-delta.dat, entry=0, field=sound, value=ff3170-mcw-metrobus.wav, collision_value=hkmtrhah-volvo-bm10.wav.
Field collision detected: file=citybuildings\com-70.dat, entry=0, field=intro_year, value=1960, collision_value=1970.
Field collision detected: file=industry\1750-clothes-shop.dat, entry=1, field=copyright, value=James, collision_value=James.
Field collision detected: file=industry\1750-clothes-shop.dat, entry=2, field=copyright, value=James, collision_value=James.
Field collision detected: file=industry\1750-clothes-shop.dat, entry=3, field=copyright, value=Kieron & WLindley, collision_value=James.
Field collision detected: file=london-underground\district-f-stock.dat, entry=1, field=comfort[0], value=0, collision_value=59.
Field collision detected: file=bus\sentinel-standard.dat, entry=0, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=1, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=2, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=3, field=way_wear_factor, value=2002, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=4, field=way_wear_factor, value=1250, collision_value=2500.
Field collision detected: file=bus\sentinel-standard.dat, entry=5, field=way_wear_factor, value=1250, collision_value=2500.
Field collision detected: file=london-underground\district-klmn-stock.dat, entry=1, field=constraint[next][3], value=District_E_StockMiddle, collision_value=District_E_StockMiddle.
Field collision detected: file=london-underground\district-klmn-stock.dat, entry=1, field=constraint[next][4], value=District_BCD_StockMiddle, collision_value=District_BCD_StockMiddle.
Field collision detected: file=attractions\nelson-column.dat, entry=0, field=class_proportion[3], value=25, collision_value=30.
Field collision detected: file=london-underground\met-mv-stock.dat, entry=1, field=liverytype[0], value=Metropolitan-Red, collision_value=Metropolitan-Red.
Field collision detected: file=london-underground\met-mv-stock.dat, entry=1, field=liverytype[1], value=LT, collision_value=LT.
Field collision detected: file=trains\lswr-l11.dat, entry=0, field=emptyimage[ne][4], value=./images/lswr-l11-austerity.1.3, collision_value=./images/lswr-l11-austerity.1.3.
Field collision detected: file=industry\papermill.dat, entry=4, field=level, value=15, collision_value=19.
Field collision detected: file=stations\airport.dat, entry=2, field=needs_ground, value=1, collision_value=1.
« Last Edit: April 22, 2018, 07:07:40 PM by DrSuperGood »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #3 on: April 22, 2018, 08:36:57 PM »
Thank you - that is helpful. This Java program sounds useful - are you using this for your interim balancing work?

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2709
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #4 on: April 22, 2018, 09:09:52 PM »
Quote
This Java program sounds useful - are you using this for your interim balancing work?
That is the intended purpose. Just so far all it can do is make a nice spreadsheet of all vehicles.

I guess it saves me having to search through all depots in game as I can sort the list by chronological introduction date.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #5 on: April 22, 2018, 09:14:33 PM »
That is very useful. I might well find this useful for the final balancing in due course, too, so it would be most helpful if you could upload it.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2709
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #6 on: April 22, 2018, 09:19:04 PM »
If you can confirm that all of the above duplicate key value declarations are accidents/redundant I could programmatically remove them all with little effort, in theory at least.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #7 on: April 22, 2018, 09:23:02 PM »
That is most interesting - I have just started dealing with them manually. Removing them automatically would be most useful, at least where the entries are identical. Where they are inconsistent, manual input will be required to choose which ought to be retained. I will push what I have done just now to let you continue with the automatic work.

Thank you for your help with this.

Edit: I have now pushed the work that I have done so far on this.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2709
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #8 on: April 22, 2018, 10:51:06 PM »
I have performed an automatic removal of all duplicate key value declarations from the dat files.

Someone will have to look at "london-underground/district-klmn-stock.dat" Entry 2 (index 1) @line 95 the constraints logic might not be what it is intended to be. A duplicate value was removed but as one can see by the ordering it might not have been intended to be a duplicate, the key might not have been changed accidently.

The following have to be manually resolved because they involve conflicting values. As I was not involved in the creation of these dat files I do not know which is the intended value for the field. Currently the paksets are being built using value. The collision_value is the value specified by the duplicate declaration which is currently ignored.
Code: [Select]
Key value collision detected: {file=goods\goods-128.dat, entry=3, field=speed_bonus, value=18, collision_value=2}
Key value collision detected: {file=goods\goods-128.dat, entry=6, field=metric, value=paletten, collision_value=tonnen}
Key value collision detected: {file=goods\goods-128.dat, entry=40, field=to_distance[3], value=160, collision_value=0}
Key value collision detected: {file=industry\bakery.dat, entry=1, field=copyright, value=Archon, collision_value=James}
Key value collision detected: {file=bus\optare-metrorider-long.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav}
Key value collision detected: {file=ways\tunnels.dat, entry=4, field=backimage[e][0], value=images/channel-tunnel-portal.1.2, collision_value=images/channel-tunnel-portal-snow.1.2}
Key value collision detected: {file=ways\tunnels.dat, entry=5, field=backimage[e][0], value=images/channel-tunnel-portal.1.2, collision_value=images/channel-tunnel-portal-snow.1.2}
Key value collision detected: {file=ways\wood-trestle-road.dat, entry=0, field=backpillar[s][0], value=images/wood-trestle-road.4.3,0,2, collision_value=images/wood-trestle-road.4.5,0,2}
Key value collision detected: {file=ways\wood-trestle-road.dat, entry=0, field=backpillar[w][0], value=images/wood-trestle-road.4.2,0,2, collision_value=images/wood-trestle-road.4.4,0,2}
Key value collision detected: {file=ways\wood-trestle-road.dat, entry=2, field=backpillar[s][0], value=images/wood-trestle-road-surfaced.4.3,0,2, collision_value=images/wood-trestle-road-surfaced.4.5,0,2}
Key value collision detected: {file=ways\wood-trestle-road.dat, entry=2, field=backpillar[w][0], value=images/wood-trestle-road-surfaced.4.2,0,2, collision_value=images/wood-trestle-road-surfaced.4.4,0,2}
Key value collision detected: {file=bus\optare-excel.dat, entry=0, field=sound, value=ff3170-mcw-metrobus.wav, collision_value=video47-optare-tempo.wav}
Key value collision detected: {file=ways\concrete-viaduct-elevated-narrow.dat, entry=0, field=max_weight, value=200, collision_value=120}
Key value collision detected: {file=boats\sr-n4-mountbatten-mk3.dat, entry=0, field=intro_month, value=3, collision_value=1}
Key value collision detected: {file=ways\iron-arch-rail.dat, entry=0, field=max_weight, value=520, collision_value=50}
Key value collision detected: {file=bus\optare-metrorider-short.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav}
Key value collision detected: {file=bus\optare-excel-2.dat, entry=0, field=sound, value=hkmtrhah-volvo-bm10.wav, collision_value=video47-optare-tempo.wav}
Key value collision detected: {file=industry\butchery.dat, entry=1, field=copyright, value=Archon, collision_value=James}
Key value collision detected: {file=industry\butchery.dat, entry=3, field=range, value=8, collision_value=18}
Key value collision detected: {file=bus\sentinel-standard-6t.dat, entry=0, field=way_wear_factor, value=5526, collision_value=11052}
Key value collision detected: {file=bus\sentinel-standard-6t.dat, entry=1, field=way_wear_factor, value=5526, collision_value=11052}
Key value collision detected: {file=bus\sentinel-standard-6t.dat, entry=2, field=way_wear_factor, value=5526, collision_value=11052}
Key value collision detected: {file=bus\sentinel-standard-6t.dat, entry=3, field=way_wear_factor, value=5526, collision_value=11052}
Key value collision detected: {file=bus\sentinel-standard-6t.dat, entry=4, field=way_wear_factor, value=5526, collision_value=11052}
Key value collision detected: {file=bus\sentinel-standard-6t.dat, entry=5, field=way_wear_factor, value=5526, collision_value=11052}
Key value collision detected: {file=london-underground\district-e-stock.dat, entry=3, field=constraint[next][9], value=District_E_StockMiddle-first, collision_value=none}
Key value collision detected: {file=industry\fishing-port.dat, entry=1, field=max_distance_to_consumer, value=250, collision_value=200}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[e][9], value=./images/4wheel-second-covered-b&djr_E.0.0, collision_value=./images/4wheel-second-covered-l&br_E.0.0}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[se][9], value=./images/4wheel-second-covered-b&djr_SE.0.0, collision_value=./images/4wheel-second-covered-l&br_SE.0.0}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[s][9], value=./images/4wheel-second-covered-b&djr_S.0.0, collision_value=./images/4wheel-second-covered-l&br_S.0.0}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[sw][9], value=./images/4wheel-second-covered-b&djr_SW.0.0, collision_value=./images/4wheel-second-covered-l&br_SW.0.0}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[w][9], value=./images/4wheel-second-covered-b&djr_W.0.0, collision_value=./images/4wheel-second-covered-l&br_W.0.0}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[nw][9], value=./images/4wheel-second-covered-b&djr_NW.0.0, collision_value=./images/4wheel-second-covered-l&br_NW.0.0}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[n][9], value=./images/4wheel-second-covered-b&djr_N.0.0, collision_value=./images/4wheel-second-covered-l&br_N.0.0}
Key value collision detected: {file=trains\lmr-4wheel-open-second.dat, entry=0, field=emptyimage[ne][9], value=./images/4wheel-second-covered-b&djr_NE.0.0, collision_value=./images/4wheel-second-covered-l&br_NE.0.0}
Key value collision detected: {file=ways\plate-girder.dat, entry=1, field=max_weight, value=140, collision_value=535}
Key value collision detected: {file=bus\leyland-daf-85-rigid.dat, entry=0, field=cost, value=125000, collision_value=65000}
Key value collision detected: {file=bus\leyland-daf-85-rigid.dat, entry=0, field=runningcost, value=50, collision_value=10}
Key value collision detected: {file=bus\leyland-daf-85-rigid.dat, entry=1, field=cost, value=125000, collision_value=65000}
Key value collision detected: {file=bus\leyland-daf-85-rigid.dat, entry=2, field=cost, value=125000, collision_value=65000}
Key value collision detected: {file=bus\daf-cf-rigid.dat, entry=0, field=runningcost, value=50, collision_value=10}
Key value collision detected: {file=trains\wagon-hta.dat, entry=0, field=axle_load, value=26, collision_value=1}
Key value collision detected: {file=trains\wagon-tanker-rch.dat, entry=0, field=bidirectional, value=0, collision_value=1}
Key value collision detected: {file=ways\masonry-viaduct-elevated-narrow.dat, entry=0, field=max_weight, value=60, collision_value=120}
Key value collision detected: {file=attractions\knight-monument.dat, entry=0, field=class_proportion[3], value=25, collision_value=30}
Key value collision detected: {file=trains\sr-augmentation-trailers.dat, entry=3, field=runningcost, value=36, collision_value=34}
Key value collision detected: {file=stations\deco-terminal.dat, entry=2, field=intro_year, value=1922, collision_value=3}
Key value collision detected: {file=trains\stagecoach-rail.dat, entry=0, field=speed, value=20, collision_value=18}
Key value collision detected: {file=trains\stagecoach-rail.dat, entry=0, field=weight, value=1.2, collision_value=1.6}
Key value collision detected: {file=trains\stagecoach-rail.dat, entry=0, field=cost, value=101000, collision_value=680000}
Key value collision detected: {file=trains\stagecoach-rail.dat, entry=0, field=runningcost, value=22, collision_value=7}
Key value collision detected: {file=trains\lms-hughes.crab.dat, entry=1, field=liverytype[1], value=BR-Early, collision_value=WW2-Austerity}
Key value collision detected: {file=ways\concrete-viaduct-elevated.dat, entry=0, field=topspeed, value=175, collision_value=160}
Key value collision detected: {file=ways\signals.dat, entry=4, field=signal_groups, value=7, collision_value=5}
Key value collision detected: {file=ways\signals.dat, entry=41, field=image[8], value=images/signal-4-aspect-route-indicator-caution.1.2,42,-2, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.2,42,-2}
Key value collision detected: {file=ways\signals.dat, entry=41, field=image[9], value=images/signal-4-aspect-route-indicator-caution.1.0,-37,12, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.0,-37,12}
Key value collision detected: {file=ways\signals.dat, entry=41, field=image[10], value=images/signal-4-aspect-route-indicator-caution.1.1,-7,-18, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.1,-7,-18}
Key value collision detected: {file=ways\signals.dat, entry=41, field=image[11], value=images/signal-4-aspect-route-indicator-caution.1.3,10,27, collision_value=images/signal-4-aspect-route-indicator-preliminary-caution.1.3,10,27}
Key value collision detected: {file=ways\signals.dat, entry=57, field=image[8], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.2,42,-2, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.2,42,-2}
Key value collision detected: {file=ways\signals.dat, entry=57, field=image[9], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.0,-37,12, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.0,-37,12}
Key value collision detected: {file=ways\signals.dat, entry=57, field=image[10], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.1,-7,-18, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.1,-7,-18}
Key value collision detected: {file=ways\signals.dat, entry=57, field=image[11], value=images/signal-tunnel-4-aspect-route-indicator-caution.1.3,10,27, collision_value=images/signal-tunnel-4-aspect-route-indicator-preliminary-caution.1.3,10,27}
Key value collision detected: {file=gui\gui64\new_menus.dat, entry=3, field=image[29], value=> menu_buttons.8.6, collision_value=> menu_buttons.7.11}
Key value collision detected: {file=gui\gui64\new_menus.dat, entry=3, field=image[32], value=> menu_buttons.7.14, collision_value=> -}
Key value collision detected: {file=london-underground\district-bcd-stock.dat, entry=3, field=constraint[next][9], value=District_E_StockMiddle-first, collision_value=none}
Key value collision detected: {file=boats\ap1-88.dat, entry=0, field=intro_month, value=3, collision_value=11}
Key value collision detected: {file=boats\ap1-88.dat, entry=1, field=intro_month, value=3, collision_value=11}
Key value collision detected: {file=boats\ap1-88.dat, entry=2, field=intro_month, value=3, collision_value=11}
Key value collision detected: {file=ways\fishbelly-narrow.dat, entry=0, field=imageup[3][0], value=./images/fishbelly-narrow.4.2, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.2}
Key value collision detected: {file=ways\fishbelly-narrow.dat, entry=0, field=imageup[6][0], value=./images/fishbelly-narrow.4.3, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.3}
Key value collision detected: {file=ways\fishbelly-narrow.dat, entry=0, field=imageup[9][0], value=./images/fishbelly-narrow.4.0, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.0}
Key value collision detected: {file=ways\fishbelly-narrow.dat, entry=0, field=imageup[12][0], value=./images/fishbelly-narrow.4.1, collision_value=./images/wooden_sleeper_steel_rail_narrow-snow.4.1}
Key value collision detected: {file=boats\sr-n6-winchester.dat, entry=0, field=intro_month, value=6, collision_value=3}
Key value collision detected: {file=citybuildings\res-1800.dat, entry=0, field=level, value=2, collision_value=4}
Key value collision detected: {file=bus\optare-solo.dat, entry=0, field=sound, value=video47-optare-tempo.wav, collision_value=the-bloke33-dennis-dart-modern.wav}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimagetype[3], value=Moebel, collision_value=beer}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][e], value=images/RMU_boxcars.3.4,0,-3, collision_value=images/RMU_boxcars.3.0,0,-3}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][se], value=images/RMU_boxcars.3.5,0,-3, collision_value=images/RMU_boxcars.3.1,0,-3}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][s], value=images/RMU_boxcars.3.6,0,-3, collision_value=images/RMU_boxcars.3.2,0,-3}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][sw], value=images/RMU_boxcars.3.7,0,-3, collision_value=images/RMU_boxcars.3.3,0,-3}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][w], value=images/RMU_boxcars.3.0,0,-3, collision_value=images/RMU_boxcars.3.4,0,-3}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][nw], value=images/RMU_boxcars.3.1,0,-3, collision_value=images/RMU_boxcars.3.5,0,-3}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][n], value=images/RMU_boxcars.3.2,0,-3, collision_value=images/RMU_boxcars.3.6,0,-3}
Key value collision detected: {file=maglev\RMU_Boxcars.dat, entry=1, field=freightimage[3][ne], value=images/RMU_boxcars.3.3,0,-3, collision_value=images/RMU_boxcars.3.7,0,-3}
Key value collision detected: {file=bus\optare-delta.dat, entry=0, field=sound, value=ff3170-mcw-metrobus.wav, collision_value=hkmtrhah-volvo-bm10.wav}
Key value collision detected: {file=citybuildings\com-70.dat, entry=0, field=intro_year, value=1960, collision_value=1970}
Key value collision detected: {file=industry\1750-clothes-shop.dat, entry=3, field=copyright, value=Kieron & WLindley, collision_value=James}
Key value collision detected: {file=london-underground\district-f-stock.dat, entry=1, field=comfort[0], value=0, collision_value=59}
Key value collision detected: {file=bus\sentinel-standard.dat, entry=0, field=way_wear_factor, value=2002, collision_value=2500}
Key value collision detected: {file=bus\sentinel-standard.dat, entry=1, field=way_wear_factor, value=2002, collision_value=2500}
Key value collision detected: {file=bus\sentinel-standard.dat, entry=2, field=way_wear_factor, value=2002, collision_value=2500}
Key value collision detected: {file=bus\sentinel-standard.dat, entry=3, field=way_wear_factor, value=2002, collision_value=2500}
Key value collision detected: {file=bus\sentinel-standard.dat, entry=4, field=way_wear_factor, value=1250, collision_value=2500}
Key value collision detected: {file=bus\sentinel-standard.dat, entry=5, field=way_wear_factor, value=1250, collision_value=2500}
Key value collision detected: {file=attractions\nelson-column.dat, entry=0, field=class_proportion[3], value=25, collision_value=30}
Key value collision detected: {file=industry\papermill.dat, entry=4, field=level, value=15, collision_value=19}

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #9 on: April 23, 2018, 12:02:48 AM »
Splendid, thank you: that is helpful. I will have a look at what remains when I have a moment.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #10 on: April 23, 2018, 11:39:17 PM »
I have now incorporated the changes to remove these issues - I should be grateful if you could let me know if these cause any problems.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2709
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #11 on: April 24, 2018, 05:04:57 AM »
Quote
I have now incorporated the changes to remove these issues - I should be grateful if you could let me know if these cause any problems.
As far as I can see you did not commit any such changes to the master branch of the pakset.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #12 on: April 24, 2018, 09:43:56 AM »
My apologies: I forgot to commit the changes. Now done.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2709
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #13 on: April 25, 2018, 10:22:18 AM »
No more field collisions detected. It also looks like quite a few pakset bugs were spotted and fixed in the process. Nice.

Field collision detection warning should really be a feature of the pakset maker. It would help avoid errors like these in the future.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18688
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Duplicate field value declerations in dat files.
« Reply #14 on: April 25, 2018, 11:40:25 AM »
Yes, that would indeed be a useful feature. Thank you for your work on this in any event.