車禍模擬器 - BeamNG.drive

車禍模擬器 - BeamNG.drive

檢視統計資料:
Apop85 2017 年 5 月 17 日 下午 5:57
Own scenario - custom map
Hey there.

I try to create an own sceanrio because i would like to avoid setting up a scene again and again if some friends visit me.

So i done the stuff with the folders and adding the scenario starting kit but if i try to rename the folder to the name of a downloaded map it just won't show up on the scenario menu. If i rename it to a default beamng map it works.

So how can i use a downloaded/custom map to create a scenario?

Greetings
< >
目前顯示第 1-11 則留言,共 11
Nadeox1 2017 年 5 月 17 日 下午 11:13 
Is this a scenario for a mod-map?

Please describe in details what you did, where the mod is located and where your files are located.
Apop85 2017 年 5 月 18 日 上午 11:15 
引用自 Nadeox1
Is this a scenario for a mod-map?

Please describe in details what you did, where the mod is located and where your files are located.
The map is called "matrix_freeway" found on beamng website.

I created the folder structure as told:
C:\Users\********\Documents\BeamNG.drive\mods\unpacked\HighwayDemolition\levels\matrix_freeway
then downloaded the scenario starter kit[www.beamng.com] wirh scenarios folder and the prefab file.

So as described i should be able to start the scenario ingame and edit it with F11. But if i use the matrix_freeway map i downloaded the scenario wont show up but if i cange the name to a vanilla map it works.
Los.Injurus.Bob.Blunderton 2017 年 5 月 18 日 下午 12:12 
To the OP, you need to have the folder names inside the scenario scripts correct, they're possibly referencing the default in-game map using those folders.
I am speaking of where it references the name or folder structure of the map.
Look for the scripts and such in notepad++ (Notepad++ is FREE)

I know this is not my thread, but I would like to ask NADEOX1, if I download that scenario starter kit, if I can make it so that I can still work on my map while it's in there (E.G. I read something a while back you can't save your map or something while you have scenarios in there).
Basically, I am asking, If I use this, but I am still doing things with (other parts of) the map will it mess me up?
最後修改者:Los.Injurus.Bob.Blunderton; 2017 年 5 月 18 日 下午 12:14
Nadeox1 2017 年 5 月 18 日 下午 11:10 
Perhaps send the scenario files so I can see what's wrong?


I know this is not my thread, but I would like to ask NADEOX1, if I download that scenario starter kit, if I can make it so that I can still work on my map while it's in there (E.G. I read something a while back you can't save your map or something while you have scenarios in there).
Basically, I am asking, If I use this, but I am still doing things with (other parts of) the map will it mess me up?

Uh, you can still work on your map normally. The thing is, if you work on a scenario, don't pack the scenario objects into a prefab, but instead save everything as it is, the scenario objects will be part of your map.
If you pack them in a prefab before saving, then the objects in the prefab will not be part of the default nap (but can be added by simply adding the prefab). Hope it makes sense.
Apop85 2017 年 5 月 19 日 上午 4:38 
To the OP, you need to have the folder names inside the scenario scripts correct, they're possibly referencing the default in-game map using those folders.
I am speaking of where it references the name or folder structure of the map.
Look for the scripts and such in notepad++ (Notepad++ is FREE)
That's not very helpfull. I edited the scripts as they wrote on the website. And yeah i know Np++. But you don't give me a hint which file to edit or what have to be written in there ..

引用自 prefab file
//--- OBJECT WRITE BEGIN ---
$ThisPrefab = new SimGroup() {
canSave = "1";
canSaveDynamicFields = "1";
groupPosition = "0.000000 0.000000 0.000000";

new BeamNGVehicle(scenario_player0) {
JBeam = "hatch";
color = "1 1 1 1.2";
partConfig = "vehicles/hatch/stock_M.pc";
renderDistance = "500";
renderFade = "0.1";
isAIControlled = "0";
dataBlock = "default_vehicle";
position = "-605.927 -851.051 44.1812";
rotation = "0 0 1 111.056";
scale = "1 1 1";
canSave = "1";
canSaveDynamicFields = "1";
};
};
//--- OBJECT WRITE END ---
引用自 json file
[
{
"name": "HighwayDemolition",
"description": "Create epic crashes on a highway",
"previews": ["my_first_scenario.jpg"],
"type": "scenario",
"authors": "Apop85",

"difficulty": "3",

"vehicles": {
"scenario_player0": {"playerUsable": true, "startFocus": true },
"*": {"playerUsable": false},
},

"whiteListActions": ["default_whitelist_scenario" ],
"blackListActions": ["default_blacklist_scenario" ],

"lapConfig": [""],
"prefabs": ["HighwayDemolition"],
"radiusMultiplierAI": 2
},]
最後修改者:Apop85; 2017 年 5 月 19 日 上午 4:39
Nadeox1 2017 年 5 月 19 日 上午 4:42 
Is the json file located inside the 'scenario' folder as shown in the guide?
https://www.beamng.com/attachments/227vyyb-jpg.67336/



