BVEStation Forums

BVE => BVE/OpenBVE Support => Topic started by: 8thAvExpress on January 21, 2012, 08:33:57 pm

Title: R40 slant
Post by: 8thAvExpress on January 21, 2012, 08:33:57 pm
Any one knows how to create an exterior for r40 on your own?
Title: Re: R40 slant
Post by: SubwayTrainOperator5 on January 21, 2012, 09:22:41 pm
You can very easily create one using static trains from other routes, just go into the Objects folder for OpenBVE, search for "R40", then get a B3D file and open it up (I will use the files "R40_B.b3d and R40_B2.b3d" as examples, you need them both BTW). You should see image names like "R40_frontb.bmp" listed throughout the file, find all the images listed in both B3D files, then copy both the B3D file and all the images. Now create a folder in your R40 Slant folder called "cars", and paste all of them there. Now, open Notepad, and type this in:

[exterior]

0=cars\R40_B2.b3d
1=cars\R40_B.b3d
2=cars\R40_B2.b3d
3=cars\R40_B.b3d
4=cars\R40_B2.b3d
5=cars\R40_B.b3d
6=cars\R40_B2.b3d
7=cars\R40_B.b3d
8=cars\R40_B2.b3d
9=cars\R40_B.b3d

Save that file into your R40 Slant folder as Extensions.cfg

There you go!  ;)
Title: Re: R40 slant
Post by: 8thAvExpress on January 21, 2012, 09:28:13 pm
Thanks! :D
Title: Re: R40 slant
Post by: Dr. Subway18 on January 26, 2012, 09:00:18 pm
You can very easily create one using static trains from other routes, just go into the Objects folder for OpenBVE, search for "R40", then get a B3D file and open it up (I will use the files "R40_B.b3d and R40_B2.b3d" as examples, you need them both BTW). You should see image names like "R40_frontb.bmp" listed throughout the file, find all the images listed in both B3D files, then copy both the B3D file and all the images. Now create a folder in your R40 Slant folder called "cars", and paste all of them there. Now, open Notepad, and type this in:

[exterior]

0=cars\R40_B2.b3d
1=cars\R40_B.b3d
2=cars\R40_B2.b3d
3=cars\R40_B.b3d
4=cars\R40_B2.b3d
5=cars\R40_B.b3d
6=cars\R40_B2.b3d
7=cars\R40_B.b3d
8=cars\R40_B2.b3d
9=cars\R40_B.b3d

Save that file into your R40 Slant folder as Extensions.cfg

There you go!  ;)
Hey i fixed mines awhile back but i was wondering does anyone else have the turning problems? the car slides sideways like the R160. Since your veteran i figured you saw this problem too and might have a fix
Title: Re: R40 slant
Post by: SubwayTrainOperator5 on January 26, 2012, 09:03:29 pm
You can very easily create one using static trains from other routes, just go into the Objects folder for OpenBVE, search for "R40", then get a B3D file and open it up (I will use the files "R40_B.b3d and R40_B2.b3d" as examples, you need them both BTW). You should see image names like "R40_frontb.bmp" listed throughout the file, find all the images listed in both B3D files, then copy both the B3D file and all the images. Now create a folder in your R40 Slant folder called "cars", and paste all of them there. Now, open Notepad, and type this in:

[exterior]

0=cars\R40_B2.b3d
1=cars\R40_B.b3d
2=cars\R40_B2.b3d
3=cars\R40_B.b3d
4=cars\R40_B2.b3d
5=cars\R40_B.b3d
6=cars\R40_B2.b3d
7=cars\R40_B.b3d
8=cars\R40_B2.b3d
9=cars\R40_B.b3d

Save that file into your R40 Slant folder as Extensions.cfg

There you go!  ;)
Hey i fixed mines awhile back but i was wondering does anyone else have the turning problems? the car slides sideways like the R160. Since your veteran i figured you saw this problem too and might have a fix

