SWBFSpy / ZeroFront

Updates to ZeroEngine and Star Wars Battlefront game files
http://www.SWBFModders.com
7 stars 0 forks source link

NNAI (Neural Network AI) ZeroNet Server Launcher [WIP] #31

Closed SWBFSpy closed 2 months ago

SWBFSpy commented 8 months ago

This epic creation by SWBFModders admin Phobos allows players who have installed the ZeroFront mod to alt-tab out of their game once launched, and start a SWBFSpy or LAN multiplayer server using the zerofront dedicated server tools.

This then lets you log in to a second account on the same PC, enter another CD key and allow a ZeroNet "virtual player" to launch a second instance of battlefront.exe. You can then have this virtual player NNAI run in the background while logging back into your main account to play online on the same team, or against them in the server. NNAI/ZeroNet will automatically join the next round and not get stuck on the stats page or time out of the server.

The ZeroNet launcher has another option where it can simply join an existing SWBFSpy server without you having to launch your own dedicated server. Just check either box before injecting the NNAI DLL and input the server IP + Port. You can also manually launch the game and join the server instead, even just watching the NNAI play if you prefer. As well as a hotkey so you can let it take over for you when AFK, or you can intervene when it makes mistakes to improve its training, etc.

This novel invention by Phobos allows you to play campaigns co-op with (or duels/battles against) advanced Zero Network AI, which have weight files stored in the R:\ZeroFront\GameData\ZeroNet folder. These can be backed up and swapped out over time as they use reinforcement learning to gain further skill/strategy increases.

There will also be a setting in future versions of the launcher to set the approximate strength of the NNAI, weighted in terms of ELO calibrations by Phobos. So for instance, the stock hard AI would have an ELO of around 2000. It's aim skill is around 3000 but it's overall strategy is about 1000 so NNAI would quickly surpass the 2000 ELO barrier and put stock hard AI to shame, by replicating and expanding upon player strategies in battle. It knows which unit to spawn as in which situation, but players will also be able to specify exact server behavior settings such as: do not use vehicles, do not spawn kill or glitch etc.

A future edition of this launcher also will have an option to enable or disable (toggle) the reinforcement learning. So if you do not want the weight files to expand over time, which may require some re-calibrations, players can turn this setting off. If they want to keep training and merge weight trainings with other players, we may add some kind of deep net training framework for future SWBFSpy ZeroNet developments.

More ideas to be noted here later as this ground-breaking innovation of Phobos begins development sometime in the next few years. Remember, this feature only supported for the original superior 2004 version of SWBF, released by Pandemic. None of the re-releases on Steam/GOG from 2019 onward will ever have support added for incredible features of this magnitude. This likely won't be complete until ZeroFront v1.1 in late 2020s - early 2030s. Right now virtual player NNAI isn't functional yet, so the launcher is currently a design prototype.

For more info see https://github.com/SWBFSpy/ZeroNet https://swbfmodders.com/index.php?topic=2177