ET: Legacy


(morsik) #101

Hey. I just discovered, that GUID is incompatible with original’s ET. I’ve made code that gives the same GUID when using ETXreaL as PB gave.

Prove (last 8 chars of cl_guid):
etlegacy gives me: 26944D60
etwolf: 7C16B513
etxreal (my code): 7C16B513

It’s quite different, so people will get XP reset when connect with ET: Legacy…

It was just fast look, but if i can help, tell me.


(Radegast) #102

As suggested by acQu, I added a possibility to mute sound when the game is minimized or not active in case of windowed mode. This behaviour is controlled by two new cvars: s_muteWhenMinimized and s_muteWhenUnfocused. 0=sound, 1=mute. s_muteWhenMinimized will default to 1 in the next version.

When I said 99% of mods are now compatible I was being a little too optimistic. It turns out the newest siLenT mod is compatible while the newest Jaymod isn’t. See mod compatibility list (and add your own observations if you have SF.net account).

Thanks for the tip. I’ll improve mouse untrapping while in windowed mode in the next release.

Oh, I misread this. I thought you wrote you have mouse problems when in windowed mode, so scratch the following: I created a workaround for this in beta 2. Please test it and report back. As I said it is just a workaround and not a real fix. Windowed mode should now work better for map testing, etc. but it is not yet player friendly.

Are you running the game on Linux or Windows, Mateos? I think Psykorgasm had a similar issue.

That is not good. But I did not change anything in the renderer code yet! So far the builds I provided were compiled on linux, contained debug symbols and weren’t optimized at compile time in any way whatsoever (this will start with the first stable version). But honestly, I don’t think it could have any noticeable impact on the performance :frowning: Or could it?

Not true. If you earned any XP already, that means you already have an etkey generated. If you copy that key from your W:ET installation to ET:L then it will be used instead of generating a new key. So you will keep your XP.

Of course you can! As you can see from this thread I am in desperate need of help. I’ll create a wiki page about this.


(Radegast) #103

Indloon, I recently moved from Makefile to premake4 and visual studio configuration is not finished yet. I’ll add it over the weekend, so you can start looking at it. Wish you luck.


(Mateos) #104

I’m under Windows 7 32bits.

When I leave the game with console opened or by reducing it with ETMinimizer, I have not the sound with vanilla ET :confused: And when I retake it it plays, so dunno why some have still the sound when not the active window…


(Radegast) #105

Ok, we will resolve this using PMs, so that we don’t spam the forum too much. But I would like to stress out one thing - you do not need etminimizer. In fact you should not use any minimizer with ET:L as it is able to be minimized out of the box.


(acQu) #106

[QUOTE=morsik;393492]Hey. I just discovered, that GUID is incompatible with original’s ET. I’ve made code that gives the same GUID when using ETXreaL as PB gave.

Prove (last 8 chars of cl_guid):
etlegacy gives me: 26944D60
etwolf: 7C16B513
etxreal (my code): 7C16B513

It’s quite different, so people will get XP reset when connect with ET: Legacy…

It was just fast look, but if i can help, tell me.[/QUOTE]

I did not look into it deep either, but i can confirm this. The problem should be, that etl does a length check on the key (as i saw in ioquake code somewhere, deep inside a revision), and creates its own when the length of the key is not X bytes or so. You can check this by yourself that it creates a new key, by just pasting one from etkey.org into etkey folder, and start etl. It then entirely overwrites the old one, and creates the guid based on the new one.

However, do not take anything i say for granted. I am just an idiot.

[QUOTE=Indloon;393444]I’m not lazy tomorrow,I will install DX SDK and start to make some lighting changes(which are zomg,worst thing of Q3) on ET:L :stuck_out_tongue:

Hope so! :smiley:
Gives great experience at OpenGL programming.[/QUOTE]

Cannot wait :smiley: Show me zi lights :slight_smile:

[QUOTE=Mateos;393527]I’m under Windows 7 32bits.

When I leave the game with console opened or by reducing it with ETMinimizer, I have not the sound with vanilla ET :confused: And when I retake it it plays, so dunno why some have still the sound when not the active window…[/QUOTE]

I have Win7 64 bit, but that should not matter. I use ALT+TAB for minimizing, as this was the issue about. When i am out the game, i can clearly hear sound. Maybe it is some configuration. I have pretty much vanilla et configuration.

edit: oh, i just read this.

Ok, we will resolve this using PMs, so that we don’t spam the forum too much. But I would like to stress out one thing - you do not need etminimizer. In fact you should not use any minimizer with ET:L as it is able to be minimized out of the box.

So open discussion is over :frowning:


(Radegast) #107