I do not know how to to fix that, try asking Gong Gahou, since he is the one that made the R33WF turn properly, he might be able to do the same thing for the R40
Title: Re: R40 slant
Post by: Dr. Subway18 on January 26, 2012, 09:05:56 pm
I will eventually, the main thing is it drives straight lol. but i appreciate the info.
Title: Re: R40 slant
Post by: Gong Gahou on January 27, 2012, 11:41:47 am
No need to contact me - I already worked on it. It's all in the coding.  ;)

First, open the R40_B.b3d with Notepad. Go to the bottom of the page and insert this code:
Code: [Select]
TranslateAll 0,0,9.2375
Next, copy this code below. Then open the extensions.cfg, delete everything that's on there, and paste the new code.
Code: [Select]
[Car0]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car1]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car2]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car3]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car4]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car5]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car6]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car7]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car8]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car9]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

After that, open the train.dat with Notepad, locate the Car section (written as #CAR), go to the fifth line of that section, and replace whatever the value is over there to 18.475.

Finally, delete the R40_B2.b3d in your cars folder. It is not needed anymore.

That's it! Open openBVE and test it out. If you did everything correctly then the cars will turn perfectly.  :)
Title: Re: R40 slant
Post by: Dr. Subway18 on January 27, 2012, 05:48:50 pm
No need to contact me - I already worked on it. It's all in the coding.  ;)

First, open the R40_B.b3d with Notepad. Go to the bottom of the page and insert this code:
Code: [Select]
TranslateAll 0,0,9.2375
Next, copy this code below. Then open the extensions.cfg, delete everything that's on there, and paste the new code.
Code: [Select]
[Car0]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car1]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car2]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car3]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car4]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car5]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car6]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car7]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car8]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car9]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

After that, open the train.dat with Notepad, locate the Car section (written as #CAR), go to the fifth line of that section, and replace whatever the value is over there to 18.475.

Finally, delete the R40_B2.b3d in your cars folder. It is not needed anymore.

That's it! Open openBVE and test it out. If you did everything correctly then the cars will turn perfectly.  :)
I fixed it!!!!! thank you X10,
Title: Re: R40 slant
Post by: ErrorMacro11 on January 28, 2012, 09:31:53 pm
what do i open the b3d files with
Title: Re: R40 slant
Post by: Pacific385 on January 28, 2012, 09:41:58 pm
what do i open the b3d files with
Wordpad will do
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 05:01:08 pm
No need to contact me - I already worked on it. It's all in the coding.  ;)

First, open the R40_B.b3d with Notepad. Go to the bottom of the page and insert this code:
Code: [Select]
TranslateAll 0,0,9.2375
Next, copy this code below. Then open the extensions.cfg, delete everything that's on there, and paste the new code.
Code: [Select]
[Car0]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car1]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car2]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car3]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car4]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car5]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car6]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car7]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car8]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car9]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

After that, open the train.dat with Notepad, locate the Car section (written as #CAR), go to the fifth line of that section, and replace whatever the value is over there to 18.475.

Finally, delete the R40_B2.b3d in your cars folder. It is not needed anymore.

That's it! Open openBVE and test it out. If you did everything correctly then the cars will turn perfectly.  :)
ok i have a R40 with interiors and exteriors, will this work with it also? because all im getting now is a flat traincar.
Title: Re: R40 slant
Post by: SubwayTrainOperator5 on February 26, 2012, 05:37:02 pm
No need to contact me - I already worked on it. It's all in the coding.  ;)

First, open the R40_B.b3d with Notepad. Go to the bottom of the page and insert this code:
Code: [Select]
TranslateAll 0,0,9.2375
Next, copy this code below. Then open the extensions.cfg, delete everything that's on there, and paste the new code.
Code: [Select]
[Car0]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car1]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car2]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car3]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car4]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car5]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car6]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car7]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

[Car8]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = True

[Car9]
Object = cars\R40_B.b3d
Length = 18.475
Reversed = False

