Unturned II 开发日志 #037

使用sky和管理命令框架更新4.20.9.0。

视频审核中
非正式视频

管理命令

对聊天命令的支持已与几个与时间相关的实用程序一起添加。请注意,尚未添加权限和角色,因此任何人都可以临时执行它们。

我决定松散地遵循POSIX/GNU参数解析,以便在命令之间标准化。每个命令都可以定义从“-key=value”或“-key value”解析的命名参数,并将其他参数视为操作数。这些命令应该在操作数方面变得聪明,例如“/time 12:00”希望将时间更改到中午,但是命名的参数应该对“我想禁止使用此模板的播放器,而不是具有数字名称的播放机”这样的情况很有用。

大多数时间命令的一个有用特性是,您可以包含一个+/-偏移操作数,如“/日出+1:00”,以便在日出后一小时预览。

地球大气

大气层管理着一个从黄道到世界(水平)的空间四元数,将轨道转换成游戏中的转换,这是一个相对简单的最终结果,但我花了几天的时间来研究我需要学习并得出这个解决方案的空间东西。

为了澄清排序器从视频评论:一个水平序列可能控制雾的颜色,雾密度,天空颜色等类似于未翻转。每年的时间也可能有一个顺序。最终,大气演员将不得不负责混合他们,以处理特殊的情况,如地下洞穴或覆盖。

接下来是什么?

这是一个新的未翻转的地图发布的时间,所以我将忙于在未来几个星期的时间。之后,我可能至少应该做一些基本的权限管理,因为现在有一些命令(当游戏被充实时,需要对几个命令进行维护),然后继续进行核心游戏功能。

 

原文

4.20.9.0 update with sky and framework for admin commands.

Informal Overiew Video

Admin Commands

Support for chat commands has been added alongside several time-related utilities. Note that permissions and roles have not been added yet, so anyone can execute them temporarily.

I decided to loosely follow POSIX / GNU argument parsing so that it can be standardized between commands. Each command can define named parameters parsed from "-key=value" or "-key value", and other arguments are treated as operands. The commands should try to be smart about the operands, e.g. "/time 12:00" wants to change the time to noon, but named parameters ought to be useful for cases like "I want to ban a player with this steamid, not a player with a numeric name."

One useful feature with most of the time commands is you can include a +/- offset operand like "/sunrise +1:00" to preview one hour after sunrise.

Earth Atmosphere

The atmosphere manages an ecliptic to world (level) space quaternion for converting orbits into in-game transforms, which is a relatively simple end result, but it took me a few days to wrap my head around the space stuff I needed to learn and arrive at that solution.

To clarify the sequencer comments from the video: a level sequence might control the fog colors, fog density, sky color, etc. similarly to Unturned. There could also be a sequence for the time of year. Ultimately the atmosphere actor would have to be responsible for blending them to handle special situations like underground caves or overrides.

What's Next?

It's coming time for a new Unturned curated map release, so I will be busy with that for the next couple weeks. Afterwards I should probably do at least basic permissions management now that there are commands (necessary for severs to be maintainable as gameplay is fleshed out), and from there continuing core gameplay features.

点赞

发表评论