TribesNext

TribesNext.com Forums => Support => Topic started by: Thyth on June 17, 2010, 05:57:15 PM



Title: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Thyth on June 17, 2010, 05:57:15 PM
This is an experimental release of a compatibility restoration patch for TribesNext under Wine.

To use this, follow these instructions:
1) Install the game from the GameSpy Installer (as you would in Windows).
2) Install the TribesNext RC2 patch on top of the game (as you would in Windows).
3) Copy msvcrt-ruby187.dll from the archive into .wine/drive_c/Dynamix/Tribes2/GameData/ and delete msvcrt-ruby190.dll that is in the same directory.
4) Overwrite .wine/drive_c/Dynamix/Tribes2/GameData/rubyintersect.dll with the one provided in this archive.
5) Launch the game normally.

This patch reverts the internal embedded interpreter version to Ruby 1.8.7 from Ruby 1.9.0 (which deadlocked in Wine, stopping the game from initializing); it also modifies the interpreter connector to work around the finicky requirements of the Ruby 1.8.7 code (which prompted the change to 1.9.0 in the first place).

All of the patch features should be functional, including creation of accounts under Wine, logging in, joining games, hosting games, and so forth. Please report back if you have difficulties doing any of those things.

While this modified patch can be applied to a Windows installation as well (which is where I did most of the client testing), nothing will be gained by doing so.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: VashTexan on June 21, 2010, 09:17:38 AM
I've been trying to test the patch on Linux, but I can't get any farther than the log-in screen for online.

When I try to log in, it says my log in name or password was incorrect. Even after having someone else make a new account for me, the same result. I checked and rechecked several times over that everything was correct.

When I try to make a new account myself, at Step One, it says "Please wait as the server status is checked" for a while, then it says "The server address has not yet been retrieved. Close this page and try again in a moment."


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: jonah.harris on June 21, 2010, 06:05:05 PM
I followed the steps exactly, but I get the, "your game is not running the patched executable" message when trying to create an account.  My platform is Ubuntu 9.04 (x86) running wine-1.2-rc2.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Thyth on June 21, 2010, 07:21:46 PM
Can you run an MD5 and/or SHA1 on the Tribes2.exe located in GameData? Sounds like the installer failed to apply the binary delta patch.

Original values are:
MD5(Tribes2.exe)= 188cbf910fa40e56b7c9382113e15cc9
SHA1(Tribes2.exe)= 0e1af0b89ec571305fac241c8907987130f30bab

Patched values are:
MD5(Tribes2.exe)= 766bc1bd4fde4c59f44093df8bbefa6b
SHA1(Tribes2.exe)= 55cdfe2b360233def9a06a7a45ce8df3a319cbfb


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: jonah.harris on June 21, 2010, 08:32:42 PM
jharris@jd:~/.wine/drive_c/Dynamix/Tribes2/GameData$ md5sum Tribes2.exe
766bc1bd4fde4c59f44093df8bbefa6b  Tribes2.exe
jharris@jd:~/.wine/drive_c/Dynamix/Tribes2/GameData$ sha1sum Tribes2.exe
55cdfe2b360233def9a06a7a45ce8df3a319cbfb  Tribes2.exe


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: tweak on June 21, 2010, 11:46:37 PM
jharris@jd:~/.wine/drive_c/Dynamix/Tribes2/GameData$ md5sum Tribes2.exe
766bc1bd4fde4c59f44093df8bbefa6b  Tribes2.exe
jharris@jd:~/.wine/drive_c/Dynamix/Tribes2/GameData$ sha1sum Tribes2.exe
55cdfe2b360233def9a06a7a45ce8df3a319cbfb  Tribes2.exe


I can confirm the same hashes under ubuntu 10.04 with wine 1.2-rc4


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: VashTexan on June 22, 2010, 07:30:40 AM
Sorry about not putting the most important part: the wine version.