Also, the guide is referring to official maps.
For mods you may need to create the folders in this path instead:
Documents/BeamNG.Drive/levels/...

Else the game gets confused as both level and scenario have the same path for it (Documents/BeamNG.Drive/mods - the unpacked folder is some sort of virtualization, does not result in the path)
Apop85 2017 年 5 月 19 日 上午 4:56 
引用自 Nadeox1
Is the json file located inside the 'scenario' folder as shown in the guide?
https://www.beamng.com/attachments/227vyyb-jpg.67336/



Also, the guide is referring to official maps.
For mods you may need to create the folders in this path instead:
Documents/BeamNG.Drive/levels/...

Else the game gets confused as both level and scenario have the same path for it (Documents/BeamNG.Drive/mods - the unpacked folder is some sort of virtualization, does not result in the path)

Yeah the scenario folder is in there. But which folder structure is right? The one on the picture? (...\BeamNG.drive\mods\levels\matrix_freeway) or the one in the tutorial (...\BeamNG.Drive/mods\unpacked\yourmodName\matrix_freeway)? They're not same which was a bit confusing as this is my first try.

I moved the folder structure now to Documents/BeamNG.Drive/levels/.. now it looks like this:
https://drive.google.com/file/d/0B5Sm64G5hi_NejI0dF9JY3g5SnM/view?usp=sharing
but still same problem. The scenario won't show up in the scenario menu.

I also tested it with copy the matrix_freeway map into the vanilla map folder with no result
Nadeox1 2017 年 5 月 19 日 上午 6:15 
引用自 Apop85

I moved the folder structure now to Documents/BeamNG.Drive/levels/.. now it looks like this:
https://drive.google.com/file/d/0B5Sm64G5hi_NejI0dF9JY3g5SnM/view?usp=sharing
but still same problem. The scenario won't show up in the scenario menu.

Like that should be good.
Can you pack the files and send them to me (keep the folder structure and everything).
Apop85 2017 年 5 月 19 日 上午 6:21 
https://drive.google.com/drive/folders/0B5Sm64G5hi_NWkVIemtwOW9nU2M?usp=sharing
Source: C:\Users\*******\Documents\BeamNG.drive\

->[mods]
....->matrix_freeway.zip
->[levels]
....->[matrix_freeway]
...........-> HighwayDemolition.prefab
...........-> [scenarios]
.................-> HighwayDemolition.json
.................-> my_first_scenario.jpg
最後修改者:Apop85; 2017 年 5 月 19 日 上午 6:33
Nadeox1 2017 年 5 月 19 日 上午 10:26 
Ok, we checked.
That happens because that level is old, and is using old formats.
We added some backward compatibility for that case that should solve it. It will be available in the next patch.
最後修改者:Nadeox1; 2017 年 5 月 19 日 上午 10:27
Los.Injurus.Bob.Blunderton 2017 年 5 月 19 日 下午 4:51 
引用自 Nadeox1
Perhaps send the scenario files so I can see what's wrong?


I know this is not my thread, but I would like to ask NADEOX1, if I download that scenario starter kit, if I can make it so that I can still work on my map while it's in there (E.G. I read something a while back you can't save your map or something while you have scenarios in there).
Basically, I am asking, If I use this, but I am still doing things with (other parts of) the map will it mess me up?

Uh, you can still work on your map normally. The thing is, if you work on a scenario, don't pack the scenario objects into a prefab, but instead save everything as it is, the scenario objects will be part of your map.
If you pack them in a prefab before saving, then the objects in the prefab will not be part of the default nap (but can be added by simply adding the prefab). Hope it makes sense.
Beautiful! Thankyou Nadeox1, I appreciate that highly!
< >
目前顯示第 1-11 則留言,共 11
每頁顯示: 1530 50

張貼日期: 2017 年 5 月 17 日 下午 5:57
回覆: 11