After that, open the train.dat with Notepad, locate the Car section (written as #CAR), go to the fifth line of that section, and replace whatever the value is over there to 18.475.

Finally, delete the R40_B2.b3d in your cars folder. It is not needed anymore.

That's it! Open openBVE and test it out. If you did everything correctly then the cars will turn perfectly.  :)
ok i have a R40 with interiors and exteriors, will this work with it also? because all im getting now is a flat traincar.

It should work with any OpenBVE train
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 05:39:33 pm
open when i replace the extensions.cfg, file nothing comes up.
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 05:43:28 pm
What is the exact name of your R40 with the exterior and interior? Did you input that into the extensions.cfg file?
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 05:45:02 pm
What is the exact name of your R40 with the exterior and interior? Did you input that into the extensions.cfg file?
well yeah i put it in that file via notepad and what do you mean by name?
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 05:51:49 pm
The name that was assigned to that b3d file. For example, you know how before you had the R40_B.b3d file? The name of the .b3d file is "R40_B".
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 05:54:36 pm
The name that was assigned to that b3d file. For example, you know how before you had the R40_B.b3d file? The name of the .b3d file is "R40_B".
   here         [exterior]
0 = exterior\R40FrontwardAnimated.Animated
1 = exterior\R40BackwardAnimated.Animated
2 = exterior\R40FrontwardAnimated.Animated
3 = exterior\R40BackwardAnimated.Animated
4 = exterior\R40FrontwardAnimated.Animated
5 = exterior\R40BackwardAnimated.Animated
6 = exterior\R40FrontwardAnimated.Animated
7 = exterior\R40BackwardAnimated.Animated
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 06:09:24 pm
Hmm, so you're dealing with .animated files. This could be tricky.
Could you post a snapshot of your train folder?


Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 06:20:14 pm
Hmm, so you're dealing with .animated files. This could be tricky.
Could you post a snapshot of your train folder?
like this?
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 06:23:28 pm
Yep. Also, please show me a snapshot of the folder "R40 Slant".
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 06:33:04 pm
alright this is the base folder for the R40
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 06:39:13 pm
Now I have some questions.

1) Is what you wrote below the current extensions.cfg?
[exterior]
0 = exterior\R40FrontwardAnimated.Animated
1 = exterior\R40BackwardAnimated.Animated
2 = exterior\R40FrontwardAnimated.Animated
3 = exterior\R40BackwardAnimated.Animated
4 = exterior\R40FrontwardAnimated.Animated
5 = exterior\R40BackwardAnimated.Animated
6 = exterior\R40FrontwardAnimated.Animated
7 = exterior\R40BackwardAnimated.Animated

2) Was this the extension.cfg that was present when openBVE didn't display any trains?
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 06:43:57 pm
Now I have some questions.

1) Is what you wrote below the current extensions.cfg?
[exterior]
0 = exterior\R40FrontwardAnimated.Animated
1 = exterior\R40BackwardAnimated.Animated
2 = exterior\R40FrontwardAnimated.Animated
3 = exterior\R40BackwardAnimated.Animated
4 = exterior\R40FrontwardAnimated.Animated
5 = exterior\R40BackwardAnimated.Animated
6 = exterior\R40FrontwardAnimated.Animated
7 = exterior\R40BackwardAnimated.Animated

2) Was this the extension.cfg that was present when openBVE didn't display any trains?
um yeah thats my current, but that was the default"unedited", it displays beautiful but turns horrible
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 07:03:38 pm
Ah, I had a feeling it did. This was the one information you didn't mention before that explains everything.  :)

As you said, it "displays beautiful but turns horrible". One thing you should keep in mind about most train objects in BVEStation is that they are not centered. They are built negatively for a reason related to BVE, and so that's why you see them turning the wrong way in openBVE. Objects must be centered for them to turn properly in openBVE.

Here's what I want you to do:
1) Keep that default, unedited extensions.cfg file. There is nothing wrong with it, and you do not need to change anything.
2) Go open both "R40Frontward" and "R40Backward" (I believe those are the .b3d/.csv files), go to the bottom of the page, and insert this same code I wanted you to insert on the R40_B:
Code: [Select]
TranslateAll 0,0,9.23753) Make sure the fifth line of the Car section in the train.dat is also 18.475.

