Skip to content

Releases

4net 0.4.1

Choose a tag to compare

@shilover shilover released this 25 Nov 16:21

4net 0.4.1

A fix release: mesh / bridge networking, the panel, and the lobby server's room defaults. No API changes; adapters and gameplay mods written for 0.4.0 work as they are.

Networking / mesh

  • In a bridged room where the host plays and nobody can relay, the host's player now forwards both players' packets to spectators (before, spectators got nothing once the match started).
  • New-style rooms can join over the bridge every time; fixed the host replacing a joiner's current address with its other-family (IPv4 / IPv6) handshake address, which left only one side seeing the other.
  • With "always bridge", a client whose bridge fails right away retries after 3 s instead of reconnecting every 6 ms.
  • The automatic route test connection is no longer taken over by the join-by-bridge path.
  • Duel rooms: state goes to everyone while nobody is called up; only the two players once the match starts.

Panel

  • One click is no longer counted twice; host / join / spectate commands repeated within 1 s are sent once.
  • Room list: unknown gameplay modes show as [other mode]; the spectate-only room picker joins as a spectator directly; the page bar has small play / spectate-only buttons.
  • When the lobby helper isn't running, the panel shows the real reason.
  • End / leave buttons are red; GUI rows can be centred (separators).
  • Room members can be added to recent opponents (block) and the room code is shown; some labels renamed and descriptions shortened.
  • Extensions page: enabled but not yet restarted shows "not loaded", with a "cancel enabling" button.
  • Without the multiplayer mod, host / join fall back to the old 1v1.
  • AI difficulty / loadout take effect on click; adapters can add config commands for the local AI.

Lobby server

  • --room default rules come from the same single source as the client.

Host version 0.4.1. Offline suites: tests/run_all.py passes 9 of 10; test_ext still looks for an old button label (the test is out of date, not the feature).

Files

  • fornet-0.4.1.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-0.4.1-server.zip: optional, the self-hosted lobby server (server/fornet-lobby-server.mjs, Node 18+, AGPL-3.0).

中文:0.4.1 是修复版,接口没变,0.4.0 的适配层和玩法 mod 直接能用。全互连 / 桥接:桥接房里房主上场时观众开打后也收得到包、多人房一直桥接入房、修只有一边看得到对方、桥接失败不再狂刷重连、换线测速不被抢;面板:一次点击不再算两次、房间列表 / 成员页 / 扩展页若干改进、联机程序没起来时显示真正原因;大厅服务器 --room 默认规则和客户端同一来源。另附可选的大厅服务器包。

4net 0.4.0

Choose a tag to compare

@shilover shilover released this 16 Nov 15:47

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 节。