RouteProperties.xml

Discussion about RailWorks route design.

RouteProperties.xml

Unread postby buzz456 » Tue Oct 06, 2020 2:28 pm

I'm trying to help a member out by modifying the xml by adding some different assets to the list. It is OK to just copy and paste them from one xml to another isn't it? I haven't changed anything but adding assets and pretty careful to make sure and not screw up the syntax.
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20939
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: RouteProperties.xml

Unread postby kris120 » Tue Oct 06, 2020 2:55 pm

I really would do that in the TS editor itself.
On the other hand I never got problems when removing some unnecessary entries.
User avatar
kris120
 
Posts: 470
Joined: Mon Jul 22, 2013 3:19 pm
Location: Augsburg, Bavaria, Germany

Re: RouteProperties.xml

Unread postby JohnS » Tue Oct 06, 2020 3:35 pm

buzz456 wrote:I'm trying to help a member out by modifying the xml by adding some different assets to the list. It is OK to just copy and paste them from one xml to another isn't it? I haven't changed anything but adding assets and pretty careful to make sure and not screw up the syntax.

yes you can but erase the id numbers and just leave the ("") marks. When I'm at my game computer later I can explain better with pictures if need be.
User avatar
JohnS
 
Posts: 1116
Joined: Sun Dec 29, 2013 6:48 am
Location: Portage IN

Re: RouteProperties.xml

Unread postby QcRail » Wed Oct 07, 2020 8:21 am

JohnS wrote:
buzz456 wrote:I'm trying to help a member out by modifying the xml by adding some different assets to the list. It is OK to just copy and paste them from one xml to another isn't it? I haven't changed anything but adding assets and pretty careful to make sure and not screw up the syntax.

yes you can but erase the id numbers and just leave the ("") marks. When I'm at my game computer later I can explain better with pictures if need be.



John is quite right. I've done it numerous time with another twist - re the ID no. I keep the number but alter it by an increament!!!

*** By the way, this prodedure can be applied to any .bin file - whether a scenery object or any rolling stock. The only danger, while you do a cut-paste is to forget to grab a line or two of code; thus «code abc» to «\code abc» must be grabbed inclusively. Since human error is always a possibility, always make a backup of the original .bin file !!*ok*!!
QcRail. aka Bernard Lafargue
QcRail
 
Posts: 472
Joined: Fri Jun 29, 2012 1:17 pm
Location: Montréal, Qc. Canada

Re: RouteProperties.xml

Unread postby buzz456 » Wed Oct 07, 2020 9:52 am

Is there any rule for numbers like must they be ascending or anything like that?
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20939
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: RouteProperties.xml

Unread postby RailWanderer » Wed Oct 07, 2020 10:16 am

Maybe not a rule of sorts, but if you look at how other things are number sequenced within the .xml files, they are mostly based on the hex decimal system and use a base 16, or powers of 16 for the sequencing of the numbers. So, take your first ID number add 16 and you have the next ID number in the sequence. I believe those numbers are called UUIDs.
RailWanderer (John)

He who walks the rails must be conscious of his environment.
User avatar
RailWanderer
 
Posts: 475
Joined: Wed Dec 14, 2016 9:00 am
Location: Ohio

Re: RouteProperties.xml

Unread postby QcRail » Wed Oct 07, 2020 12:55 pm

RailWanderer wrote:Maybe not a rule of sorts, but if you look at how other things are number sequenced within the .xml files, they are mostly based on the hex decimal system and use a base 16, or powers of 16 for the sequencing of the numbers. So, take your first ID number add 16 and you have the next ID number in the sequence. I believe those numbers are called UUIDs.


Yep! that's exactly how I proceed and never had any problems.
QcRail. aka Bernard Lafargue
QcRail
 
Posts: 472
Joined: Fri Jun 29, 2012 1:17 pm
Location: Montréal, Qc. Canada

Re: RouteProperties.xml

Unread postby Chacal » Wed Oct 07, 2020 5:28 pm

They just have to be unique in the blueprint.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6481
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada


Return to Route Design

Who is online

Users browsing this forum: No registered users and 2 guests