Original Article : http://wiki.techhaven.org/Running_Neocron_in_Linux
Packed Client for Linux systems
Neocron Client (TAR.GZ) - 1.8 GB PATCH 168
This is the complete Neocron 2.2 Client patched to level 168 ready to go out of the box.
MD5: 8103b3ac52b1dcadf49ec78175fcd02a
Downloaded: 187
Instructions for getting Neocron working with Wine
Some general notes:-
- Currently there is no known issues with installing Neocron from scratch, however patching may become an issue. It is better to just copy it from an NTFS drive.
- The use of automatrix is outdated, and WineDoors is an unsupported hack. WineHQ recommend the use of Winetricks.
- This guide gives the setup for a Debian based system. Anybody else with instructions for Fedora etc are encouraged to submit their results!
Installing Wine
First, we need to install Wine. I suggest adding wines repo to your list. This is a quote from their website.
Adding the WineHQ APT Repository
First, open a terminal window (Applications->Accessories->Terminal). On Debian, you will need to open a root terminal. Then add the repository’s key to your system’s list of trusted APT keys by copy and pasting the following:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
Next, add the repository to your system’s list of APT sources:
For Ubuntu Hardy (8.04):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
For Debian Etch (4.0):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list
Then update APT’s package information by running sudo apt-get update.
Getting Neocron to work with Wine
- Install Wine and ubuntu-restricted-extras from your terminal with the following: sudo apt-get install wine ubuntu-restricted-extras
- Run the command winecfg in terminal, this will setup your user account for Wine.
- Download Winetricks – wget http://www.kegel.com/wine/winetricks
- Install the following packages via Winetricks with the following command:- sh winetricks corefonts vcrun6 mfc42
- Visual C++ Runtime Libraries 6
- MS Core Fonts
- Microsoft Foundation Classes 4
- Navigate to your Neocron directory in your terminal and run wine Client.exe -precache first. Then close the Client.
- Now just run the launcher! Either by double clicking the exe, or in terminal cd to the Neocron directory and type wine NeocronLauncher.exe
- Done! Neocron should now run smoothly.
Troubleshooting
Trouble writing to your Neocron directory
- Copy your Neocron2.2 directory over to ~/.wine/drive_c/Program\ Files/
Trouble getting Client.exe to launch
- run winecfg and Add Application Client.exe with the following options
- Windows Version: Windows 98
- [Libraries]
- Override msvcrt, set to Native (Windows) [Thanks to vitamin in #winehq for this]
- Override quartz, set to Native (Windows) [Again thanks to vitamin in #winehq for this]
- Copy msvcrt.dll and quartz.dll from your C:\Windows\System32 folder on your WIndows machine to ~/.wine/drive_c/windows/system32
- From the terminal, go to your Neocron 2 folder cd ~/.wine/drive_c/Program\ Files/Neocron2/ and type wine Client.exe -sysconfig
- Setup your options and click OK.
- From the terminal again type wine Client.exe -precache PlayTutorial
- If all works you are done!
Can’t connect to gameserver
- There are a few things to try to resolve this issue.
- Change your /etc/hosts file so your hostname resolves to your external IP, not your internal LAN IP.
- Make sure your ports are forwarded correctly on your router for Neocron.
- Sometimes changing your hosts file back to 127.0.0.1 will fix a connection problem. It did for me! (MrTrip)
Suppressing those annoying fixme: errors
- The console gets spammed with fixme: errors when running Neocron. These do not keep Neocron from running however, and can be turned off with
export WINEDEBUG=-all,err+module
Choppy audio!
- Pulseaudio and Ubuntu and WINE don’t go well together. This is a fix for that. Create a script called neocron.sh in your neocron directory and paste this in it
export WINEDEBUG=-all killall pulseaudio &>/dev/null && aoss wine Client.exe & pulseaudio -D
- chmod your script with chmod +x neocron.sh and run Neocron with ./neocron.sh to fix audio problems.
- Should you need to update just run NeocronLauncher.exe