Raised This Month: $12 Target: $400
 3% 

[EXTENSION][L4D2] Left4Fix (2.1.0)


Post New Thread Reply   
 
Thread Tools Display Modes
spumer
Senior Member
Join Date: Aug 2011
Old 05-25-2021 , 15:42   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #161

Quote:
Originally Posted by jking View Post
So if I read right, no windows version at this time?
Yea, i need move project to ambuild for builing windows version via github
__________________
spumer is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 05-25-2021 , 16:57   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #162

That shouldn't be hard. Just use the default scripts. They are pretty handy.
__________________
Spirit_12 is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 06-17-2021 , 08:25   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #163

Did anyone get this extension working after the latest update?
SilentBr is offline
spumer
Senior Member
Join Date: Aug 2011
Old 06-17-2021 , 16:15   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #164

I'm getting new gamedata, but some code will be rewritten.

I hope release fix very soon. It's not hard changes
__________________
spumer is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 06-17-2021 , 16:46   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #165

Quote:
Originally Posted by spumer View Post
I'm getting new gamedata, but some code will be rewritten.

I hope release fix very soon. It's not hard changes
Thanks spumer for your help.

Spirit_12 has posted a new gamedata that is working for him, for me instantly crashes my server if someone joins. I tried to update sm and mm, no success.
SilentBr is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 06-17-2021 , 17:44   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #166

Quote:
Originally Posted by spumer View Post
I'm getting new gamedata, but some code will be rewritten.

I hope release fix very soon. It's not hard changes
Why part of code are you rewriting? Also can we change the DIV signatures to offsets ?
__________________
Spirit_12 is offline
spumer
Senior Member
Join Date: Aug 2011
Old 06-18-2021 , 03:24   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #167

Quote:
Originally Posted by Spirit_12 View Post
Why part of code are you rewriting? Also can we change the DIV signatures to offsets ?
Just small refactoring.

No, we can't. Cause we change one block of asm code to the new one.
I will explain.

See the screenshot. Actually we need replace only one instruction is `sar eax, 2` which means bit shift and it's short notation for dividing by 4: maxCharacterCompletionScore / 4

But our instructions set is bigger than 3 bytes cause we want customize player count, e.g 10 instead 4.
We patch bit shifting and other commands, but copy them to our memory block to ensure flow still be correct.
More info about what really happend you can see in file: https://github.com/spumer/Left4Fix/b...escription.txt

So, on screenshot you also can see instructions for 2.2.1.2 and 2.2.1.3 versions have different order and we can't just move by offset and apply patch. Instruction can be reordered.

Offsets cool thing when you change one byte or constant sequence. Here we have non-constant sequence.

----

Other idea to simplify all of that is store original memsig and patch bytes in gamedata. It's really good, but taking into other trouble - we need include TEAM_SIZE into patch bytes.

Idk how to make it clear and comfortable to use. This is why we have TEAM_SIZE defined on build stage.

----

With fixes for 2.2.1.3 update i will migrate project to ambuild and anyone can build it for windows and linux as well ;)
Attached Thumbnails
Click image for larger version

Name:	2021-06-18_12-09-49.png
Views:	79
Size:	85.7 KB
ID:	189841  
__________________
spumer is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 06-18-2021 , 22:27   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #168

Based on what you said. Wouldn't using sourcescramble make it easier.

https://forums.alliedmods.net/showthread.php?t=317175
__________________
Spirit_12 is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 06-23-2021 , 16:10   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #169

Quote:
Originally Posted by spumer View Post
I'm getting new gamedata, but some code will be rewritten.

I hope release fix very soon. It's not hard changes
Hi Spumer,

Are you going to release the new versions soon? Your extension is essential!
SilentBr is offline
spumer
Senior Member
Join Date: Aug 2011
Old 06-23-2021 , 16:54   Re: [EXTENSION][L4D2] Left4Fix (2.0.3)
Reply With Quote #170

You can got Linux version from this Github Action: https://github.com/spumer/Left4Fix/a...runs/965756003

It's tested and works fine. Package include new gamedata and binary.

Also, i'm ready to update windows signatures. Can someone post server.dll from latest update?

I still need code cleanup. After this i will publish current release officially
__________________
spumer is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode