Helen Weales Posted January 9, 2016 Share Posted January 9, 2016 Hello, This is a tutorial explaining the conversion process for the old and new terrain systems for Rigs of Rods 0.36-0.39 (.terrn) to 0.4 (.terrn2). IntroductionThe tracks (terrains) we typically use in this community are very simple when compared to traditional RoR ones -- ours are basically models (mesh files) of arenas or pieces of land floating on either: Nothing, which gives the illusion that you are driving in mid-air when outside of the arena/landOr A small tiled texture (such as concrete, grass or dirt), which is what you typically see if you were to venture outside of an arena. "Normal" terrains (for example: Desert Trails) use heightmap images which determine flat land, valleys, peaks, etc. Because our track system is typically so simple, it is not necessary to follow the full conversion process. First, let's look at what makes up a terrain for 0.37-0.39 --> 0.4+ (all of these can be edited with any text editor, I prefer WordPad): terrn --> .terrn2: Every terrain needs this. This is what tells RoR there is a track to load -- it contains information such as the track name, spawn point position, object position, etc. This file system was replaced by a combination of both .terrn2 and .tobj systems in versions .4.0 and up. These are likely all you will need to convert a basic track (read further). cfg --> .otc: Contains info for terrain texture, heightmaps, world sizes, how the texture gets tiled, etc. This file system was replaced by the .otc system in version .4.0 and up. It is not required for a terrain to function. os: This is the configuration file for the Caelum sky/weather, and is the same for all versions of RoR. It is also not a required file, especially if using a skybox model. odef and .material: Technically these are not part of the terrain system, but you will see them. Think of them as extensions for .mesh files (props) -- ODEF tells RoR whether a prop is collidable or not, and what the surface will be (for example: dirt, concrete, asphalt, metal etc). Material files simply contain information for the prop textures and tells RoR how to use a texture (for example: if an object should be shiny, flat, transparent etc). These two file systems are used in every version of RoR so no changes are needed. The conversionThis is very easy and likely only requires the creation of two new files, YourTrack.terrn2 (basic info) and YourTrack.tobj (prop positions). Let's start with the main terrain file. Let's assume you want to convert an existing track named Houston2016.terrn. Create a new text file and name it Houston2016.terrn2. Copy and paste the following: [General]Name = Your TrackGeometryConfig = YourTrack.otcWater=0AmbientColor = 1, 1, 1//CaelumConfigFile = YourTrack.osStartPosition = 512 0 512SandStormCubeMap = tracks/skyboxcolGravity = -9.81CategoryID = 129Version = 2GUID = dc178e9c-840d-443f-b249-434433ae5fd0 [Authors]terrain = Your Name [Objects]YourTrack.tobj= Replace all instances of "YourTrack" with the name of the terrain you wish to convert (for example: "YourTrack" to "Houston2016"), along with the name of the track and the author's name as follows: [General]Name = Houston 2016GeometryConfig = houston2016.otcWater=0WaterLine=0AmbientColor = 1, 1, 1//CaelumConfigFile = houston2016.osStartPosition = 512 101 512SandStormCubeMap = tracks/skyboxcolGravity = -9.81CategoryID = 129Version = 2GUID = dc178e9c-840d-443f-b249-434433ae5fd1 [Authors]terrain = Helen Weales [Objects]houston2016.tobj= Next, create a text file named Houston2016.tobj. This is the file that determines where your track props will be placed. Copy the following from the old Houston2016.terrn, and paste it in Houston2016.tobj: To If you want to alter the Caelum sky/weather settings (not required), the following is a template (an example of its filename would be "houston2016.os"): caelum_sky_system Houston2016.terrn.os{ sun { ambient_multiplier 0.5 0.5 0.5 diffuse_multiplier 3 3 2.7 specular_multiplier 0.35 0.35 0.35 auto_disable_threshold 0.05 auto_disable true } moon { ambient_multiplier 0.2 0.2 0.2 diffuse_multiplier 1 1 .9 specular_multiplier 0.1 0.1 0.1 auto_disable_threshold 0.05 auto_disable true } sky_dome { haze_enabled no sky_gradients_image WhiteSky.png atmosphere_depth_image AtmosphereDepth.png }} Unfortunately I don't know anything about these settings, so alter at your own risk! Something worth noting is the "StartPosition" line in the .terrn2 file. This controls where the first truck spawns. It's likely you will want to copy the first three set of numbers from the main model position coordinates (in the .tobj file). Alter as needed. Place the new files in the track ZIP or folder (deletion of older files is not necessary and allows for the terrain to be compatible for all RoR versions). Next, open Rigs of Rods 0.4.5 and test the terrain to make sure everything works properly. That's it! A simple process that once learned, should only take a few minutes to complete. One final note (not sure how to properly explain this so please bear with me): Your model must be COMPLETELY on or off the tiled portion of the world or else the part not on the tiled portion will be non-collidable. I don't know why this happens. Once I figure out how to add mud I will update this tutorial. If anyone knows, please PM me. Best of luck. -HW 6 Link to comment Share on other sites More sharing options...
Garrett Hanson Posted January 15, 2016 Share Posted January 15, 2016 thanks for posting this! Link to comment Share on other sites More sharing options...
zero_mass Posted January 17, 2016 Share Posted January 17, 2016 I'm currently trying to convert Tampa 2015. I hope it works. Link to comment Share on other sites More sharing options...
Martini Posted March 6, 2016 Share Posted March 6, 2016 oh wow Link to comment Share on other sites More sharing options...
BhreXtreme Posted March 25, 2016 Share Posted March 25, 2016 Thank you so much it works Link to comment Share on other sites More sharing options...
CharmingCharles2896 Posted April 8, 2016 Share Posted April 8, 2016 Tried it, but it didn't show up in the game. 1 Link to comment Share on other sites More sharing options...
Garrett Hanson Posted May 18, 2016 Share Posted May 18, 2016 I can't make the word pad a .tobj, help? Link to comment Share on other sites More sharing options...
Garrett Hanson Posted May 20, 2016 Share Posted May 20, 2016 On 4/8/2016 at 7:30 AM, CharmingCharles2896 said: Tried it, but it didn't show up in the game. same Link to comment Share on other sites More sharing options...
Helen Weales Posted May 22, 2016 Author Share Posted May 22, 2016 On 5/18/2016 at 6:41 PM, Garrett Hanson said: I can't make the word pad a .tobj, help? You need to rename the .txt extension to .tobj. Link to comment Share on other sites More sharing options...
Garrett Hanson Posted May 22, 2016 Share Posted May 22, 2016 7 hours ago, Helen Weales said: You need to rename the .txt extension to .tobj. I got that. also, when I convert a track to 0.4 it won't show up in game Link to comment Share on other sites More sharing options...
tyrannos Posted July 6, 2016 Share Posted July 6, 2016 wait did i srrsly see the track name houston2016? Link to comment Share on other sites More sharing options...
Kyle Posted July 25, 2016 Share Posted July 25, 2016 My track wont show up....made sure i did everything right and it didnt work. 1 Link to comment Share on other sites More sharing options...
Danny Werewolf Posted February 24, 2017 Share Posted February 24, 2017 I think i did everything right, but it didn't work. Its a really simple map too. Heck, its not even Monster Jam, just a backflip of some kind. Link to comment Share on other sites More sharing options...
Danny Werewolf Posted February 24, 2017 Share Posted February 24, 2017 I Tried This With Seattle 1999, But I Can't Figure Out How To Change The Files To .Terrn2 And TOBJ. Do You Go Into Properties? Just Needing An Explanation, I Think I Got It Once I Complete That. Link to comment Share on other sites More sharing options...
Danny Werewolf Posted February 24, 2017 Share Posted February 24, 2017 (edited) Nevermind, I Found Out. Thanks For The Convert Help Helen! I Went To Open 0.4.6 And 0.4.5 But Mesa2000New By Edy, Every Time It Was Loading Mesa Into Group Terrain Folder Or Whatever It Is, My Game Crashes. I Alt Esc And I See The Error Say "The Terrain Name Cannot Be Empty". How Do You Fix This? Edited February 25, 2017 by MonsterJam4Lyfe Something Stopped Working After Posting. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now