Guild icon
Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2021-04-16 00:00:00Z and 2021-04-17 00:00:00Z
Avatar
can we send chat commands by f1 in any way right now?
00:27
@Learath2 if you know
Avatar
say "/spectate" (edited)
Avatar
@Dune I didn't add one but it should be trivial to add if you want
Avatar
@Learath2 ran into some guy who had an issue with that because he would bind a command to a key
10:43
But not sure how the UX would be, how do you handle parameters?
Avatar
exactly the same way I handle console parameters
10:44
so you'd add something like chat_command s[command] ?r[parameters] and it should work(tm)
Avatar
right sounds(tm) simple (edited)
Avatar
Right now it is not possible to send chat commands via f1 console, so you cannot write binds. I ran into someone who complained about that. @Learath2 suggested it should be doable to handle this with something like chat_command s[command] ?r[parameters]
Avatar
can you compile tw with visual studio 2019?
18:37
And I get a lot of errors compiling
Avatar
You can with cmake, I haven't tried bam in a while tho
Avatar
Can I use cmake tho? I try to compile a mod
Avatar
Ah a mod I do not know if the mod is new enough, sure
18:40
does it have a CMakeLists.txt?
18:40
no its very old
Avatar
yeah hm, show me some of the errors and I can try to help figure out what's wrong
Avatar
i think they changed some paths
Avatar
eh like everything is an error
18:42
Avatar
well I can't debug everything, so you still need to show me some 😄
Avatar
last lines
Avatar
god it's in german too
Avatar
sounds like missing includes
Avatar
I just downloaded visual studio :/
Avatar
can I see the first error maybe?
Avatar
it says it doesnt know some types
18:43
and assumes int
Avatar
yeah I figured that out, but for that to go wrong something else must have went wrong way before
Avatar
I compiled bam first I think, then in the root directory ./bam/bam release (edited)
18:46
Also I cant scroll that far up to see the first lines lol
Avatar
server_release
18:47
if u only need server
Avatar
Yeah I tried that, also gives me errors
Avatar
works for me
18:48
on linux
Avatar
okay doesn't work for me either on windows
Avatar
Am I missing some packages on my side? I never use c languages
Avatar
because it can't generate protocol.h
Avatar
Can you compile a windows server on linux?
Avatar
with bam its not so easy
18:49
with cmake its easy
Avatar
ddnet compiles all releases on linux
18:50
ah, do you have python?
Avatar
you sure? try python --version on the shell
Avatar
i think on windows i once changed it to python3 directly
Avatar
for me typing python opens the stupid microsoft store...
Avatar
function Script(name) if family == "windows" then return "python3 " .. str_replace(name, "/", "\\") end return "python3 " .. name end in bam.lua
18:51
bcs it didnt work for some reason
Avatar
what kind of idiot actually places a python symlink that will open the microsoft store?
Avatar
xd
18:51
?
Avatar
yeah just type python and you'll get the microsoft store
18:52
they are trying to promote their stupid appstore
Avatar
does python3 also not work?
Avatar
just "py" should work
Avatar
Yeah I used python
18:53
On the first compile it asked me to open a file with python or smth
Avatar
python3 --version in cmd?
18:54
also not working?
Avatar
py --version worked
18:54
Python 3.8.0
Avatar
yeah it's just a mess on windows...
Avatar
then change bam.lua the lines that call python
Avatar
I would suggest adding python to the path properly
Avatar
I thought I did actually
Avatar
i think i had the same as said
Avatar
can you do echo %PATH%?
Avatar
and just changed to python3 then it worked xd
Avatar
C:\Users\Learath2\AppData\Local\Microsoft\WindowsApps this is the path that has the fake python windows injects to take you to the appstore
18:56
there is also a python3.exe with the same behaviour there
Avatar
yeah if that has higher prio
18:56
then rip xd
18:56
oh
18:56
is that new?
Avatar
very new
18:57
it seems visual studio injects that into it's command prompts
18:58
oh nope they inject it into your path in some update
Avatar
didnt they want to add a package manager, why dont they do that instead of random stuff (edited)
Avatar
anyway, just using py instead of python works
19:00
Idk if it works yet tho
19:01
Ok works, thanks for your help
Exported 88 message(s)