shefben / LinuxHLDS_NuWON_Patch

A Linux Half-Life Dedicated Server Patch for the OLD 3.1.1.1 WON LHLDS. This patch adds sv_downloadurl to the server for NuWON
GNU General Public License v3.0
0 stars 1 forks source link

Can I apply this patch into the official HLDS for cs1.5? #1

Open rickyma opened 3 months ago

rickyma commented 3 months ago

Hey @shefben, I hope this message finds you well. I am reaching out to inquire about the possibility of applying a patch to support sv_downloadurl in the official HLDS for cs1.5.

Currently, I have noticed that it does not support sv_downloadurl, a feature that is of great importance to me.

::: I am running CentOS 6.8 32-bit with i686 architecture :::

Looking forward to your reply. Thanks.

shefben commented 3 months ago

It will work with 3.1.1.1e lhlds, but you still need the client patch to integrate the http downloading into the old 1110 hl client.

Here is the full Linux hlds patch with sv download URL

https://drive.google.com/file/d/16wY73UHNP4rcPVHMekxjsRX0XmAh248K/view

Here is the full client patch that integrates http downloading into the client

https://drive.google.com/file/d/19hCxxx74Z16cA0c4vGl-HtsPpADMqY2Z/view

On Fri, Aug 2, 2024, 11:05 AM RickyMa @.***> wrote:

Hey @shefben https://github.com/shefben, I hope this message finds you well. I am reaching out to inquire about the possibility of applying a patch to support sv_downloadurl in the official HLDS for cs1.5 https://files.steamlessproject.nl/file.php?id=20.

Currently, I have noticed that it does not support sv_downloadurl, a feature that is of great importance to me.

Looking forward to your reply. Thanks.

— Reply to this email directly, view it on GitHub https://github.com/shefben/LinuxHLDS_NuWON_Patch/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHLG2LBHU2B5DNDETTEEUTZPOU5VAVCNFSM6AAAAABL4Z5H2KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DKMZQHEYDINQ . You are receiving this because you were mentioned.Message ID: @.***>

rickyma commented 3 months ago

Here is the full client patch that integrates http downloading into the client https://drive.google.com/file/d/19hCxxx74Z16cA0c4vGl-HtsPpADMqY2Z/view

Is this compatible with CS1.5? Should I directly install this client exe by overwriting it onto my Windows CS1.5 directory?

Also, my Linux is i686 arch. I tried to use release 1.0 binary directly by setting export LD_PRELOAD=neuwon.so in hdfs_run, but it crashed, and core files gererated.

Here is the log from /var/log/message:

kernel: tr[1989]: segfault at 0 ip 00886c97 sp bfda89fc error 4
kernel: grep[1987]: segfault at 0 ip 00e52c97 sp bff1471c error 4 in neuwon.so[e51000+3000]
kernel: uniq[1990]: segfault at 0 ip 0040dc97 sp bffa47bc error 4 in neuwon.so[885000+3000]
kernel: cut[1988]: segfault at 0 ip 002edc97 sp bfac596c error 4 in neuwon.so[2ec000+3000]
kernel: in neuwon.so[40c000+3000]
kernel: gdb[1993]: segfault at 0 ip 00903c97 sp bfdb3cac error 4 in neuwon.so[902000+3000]
kernel: hlds_i486[1994]: segfault at 0 ip b76ddc97 sp bffe82bc error 4 in neuwon.so[b76dc000+3000]
kernel: date[1995]: segfault at 0 ip 00f83c97 sp bfa665fc error 4 in neuwon.so[f82000+3000]
kernel: sleep[1996]: segfault at 0 ip 00fe2c97 sp bf9a869c error 4 in neuwon.so[fe1000+3000]
kernel: hlds_i486[1997]: segfault at 0 ip b7723c97 sp bfdc49cc error 4 in neuwon.so[b7722000+3000]
kernel: date[1998]: segfault at 0 ip 00d0fc97 sp bfd7921c error 4 in neuwon.so[d0e000+3000]

It seems it is using hlds_i486 instead of hlds_i686, I don't know why. Is this the reason why it crashed?

I tried to compile it from source codes by running compile.sh, but I don't have commands like icc. What should I do?

Actually, my main goal is to allow players to download resources faster on my CS1.5 server. I set up an HTTP server specifically for providing downloads. However, after all the effort, I found out that CS1.5 seems not to support the sv_downloadurl parameter. I configured it, but it had no effect. When players lack resource files, they still download from the CS1.5 server instead of the HTTP server address I configured in the sv_downloadurl parameter. Do you have any suggestions or solutions?

Thank you so much. Sorry for bothering you again.

shefben commented 1 month ago

Ah yes, icc is the intel compiler, I would need to look at this again as it has been years since i last ran it. It should run fine with hlds 3.1.1.1e ONLY, because the memory addresses are probably different for other versions. ill get back to you on it in a few weeks when i have time to look at it. sorry for the wait

shefben commented 1 month ago

and also, like i said before. this patch is useless without the nuwon client patch. because WON hl never supported http downloading, and my nuwon patch is what actually implemented it on the clientside

rickyma commented 1 month ago

Thanks for your explanation. I made a client which is able to connect to a list of HLDS servers to bypass this. The client will help download the current or the nextmap / models / sounds etc when connecting to the server. :)