Let me know if that fixed your problem with the turns.
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 07:34:31 pm
ALRIGHT YOU ARE THE MAN!!!  ;D. but.... the doors arent in the right spot, do i add the code to the door file as well?
Title: Re: R40 slant
Post by: Pacific385 on February 26, 2012, 07:36:48 pm
ALRIGHT YOU ARE THE MAN!!!  ;D. but.... the doors arent in the right spot, do i add the code to the door file as well?
Correct
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 07:42:48 pm
Glad to hear that it worked.  :)

Oh right, the doors. I'm not so sure if pasting the same code works. Try it out and see if that brings the doors to its proper places.
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 07:47:59 pm
Glad to hear that it worked.  :)

Oh right, the doors. I'm not so sure if pasting the same code works. Try it out and see if that brings the doors to its proper places.
nah it didn't work just flattened the train to flat rectangle blocks
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 07:56:02 pm
this is the problem---- what it looks like in game...
Title: Re: R40 slant
Post by: Gong Gahou on February 26, 2012, 08:16:34 pm
Yep, I've dealt with something like this when I was working on the rollsigns on Dj Hammer's TOMC. This needs some further investigation with the animated files and the object files themselves. You could either send the entire "exterior" folder to Pacific385 (who has more experience with animated files than I do) or me (but it will take days or even weeks because of college, and it's possible I might not be able to fix it).
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 08:27:12 pm
Yep, I've dealt with something like this when I was working on the rollsigns on Dj Hammer's TOMC. This needs some further investigation with the animated files and the object files themselves. You could either send the entire "exterior" folder to Pacific385 (who has more experience with animated files than I do) or me (but it will take days or even weeks because of college, and it's possible I might not be able to fix it).
      >:( college, work other things??? ugh lol im jp i fixed it, i recoded the doors from scratch and ive just about have them centered.... but thanks  ;D ;D ;D. AND i do appreciate the fact that you offered to take the time to fix my doors.  IF ANYBODY WANTS THE INTERIOR/EXTERIOR PM me with your email and ask; then ill email you guys the exterior file with the corrections (i have permission from the creator)

All credit for the fix goes to Gong Gahou  ;D
 
Title: Re: R40 slant
Post by: Train man on February 26, 2012, 10:03:09 pm
I wouldn't mind having the r40 interior/exterior.  ;)
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 11:25:59 pm
DO NOT post here if you want the R40 interior and exterior; PM me because posting here only takes up space and it will eventually aggervate me. Ill send you the files required to convert it and instructions via email.
Title: Re: R40 slant
Post by: Allyn65 on February 26, 2012, 11:28:25 pm
thank for train
Title: Re: R40 slant
Post by: Dr. Subway18 on February 26, 2012, 11:30:55 pm
thank for train
your welcome
Title: Re: R40 slant
Post by: 555555 on June 23, 2012, 02:35:16 pm
You can very easily create one using static trains from other routes, just go into the Objects folder for OpenBVE, search for "R40", then get a B3D file and open it up (I will use the files "R40_B.b3d and R40_B2.b3d" as examples, you need them both BTW). You should see image names like "R40_frontb.bmp" listed throughout the file, find all the images listed in both B3D files, then copy both the B3D file and all the images. Now create a folder in your R40 Slant folder called "cars", and paste all of them there. Now, open Notepad, and type this in:

[exterior]

0=cars\R40_B2.b3d
1=cars\R40_B.b3d
2=cars\R40_B2.b3d
3=cars\R40_B.b3d
4=cars\R40_B2.b3d
5=cars\R40_B.b3d
6=cars\R40_B2.b3d
7=cars\R40_B.b3d
8=cars\R40_B2.b3d
9=cars\R40_B.b3d

Save that file into your R40 Slant folder as Extensions.cfg

There you go!  ;)
I Need A Download Link For The .b3d Files  >:(
                                   -55555
Title: Re: R40 slant
Post by: Fan Railer on June 23, 2012, 11:41:25 pm
You can very easily create one using static trains from other routes, just go into the Objects folder for OpenBVE, search for "R40", then get a B3D file and open it up (I will use the files "R40_B.b3d and R40_B2.b3d" as examples, you need them both BTW). You should see image names like "R40_frontb.bmp" listed throughout the file, find all the images listed in both B3D files, then copy both the B3D file and all the images. Now create a folder in your R40 Slant folder called "cars", and paste all of them there. Now, open Notepad, and type this in:

[exterior]

0=cars\R40_B2.b3d
1=cars\R40_B.b3d
2=cars\R40_B2.b3d
3=cars\R40_B.b3d
4=cars\R40_B2.b3d
5=cars\R40_B.b3d
6=cars\R40_B2.b3d
7=cars\R40_B.b3d
8=cars\R40_B2.b3d
9=cars\R40_B.b3d

Save that file into your R40 Slant folder as Extensions.cfg

There you go!  ;)
I Need A Download Link For The .b3d Files  >:(
                                   -55555

The R40 slant files are in one of the object folders for the existing routes that are available for download at this site. Just do some file searching on your hard drive and you'll find it eventually.
Title: Re: R40 slant
Post by: 555555 on June 24, 2012, 11:05:45 am
You can very easily create one using static trains from other routes, just go into the Objects folder for OpenBVE, search for "R40", then get a B3D file and open it up (I will use the files "R40_B.b3d and R40_B2.b3d" as examples, you need them both BTW). You should see image names like "R40_frontb.bmp" listed throughout the file, find all the images listed in both B3D files, then copy both the B3D file and all the images. Now create a folder in your R40 Slant folder called "cars", and paste all of them there. Now, open Notepad, and type this in:

[exterior]

0=cars\R40_B2.b3d
1=cars\R40_B.b3d
2=cars\R40_B2.b3d
3=cars\R40_B.b3d
4=cars\R40_B2.b3d
5=cars\R40_B.b3d
6=cars\R40_B2.b3d
7=cars\R40_B.b3d
8=cars\R40_B2.b3d
9=cars\R40_B.b3d

Save that file into your R40 Slant folder as Extensions.cfg

There you go!  ;)
I Need A Download Link For The .b3d Files  >:(
                                   -55555
 
The R40 slant files are in one of the object folders for the existing routes that are available for download at this site. Just do some file searching on your hard drive and you'll find it eventually.
What Route Is It
            -55555
Title: Re: R40 slant
Post by: Fan Railer on June 28, 2012, 08:55:36 pm
You can very easily create one using static trains from other routes, just go into the Objects folder for OpenBVE, search for "R40", then get a B3D file and open it up (I will use the files "R40_B.b3d and R40_B2.b3d" as examples, you need them both BTW). You should see image names like "R40_frontb.bmp" listed throughout the file, find all the images listed in both B3D files, then copy both the B3D file and all the images. Now create a folder in your R40 Slant folder called "cars", and paste all of them there. Now, open Notepad, and type this in:

[exterior]

0=cars\R40_B2.b3d
1=cars\R40_B.b3d
2=cars\R40_B2.b3d
3=cars\R40_B.b3d
4=cars\R40_B2.b3d
5=cars\R40_B.b3d
6=cars\R40_B2.b3d
7=cars\R40_B.b3d
8=cars\R40_B2.b3d
9=cars\R40_B.b3d

Save that file into your R40 Slant folder as Extensions.cfg

There you go!  ;)
I Need A Download Link For The .b3d Files  >:(
                                   -55555
 
The R40 slant files are in one of the object folders for the existing routes that are available for download at this site. Just do some file searching on your hard drive and you'll find it eventually.
What Route Is It
            -55555
look in the "Utica" and "Octavia Booker" folders. they should be there somewhere.