Skip to content

Tutorial: StartupNF

kytooooo edited this page Apr 24, 2020 · 8 revisions

If you just want to startup NF with default plugins, you only need to run the script listed below:

NF is a plugin system, as a result, you must tell it which plugins that you want to load when startup.

Normally, NF uses _Out/NFDataCfg/Debug/Plugin.xml (_Out/NFDataCfg/Release/Plugin.xml ) as the plugin configuration file to know which plugins you want to load.

rund.sh (rund.bat) is to run NF with debug mode and load plugins by the configuration file where located _Out/NFDataCfg/Debug/Plugin.xml

runr.sh (runr.bat) is to run NF with release mode and load plugins by the configuration file where located _Out/NFDataCfg/Release/Plugin.xml

Startup parameters for the binary file named NFServer.exe (NFServer)

  • If you startup NFServer with non-parameters, all game servers will run an instance with one process with one thread to have a quick test. https://raw.githubusercontent.com/wiki/ketoo/NoahGameFrame/images/helloworld/11.png

  • If you startup NFServer with parameters listed below:

./NFServer -d Plugin=Plugin.xml Server=MasterServer ID=3
./NFServer -d Plugin=Plugin.xml Server=WorldServer ID=7
./NFServer -d Plugin=Plugin.xml Server=DBServer ID=8
./NFServer -d Plugin=Plugin.xml Server=LoginServer ID=4
./NFServer -d Plugin=Plugin.xml Server=GameServer ID=6
./NFServer -d Plugin=Plugin.xml Server=ProxyServer ID=5

Before start NF, please make sure that you are running Redis database, more details please ref to:

https://github.com/ketoo/NoahGameFrame/wiki/How-to-debug-with-unity3d