Change request to RW Tools

Help and support forum for Mike Simpson's RW Tools

Moderator: mikesimpson

Change request to RW Tools

Unread postby gkbaldwin » Wed Jun 25, 2014 2:34 pm

Hi Mike;

Today in the asset editor the following Localised display name is included and is changeable. (could the editable name field have cut, paste, copy included as well as freehand?)

<Name d:type="cDeltaString">CSX EMD SD40-2 7723 Clean </Name>
<BrowseInformation>
<iRailVehicleBlueprint-cBrowseRVInformation>
<DisplayName>
<Localisation-cUserLocalisedString>
<English d:type="cDeltaString">CSX EMD SD40-2 7723 Clean</English>
<French d:type="cDeltaString"></French>
<Italian d:type="cDeltaString"></Italian>
<German d:type="cDeltaString"></German>
<Spanish d:type="cDeltaString"></Spanish>
<Dutch d:type="cDeltaString"></Dutch>
<Polish d:type="cDeltaString"></Polish>
<Russian d:type="cDeltaString"></Russian>
<Other/>
<Key d:type="cDeltaString"></Key>
</Localisation-cUserLocalisedString>
</DisplayName>
</iRailVehicleBlueprint-cBrowseRVInformation>
</BrowseInformation>

If changed as example above than all would be sorted and shown by Railroad name in the sim assets listing so one could see all loco types by railroad, which would be nice when updating changing scenarios to add variety types of power. Wagons not so important to sort by road name but, would be there if all was updated to the above format:

Railroad, Manufacture, LocoType, LocoNumber (if present) additional info

This is my suggestion only, one could change this information to any format they wished or leave as originally installed.

Now to my change request.

In addition to the above already present information I have a request of additional changes to occur with the above information shown in the Asset editor in association with the engine .bin file focused on the following areas highlighted:

<EngineType d:type="cDeltaString">Diesel</EngineType>
<EngineName d:type="cDeltaString"> CSX EMD SD40-2 7723 Clean </EngineName>
<LocalisedEngineName>
<Localisation-cUserLocalisedString>
<English d:type="cDeltaString"> CSX EMD SD40-2 7723 Clean </English>
<French d:type="cDeltaString"></French>
<Italian d:type="cDeltaString"></Italian>
<German d:type="cDeltaString"></German>
<Spanish d:type="cDeltaString"></Spanish>
<Dutch d:type="cDeltaString"></Dutch>
<Polish d:type="cDeltaString"></Polish>
<Russian d:type="cDeltaString"></Russian>
<Other/>
<Key d:type="cDeltaString">RS_TXT_SD40_BLACK</Key>
</Localisation-cUserLocalisedString>
</LocalisedEngineName>

If possible, automatically populated the Engine Name Type and the Locolised EngineName and from above Display Name to the highlighted areas (highlighted in green)

Then do an “if then” on Key d:type (highlighted in blue) and if present delete line (not needed).

This change would make all loco(s) if updated with corrected information, show the player loco type correctly in the scenario information line in the TS2014 scenario listing, as many of the repaints don’t change this area and show with incorrect names.

Please let me know if possible.

And, a big thank you *!!thnx!!* **!!bow!!** for building / providing this great set of tools.

Regards, Gerry
gkbaldwin
 
Posts: 227
Joined: Wed Aug 24, 2011 11:02 am

Re: Change request to RW Tools

Unread postby mikesimpson » Wed Jun 25, 2014 4:18 pm

I am not 100% clear on what you require.

1. The Name is not necessarily the same as the Localised name because this is intended
to allow users to enter the name in their own language. However, if what you require is
that if you select the loco name and then go to the menu item to change the name that
it changes both the name and the localised name in English to be identical, then I can
add an extra menu option to do that.

2. If by 'could the editable name field have cut, paste, copy included as well as freehand?'
You mean the box in the menu 'Edit Assets/Change Name', you can already copy the name from
the 'Name' column of the Assets Editor screen (right click on the name field and CTRL-C
to copy the name, open the Change Name box and CTRL-V to paste the name into the box) if
that is what you meant.

3. The EngineType entry should already be filled in? I have never seen one without a Type
entry?

4. I am unsure if the Key line is used at all, perhaps you can advise me on that, but
it would be no problem to clear the entry (make it blank) rather than delete the line
altogether.

Mike
mikesimpson
 