For the test I tried above, I used wine-1.2-rc1, because theoretically (and I've sometimes found to be true) wine-1.2 is much more compatible with programs.

However, it seems Tribes 2 is stuck at older versions of wine. I got through the log-in just fine with good old, long&tough-tested

wine-1.1.11

I have yet to test how long I can play online without an UE. I'll post again when I find out whether or not UE frequency is still ridiculous (it was usually at least 1 per map, with some maps doing them non-stop). Tell me if a specific UE number is important, as the crashes are often difficult to recover from.

As for the "your game is not running the patched executable" message, I got that too at some points, but that was just because of the .cs.dso 's. Use a DSO-remover and it should at least get rid of that. However, I think you'll run into the same hitch I did, so you might wanna try wine-1.1.11 or a similar Tribes-2 compatible version (I'm not certain of all the versions that work, myself).

EDIT: Played from 18:30 starting on map Mimicry, but it crashed at 18:48 on map Damnation with: "err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x3cd4d0" in the terminal, instantly, with no pop-up UE.

Again at 18:58 on map Damnation, same instantaneous with no pop-up UE: "err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x3cd4d0
err:seh:raise_exception Exception frame is not in stack limits => unable to dispatch exception.
wine client error:9: write: Bad file descriptor"


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Thyth on June 22, 2010, 11:54:36 AM
I should clarify that this modified patch version only fixes the Wine incompatibility regression introduced between the RC1e and RC2 versions of the TribesNext patch, when I upgraded the Ruby interpreter version.

The interpreter problem was a serious show stopper (game wouldn't launch), but certainly not the only issue leading to instability in the game. As I don't have source code to the game, I can't solve the larger problems caused by the differences in W32 API implementations between Windows proper and Wine. The most I can do is ensure that the code I add doesn't lead to additional problems.

Nil is working on replacements for the script based TCP sockets, which are evidently a big source of unhandled exceptions when running in Wine (and used heavily in the TribesNext patch to implement account server interfaces, list server interfaces, IRC, and soon browser/mail). When I merge those changes, it may improve stability somewhat.

As far as specific UEs, the only value of real interest is the address (in that case 0x3cd4d0), which states the machine-code instruction address that threw an exception. Unfortunately, without a full stack trace, and without the source code to the game, it's difficult (and very time consuming) to really do anything about the particular instabilities.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: VashTexan on June 23, 2010, 04:54:30 AM
Ah, I see. In that case, the least I can do is test if I can Create a new account. So I did...

I got all the way through Step Three of the process. On pushing the [Finish] button at Creating a new account, the game and mouse freeze up ->

*Terminal:

err:seh:setup_exception_record stack overflow 816 bytes in thread 001e eip f7c5e8e6 esp 00411000 stack 0x410000-0x411000-0x610000

*Pop-Up UE:

Unhandled exception: c0000094
At address: 0042d8ae

I could NOT log in with the account I tried to make, so the message did not get through to the Account server.

Hope this helps, tell me if you need anything more tested, or if there's any logs I can send to give more information.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: lpbbear on June 30, 2010, 04:10:26 AM
I have tried this method and it worked for me. Other than some issues during the initial log in the game has been stable in Linux....so far. :)

See my post at the Legends forums regarding this.

http://legendsthegame.net/forums/showpost.php?p=24501&postcount=3

Main thread link.

http://legendsthegame.net/forums/showthread.php?t=2619


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Blakhart on June 30, 2010, 08:00:54 PM
yay for linux!


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: VashTexan on July 04, 2010, 07:22:29 AM
I have tried this method and it worked for me. Other than some issues during the initial log in the game has been stable in Linux....so far. :)

See my post at the Legends forums regarding this.

http://legendsthegame.net/forums/showpost.php?p=24501&postcount=3

Main thread link.

http://legendsthegame.net/forums/showthread.php?t=2619

I'm sorry but it doesn't work for me. After installing Tribes 2 with the Tribes Next RC2a patch, I had to alternate between installations of wine-1.1.11 and wine-1.2-rc5, and I found that I can ONLY log in online with wine-1.1.11.

Whenever I try to log in with wine-1.2-rc5, I get that the password is incorrect and to check the username/password, even though I set it to remember the exact same password with wine-1.1.11 (and it consistently did remember the correct password with wine-1.1.11 and the log-in went just fine). Oftentimes, the game also freezes up when trying to log-in with wine-1.2-rc5.

I can NOT get past the authentication part, and it certainly won't allow me to retrieve the account properly either because "The password is not correct. Try again." So no retrieving my account and no log-in.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: lpbbear on July 05, 2010, 09:06:01 AM
I'm sorry but it doesn't work for me. After installing Tribes 2 with the Tribes Next RC2a patch, I had to alternate between installations of wine-1.1.11 and wine-1.2-rc5, and I found that I can ONLY log in online with wine-1.1.11.

Sorry to hear it did not work for you as well as it did for me. I update my Wine version with every new release so I will post back how my copy is doing. In the past I have seen numerous regressions and later fixes as Wine has progressed so I expect occasional issues as I update.

(Thanks to Thyth for making the effort at supporting us Linux users BTW)

BTW, enjoyed chatting and playing with you yesterday in Legends.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: VashTexan on July 05, 2010, 10:48:44 AM
Sorry to hear it did not work for you as well as it did for me. I update my Wine version with every new release so I will post back how my copy is doing. In the past I have seen numerous regressions and later fixes as Wine has progressed so I expect occasional issues as I update.

Yes, we can only hope each new wine version will help more than it'll break.

(Thanks to Thyth for making the effort at supporting us Linux users BTW)

Hear, hear!  :D

BTW, enjoyed chatting and playing with you yesterday in Legends.

Likewise, though I'm not usually so free. It still amazes me :o , as I've been wishing for a true Tribes 2 remake since long, and here it is, as Legends!  :D  ;D But I'm wondering if it would be okay to take what was left over from failed Tribes 2 remakes, as at least RenWorks' Ascension released the code base for what they completed. Maybe it could help a bit?  (Note, it might not be a good idea to discuss it here, in this thread... It's just food for thought).  ;)


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: EliTe3K on July 18, 2010, 09:52:26 PM
Are there any known issues with the new iMac computers running t2 ?
If so what should I expect ? And a resolve for known issues ..
Mac OS X v10.6 Snow Leopard
    *  NVIDIA GeForce 9400M graphics processor with 256MB of DDR3 SDRAM shared with main memory3
    * ATI Radeon HD 4670 graphics processor with 256MB of GDDR3 memory
    *  3.06GHz Intel Core 2 Duo processor with 3MB shared L2 cache

    * 3.33GHz Intel Core 2 Duo processor with 6MB shared L2 cache
just some specs on what I may get ....just wondering if anyone had any issues running t2 with this set? thanks


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: lpbbear on July 25, 2010, 05:17:38 AM
Just to let anyone know who is following this thread. I recently updated Wine to the latest release, 1.2, and so far no problems at all on Linux. I did see some problems with the rc versions just before this but this full version has worked flawlessly. Just spent about an hour and a half playing with no crashes.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Apex on August 12, 2010, 04:09:18 PM
I followed the steps exactly, but I get the, "your game is not running the patched executable" message when trying to create an account.  My platform is Ubuntu 9.04 (x86) running wine-1.2-rc2.

I can confirm this, Ubuntu 10.04. About to try again with an older build of wine.

--Edit--
Client seems to run fine under Wine 1, as opposed to the newer 1.2.

Upon attempting to connect to a server running the experimental patch, this happens:
Image (http://mcafeeweb.webhop.net/~hayden/images/t2-linux-experimental-error-01.png)
And the client whines about either having an invalid account certificate, or receiving an invalid response from the server. I'll try running the server under different versions of Wine to see if anything changes.

--2nd Edit --
Server seems to run properly under Wine 1. Haven't tested for extended periods of time.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Thyth on August 13, 2010, 12:43:47 PM
I assume in the script code that the Ruby interpreter is functioning properly. The runtime errors seem to indicate otherwise. If the Ruby interpreter is returning wonky data (during connection, those would be signature checks and SHA1 hashes), it's easily possible that the script will fail in strange ways.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Spencer on October 15, 2010, 08:56:58 AM
Alright, I had a go at installing windows on my mac using boot camp but it did not work and it seems like it will be more of a headache then trying to get this workaround to work.  I have installed T2 / rc2 again with crossover games and followed the instructions in this thread but T2 will not launch.  The T2 icon shows up in the doc for a few secs then just goes away.  What might my next steps be?


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Spencer on October 15, 2010, 09:31:33 AM
I'll check into the IRC channel to try and catch you Thyth, hopefully you can shed some light on my problem then.

EDIT: Apex has helped me out on the IRC channel, I will be able to test his fix tonight but I think it will work.  Thanks man!

EDIT: Fix worked, thanks.  See you online


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: djfuq on December 09, 2010, 01:29:17 AM
Hi all,

Here are my results:

Dist:  Ubuntu 10.10  amd64

HW: P55 chipset - i5 cpu - nvgeforce 240gs


wine 1.2 ---------------------------------------------

Install procedure
Install game:
wine Downloads/tribes2gsi.exe
wine Downloads/TribesNext_rc2a.exe

Output folder: C:\Tribes2\GameData
Patching console_start.cs.
Copy to C:\Tribes2\GameData\console_start.cs.bak
Rename: C:\Tribes2\GameData\Tribes2.exe->C:\Tribes2\GameData\Tribes2.exe.bak
Extract: jpatch-w32.exe
Extract: patch.bdiff
Patching Tribes2.exe.
Delete file: jpatch-w32.exe
Delete file: patch.bdiff
Installing everything else.
Rename: C:\Tribes2\GameData\SierraUp.exe->C:\Tribes2\GameData\SierraUp.exe.bak
Extract: SierraUp.exe
Extract: t2csri_eula.txt
Extract: t2dll.dll
Extract: rubyintersect.dll
We know you like it.
Extract: msvcrt-ruby190.dll
Output folder: C:\Tribes2\GameData\base
Extract: T2csri.vl2
Created uninstaller: C:\Tribes2\GameData\TN_Uninstall.exe
Completed



Copy msvcrt-ruby187.dll from the archive into .wine/drive_c/Dynamix/Tribes2/GameData/ and delete msvcrt-ruby190.dll that is in the same directory.
Overwrite .wine/drive_c/Dynamix/Tribes2/GameData/rubyintersect.dll with the one provided in this archive.



It starts
At first it complained that my game wasnt running the patched executable.
I closed the game, and reapplied the patched exe again.
I then recopied the dlls from Thyth's ruby stuff
deleted msvcrt-ruby190.dll again

reran, this time got different result when trying to retrieve account
"Credential download failed"

tried this with both my accounts.

same thing.

now tried to create another account:
first time "please wait as the server status is checked"
got:
"the server address has not yet been retrieved"

then

"the account server is OFFLINE and unreach...."

hit cancel

tried create account again

now the shit works and says
"the account server is online and connectable"

so I continue through the process of making an account
get to the end when i have chosen account name and pw
UE c0000094
at addr  0042d8e


tried deleting dso files and doing all the above again... no dice

open it again "your game is not running the patched exe"
im like wtf at this point.. is it cos i deleted the dso files?  yes.
hmmm


also tested with wine1.3 with same result.
(deleted the .wine dir each time in reinstall wine)

I am baffled. wtf could be wrong??

its almost like the networking in T2 is hosed..

what should I try next?

ahh i know try wine1.0

removed .wine dir in home folder
removed wine1.3

installed wine1.0

Install procedure
Install game:
wine Downloads/tribes2gsi.exe
wine Downloads/TribesNext_rc2a.exe

Output folder: C:\Tribes2\GameData
Patching console_start.cs.
Copy to C:\Tribes2\GameData\console_start.cs.bak
Rename: C:\Tribes2\GameData\Tribes2.exe->C:\Tribes2\GameData\Tribes2.exe.bak
Extract: jpatch-w32.exe
Extract: patch.bdiff
Patching Tribes2.exe.
Delete file: jpatch-w32.exe
Delete file: patch.bdiff
Installing everything else.
Rename: C:\Tribes2\GameData\SierraUp.exe->C:\Tribes2\GameData\SierraUp.exe.bak
Extract: SierraUp.exe
Extract: t2csri_eula.txt
Extract: t2dll.dll
Extract: rubyintersect.dll
We know you like it.
Extract: msvcrt-ruby190.dll
Output folder: C:\Tribes2\GameData\base
Extract: T2csri.vl2
Created uninstaller: C:\Tribes2\GameData\TN_Uninstall.exe
Completed



Copy msvcrt-ruby187.dll from the archive into .wine/drive_c/Dynamix/Tribes2/GameData/ and delete msvcrt-ruby190.dll that is in the same directory.
Overwrite .wine/drive_c/Dynamix/Tribes2/GameData/rubyintersect.dll with the one provided in this archive.


MOTHERFUCKING BINGO!!! YESSSS!!!  YESSS!! IT WORKS!!! OMG THANKS!!!!! YEY!!!!!

well I guess lesson learned... use wine1.0 if you want this game to run.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Pun1sher on April 15, 2011, 12:40:17 AM
I'm running snow leopard, can't get this to work.


I tried installing on a windows 7 virtual machine first, but i always get unhandled exceptions at launch.(c0000005 at adress 0000000) i'm still going through the troubleshooting there, but i'd rather play trough wine if possible.


I did the installation as described here, everything appeared to go well, however when i go to launch nothing happens. is there something i have to do with wine? and what do you mean by "gamespy installer"?

sorry if these are noob questions, i'm just really trying to make this work. i actually remember playing construction with thyth(wasn't it electrutioner back then?) years ago. good times.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Turkeh on April 15, 2011, 04:50:01 AM
The "gamespy installer" is the Tribes2_gsi.exe that you can find in the downloads section.

The unhandled exception for win7 is probably because the VM doesn't have direct access to the GPU, so it likely didn't load a proper driver with support for OpenGL/D3D.

Try running your wine based install via the terminal, and see what it cries about there...
Code:
$ cd /path/to/Tribes2/GameData/
$ wine ./Tribes2.exe -online


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Pun1sher on April 15, 2011, 06:30:42 AM
The "gamespy installer" is the Tribes2_gsi.exe that you can find in the downloads section.

The unhandled exception for win7 is probably because the VM doesn't have direct access to the GPU, so it likely didn't load a proper driver with support for OpenGL/D3D.

Try running your wine based install via the terminal, and see what it cries about there...
Code:
$ cd /path/to/Tribes2/GameData/
$ wine ./Tribes2.exe -online

When i put in the file path to gamedata it just tells me that is a directory, and when i put in the next line it just says "command not found"


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Heat Killer on April 18, 2011, 09:42:35 AM
The "gamespy installer" is the Tribes2_gsi.exe that you can find in the downloads section.

The unhandled exception for win7 is probably because the VM doesn't have direct access to the GPU, so it likely didn't load a proper driver with support for OpenGL/D3D.

Try running your wine based install via the terminal, and see what it cries about there...
Code:
$ cd /path/to/Tribes2/GameData/
$ wine ./Tribes2.exe -online

When i put in the file path to gamedata it just tells me that is a directory, and when i put in the next line it just says "command not found"
Make sure you point the cd command to the correct dirrectory.  'cd' means change directory, which is like navigating to that folder using finder.
"command not found" probably means you do not have wine installed ocrrectly


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: juliandola on May 20, 2011, 05:50:31 AM
this work fine...i have problem for locate that post. i think this must be up in search, or link to the index, for the linux player...
i need 2 days search for locate...

Thyth
Apotheosis Incarnate

Posts: 627

View Profile
   
June 17, 2010, 05:57:15 PM
   
This is an experimental release of a compatibility restoration patch for TribesNext under Wine.

To use this, follow these instructions:
1) Install the game from the GameSpy Installer (as you would in Windows).
2) Install the TribesNext RC2 patch on top of the game (as you would in Windows).
3) Copy msvcrt-ruby187.dll from the archive into .wine/drive_c/Dynamix/Tribes2/GameData/ and delete msvcrt-ruby190.dll that is in the same directory.
4) Overwrite .wine/drive_c/Dynamix/Tribes2/GameData/rubyintersect.dll with the one provided in this archive.
5) Launch the game normally.

