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
m (Protected "Running Neocron in Linux": Locked - fishing out the missing bits and tidying page up [edit=sysop:move=sysop])
(Reformatted and rejigged so it's easier to read)
Line 1: Line 1:
<b>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!</b>
+
== Neocron 2.2 in Linux with Wine ==
 +
 
 +
This has been tested on the following systems..
 +
 
 +
* AMD Athlon64 X2 5200+ Dual Core
 +
* 2GB DDR2 800Mhz
 +
* GeForce 7900GS
 +
* Ubuntu Linux X86 8.04.1 LTS
  
''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 the following systems..
+
* Intel Core 2 Quad Q9300
<br />
+
* 4GB PC2-8500C5 1066MHz SLI-Ready DDR2
<br />
+
* GeForce 9800 GX2 1024MB GDDR3
AMD Athlon64 X2 5200+ Dual Core<br />
+
* Ubuntu GNU/Linux 32bit 8.04.1 LTS
2GB DDR2 800Mhz<br />
+
 
GeForce 7900GS<br />
+
== Instructions for getting Neocron working with Wine ==
Ubuntu Linux X86 8.04.1 LTS<br />
+
 
<br />
+
Some general notes:-
<br />
+
 
Intel Core 2 Quad Q9300<br />
+
* 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.
4GB PC2-8500C5 1066MHz SLI-Ready DDR2<br />
+
* The use of automatrix is outdated, and WineDoors is an unsupported hack. WineHQ recommend the use of Winetricks.
GeForce 9800 GX2 1024MB GDDR3<br />
+
 
Ubuntu GNU/Linux 32bit 8.04.1 LTS<br />
+
=== Installing Wine ===
<br />
+
 
 +
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.
 +
 
 +
=== If all else fails ===
 +
 
 +
If the above didn't work, you may need to follow these additional instructions
 +
 
 +
* Copy your Neocron2.2 directory over to '''~/.wine/drive_c/Program\ Files/'''
 +
* 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'''
 +
* 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!
 +
* Now just fire up '''Client.exe''' and connect!
 +
 
 +
=== Notes ===
 +
 
 +
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
  
 +
== Contacts and credits ==
  
'''== Instructions for getting Neocron working with Wine =='''<br />
+
Credit and questions go to MrTrip for this wiki entry (Josh@DigitallyEvolved.net - MrTrip on NC forums.
<br />
 
''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.''<br />
 
<br />
 
'''Update! Automatrix is outdated, and WineDoors is an unsupported hack. WineHQ recommend the use of Winetricks.'''<br />
 
----
 
<br />
 
First, we need to install Wine. I suggest adding wines repo to your list. This is a quote from their website..<br />
 
<br />
 
<blockquote>
 
Adding the WineHQ APT Repository:<br />
 
<br />
 
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:<br />
 
<br />
 
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
 
<br />
 
Next, add the repository to your system's list of APT sources:<br />
 
<br />
 
For Ubuntu Hardy (8.04):<br />
 
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list<br />
 
<br />
 
For Debian Etch (4.0):<br />
 
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list<br />
 
<br />
 
Then update APT's package information by running 'sudo apt-get update'. <br />
 
</blockquote>
 
<br />
 
1. Install Wine and ubuntu-restricted-extras from your terminal with the following<br />
 
'''sudo apt-get install wine ubuntu-restricted-extras'''<br />
 
<br />
 
2. Run the command '''winecfg''' in terminal, this will setup your user account for Wine.<br />
 
<br />
 
3. Download Winetricks<br />
 
'''wget http://www.kegel.com/wine/winetricks'''<br />
 
<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 />
 
5. Navigate to your Neocron directory in your terminal and run <b>wine Client.exe -precache</b> first. Then close the Client.
 
6. 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 />
 
Done! Neocron should now run smoothly.<br />
 
<br />
 
''Feel free to message BaDDaSS on NC forums with any questions about this updated wiki guide.''<br />
 
  
== If all else fails ==
+
Feel free to message BaDDaSS on NC forums with any questions about this updated wiki guide.
'''If the above didn't work, you may need to follow these additional instructions'''
 
  
6. Copy your Neocron2.2 directory over to ~/.wine/drive_c/Program\ Files/<br />
+
Huge thanks to vitamin and all the guys at #winehq on irc.freenode.net for all the help they gave me (MrTrip) in this. Could not have done it without you guys!
7. run winecfg and Add Application Client.exe with the following options<br />
 
Windows Version: Windows 98<br />
 
[Libraries]<br />
 
Override msvcrt, set to Native (Windows) [Thanks to vitamin in #winehq for this]<br />
 
Override quartz, set to Native (Windows) [Again thanks to vitamin in #winehq for this]<br />
 
<br />
 
8. Copy msvcrt.dll and quartz.dll from your C:\Windows\System32 folder on your WIndows machine to ~/.wine/drive_c/windows/system32<br />
 
9. From the terminal, go to your Neocron 2 folder (cd ~/.wine/drive_c/Program\ Files/Neocron2/) and type wine Client.exe -sysconfig<br />
 
10. Setup your options and click OK.<br />
 
11. From the terminal again type wine Client.exe -precache PlayTutorial<br />
 
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!<br />
 
13. Now just fire up Client.exe and connect! WORKS!<br />
 
<br />
 
''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''
 
<br />
 

Revision as of 12:41, 8 September 2008

Neocron 2.2 in Linux with Wine

This has been tested on the following systems..

  • AMD Athlon64 X2 5200+ Dual Core
  • 2GB DDR2 800Mhz
  • GeForce 7900GS
  • Ubuntu Linux X86 8.04.1 LTS


  • Intel Core 2 Quad Q9300
  • 4GB PC2-8500C5 1066MHz SLI-Ready DDR2
  • GeForce 9800 GX2 1024MB GDDR3
  • Ubuntu GNU/Linux 32bit 8.04.1 LTS

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.

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.

If all else fails

If the above didn't work, you may need to follow these additional instructions

  • Copy your Neocron2.2 directory over to ~/.wine/drive_c/Program\ Files/
  • 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
  • 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!
  • Now just fire up Client.exe and connect!

Notes

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

Contacts and credits

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

Feel free to message BaDDaSS on NC forums with any questions about this updated wiki guide.

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