It runs! It took a bit of tweaking to get it to build and run on arch linux. I thought I'd write down some of the things I did to get it up and running if others are struggling.
To build:
- For RakNet, I only needed to build the static libraries. It looks like the install prefix is broken because it installed it to the repository.
- The lua parsing library needed to be downloaded as well. It requires clang to build it. It was in the AUR as terra-git, so I got it there.
- To be able to link everything, I had to install libtinfo, that was available on the AUR so I got it there.
- There were a couple of files that had to be changed to get it to build. There are probably better changes, but whatever, mine worked.
Code: Select all
CMakeLists.txt
line: 383
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -std=c++98 -pedantic -Wno-long-long")
Changes:
Change "-std=c++98" to "-std=c++11"
line: 463-466
INSTALL(FILES "${OpenMW_BINARY_DIR}/tes3mp-client-default" DESTINATION "${SYSCONFDIR}" COMPONENT "openmw") ...
Changes: (Probably a better way)
Remove lines with tes3mp-client-default.install and tes3mp-server-default.install
Change remaining "tes3mp-client-default" to "tes3mp-client-default.cfg"
Change remaining "tes3mp-server-default" to "tes3mp-server-default.cfg"
apps/openmw/mwworld/worldimp.cpp
line 111:
typedef std::tr1::unordered_map<std::string, ContentLoader*> LoadersContainer;
Changes:
Change "std::tr1::" to "std::"
- The "openmw-mp" target wasn't being installed, so I copied that from the build directory to the install directory
To run:
- The PluginExamples repository has the server scripts.
- The tes3mp-client-default.cfg needed to be modified so that "server" pointed to my computer.
- The tes3mp-server-default.cfg needed to be modified so that "home" pointed to the PluginExamples directory with an absolute path.
- I removed the chat_parser.lua script from "plugins" since it looked like the file didn't exist, but I didn't test that.
- Run "openmw-mp" in the terminal (not in the build directory if you want to use the global config file), then run "openmw"
I had multiple clients running on the same computer and was able to hit myself on the other client.
It hurt.