Elvas Tower: Quote in Enginedata for *.con files - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Quote in Enginedata for *.con files Rate Topic: -----

#1 Inactive_brian2000_*

  • Group: Status: Passengers (Obsolete)

Posted 03 November 2012 - 06:04 PM

Some package have Quatation mark(") around Loco names in EngineData keyword for *.con files.

For example,

EngineData ( Dash9 Dash9 ) : This will be correct description.

For some packages, it have Quatation mark(")

EngineData ( "Dash9" "Dash9" )

In this case,
OpenRails set LocoName in "Select locomotive" field to UNKNOWN, and the activities wouldn't work!

---
This unnecessary Quatation mark(") could be considered as error!
Also, it could be considered as normal syntax!

Considering it as normal case will make more packages more compatible to OR!

This post has been edited by brian2000: 03 November 2012 - 06:20 PM


#2 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,352
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 03 November 2012 - 07:18 PM

Hmmm, that's odd because quotation marks are normal (and if there are space characters in the name, necessary). Do you see this problem when running an activity or when doing Explore Route?

p.s. please set your country flag... I like to know how widespread across the world the membership is.

#3 User is offline   captain_bazza 

  • Chairman, Board of Directors
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 13,927
  • Joined: 21-February 06
  • Gender:Male
  • Location:Way, way, way, South
  • Simulator:MSTS & OR
  • Country:

Posted 03 November 2012 - 07:53 PM

Quote

Engine (
UiD ( 0 )
EngineData ( Dash9 Dash9 )


UiD (0) = vehicle number in consist, numbering starts at zero.

The first Dash9 refers to the vehicle's folder name in the Trainset folder,

The second Dash9 refers to the vehicles name, ie Dash9.S (shape file).

Cheers Bazza

#4 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,352
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 03 November 2012 - 09:22 PM

I think you (and Kuju) got it backwards... first one is the .wag file, second is the folder. Why in that order? I think just so we're all Kuju'd again!

#5 User is offline   captain_bazza 

  • Chairman, Board of Directors
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 13,927
  • Joined: 21-February 06
  • Gender:Male
  • Location:Way, way, way, South
  • Simulator:MSTS & OR
  • Country:

Posted 04 November 2012 - 02:05 AM

I wouldn't be surprised, they didn't know their A from their E, most of the time.

Cheers Bazza

#6 User is offline   johnfrum 

  • Conductor
  • Group: Status: Active Member
  • Posts: 350
  • Joined: 23-October 07
  • Gender:Male
  • Country:

Posted 04 November 2012 - 03:47 AM

Guys,

Brian2000 is correct: there is a difference in how MSTS and Open Rails treat quotes in CON and ACT files.

OR does not display rolling stock in consists that include quotes around a foldername or filename that have no spaces. And in the case of an engine with such syntax the engine will not appear in the "Select Locomotive" menu list.

I first noticed this because the consist editor in RouteRiter automatically inserts quotes around BOTH the foldername and filename if either name includes a space. MSTS is tolerant of this error (and it is an error), OR is not.

Although Brian does have a point, I personally lean toward OR requiring proper syntax.


-JF-

#7 User is offline   dforrest 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 977
  • Joined: 12-January 12
  • Gender:Male
  • Location:St. Vincent (formally UK)
  • Simulator:MSTS, Open Rails
  • Country:

Posted 04 November 2012 - 04:23 AM

I guess that this explains why some of my stock is not displaying in OR.

Could the OR developers advise whether this will be changing this or whether the length exercise of making the necessary corrections to MSTS files is necessary?

David

#8 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 04 November 2012 - 05:30 AM

View Postbrian2000, on 03 November 2012 - 06:04 PM, said:

For some packages, it have Quatation mark(")

EngineData ( "Dash9" "Dash9" )

In this case,
OpenRails set LocoName in "Select locomotive" field to UNKNOWN, and the activities wouldn't work!


This appears to be a bug specific to MenuWPF, which has since been removed in favour of planned improvements to Menu.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users