Question regarding creating .txt file to be used in Xml

Are you stuck making RailWorks work? Don't be afraid to ask your questions here, we were all beginners once!

Moderator: Moderators

dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Question regarding creating .txt file to be used in Xml

Post by dogmouse »

Hello,

I am going through the create loco tutorial for RW as per their docs, and while creating the simulation blueprint for it, I am tasked to create a simple .txt file (using Windows notepad), and then rename it to a csv file.

I cant though. It wont let me rename it in the xml folder.

I create the file, and save it where it is supposed to go, but when I go to that directory and right click on it, nothing happens. A question mark graphic is displayed next to it.

HERE'S MY QUESTION:

What is the correct encoding to use for a .txt file that I'm supposed to use for the XML folders? ...ANSI? Unicode? :(

Dont know why Im snagged on this otherwise simple task within the tutorial.

...anybody?

thanks
Rich
User avatar
mikesimpson
Very Active Forum Member
Posts: 6361
Joined: Mon Dec 03, 2001 12:00 am
Location: Southern Hemisphere Penal Colonies
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by mikesimpson »

Hi Rich,

I don't know what file you are trying to rename, but if it is in the RailWorks\Source folder and in the Simulation folder for a diesel loco, then the .csv files are just plain text files with the suffix .csv instead of .txt

I do not understand your statement regarding .xml folder? There is no such thing as an xml folder, just xml files which once again are just ordinary text files (but formatted). None of these files are unicode.

If you can't rename the files, it suggests that the security settings of your windows is not allowing this, you can't change files within the Program Files (x86) folder unless you are running as Administrator.

Mike
Mike in OZ - Author of TS-Tools & Route-Riter.
http://www.agenetools.com
I'm not arguing (just explaining why I'm right).
dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by dogmouse »

Thank you, Mike, for responding. Please let me clarify.

Here is the instruction that I am stumbling on:

Creating the Data Graphs

1.Open Notepad and type the following:
0,245
10,245
20,178
30,120
40,89
50,72
60,62
70,53
80,47
90,36
95,33
100,292.
Save this file in the Simulation folder as a .txt file Source\RSadam\HowTo\RailVehicles\Diesel\SimpleEngine\Simulation
3.In the Simulation folder, rename this file TractiveEffortVsSpeed?.csv


...when I right-click on the .txt file within the Source/RSadam.../simulation folder, there is no option to rename or change anything.
Additionally, there is a little graphic of a question mark next to the .txt file I had created.

I have no problem renaming anything else there, within the folder structure. Only the .txt file is giving me trouble.

I hope that makes it more clear of my problem.

sorry bout the xml comment. i was not using correct terminology.

Rich
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Question regarding creating .txt file to be used in Xml

Post by gptech »

Shouldnt the extension be .dcsv ?
If you're seeing a little icon thats a question mark, it could be that you have a program installed that has 'grabbed' the file association for .txt files---what happens if you double click the file?
dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by dogmouse »

The instructions are stated as you see them here; i copied and pasted directly from the tutorial.

Nothing happens if i left click, right click, double click, etc. it is not letting me do anything with it.

I am not able to alter it in any way.
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: Question regarding creating .txt file to be used in Xml

Post by gptech »

I wasn't doubting your ability to copy and paste the instructions, but aren't those documents from RS days, and now the .csv files are .dcsv?

Regardless of what they are, were or should be called its all of no consequence if you cant do anything with them.

Have you followed through from Mikes post and either logged on with Administrative credentials or, better still, moved the game out of the Program Files (x86)folder?
mikesimpson wrote:If you can't rename the files, it suggests that the security settings of your windows is not allowing this, you can't change files within the Program Files (x86) folder unless you are running as Administrator.
Mike
And does your wee question mark look like this?
Image
dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by dogmouse »

Thanks, Gptech! I am very appreciative of your help.

Im REALLY new at this, and I wanted to make sure I was explaining myself.

I didnt know that those instructions are/were for Railsim and not railworks. like i said, im pretty new here.

I do have Admin rights, and RW is installed on my D Drive, so yes, it is not in the (86) folder.

Oh, and no, the question mark does not look like that. it is a RED question mark.