Posts: 364
Joined: Sun Feb 15, 2009 4:49 pm

Re: Change request to RW Tools

Unread postby gkbaldwin » Wed Jun 25, 2014 4:34 pm

mikesimpson wrote:I am not 100% clear on what you require.

1. The Name is not necessarily the same as the Localised name because this is intended
to allow users to enter the name in their own language. However, if what you require is
that if you select the loco name and then go to the menu item to change the name that
it changes both the name and the localised name in English to be identical, then I can
add an extra menu option to do that.

Yes, My primary is English, I assumed it would be the same for any language, but my short coming.

2. If by 'could the editable name field have cut, paste, copy included as well as freehand?'
You mean the box in the menu 'Edit Assets/Change Name', you can already copy the name from
the 'Name' column of the Assets Editor screen (right click on the name field and CTRL-C
to copy the name, open the Change Name box and CTRL-V to paste the name into the box) if
that is what you meant.

Okay great.

3. The EngineType entry should already be filled in? I have never seen one without a Type
entry?

Okay, just thought it should be the same as the display name, sometimes it is not. This goes back to repainted loco(s) where the engine.bin file display name gets changed to the repainted loco name, but not all associated fields get changed as well.

4. I am unsure if the Key line is used at all, perhaps you can advise me on that, but
it would be no problem to clear the entry (make it blank) rather than delete the line
altogether.

I have found that if doing a consist change in the scenario editor, I have found that the sim will default to the key line information if present, if not then uses the localized name (preferred) and can be different then the localized name. That's why I would want it blanked out as you suggested.

Mike
gkbaldwin
 
Posts: 227
Joined: Wed Aug 24, 2011 11:02 am

Re: Change request to RW Tools

Unread postby mikesimpson » Thu Jun 26, 2014 6:10 pm

OK, I will have a look at changing those bits.

P.S. I have just looked at some recent RSC models and as well as Name, they have entries for
<EngineName
and
<LocalisedEngineName>

Any ideas what these are for? Seems odd that they include 4 different places in the file for the Name of the loco, plus another one if the 'Key' entry is shown.

The <EngineType entry is Steam, Diesel or Electric, this can't be changed.

Mike
mikesimpson
 
Posts: 364
Joined: Sun Feb 15, 2009 4:49 pm

Re: Change request to RW Tools

Unread postby gkbaldwin » Fri Jun 27, 2014 10:42 am

*!!thnx!!*

What this basically does is in the .bin file populates\update all field associated with a name change usually done by a repaint.

Gerry
gkbaldwin
 
Posts: 227
Joined: Wed Aug 24, 2011 11:02 am

Re: Change request to RW Tools

Unread postby gkbaldwin » Fri Jun 27, 2014 10:47 am

mikesimpson wrote:OK, I will have a look at changing those bits.

P.S. I have just looked at some recent RSC models and as well as Name, they have entries for
<EngineName Not sure where it is used, but should match the loco name
and
<LocalisedEngineName> This shows up in the scenario list for player loco and is frequently wrong because of not matching the loco name. Basically, this field gets populated into a scenario for each consist loco name information.

Any ideas what these are for? Seems odd that they include 4 different places in the file for the Name of the loco, plus another one if the 'Key' entry is shown. The key entry is really not needed but, is linked with the LocalisedEngineName. I always delete this entry and have had no ill effects.

The <EngineType entry is Steam, Diesel or Electric, this can't be changed. I agree this is category type and should not be changed

Mike
gkbaldwin
 
Posts: 227
Joined: Wed Aug 24, 2011 11:02 am

Re: Change request to RW Tools

Unread postby mikesimpson » Sun Jun 29, 2014 3:18 am

New version v5.0.72 on my site now.

Mike
mikesimpson
 
Posts: 364
Joined: Sun Feb 15, 2009 4:49 pm

Re: Change request to RW Tools

Unread postby gkbaldwin » Sun Jun 29, 2014 1:39 pm

Hi Mike;

Thank you for adding this feature. *!!thnx!!*

However, one step it is not being correctly applied. This being the step where it removes any Key entries for the Loco. It is instead it is adding the new loco name to this variable.

Test file before:

