Jump to content

Installation instructions

From fCraft Wiki
Revision as of 21:28, 27 April 2011 by F (talk | contribs) (Undo revision 169 by 188.138.101.244 (talk))
When first starting fCraft, type this in the console of your running server:

/promote YourUserName DesiredClassName

to promote yourself.

That's not just the best answer. It's the beesstt answer!

Linux, Unix, MacOS X (Mono)

  • fCraft has been tested/compiled on:
  • The first and most important step here is to ensure you have the Mono runtime installed.
  • The next step is to download the latest binaries
    • fCraft can be compiled from source using Mono (using MonoDevelop IDE is the easiest way) if you wish to keep up with the latest experimental versions on the SVN. Visit #fCraft on irc.esper.net if you need more info.
  • From here on out is roughly the same as on Windows. You can run mono ConfigTool.exe to configure your server, and then either mono fCraftUI.exe OR mono fCraftConsole.exe to start the server.
    • If you want to run console-only on a headless server, the ConfigTool GUI probably won't work for you to configure things. You can run ConfigTool on your local machine and upload edited config.xml/worlds.xml. Alternatively, edit config.xml manually with your favourite text editor. Detailed information about config.xml keys can be found here.

Troubleshooting

I made changed to the config/world list, but changes didn't apply

  • Make sure that fCraftConsole and fCraftUI are NOT running while you run ConfigTool. fCraft may overwrite your changes if it's still running.
  • Changes are not saved until you hit "OK" or "Apply" in ConfigTool.
  • Make sure that ConfigTool is in the same folder as the rest of the server files. If you compiled fCraft from source, copy binaries from separate project folders.

How do I promote myself to the highest rank/class?

Type the following in console (either fCraftConsole or fCraftUI): /promote YourName DesiredClass

CentOS problems

There have been a lot of problems reported with getting Mono working on CentOS.
#echo export PKG_CONFIG_PATH=/opt/novell/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile
#echo export PATH=/opt/novell/mono/bin:$PATH>>~/.bash_profile
#source ~/.bash_profile 

System.DllNotFoundException: libMonoPosixHelper.so

Install libmono-posix2.0-cil package.
This is also a known issue with compiling Mono from source on CentOS. Update to 2.8+ (recommended), or try this workaround.

Memory usage keeps going up under Mono

Try running mono with "--gc=sgen" switch, like this: mono -gc=sgen fCraftConsole.exe (thanks to wootalyzer for discovering).