403-Fruit / csctl

Scripting CS:GO over telnet.
GNU General Public License v3.0
61 stars 8 forks source link

Will execute the same commands multiple times #6

Open Rahimi0151 opened 3 years ago

Rahimi0151 commented 3 years ago

Hey my Man.

I'm having a weird problem. so I basically tried to use this to make some custom mods instead of actually moding the game. the first mod was random weapon mods. I could try to make it work. I actually have, I can link you to the source code in fact.

but the problem is every time there is a new line in the csgo terminal logs (e.g. I died in MM and it tells me the given damage and taken damage. or someone chats in game and it will appear in the terminal logs.) the script will run again (i think because of the While(true) and read_until(). is there a way for me to tell the program to only check for the "exectn " in the last line of terminal logs? so that it happens only one time.

403-Fruit commented 2 years ago

Could you send me source code or steps to reproduce? I'll take a look. I have an idea of what might be happening.