<cEngineBlueprint>
<Name d:type="cDeltaString">EMD GP60M Maersk</Name>
<BrowseInformation>
<iRailVehicleBlueprint-cBrowseRVInformation>
<DisplayName>
<Localisation-cUserLocalisedString>
<English d:type="cDeltaString">EMD GP60M Maersk</English>
<French d:type="cDeltaString">EMD GP60M Maersk</French>
<Italian d:type="cDeltaString">EMD GP60M Maersk</Italian>
<German d:type="cDeltaString">EMD GP60M Maersk</German>
<Spanish d:type="cDeltaString">EMD GP60M Maersk</Spanish>
<Dutch d:type="cDeltaString">EMD GP60M Maersk</Dutch>
<Polish d:type="cDeltaString">EMD GP60M Maersk</Polish>
<Russian d:type="cDeltaString">EMD GP60M Maersk</Russian>
<Other/>
<Key d:type="cDeltaString"></Key>
</Localisation-cUserLocalisedString>
</DisplayName>
</iRailVehicleBlueprint-cBrowseRVInformation>
</BrowseInformation>

<EngineType d:type="cDeltaString">Diesel</EngineType>
<EngineName d:type="cDeltaString">EMD GP60M BNSF</EngineName>
<LocalisedEngineName>
<Localisation-cUserLocalisedString>
<English d:type="cDeltaString"></English>
<French d:type="cDeltaString"></French>
<Italian d:type="cDeltaString"></Italian>
<German d:type="cDeltaString"></German>
<Spanish d:type="cDeltaString"></Spanish>
<Dutch d:type="cDeltaString"></Dutch>
<Polish d:type="cDeltaString"></Polish>
<Russian d:type="cDeltaString"></Russian>
<Other/>
<Key d:type="cDeltaString">This is a test</Key>
</Localisation-cUserLocalisedString>
</LocalisedEngineName>

After update:

<cEngineBlueprint>
<Name d:type="cDeltaString">Maersk EMD GP60M</Name>
<BrowseInformation>
<iRailVehicleBlueprint-cBrowseRVInformation>
<DisplayName>
<Localisation-cUserLocalisedString>
<English d:type="cDeltaString">Maersk EMD GP60M</English>
<French d:type="cDeltaString">Maersk EMD GP60M</French>
<Italian d:type="cDeltaString">Maersk EMD GP60M</Italian>
<German d:type="cDeltaString">Maersk EMD GP60M</German>
<Spanish d:type="cDeltaString">Maersk EMD GP60M</Spanish>
<Dutch d:type="cDeltaString">Maersk EMD GP60M</Dutch>
<Polish d:type="cDeltaString">Maersk EMD GP60M</Polish>
<Russian d:type="cDeltaString">Maersk EMD GP60M</Russian>
<Other/>
<Key d:type="cDeltaString"></Key>
</Localisation-cUserLocalisedString>
</DisplayName>
</iRailVehicleBlueprint-cBrowseRVInformation>
</BrowseInformation>

<EngineType d:type="cDeltaString">Diesel</EngineType>
<EngineName d:type="cDeltaString">Maersk EMD GP60M</EngineName>
<LocalisedEngineName>
<Localisation-cUserLocalisedString>
<English d:type="cDeltaString">Maersk EMD GP60M</English>
<French d:type="cDeltaString"></French>
<Italian d:type="cDeltaString"></Italian>
<German d:type="cDeltaString"></German>
<Spanish d:type="cDeltaString"></Spanish>
<Dutch d:type="cDeltaString"></Dutch>
<Polish d:type="cDeltaString"></Polish>
<Russian d:type="cDeltaString"></Russian>
<Other/>
<Key d:type="cDeltaString">Maersk EMD GP60M</Key>
</Localisation-cUserLocalisedString>
</LocalisedEngineName>

Regards, Gerry
gkbaldwin
 
Posts: 227
Joined: Wed Aug 24, 2011 11:02 am

Re: Change request to RW Tools

Unread postby mikesimpson » Sun Jun 29, 2014 6:00 pm

Sorry about that, my fault, too much rush...

I will fix it now and resubmit it on my site. I know what I did wrong...

Mike
mikesimpson
 
Posts: 364
Joined: Sun Feb 15, 2009 4:49 pm

Re: Change request to RW Tools

Unread postby gkbaldwin » Sun Jun 29, 2014 6:50 pm

Mike;

No problem. Thanks again.

Gerry
gkbaldwin
 
Posts: 227
Joined: Wed Aug 24, 2011 11:02 am


Return to RW Tools

Who is online

Users browsing this forum: No registered users and 1 guest