TribesNext

Welcome, Guest. Please login or register.
Did you miss your activation email?


TribesNext >  TribesNext.com Forums >  Support >  The Linux Thread « previous next »
Pages: 1 2 [3] 4 5 6 Print
Author Topic: The Linux Thread
Thyth
Apotheosis Incarnate

Posts: 809

View Profile
30: February 16, 2009, 06:48:52 AM »
That certificate truncation issue should be sorted in RC2.

Sarcastic, narcissistic, genius, resurrecting the game with brilliant strokes of wizardry.
terracon
Nugget
Posts: 20

View Profile
31: February 16, 2009, 09:14:54 AM »
Quote
If anyone is interested in exactly what needs doing to get a playable copy running leave a message here and I'll post step by step instructions.

Yes. I would like this very much.
laeknishendr
Nugget
Posts: 7

View Profile
32: February 17, 2009, 04:19:21 AM »
Hello Terracon,

Firstly I'll say I'm using this on wine-1.1.9, any other wine versions might have unexpected (or expected) issues.

it's a bit verbose to explain everything in minute details so instead I have written a script to (hopefully) do it for you, it should be attached to this post.
Before running the script rename your Tribes2/GameData/base/T2csri.vl2 to T2csri.vl2.bak, the script will leave this untouched but assumes it to be a 'clean' copy from which it builds the new.

Extract the script,
$ chmod +x t2hack.py
$ ./t2hack.py /path/to/your/Dynamix/Tribes2/

you should now be able to launch T2 under wine (using Wine Tribes2.exe -online) but as the name suggests it really is just a nasty hack Wink But for me at least it's still more convenient than using Windows.
You will lose the server browser (use instead the MaxOGC link in the sticky in the main forums) meaning you'll have to join servers by IP but I'm afraid I'm unfamiliar with what console command allows that... One of the PJ scripts adds a 'join IP' button to the server list screen, but I'm not sure exactly which. Favourites still retains a list of servers but it can't query them.


Surprisingly, you also seem to be able to actually register accounts using this (which I tested once and managed to get through without Wine locking up), but if you do so, afterwards you'll have to quit and re-run the script in order to hard code the certificate for it.

You'll also have to re-run the script if your IP changes.

Hopefully it'll work but any problems let me know (BTW: if your env python variable is set to a Py3k interpretor you'll have to run it under a Py2.x interpretor instead; I think most if not all distros are still 2.x though)



A brief explanation of the files within T2csri.vl2 it modifies are:
scripts/autoexec/t2csri_list.cs -> renamed to t2csri_list.cs.null to prevent it being executed. This disables the server browser, and something else which caused wine to lock up randomly ish.
t2csri/ipv4.cs -> changes ipv4_getInetAddress() to define the computer's IP address at the top of the function (workaround for intro screen wine lockup)
t2csri/clientSide.cs -> changes t2csri_getAccountCertificate() to include the details from the public.store file (workaround for the truncated certificate issue)



Attached files
* t2hack.tar (1.55 KB - downloaded 447 times.)
terracon
Nugget
Posts: 20

View Profile
33: February 17, 2009, 10:08:34 AM »
$ ./t2hack.py ~/.wine/drive_c/Dynamix/Tribes2/
public.store not found - cert won't be updated -- you will need to rerun this script after you have an account.
Traceback (most recent call last):
  File "./t2hack.py", line 56, in <module>
    z.extractall(tmp, toextract)
AttributeError: ZipFile instance has no attribute 'extractall'
laeknishendr
Nugget
Posts: 7

View Profile
34: February 17, 2009, 10:39:23 AM »
ah why does nothing ever work as you want it to Tongue  okay, apparently that wasn't introduced til Python2.6 so presumably you have a pre 2.6 install
If you change line 56 to read:

os.popen("unzip " + gamedata + "/base/T2csri.vl2.bak " + " ".join(toextract) + " -d " + tmp)

that should do the same thing (assuming you have unzip installed)
terracon
Nugget
Posts: 20

View Profile
35: February 17, 2009, 11:55:46 AM »
I just did this and followed the instructions. Wow this works. Nicely done!
MojoBlue
Nugget
Posts: 11

View Profile
36: February 26, 2009, 10:38:43 AM »
It looks like the new RC1E update fixes a lot of what the t2hacks.py script fixes. A couple things to note though:

