Hi All, Before I start I'd like to say I know it takes up peoples time and no I'm not expecting anyone to jump at the idea. As the tittle say's could someone make or give me a tutorial for making a scenario race ? my computer skills and knowledge are very poor compared to most of you on here BUT I am learning slowly but surely, I am able to go into scenario prefabs and change mine and my opponents cars and the parts configuration for them but that is all. I am aware there is a tutorial on creating a scenario but its dose not help much as what i am after is a lapped race with opponents. I know its a big ask but if someone could make me a 6 car, 10 lap race on Yarmouth (Link Bellow) that would be amazing and i couldn't thank you enough or even if you could make me a tutorial of how to make it I would be very thankful ! http://www.beamng.com/threads/short-oval-track.11583/#post-192505 Thanks in advance, Jack
Hello, creator of Hirochi Super Race here to help! If you want to create a racing scenerio like the super race you will need 3 things; Patience, a LUA script, and time. I highly recommend reading through the Intro to Scenario Creation by nadeox and trying to make a simple scenerio on a default map first. Once you have the basic's of scenerio creation down, you can begin on creating a multi-car race scenerio. Disclaimer first, I don't think this works on a map that does not support AI by default, I don't know if the oval track does! I started off by driving around the track I was going to use and finding a interesting route (might not apply to the oval track, unless you are doing a figure 8 course), this was the route I ended up deciding on: Once I had my route planned out I started on the vehicles and AI, I asked Scepheo if I could use his Lua script from the Jump Derby scenerio. Here is where the difficult part comes in, editing the LUA script for your scenerio. I will be going on the basis you asked Scepheo to use his script and received the green light. Once you have the script put it in the same folder with the same name as the scenerio.json (ex: Hirochi_Race4p.json with Hirochi_Race4p.lua). Going onto the script editing, you will have to edit the local opponents list: Code: local opponents = { "race_Player1", "race_Player2", "race_Player3", } Im my scenerio I had race_player (you) and then 3 other Bolides, race_Player1, 2, and 3. this tells the LUA script these are the AI opponents. Going down you will have to edit the local aiAggression Code: local aiAggression = { race_Player1 = 7, race_Player2 = 7, race_Player3 = 7, race_Player4 = 7, race_Player5 = 7, } Similar to the fist set of code, a slot for each ai with there names. I found 7 works for me, they go fast but dont crash unless the player causes them to. Now that you have the AI placed, and the code for them set you now need to put down the waypoints they will follow. I went around my planned course and placed down waypoints that the AI and player had to drive through and numbered them in order: Place down enough waypoints that the ai follows the correct course and the player can't cheat by cutting the track. Once you have waypoints down and numbered you have to put them in the .json with the vehicle options: Code: "difficulty": "30", "date": 1448068916, "vehicles": { "race_Player": {"playerUsable": true, "startFocus": true }, "*": {"playerUsable": false}, }, "lapConfig": [ "hr_start", "track_1", "track_6", "track_7", "track_9", "track_11", "track_14", "track_16", "track_17", "track_20", "track_21", "track_22", "track_23", "track_24", "track_28", "track_29", "track_31", "track_33", ], "whiteListActions": ["default_whitelist_scenario" ], "blackListActions": ["default_blacklist_scenario" ], "lapCount": 3 A rundown of the important parts: Code: "vehicles": { "race_Player": {"playerUsable": true, "startFocus": true }, "*": {"playerUsable": false}, It tells the game to use the vehicle named "race_Player" as the starting usable vehicle, slot 2 with the * in it states all other vehicles CANT be used by the player. if this was set to something like race_Player1 that car would not appear! "lapConfig []" these are the in order waypoints, the lua script reads these and makes the cars follow them. "lapcount: 3" pretty self-explanatory, the amount of laps the scenerio has. if memory serves correct the ai should now follow that path if the map supports it. You can now place any fancy items you want, I created barriers and then new car textures for my scenerio. If I left anything out other map-makers feel free to tell me I am wrong or fix anything I missed! phew that was long, I should post this on the wiki!
The map you linked has a big problem. In order for the map to accept waypoints, you'd need to correctly remake it with terrain the waypoints will accept. You may be able to cheat and lay down some road beneath the actual map, then increase the targeting node value inside Scepheo's .lua script, but I'm not sure whether it will work, and how well it will work.