[QUOTE=acQu;393551]I did not look into it deep either, but i can confirm this. The problem should be, that etl does a length check on the key
(as i saw in ioquake code somewhere, deep inside a revision)[/QUOTE] Yes, you are absolutely right. I took the iquake’s implementation without any modifications. Sorry, morsik. The size check will be removed in the next release.

[QUOTE=acQu;393551]When i am out the game, i can clearly hear sound. Maybe it is some configuration. I have pretty much vanilla et configuration.[/QUOTE] Go into the console and execute “s_muteWhenMinimized 1” This will automute sound when the game is minimized and it will be the default behaviour as I you requested.

[QUOTE=acQu;393551]So open discussion is over :([/QUOTE]No, not at all. ET:L has been the top topic in this forum for the past several days and I just don’t want people thinking I want to steal all the attention :slight_smile:


(acQu) #108

No, not at all. ET:L has been the top topic in this forum for the past several days and I just don’t want people thinking I want to steal all the attention

Ah :slight_smile:

10chars


(Indloon) #109

At debugging,I noticed the problem what acQu(nice new name ;)) said.

Double keys are ignored :stuck_out_tongue: which causes non-open or write.

However,UI scripts are working fine in that case! (onEsc/onEnter).


(morsik) #110

Not true. If you earned any XP already, that means you already have an etkey generated. If you copy that key from your W:ET installation to ET:L then it will be used instead of generating a new key. So you will keep your XP.

I know, I used the same etkey between ET Wolf, ET:XreaL and ET:Legacy. But only ET:Legacy gives wrong :stuck_out_tongue:


(Radegast) #111

Morsik,

To tell you the truth, at first I didn’t believe you much. Shame on me. But after seeing the source code of ETPub I would very much like to use their way of handling etkey. The problem is their source is released under the original SDK License agreement, which is not compatible with GPL. The files dealing with this were not part of the original SDK, so maybe I could ask the ETPub maintainer to double-license them?

Anyway, I have just received my exam results and I won’t be sober in the next couple of days, so don’t expect the next release this week :stroggbanana:


(morsik) #112

Check Com_MD5FileETCompat in src/engine/qcommon/md5.c from ETXreaL. It’s my port of guid system (i found it somewhere on the net). Works works correctly even 64bit mode. Of course, you need to change some more things, but this is base function of generating MD5 from etkey file.

Well, basically cl_guid is not MD5ed etkey file, but only some part of it are going to MD5.


(rorgoroth) #113

My bad, I think I commented about that after you’d put that up, I’d just been going to the last comment and missed any changes in your OP, it was your beta1 with the mouse capture problem btw (from then I was just pulling the sources instead) not the beta2 which you had listed/uploaded before I wrote the comment, fail on my part!

Do you have any idea what it is stopping the compatibility with jaymod 2.2.0? There are quite a few popular “top” servers running it, as far as I know with my limited knowledge on the subject, you wont ever get etpro working with it, but if possible at all you could claw back a good amount of servers with jay2.2 compat.


(Dragonji) #114

Is there any way to fix “Invalid .pk3 files referenced” error in ET:L? Or it has been fixed already?


(morsik) #115

Radegast: here is my patch for cl_guid pb-like: https://github.com/morsik/war-territory/commit/06613d1804d4c7ae8749330ddd259c34fbdedfea


(Radegast) #116

Psykorgasm: I concur, Jaymod support is crucial, but unfortunately I have no idea why it doesn’t work. :frowning:

Dragonji: I don’t think I ever encountered that error. But I play mainly on my favourite server and I’m relatively new to this game as well. I’ll look into it.

Awesome. And the other changes at your repo look nice too!

I see you are a FreeBSD user, morsik. Did you manage to compile the game using clang?


(morsik) #117

I installed FreeBSD on VirtualBox just for server testing.
I compiled mod code (etmain) with clang using my CMakeLists.txt: https://github.com/morsik/warpig Here are also some fixes for clang warnings. This is etmain with very small fixed in this repo, i didn’t have time to do mod :frowning:
But i didn’t tried to compile game server/client with clang. I’ll try when i write CMake config.

And about 32 color codes on terminal, here’s screenshot from actual game: http://wstaw.org/m/2012/02/24/2012-02-24-141206_1216x1054_scrot.png (uses very-very-similar colors like in-game console)


(Radegast) #118

ET:L beta 3 is out (see the first post of this thread) and it is the last release I’d been working on… alone. acQu has provided important testing and bug reporting and Morsik will be a developer of this project from now on - so it is no longer a one man show. I would also like to thank Dushan for his advice and KeMoN for drawing my attention to the Project: Bug fix (expect this great work to be gradually incorporated into ET:L).

Edit: and JFYI we will be moving the project from sf.net to github in the future


(Indloon) #119

Check CleanET :smiley:

All bugs fixed/bot code removed.


(morsik) #120

Do you have any link to repo? I can’t find it. Google shows me “Cleanet - Webdesign” :smiley: