Giter Club home page Giter Club logo

Comments (3)

M-Reimer avatar M-Reimer commented on September 10, 2024

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.

Cyclic3 avatar Cyclic3 commented on September 10, 2024

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.

Cyclic3 avatar Cyclic3 commented on September 10, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.