* If you do not run the t2hacks.py script after the RC1E update, the game will play, the server browser will work as well, but when you play eventually it will stop working during play. It hits whatever wine issue was existing before.

* If you apply the t2hacks.py script after the RC1E update, the game plays fine, but the server browser goes back to being broken.

So far the best solution I have found is to run the game without the the patch first, then favorite all of the servers you plan to play on. Then exit and apply the t2hacks.py script. That way the game doesn't timeout during play and you get all the favorites in your server list. At that point, you can still query them for status and everything else, you just can't get an 'All Servers' listing. If for some reason you want to go back to pre-t2hacks.py execution, simply remove the T2csri.vl2 and copy the backup T2csri.vl2 to that file and re-run and it's back to normal. I've had to do this a couple times to add other servers that would start up after I had applied the t2hacks script.
« Last Edit: February 26, 2009, 10:40:37 AM by MojoBlue »
Beer:30
Nugget
Posts: 3

View Profile
37: March 12, 2009, 11:23:55 PM »
I've got no idea why but I'm up and running.

Followed the below procedure posted by MojoBlue.

Installed PJ's all in one from the windows .exe via wine.

Reverted to the backup T2csri.vl2 and I appear to be working with the server browser and no mystery crashes.  I just had 4 hours of play without lockup.
laeknishendr
Nugget
Posts: 7

View Profile
38: March 13, 2009, 06:48:37 AM »
Which distro and wine version is that?  (run: wine --version)
Beer:30
Nugget
Posts: 3

View Profile
39: March 13, 2009, 05:02:45 PM »
Which distro and wine version is that?  (run: wine --version)

wine 1.0.1

Mint Linux 6 -  Ubuntu 8.10 derivative
Debianeer
Nugget
Posts: 3

View Profile
40: March 24, 2009, 07:28:55 PM »
this is a bump for great justice.

wine 1.0.1 working here perfectly too

Debian lenny/squeeze/sid Linux(32-bit install)

did the install, made an account, ran the RC1E update..

two 2 and a half hour stretches so far.

VICTORY, INFERNO.

cheers,
-m
echoed
Nugget
Posts: 8

View Profile
41: May 22, 2009, 11:23:23 AM »
Tribes 2 + Wine (1.0.1 and 1.1.5.. I've tried both) + AMD 64 (64 bit) Debian Lenny
Maybe I have to run under a 32-bit chroot? Or run actual i386 (32-bit) Debian? :-/

Anyone else here have success with amd64 distro?

I also noticed, pre-rc2a patch, when I ran the Tribes 2 training sessions. Lt. Kenzie (and your objective) would be stuck on the first thing and she would repeat the same first thing she said over and over and over forever.
Thyth
Apotheosis Incarnate

Posts: 809

View Profile
42: May 22, 2009, 03:40:41 PM »
Prior to patching, the game itself seems to work fairly well under wine, even with a 64-bit system (Gentoo 64-bit, on a dual-processor AMD Opteron 246 system). The RC1e patch worked acceptably in wine as well, but it looks like I broke something when making changes for RC2 (which has also broken in some versions of Windows Server). I'd suggest using RC1e for now on Linux systems, but you won't be able to generate an account with that patch version.

I've partially traced it down to inter-process transport encoding, but I haven't had the time to fix it yet, or to work on the community features for RC3.

Sarcastic, narcissistic, genius, resurrecting the game with brilliant strokes of wizardry.
ScratchMonkey
Nugget
Posts: 32

View Profile
43: June 20, 2009, 03:00:21 AM »
Oh... and if any advanced Linux C/C++ programmer wants to help me out with a Loki port, I'm sure something could be hacked together for dedicated server support (It just needs SHA1, big integer base conversion, and big integer modular exponentiation). I'm just not sufficiently familiar with shared library injection in Linux.

Knowing what to google for, I got this hit:

Code Injection into Running Linux Application
http://www.codeproject.com/KB/DLL/code_injection.aspx

Looks like a good starting point.
Alpha-foxtrot
Nugget
Posts: 1

View Profile
44: June 21, 2009, 11:32:44 AM »
hi, I got everythig working! but! when i start the game, i get the old login screen? how do i generate CDkey? i just get the old great account or login with old existing account? eny ideas?

Running Ubuntu jaunty with wine 1.1.23
Pages: 1 2 [3] 4 5 6 Print 
« previous next »
Jump to:  

irc.quakenet.org / #TribesNext Powered by SMF  © Simple Machines