Skip to content

4net 0.4.0

Choose a tag to compare

@shilover shilover released this 16 Nov 15:47
· 30 commits to main since this release

4net 0.4.0

Use the prebuilt fornet_lobby.dll with any game: no compiling needed.

The lobby helper now reads your game's settings from the adapter's games\<name>\manifest.txt at start-up:

Key What it is
mod_name local name prefix (locks, pipe, UPnP description); usually your mod folder name
process the game's process name
game_zh / game_en, title_zh / title_en names shown in messages / the window title
app_version your mod's version, sent in the handshake
ranked_zh / ranked_long_zh / ranked_mode_zh what ranked play is called
wire_server / wire_peer / wire_salt / wire_env / wire_abi / wire_pipe wire names (leave out for a new game)
save_dir / save_file / save_backup_dir back up the save before each match

All keys are optional. Values compiled in via FORNET_GAME_CS (GameInfo.Configure / WireTag.Configure) still win, so existing builds behave exactly as before.
Only real game code, such as a local AI opponent, still has to be compiled in.

Other changes:

  • The pre-match save backup is part of the base now (SaveBackup): one zip per account folder, skipped when the save equals the last backup, keeps the latest 20 plus one a day for 14 days.
  • --print-game <file> [--backup-now] writes what the lobby helper read, so you can check your manifest.
  • New test test_game_manifest; tests/run_all.py runs 9 offline suites, all passing.
  • Host version 0.4.0. Full key list: usage guide, section 4.

Files

  • fornet-0.4.0.zip: what goes into <UE4SS>\Mods\<your mod>\: Scripts\ (the host as main.lua plus the network modules) and fornet_lobby.dll, built without any game code.
  • fornet_lobby.dll: the same DLL on its own.

中文:编好的 fornet_lobby.dll 现在别的游戏可以直接用。游戏名、进程名、版本号、协议名、存档备份写在适配层 games\<名>\manifest.txt 里,联机程序启动时读;
编进去的写法照旧能用而且优先。开局前备份存档搬进了基底;--print-game 可以核对读到了什么。全部键见 使用说明第 4 节。