|
经过对涂装包一天的研究,终于搞明白了如何在不替换MFS原版涂装的情况下添加涂装。
先说原理:
MFS涂装除了要对aircraft.cfg进行编写以外,还需要对一个叫做layout.json的文件进行编写,这个文件根据我的理解就是选择需要被模拟器读取的文件。这个文件位于MFS安装目录Official\OneStore\<机模文件夹>,格式如下:
解读一下:
path,表示要读取文件的相对地址
size,表示文件的大小
date,这个我没研究出来,对制作涂装影响不是很大
涂装安装流程:
假设成功的制作完涂装并将其转化为dds格式:
1. 在Official\OneStore\<机模文件夹>\SimObjects\Airplanes\Asobo_A320_NEO 下,建立 TEXTURE.<随便写一串大写英文字母> 文件夹。
2. 在aircraft.cfg中(也在上述目录)找到文件末尾,编写下列内容:
[FLTSIM.X] // X = 上一个fltsim的数字+1
title = "Airbus A320 Neo Asobo AirTraffic 02" ; Variation name //涂装名字
model = "" ; model folder //留空
panel = "" ; panel folder //留空
sound = "" ; sound folder //留空
texture = "AirTraffic02" ; texture folder //填写你刚才的随便一串大写英文字母
kb_checklists = "Boeing747-400_check" ; Procedures/Checklist sibling file name //不要动
kb_reference = "Boeing747-400_ref" ; Reference information sibling file name //不要动
description = "$$:TEXT TO ADD" ; Variation description. //留空
wip_indicator = 0 ; know if the variation is good to go or still WIP : -1=Disabled, 0=Rough, 1=1st Pass, 2=Finished //不要动
ui_manufacturer = "$$:Airbus" ; e.g. Boeing, Cessna //不要动
ui_type = "$$:A320 Neo" ; e.g. 747-400, 172 //写你制作的涂装的航司名
ui_variation = "$$:Airbus" ; e.g. World Air, IFR Panel //写你制作的涂装的航司名
ui_typerole = "Commercial Airliner" ; e.g. Single Engine Prop, Twin Engine Prop, Rotorcraft, etc //不要动
ui_createdby = "Asobo Studio" ; e.g. Asobo Studio, Microsoft, FSAddonCompany, etc //不要动
ui_thumbnailfile = "" ; app relative path to ThumbNail image file //写出你希望的缩略图相对路径,建议不懂,留空自动选择
ui_certified_ceiling = 39800 ; service ceiling / max certified operating altitude (ft) //不要动
ui_max_range = 3500 ; max distance the aircraft can fly between take-off and landing in (NM) //不要动
ui_autonomy = 0 ; max duration the aircraft can fly between take-off and landing in (Hrs) //不要动
ui_fuel_burn_rate = 5300 ; average fuel consumption per hour (lbs/hr) - reminder: fuel density is ~6.7lbs per US gallon //不要动
atc_id = "N320C" ; tail number //注册号
atc_id_enable = 0 ; enable tail number //不要动
atc_airline = "" ; airline name //写你这架涂装所属航司的呼号
atc_flight_number = "1123" ; flight number //随意
atc_heavy = 1 ; heavy? //不要动
atc_parking_types = "GATE,RAMP,CARGO" ; "ANY" / "RAMP" / "CARGO" / "MIL_CARGO" / "MIL_COMBAT" / "GATE" / "DOCK" //不要动
atc_parking_codes = "" ; Comma separated and may be as small as one character each //不要动
atc_id_color = "" ; color for the tail number : i.e. "#ffff00ff" //不要动
atc_id_font = "" ; font for the tail number //不要动
isAirTraffic = 0 ; Is the plane usable for air traffic //选择是否被AI可用,是1,不是0
isUserSelectable = 1 ; Is the plane selectable by the user //选择是否可被玩家选择,是1,不是0
3.编写layout.json,如下图所示:
(1)找到你所有的涂装文件,将他们的目录(与layout.json的相对目录!)和大小(单位:字节)写在一个txt的文件中,包括所有.json/.cfg/.jpg/.dds文件
(2)将他们以以下格式写入layout.json文件中:
{
"path": "<你的文件目录>",
"size": <文件以字节为单位的大小>,
"date": <随便复制一个前面出现的date>
},
{
"path": "<你的文件目录>",
"size": <文件以字节为单位的大小>,
"date": <随便复制一个前面出现的date>
},
……
直到所有文件全部写入layout.json.
注意:别忘记在文件末尾写入的时候为原来最后一个大括号添加逗号!如果不添加会导致所有涂装文件无法读取!
如果你仔细地按照上面步骤安装,恭喜你成功安装了MFS涂装!
下面是效果:
打开游戏,进入机库(Profile-hanger)点击f12,便可以选择涂装了!
(图中是还没完工的MFS东航涂装,做的实在是有点一言难尽,正在准备修复)
第一次写类似的东西,如有错误,烦请指正!
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
评分
-
查看全部评分
|