This patch reverts the internal embedded interpreter version to Ruby 1.8.7 from Ruby 1.9.0 (which deadlocked in Wine, stopping the game from initializing); it also modifies the interpreter connector to work around the finicky requirements of the Ruby 1.8.7 code (which prompted the change to 1.9.0 in the first place).

All of the patch features should be functional, including creation of accounts under Wine, logging in, joining games, hosting games, and so forth. Please report back if you have difficulties doing any of those things.

While this modified patch can be applied to a Windows installation as well (which is where I did most of the client testing), nothing will be gained by doing so.
Attached files
* TribesNext_RC2_LinuxVersion.zip (373.89 KB - downloaded 280 times.)


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: JudgeHershey on May 21, 2011, 01:03:17 AM
It's tricky to find all the right info right away, but here it's the first post, and it's stickied (always at the top of the Support forum). The only thing missing is a working wine version. So far, Wine-1.0 seems to run the best with the set-up. Others tend to give problems, or much more frequent UEs.

It would be nice to have a link and instructions right on the official downloads page, specifically for Linux... (Get Wine 1.0 or Wine ___ , Get Tribes2gsi, etc.). I guess the same for Mac. Although, non-Windows users tend to be a bit more persistent than Windows users when trying to find something and get something to work (hence the 2 days... although I call that a bad search or a terrible connection).

