Latest Neocron News and Information

  • New test server patch #563 has been released to Vedeena

Difference between revisions of "Running Neocron in Linux"

From Neocron Wiki
Jump to: navigation, search
Line 25: Line 25:
 
<br />
 
<br />
  
== Instructions for getting Neocron working with Vanilla Wine ==
+
== Instructions for getting Neocron working with Wine ==<br />
 
 
 
<br />
 
<br />
 
''I just copied my Neocron 2.2 folder from my NTFS drive, so I include no instructions for installing Neocron''<br />
 
''I just copied my Neocron 2.2 folder from my NTFS drive, so I include no instructions for installing Neocron''<br />
 
<br />
 
<br />
<br />
+
'''Update! Automatrix is outdated, and WineDoors is unsupported. WineHQ Recommend the use of Winetricks.'''<br />
'''Update! Since automatix seems to be gone, I have included instructions on how to install these items you need manually'''<br />
+
These instructions are for people who have just installed Ubuntu<br />
These instructions are for people who have just installed Ubuntu
+
----<br />
----
 
<s>1. Download and install [http://www.getautomatix.com Automatix2].</s><br />
 
<s>2. Install Wine from Automatix and Extra Fonts package, and whatever else you want to install.</s><br />
 
<s>3. Download and install [http://www.wine-doors.org/wordpress/ Wine-Doors].</s><br />
 
These 3 steps have CHANGED!
 
  
1. Install Wine and ubuntu-restricted-extras from your terminal with the following -> sudo apt-get install wine ubuntu-restricted-extras
+
1. Install Wine and ubuntu-restricted-extras from your terminal with the following<br />
2. Make sure you have subversion installed "sudo apt-get install subversion" and make sure you have build-essential "sudo apt-get install build-essential" and also orange "sudo apt-get install orange"
+
'''sudo apt-get install wine ubuntu-restricted-extras'''<br />
3. Install Wine-Doors from subversion using the following
+
2. Run the command '''winecfg''' in terminal, this will setup your user account for Wine.<br />
<blockquote>
+
3. Download Winetricks<br />
'''You can get the wine doors source code via svn;'''<br />
+
'''wget http://www.kegel.com/wine/winetricks'''<br />
 +
4. Install the following packages via Winetricks<br />
 +
''Visual C++ Runtime Libraries 6''<br />
 +
''MS Core Fonts''<br />
 +
''Microsoft Foundation Classes 4''<br />
 +
With the following command;<br />
 +
'''sh winetricks corefonts vcrun6 mfc42'''<br />
 
<br />
 
<br />
svn co http://www.wine-doors.org/svn/wine-doors/trunk wine-doors<br />
+
5. Now just run the launcher! Either by double clicking the exe, or in terminal cd to the Neocron directory and type <b>wine NeocronLauncher.exe</b><br />
 
<br />
 
<br />
'''Installing'''<br />
+
Done! Neocron should now run smoothly.<br />
cd wine-doors<br />
 
sudo python setup.py install<br />
 
</blockquote>
 
<br />
 
4. Install the following packages from Wine-Doors<br />
 
Visual C++ runtime libraries 6<br />
 
All fonts available<br />
 
Common Controls 5<br />
 
DCOM 98<br />
 
Microsoft Jet 4<br />
 
Microsoft Foundation Classes 4<br />
 
MSXML 4<br />
 
DirectX9<br />
 
Internet Explorer 6<br />
 
Windows Scripting Host 5<br />
 
Windows Installer 2<br />
 
Visual Basic Common Controls 6<br />
 
Visual Basic Runtime Libraries 5<br />
 
Visual Basic Runtime Libraries 6<br />
 
''If any fail, just keep trying until they are installed, sometimes a few will fail because others were not installed first.''<br />
 
'''Do NOT press any keys or be doing anything else while they install, they will automatically press keys for you to finish the installs.'''<br />
 
 
<br />
 
<br />
 +
<hr><br />
 +
If not, you may need to follow these additional instructions:<br /><br />
 +
 
6. Copy your Neocron2.2 directory over to ~/.wine/drive_c/Program\ Files/<br />
 
6. Copy your Neocron2.2 directory over to ~/.wine/drive_c/Program\ Files/<br />
 
7. run winecfg and Add Application Client.exe with the following options<br />
 
7. run winecfg and Add Application Client.exe with the following options<br />

Revision as of 18:34, 7 September 2008

Huge thanks to vitamin and all the guys at #winehq on irc.freenode.net for all the help they gave me in this. Could not have done it without you guys!

Credit and questions go to MrTrip for this wiki entry (Josh@DigitallyEvolved.net - MrTrip on NC forums)

Neocron 2.2 in Linux with Wine

This has been tested on Ubuntu Linux x86, the system stats follow

AMD Athlon64 X2 5200+ Dual Core
2 GB DDR2 800Mhz
XFX GeForce 7900GS
Ubuntu Linux X86 (Feisty Fawn)

Wine 1.0 Installed from Ubuntu repository.

Neocron 2.2 in Linux with Cedega


AMD Athlon64 3700+
1 GB DDR2 800Mhz
GeForce 7900GT
Ubuntu Linux X86 (Gutsy Gibbon)

TransGaming Cedega Version 6.0.2

== Instructions for getting Neocron working with Wine ==

I just copied my Neocron 2.2 folder from my NTFS drive, so I include no instructions for installing Neocron

Update! Automatrix is outdated, and WineDoors is unsupported. WineHQ Recommend the use of Winetricks.
These instructions are for people who have just installed Ubuntu



1. Install Wine and ubuntu-restricted-extras from your terminal with the following
sudo apt-get install wine ubuntu-restricted-extras
2. Run the command winecfg in terminal, this will setup your user account for Wine.
3. Download Winetricks
wget http://www.kegel.com/wine/winetricks
4. Install the following packages via Winetricks
Visual C++ Runtime Libraries 6
MS Core Fonts
Microsoft Foundation Classes 4
With the following command;
sh winetricks corefonts vcrun6 mfc42

5. 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.



If not, you may need to follow these additional instructions:

6. Copy your Neocron2.2 directory over to ~/.wine/drive_c/Program\ Files/
7. 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]

8. Copy msvcrt.dll and quartz.dll from your C:\Windows\System32 folder on your WIndows machine to ~/.wine/drive_c/windows/system32
9. From the terminal, go to your Neocron 2 folder (cd ~/.wine/drive_c/Program\ Files/Neocron2/) and type wine Client.exe -sysconfig
10. Setup your options and click OK.
11. From the terminal again type wine Client.exe -precache PlayTutorial
12. After making sure that it works, you need to make sure that in your /etc/hosts file, your hostname is set to resolve to your external IP, NOT LOCALHOST!
13. Now just fire up Client.exe and connect! WORKS!

A few notes on getting things working, sometimes you have to fiddle with the msvcrt.dll or quartz.dll file versions to get the one that works properly. I offer the versions I use on my website at http://areamc5.info/linux to get things rolling

Instructions for getting Neocron working with Cedega


Neocron 2.2 can be run directly from an NTFS drive. No need to copy it over. I assume it will install nicely in Cedega, please let me know otherwise.


These instructions should work for people on all GNU/Linux distros.


1. Download and install Cedega.
2. Open Cedega, go to Tools > Game Folders > Add. Call it NC2, or whatever you want.
3. Right click the game folder you just created, click 'Add Shortcut' and point it directly to your NC2 Client.exe

  This can be on an NTFS drive if you havn't copied it accross e.g. "/media/hda1/Games/Neocron2.2/Client.exe".

4. Give the shortcut a name (Neocron), and Extract the icon.

5. In the "Command Line Options" enter '-sysconfig'. Press Ok.
6. Run Neocron (double click, or hit 'Start').

7. Now right click the Neocron shortcut, go to 'Properties' and replace the 'Command Line Option' with -precache PlayTutorial

  If the game loads the tutorial, which it should, you now have a working NC2 :)

8. You can remove the Command Line Options now.
9. You will need to edit your /etc/hosts file in order to play online. Replace your hostname (LOCALHOST) with your external IP.
10. Now just launch the game and play! >:D



And there you have it! As far as we have gotten with Neocron in Linux.

Notes on getting the launcher to play nicely

With the recent server re-shuffle i'd been having trouble getting the launcher working. First off you need to get version 6 of MFC42.dll and put it in your neocron directory.

Edit ini/updater.ini so it looks like this:

SERVERIP=83.236.174.254
PORT=8020
PATCHPREFIX=patches\cp
EXE=Client.exe
GAMESERVERIP=83.236.174.254
HOMEURL=http://launcher.neocron.com/
FTPSERVER=ftp.neocron.com
TESTPATCHDIR=/nc2testserver
RETAILPATCHDIR=/nc2retail
ISRETAILVERSION=1
USELOCALPORT=0
LOCALPORT=0

And finally launch NeocronUpdater.exe from the wine command line as such

xenocide@trillian:~/.cedega/NC2/c_drive/Program Files/neocron2$ wine NeocronLauncher.exe

This will allow you to watch for any other DLL conflicts/needs and rectify them. You can now start your game patched up!