level 14
原帖地址:http://www.train-fever.com/forums/topic/release-hints/
本帖旨在说明新增的通过使用灰度图自定义地图功能的方法,以及一些最新补丁中新增的可修改参数。
This build adds the option to generate landscapes from height maps. The height map file must be namedheightmap.png and use greyscale PNGs with either 2049×2049, 3073×3073 or 4097×4097 pixel in size and 8 or 16bit depth.
本次更新提供了通过灰度图构建地貌的选项。灰度图文件必须命名为“heightmap.png”,同时必须使用灰8或16位PNG格式,分辨率必须是2049×2049, 3073×3073 和 4097×4097。
Create a folder named maps within the Train Fever folder:
在Train Fever根目录下建立“maps”文件
Within maps you can create a subfolder with an arbitrary name. Place the heigtmap.png and a script named info.lua file in that folder.
在这个文件夹下你可以建立任意名称的子文件夹。将灰度图文件heightmap.png和脚本文件info.lua放在子文件夹中即可。
info.lua example code:
标准的info.lua示例如下:
function data()
return {
name = "Example Map",
range = { 90.0, 450.0 },
description = "Example description",
seed = "defaultseed"
}
end
The range sets the height for the black and white pixels in the PNG. The water is afterwards at 100 meters. So the example above will create a landscape from 90 meter (lowest) to 450 meter (highest) and the water will be between 90 and 100 meter.
range决定了黑色像素和白色像素的高度。水面是100m,所以上面示例会生成从最低点90m到最高点450m,水面覆盖90到100m区域的地形。
Placing at least one correct info.lua in the maps folder will enable the button Select map in the Basic-tab when starting a new game.
在“maps”文件夹放置至少1个正确格式的info.lua文件即可在开始游戏界面开启”选择地图“按钮。
When you receive error messages regarding the map generation upon starting a new game, try to raise the lower land value towards 100 to reduce water areas or use more flat terrain. In general make sure to leave enough suitable terrain for the map generator to seed towns and industries.
如果你在新游戏生成地图时收到错误信息时,请尝试调整最低海拔接近100以减少水域面积,或者使用更平整的地形。通常要给地图生成器预留足够的适合地形来创建城镇和工业。
From 1875 on tram tracks can now be built and upgraded with catenaries. Per default this is only a visual feature. To enable the gameplay aspect of the feature, please turn it on in the options menu under the “Advanced” section. Please note, that this setting only affects new games. Once a game has been started with either setting, chancing this setting does not apply to further save games.
从1875年后电车轨道将可以进行电气化改造。不过这个功能仅仅是一个视觉效果。你可以从选项中的”高级“选项卡中开启这个功能。请注意,这个设置仅影响新游戏。一旦游戏已经通过其它选项开启,改变这个设置将不会生效。
New options to change the availability of various features have been added to the base_config.lua:
base_config.lua文件中已经新增了几个控制出现时间的参数:
game.config.tramCatenaryYearFrom
电车接触网出现时间
game.config.trackCatenaryYearFrom
火车电气化改造出现时间
game.config.highSpeedTracksYearFrom
高速铁轨出现时间
game.config.busLaneYearFrom
公交专用道出现时间
A new option to force the game to use the graphics mode for Intel GPUs has been added to the settings.lua:
settings.lua增加了一个强制使用Intel核显的设置
intelGraphicsMode = "AUTO" – Options: AUTO/TRUE/FALSE
AUTO=自动 TRUE=开启 FALSE=关闭
If you are using an Intel GPU and experienced crashes prior to this build, try changing the option to “TRUE”.
如果你在本次更新后使用Intel核显发生崩溃,请尝试把上面的参数改成”TRUE“