Best Wine versions (in order of best to worst):

1) Wine-1.0
2) Wine-1.1.11
3) Wine-1.0.1
4) Wine-1.2


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: MaDAssassin on July 04, 2011, 09:48:17 AM
Can someone please post the archive with ruby 1.8.7 and the other dll?

Thanks


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Thyth on July 04, 2011, 12:43:53 PM
The archive is attached to the first post of this thread.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on July 14, 2011, 03:07:58 AM
Um, how can I execute the bat file in wine, that's needed to run tribes? Cuz my wine does not recognize bat files... :(


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on July 15, 2011, 05:05:10 AM
Ok, I managed to start the game by opening a console at the gamedata directory -> wine cmd.exe then typing classic_online.bat in the command line.
I can only report that the game runs fine until I attempt to join a server - then "invalid account certificate" error pops up... wine 1.0.1 & xubuntu with xfce 4.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Heat Killer on July 15, 2011, 08:23:13 PM
Code:
wine cmd foo.bat


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on July 16, 2011, 10:08:14 AM
Ok, but any comment on the "invalid account certificate" error message? Is it common or is it just me?


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Thyth on July 16, 2011, 12:10:45 PM
It's something I'll investigate.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on July 31, 2011, 01:37:18 AM
This time I tried Tribes 2 on Pardus 2011, with wine version 1.3.23. This time it couldn't even get through the login screen: it says that I'm not running the patched exe. But I obviously do run that, since it clearly shows the TribesNext logo above the login panel. I have both winetricks and gecko installed...
On the other hand, Solo&LAN works just fine. And since I can connect to a server by IP (insert key) or by marking them as favourites, even from lan game mode I can connect to servers like GoonHaven, right?


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on July 31, 2011, 11:50:30 AM
I tried to connect to goon haven through LAN mode, no success. It says the same thing when I try to connect: im not using the patched version... :( The solo game works just fine though...


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on August 08, 2011, 05:31:00 PM
I was wondering whether there would be any possible way to get tribes working through play on linux?


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on August 09, 2011, 02:23:48 PM
I tested the game again on wine 1.0.1, this time on Bodhilinux (Ubuntu 10.04 with E17). Now its working just fine...


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on August 10, 2011, 08:50:53 AM
No, I was wrong. Still getting the "invalid account certificate" problem. I think I should go to wine 1.1.11, ok, but how could I get that? It doesn't appear in the wine database. Sad. :(


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: cnaeus on August 10, 2011, 03:22:55 PM
Here I go. Wine 1.1.11 - and it freezes at the "logging in" screen.  :'(


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Plexor on January 20, 2013, 04:54:22 PM
I have been having success running TribesNext RC2a on Arch Linux x86_64 with wine 1.5.22.

This is all I did to get the patch to work:

1. Replace the GameData/msvcrt-ruby190.dll with the 190-2 version found at ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/unstable/ruby-1.9.0-2-i386-mswin32.zip (ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/unstable/ruby-1.9.0-2-i386-mswin32.zip) (under the 'bin' directory)

2. Add a dll override to wine using winecfg.  Add 'msvcrt' so that wine uses the native Tribes 2 MSVCRT.dll instead of the wine version.

3. Run Tribes 2 normally:
 
Code:
$ wine Tribes2.exe -online

Notes:
-Depending on your window manager, You may need to enable 'Automatically capture the mouse in full-screen windows' and 'Emulate a virtual desktop.'

-'Windows version' set to 'Windows 7' or 'Windows XP' both worked for me.

-This is based on a freshly created WINEPREFIX, everything is default and no winetricks are installed.

-For setting up a dedicated server on Linux, see my other post (http://www.tribesnext.com/forum/index.php?topic=762.msg26296#msg26296).


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Ragora on January 23, 2013, 01:17:06 PM
I have been having success running TribesNext RC2a on Arch Linux x86_64 with wine 1.5.22.

This is all I did to get the patch to work:

1. Replace the GameData/msvcrt-ruby190.dll with the 190-2 version found at ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/unstable/ruby-1.9.0-2-i386-mswin32.zip (ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/unstable/ruby-1.9.0-2-i386-mswin32.zip) (under the 'bin' directory)

2. Add a dll override to wine using winecfg.  Add 'msvcrt' so that wine uses the native Tribes 2 MSVCRT.dll instead of the wine version.

3. Run Tribes 2 normally:
 
Code:
$ wine Tribes2.exe -online

Notes:
-Depending on your window manager, You may need to enable 'Automatically capture the mouse in full-screen windows' and 'Emulate a virtual desktop.'

-'Windows version' set to 'Windows 7' or 'Windows XP' both worked for me.

-This is based on a freshly created WINEPREFIX, everything is default and no winetricks are installed.

-For setting up a dedicated server on Linux, see my other post (http://www.tribesnext.com/forum/index.php?topic=762.msg26296#msg26296).

I have not been able to run Tribes 2 in WINE at all for months, any version that even allowed Ruby to work properly. It merely locked up at some point in execution however I will look into this myself momentarily.

Edit:
On my LUbuntu 12.10 AMD64 machine, running WINE 1.5 it had indeed worked. Audio performed as it should (it did not work on the older versions of WINE you're supposed to be using it with) however I seem to be having segfaults randomly which I'm looking into now.

The problem may be related to how threading is working as shortly after the console mentions about switching from multi-threaded mode to apartment threaded mode a segfault is raised and I get a wait timed out error in lock.c.
Code:
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:avifile:AVIFileExit (): stub!
fixme:avifile:AVIFileExit (): stub!
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x3ed4d0
Segmentation fault (core dumped)
ragora@Tye:~/.wine/drive_c/Dynamix/Tribes2/GameData$ err:ntdll:RtlpWaitForCriticalSection section 0x7ed16b14 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0029, blocked by 0025, retrying (60 sec)
This occurs after a few minutes of playtime.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Plexor on January 23, 2013, 04:43:41 PM
On my LUbuntu 12.10 AMD64 machine, running WINE 1.5 it had indeed worked. Audio performed as it should (it did not work on the older versions of WINE you're supposed to be using it with) however I seem to be having segfaults randomly which I'm looking into now.

The problem may be related to how threading is working as shortly after the console mentions about switching from multi-threaded mode to apartment threaded mode a segfault is raised and I get a wait timed out error in lock.c.
Code:
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:avifile:AVIFileExit (): stub!
fixme:avifile:AVIFileExit (): stub!
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x3ed4d0
Segmentation fault (core dumped)
ragora@Tye:~/.wine/drive_c/Dynamix/Tribes2/GameData$ err:ntdll:RtlpWaitForCriticalSection section 0x7ed16b14 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0029, blocked by 0025, retrying (60 sec)
This occurs after a few minutes of playtime.

Not sure if this will fix the issue, but try running tribes on a single processor core:
Code:
taskset 0x00000001 wine Tribes2.exe -online

Also, is there any more log output before the output you pasted?


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: Ragora on January 23, 2013, 05:08:21 PM
On my LUbuntu 12.10 AMD64 machine, running WINE 1.5 it had indeed worked. Audio performed as it should (it did not work on the older versions of WINE you're supposed to be using it with) however I seem to be having segfaults randomly which I'm looking into now.

The problem may be related to how threading is working as shortly after the console mentions about switching from multi-threaded mode to apartment threaded mode a segfault is raised and I get a wait timed out error in lock.c.
Code:
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:avifile:AVIFileExit (): stub!
fixme:avifile:AVIFileExit (): stub!
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x3ed4d0
Segmentation fault (core dumped)
ragora@Tye:~/.wine/drive_c/Dynamix/Tribes2/GameData$ err:ntdll:RtlpWaitForCriticalSection section 0x7ed16b14 "lock.c: LOCKTABLEENTRY.crit" wait timed out in thread 0029, blocked by 0025, retrying (60 sec)
This occurs after a few minutes of playtime.

Not sure if this will fix the issue, but try running tribes on a single processor core:
Code:
taskset 0x00000001 wine Tribes2.exe -online

Also, is there any more log output before the output you pasted?

There most likely was some output beforehand that I had not checked but I am currently checking to see if your solution is working.

Edit:

With your solution, I have been able to play for several hours without an issue.


Title: Re: Experimental RC2 Support for Linux/Wine and MacOSX/Crossover Users
Post by: MrTrip on December 04, 2013, 01:56:06 PM
I was wondering whether there would be any possible way to get tribes working through play on linux?

I'm working on a POL script to do everything for you, but I'm having a few minor issues right now with it. I'll update the thread when I'm done with it.

Edit- Done http://www.tribesnext.com/forum/index.php?topic=3300.0