Comments (3)
I guess we have to live with some inconvenience.
csgo-csmd is meant as a workaround to a bug that has to be fixed by Valve. Making the code too complex is wasted (spare)time.
What you want to do could basically also be implemented without named pipes by just watching "console.log", but it causes some problems that are difficult to manage.
At first you have to enter "disconnect" to actually make the relevant stuff appear in the log. Just waiting at the "Downloading 0%" message doesn't work.
And secondly the download of the external script will take some time. You have to enter "retry" after downloading has finished, so you need some feedback from the script.
After all, I think it is easier to call the script manually :)
from csgo-csmd.
I was thinking about having the command "con_logfile /path/to/named/pipe" shoved somewhere in an autoexec script, and then csgo-csmd could do it's stuff just by reading a line from a named pipe as usual. The file could be created with mkfifo
, with the script just waiting on new lines, and checking them for the relevant message.
The feedback could be easily done with an ascii beep. Most terminals will happily use them.
If I get some time over the next few weeks, I will start hacking at it to see what happens.
(Disclaimer: My python knowlege is minimal, as I am more of a c++ person myself, so the resultant code may be a bit ugly)
from csgo-csmd.
That was quicker that I expected.
It turns out that implementing this also stops the system attempting to redownload every file that session, which is nice.
from csgo-csmd.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csgo-csmd.