Rich
Trainguy76
Very Active Forum Member
Posts: 2053
Joined: Mon May 25, 2009 3:28 pm
Location: Dreamland, USA.
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by Trainguy76 »

Hi, the question mark in the blueprints is if the BE doesn't recognize the file as a "native" type. ie. It will be your .max file or .blend or .tga, etc.

This, am I right?

Image
The Most Astounding Fact

... .-.-.- - .-.-.- .- .-.-.- -.-- .-.-.-
dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by dogmouse »

Yes, that is correct. It looks like this:

Image


So, are you able to open up notepad, type something, save it as a .txt file, and then see it in a blueprint directory within the asset editor and right click on it to rename it??

no one else has had this problem?
Trainguy76
Very Active Forum Member
Posts: 2053
Joined: Mon May 25, 2009 3:28 pm
Location: Dreamland, USA.
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by Trainguy76 »

Hi,

I think you are doing this incorrectly.

If you want to turn the .txt file into a .csv-

Open the file in WordPad (Comes with Windows)
-Then go to File>Save As
-Rename the file there to myfile.csv
-Make sure the setting that says filters file type is set to "All files".
The Most Astounding Fact

... .-.-.- - .-.-.- .- .-.-.- -.-- .-.-.-
dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by dogmouse »

Thanks Trainguy, for further assistance.

it still isnt working though.

The instruction doesnt say to use Wordpad, but I tried as you suggested. There is no "all files" in the file formatting of it, when saving, however.

If I open up wordpad, jot some numbers in the page, and save as...

these are my only options:

Rich Text Format (RTF)
Office Open XML Document
OpenDocument Text
Text Document
Text Document- MS DOS format
and
Unicode Text Document


Can you do me a favor, please? Can you do what you are suggesting, and put a test wordpad file into a blueprint folder, and then click on it and rename it?

I have notepad
I have Wordpad
I have MS Word

I tried this in notepad, saving with "all files" selected, down in the "save as type" area.

saved as a .txt (as per the tutorial) ....doesnt work
saved as a .csv file in notepad ...doesnt work

this is really frustrating. I just dont see what it is that I am doing wrong ....arrrrrggh.

Rich
Trainguy76
Very Active Forum Member
Posts: 2053
Joined: Mon May 25, 2009 3:28 pm
Location: Dreamland, USA.
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by Trainguy76 »

Well, you can't rename a .csv file in the Blueprint editor.
You will need to rename the file in Windows Explorer (Unless I'm misunderstanding what you meant)

(I accidentally mixed up Wordpad and Notepad, I meant Notepad.)



I don't know what OS you have, but you are unable to get something like this?
(This will save as a .csv)

Image
The Most Astounding Fact

... .-.-.- - .-.-.- .- .-.-.- -.-- .-.-.-
dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by dogmouse »

OMG, it's 4am where you are!!!

thanks again for your time. wow. That is dedication! :wink:

I am running Win 7 64 bit.

OK, I did as you suggested and ....i think it is working :-? :lol:

I am now able to at least right click on it and copy

i'll be back with an update. Thanks so much
djt01
Well Established Forum Member
Posts: 790
Joined: Sun Jul 24, 2005 4:24 am

Re: Question regarding creating .txt file to be used in Xml

Post by djt01 »

dogmouse wrote: i'll be back with an update. Thanks so much

I was wondering when I’d see you pop up in the RailWorks forums, lol, looking forward to seeing some of your work in RailWorks Rich.

By the way if you don’t already have it I recommend grabbing Mr. Simpson’s RW Tools, it is a very useful utility for RailWorks.
dogmouse
Getting the hang of things now
Posts: 73
Joined: Tue Jun 08, 2010 12:43 am
Contact:

Re: Question regarding creating .txt file to be used in Xml

Post by dogmouse »

Yo Dan! :lol:

Just got RW Tools yesterday, as a matter of fact!

This road is long, but Im already getting some good help from some folks in the community here, so I am optimistic.

thanks for the encouraging words. Im looking forward to seeing your work in RW too! :)


Rich
Locked

Return to “[RW] Help for Beginners”