[Release]Http Download Helper

Grim Czech Republic
Reactions: 2
Posts: 56
Joined: 13 Apr 2019, 08:18

Re: [Release]Http Download Helper

Post by Grim »

yep. great useful stuff. About against the classic download of maps in the loading section, this question is a few seconds.
you will never miss Fér Start again! (y)
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

Thanks grim.
Version 1.2 is out.
Fixed a bug that meant it would not launch if your sof lived in path with spaces.
Made the windows more hidden
Provide command line options sof in .cmd file

Thanks Acadie and chin for feedback.
User avatar
Trekker Canada
Reactions: 5
Posts: 234
Joined: 22 Jan 2014, 22:58

Re: [Release]Http Download Helper

Post by Trekker »

Works great

No issues unzipping to SoF from third internal drive maintaining paths (E:\downloads to C:\Users\MCNE\Raven\SOF PLATINUM\)
I get that path because I still install SoF manually then add the original SoFplus client, both on Windows 7 and Windows 10, stop complaining "you cannot install SoF on 7 and 10 using the "CD""

SoF_HTTP.cmd shortcut on Desktop launches SoF (silently)

"map messages" print before map is downloaded it appears, nice trick specially when map has not been uploaded to github yet ;)

DM/COMPLEX23 Map made by [Ç#]JÙLìˆN!
Downloading : dm/complex23beta.zip

If map is available on github, we get:
Downloading : dm/chaos_fluorine_1.zip

If map is not available on github, we get:
Downloading : dm/complex23beta.zip
Downloading maps/dm/complex23beta.bsp <== no colorful Font; Meaning we are on slow download
Spoiler:
User avatar
Acadie Canada
Reactions: 15
Posts: 718
Joined: 23 Nov 2011, 16:42
Location: Canada

Re: [Release]Http Download Helper

Post by Acadie »

Oversight in the sofplus function. If it didn't find the map, the message will pop up regardless of the zip being on github or not. It would be better to disabling it for now (before more people install it) to avoid confusion.
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

V1.3
That message is renamed to "[HTTP] Checking repo for mapname"
And another message when udp download starts : "[HTTP] Map mapname not in repo"
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

v1.4
Improve threading logic
Improve print
Increase efficiency of timeout map detect
Neaten func file

Btw. Previous Versions are mostly obsolete because they have bugs.
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

In some servers and scenarios the previous version also mis-behaved.
New release v1.5 :
Redesigned the reliability of getting mapname.
This version should be much better!

https://github.com/d3nd3/sof-win-http-h ... helper.zip
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

v1.6
https://github.com/d3nd3/sof-win-http-h ... helper.zip
Works on more obscure maps like:
[rdam]_big_bedroom
It wasn't happy with the square brackets, now it uses url encoding to fix that.
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

v1.7
https://github.com/d3nd3/sof-win-http-h ... er-1.7.zip
print message error
color print removed
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

v1.8
https://github.com/d3nd3/sof-win-http-h ... er-1_8.zip
  • disable http in singleplayer
  • cvar _http2_enabled for manual toggle
User avatar
bobby00 Ireland
I am
I am
Reactions: 7
Posts: 297
Joined: 07 Aug 2021, 23:29

Re: [Release]Http Download Helper

Post by bobby00 »

d3nd3 wrote: 18 May 2023, 02:36 v1.8
https://github.com/d3nd3/sof-win-http-h ... er-1_8.zip
  • disable http in singleplayer
  • cvar _http2_enabled for manual toggle
on sof all night use are sad lol
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

v1.9
  • Fixed a bug in the thread logic that didn't always cleanup the created thread/callbackchain.
https://github.com/d3nd3/sof-win-http-h ... er-1_9.zip
User avatar
ShocK Great Britain
Reactions: 8
Posts: 3046
Joined: 21 Nov 2011, 21:12

Re: [Release]Http Download Helper

Post by ShocK »

Works fine on Windows 10 with no modifications using community edition 7.0 installed to its default location.
Shortcut works too - could do with a better icon for SoF_HTTP.cmd though. Would be good if it was in the community edition, far bettter than any mappack.
2023-05-27_150952_986.png
There was a link to this topic in the console I noticed, the url could be something like this https://www.sof1.org/app.php/fastmap which is a bit snappier, just needs a better write up using normal language, not nerdy programming lingo so everyone can understand :tongue:
You do not have the required permissions to view the files attached to this post.
User avatar
Keifer Great Britain
Reactions: 16
Posts: 595
Joined: 19 Dec 2011, 21:35

Re: [Release]Http Download Helper

Post by Keifer »

Also would like to mention that once you run SoF_HTTP.cmd once - you can continue to use sof.exe after that or atleast i can.
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

Keifer wrote: 29 May 2023, 17:37 Also would like to mention that once you run SoF_HTTP.cmd once - you can continue to use sof.exe after that or atleast i can.
Hard to know what you mean by that. The .cmd file launches a powershell which is ran in background and is closed when the sof.exe process ends. But you're right that only one powershell window is required to serve multiple SoF.exe instances.
User avatar
Trekker Canada
Reactions: 5
Posts: 234
Joined: 22 Jan 2014, 22:58

Re: [Release]Http Download Helper

Post by Trekker »

Had no issues and like that it is nearly 100% "silent"

May be a tad too silent for some!
Spoiler:

Noticed ONCE, it did not delete some .zip files.
This only happened with "map/dt"
hd1.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
Trekker Canada
Reactions: 5
Posts: 234
Joined: 22 Jan 2014, 22:58

Re: [Release]Http Download Helper

Post by Trekker »

Keifer wrote: 29 May 2023, 17:37 Also would like to mention that once you run SoF_HTTP.cmd once - you can continue to use sof.exe after that or atleast i can.
Interesting.

The HTTP Download Helper "functions" are enabled in \sofplus\addons
I don't know if "http_listener.ps1" is awakened also when not using "SoF_HTTP.cmd" to launch SoF!
User avatar
Keifer Great Britain
Reactions: 16
Posts: 595
Joined: 19 Dec 2011, 21:35

Re: [Release]Http Download Helper

Post by Keifer »

Trekker wrote: 29 May 2023, 19:20
Keifer wrote: 29 May 2023, 17:37 Also would like to mention that once you run SoF_HTTP.cmd once - you can continue to use sof.exe after that or atleast i can.
Interesting.

The HTTP Download Helper "functions" are enabled in \sofplus\addons
I don't know if "http_listener.ps1" is awakened also when not using "SoF_HTTP.cmd" to launch SoF!
I lied, it doesnt work - just loads the function. :D
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

v2.0
  • Fixed a bug with not deleting .zip files that contain ] and [ characters.
https://github.com/d3nd3/sof-win-http-h ... er-2_0.zip
d3nd3
Reactions: 8
Posts: 168
Joined: 02 Dec 2011, 17:23

Re: [Release]Http Download Helper

Post by d3nd3 »

v2.1
  • Fix failure to launch correct SoF.exe, if multiple SoF.exe installed with latest windows.
https://github.com/d3nd3/sof-win-http-h ... er-2_1.zip

Who is online

Users browsing this forum: No registered users and 0 guests