Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2019-01-04 00:00:00Z and 2019-01-05 00:00:00Z
Avatar
Is there a documentation on how to do categories for votes, like brutal, novice etc (edited)
00:10
Ok just read something on discord, so I have to basicly create different .cfg files for each category and add a vote "add_vote "exec easy.cfg"" to switch the config files?
Avatar
ᶰ°Konͧsti 2019-01-04 05:19:02Z
yes
Avatar
I have a problemo
14:27
DDNet doesn't want to open
14:27
cause
14:27
idk
14:27
lol
Avatar
are u banned
14:27
The client
14:27
The console loads
14:27
and the loading screen comes up, doesnt even move and closes
14:28
Also 0.7.2 is SHIT
Avatar
what why
Avatar
why is it shit
Avatar
First I don't like the ui
14:29
I like the customisation settings for Tee
14:29
and the gameplay is annoying
14:29
It looks like some chinese company tried to make a ripoff of TeeWorlds
Avatar
they made gameplay changes?
Avatar
I played run guy map
14:30
you know the 1 gap thing
14:30
where you rocket to avoid the gap
Avatar
well
14:31
you basically cant do that
14:31
you always fall into the gap
14:31
You can barely do it
Avatar
how so, what's different
Avatar
You just fall into the gap
14:32
to avoid it you have to throw another rocket
Avatar
I don't think they changed anything gameplay related tho
Avatar
Well yeah
14:32
but this seems like a bug
14:32
or a bugfix
Avatar
or maybe the mod you played isn't done well
Avatar
I mean
14:34
its vanilla
Avatar
run guy is vanilla?
Avatar
But slightly modified
14:34
no
14:34
You know like
14:34
you dont have any commands
14:34
but like ddrace
Avatar
the hole is tele? tele doesn't exist in vanilla so it might be that
Avatar
Im saying that I dont think that its the mod
14:35
because in vanilla 0.6.5 you could do the gap thing
14:35
because your movement speed is so high that you miss the gap
14:36
but here even with great speed you fall into the gap
14:38
What's with https://ddnet.tw
14:39
Fucks sake
Avatar
what do you mean
Avatar
ddnet.tw seems to time out for me
Avatar
works for me
Avatar
[quakenet] <heinrich5991> works for me, to
14:43
[quakenet] <heinrich5991> o
Avatar
but everything else works fine
14:43
Whats the cmd thing for flushdns
14:44
found it
14:45
nope
14:45
unplugged the ethernet and still not working
14:46
Maybe im blacklisted?
Avatar
[quakenet] <heinrich5991> unlikely
Avatar
What the fuck
14:47
DDNet client doesnt want to open
14:47
and I cant access the website
Avatar
Rafael Fontenelle 2019-01-04 14:58:10Z
Maybe currently bad internet connection or other network problem that make your connection be intermittent.
Avatar
hey guys
14:58
I would like some insight on creating a Teeworlds client
14:59
I already have a fair amount of knowledge of C# and I know that Teeworlds is written in C/C++ (edited)
Avatar
[quakenet] <heinrich5991> creating the client is probably the hardest part
15:01
[quakenet] <heinrich5991> if you get the protocol etc. running, I'd suggest to create a server first, that should be a bit easier
Avatar
I've already got a server
Avatar
[quakenet] <heinrich5991> oh nice :)
15:02
[quakenet] <heinrich5991> can one see that somewhere?
Avatar
well you can join it if you want?
15:03
if that's what you're asking
Avatar
he means if u coded the server
Avatar
oh
15:04
no
Avatar
reread :P
Avatar
Do i need to to make a client tho?
Avatar
why u want to make a client?
15:05
its lot of work form scratch, i bet u would have more fun coding another thing
Avatar
to have some modifications/customization options
🤖 1
Avatar
then i would modify the client from the current source in c++
Avatar
yeah that's what i was thinking
15:06
sorry i didn't make it clear
Avatar
FuckFuckGo (edited)
Avatar
...
Avatar
DDNet still not working
Avatar
it is for me
Avatar
@Deleted User so you're asking how to modify the C++ client?
Avatar
Idk whats causing the problem, it worked yesterday?
Avatar
@heinrich5991 yes exactly that
15:07
and how to compile it
Avatar
that depends on what you want to do ^^
15:07
ah
15:07
what platform are you on? windows I guess if you're talking about C#?
Avatar
yes but i also have a linux partition
Avatar
OH WHAT
Avatar
@Deleted User https://forum.ddnet.tw/viewtopic.php?f=16&t=5765 < this should hopefully work on Windows
Avatar
okay ty
Avatar
development happens on https://github.com/ddnet/ddnet (I don't know if you've used git/github before)
DDraceNetwork, a mod of Teeworlds. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
ik what it is but I've never actually used it for anything other than getting the source code for Unreal Engine 😛
Avatar
^^
Avatar
Which IDE can I use for developing it on Linux (specifically Arch Linux)? (edited)
Avatar
clion altho, not free
Avatar
oof
Avatar
vscode is great
15:11
but not a ide
15:11
and its free
15:11
(its nearly a ide tbh) you can get a cmake plugin to have nice code insight
Avatar
well then how would i compile it?
Avatar
u dont need a ide
15:12
to compile
Avatar
okay
Avatar
you need cmake
Avatar
and is there a makefile with the source or something?
15:12
generates it
Avatar
okay
Avatar
the ddnet github repo
15:13
shows a bit
15:13
how to compile with cmake
Avatar
thank you very much
Avatar
remember to get the dependencies
15:13
and also the git submodules
Avatar
(that's automatic if you follow the instructions)
Avatar
what's a git submodule? (sorry I'm a noob) (edited)
Avatar
its like a reference to another git repo
Avatar
okay
Avatar
@heinrich5991 Can you help?
15:19
Teeworlds 0.6.5 is completely rip for me
15:19
DDNet not working DDNet Persian (idk what it is but it doesnt work either) TeeWorlds Official 0.6.5 not working (edited)
15:20
TeeWorlds 0.7.2 is working though
15:22
HAHHAAHAAHAHAHAHAA NICE
15:22
0.7.2 not working now
Avatar
can you tell us what goes wrong?
Avatar
I open the exe file
15:22
the command prompt loads as usual
15:22
The loading screen comes up
15:22
doesnt move
15:22
and the window closes (edited)
Avatar
hmm. the trick now would be to check the console output
15:23
onfortunately it's behind the client window
15:23
*unfortunately
15:23
could you start it from the console?
Avatar
How?
Avatar
depending on your windows version, right-clicking in a folder might give you a "open console/terminal here"
15:24
I know that
Avatar
then type "teeworlds" in the console
15:24
that should open it
Avatar
same thing happened
Avatar
but now the log should still be there, right?
Avatar
nope
Avatar
did a second console window open or what?
Avatar
No second console
Avatar
[freenode] <heinrich5991> hmmmm
Avatar
type teeworlds "logfile xyz.log"
Avatar
same thing
15:27
oh
15:27
got it
15:27
[5c2f7b3d][client]: starting... [5c2f7b3e][render]: opengl max texture sizes: 4096, 512(3D) [5c2f7b3e][client/sound]: sound init successful [5c2f7b3e][engine/mastersrv]: refreshing master server addresses [5c2f7b3e][textrender]: loaded pFont from 'data/fonts/DejaVuSans.ttf' [5c2f7b3e][game]: load menu image demos [5c2f7b3e][game]: load menu image editor [5c2f7b3e][game]: load menu image local_server [5c2f7b3e][game]: load menu image play_game [5c2f7b3e][game]: load menu image settings [5c2f7b3e][]: pFont memory usage: 2097152
Avatar
now you should find a logfile with that name in the config directory
Avatar
Yep thats it
Avatar
that's the whole thing?
15:27
543 bytes
15:28
tried again and got the same thing
Avatar
I'm sorry, I don't think I know what goes wrong or how to debug it 😦
Avatar
Alright
15:28
Thanks anyways
Avatar
np
Avatar
I'm just gonna try something
15:29
hm
15:30
i tried it in the ddnet file
15:30
[2019-01-04 16:30:29][client]: starting... [2019-01-04 16:30:30][client/sound]: sound init successful [2019-01-04 16:30:30][textrender]: loaded pFont from 'data/fonts/Icons.ttf' [2019-01-04 16:30:30][engine/mastersrv]: refreshing master server addresses [2019-01-04 16:30:30][host lookup]: host='master1.teeworlds.com' port=0 3 [2019-01-04 16:30:30][host lookup]: host='master2.teeworlds.com' port=0 3 [2019-01-04 16:30:30][host lookup]: host='master3.teeworlds.com' port=0 3 [2019-01-04 16:30:30][host lookup]: host='master4.teeworlds.com' port=0 3 [2019-01-04 16:30:30][textrender]: loaded pFont from 'data/fonts/DejaVuSansCJKName.ttf' [2019-01-04 16:30:30][textrender]: default pFont set 00000000036A7F40
15:33
Alright, I give up
Avatar
@heinrich5991 I think i got it
Avatar
what was wrong?
Avatar
I mean
16:23
I got more shit in the log
16:23
[2019-01-04 17:22:40][client]: starting... [2019-01-04 17:22:41][client/sound]: sound init successful [2019-01-04 17:22:41][textrender]: loaded pFont from 'data/fonts/Icons.ttf' [2019-01-04 17:22:41][engine/mastersrv]: refreshing master server addresses [2019-01-04 17:22:41][host lookup]: host='master1.teeworlds.com' port=0 3 [2019-01-04 17:22:41][host lookup]: host='master2.teeworlds.com' port=0 3 [2019-01-04 17:22:41][host lookup]: host='master3.teeworlds.com' port=0 3 [2019-01-04 17:22:41][host lookup]: host='master4.teeworlds.com' port=0 3 [2019-01-04 17:22:41][textrender]: loaded pFont from 'data/fonts/DejaVuSansCJKName.ttf' [2019-01-04 17:22:41][textrender]: default pFont set 0000000002972B30 [2019-01-04 17:22:42][sound/wv]: failed to open file. filename='audio/music_menu.wv' [2019-01-04 17:22:43][gameclient]: initialisation finished after 2073.67ms [2019-01-04 17:22:43][client]: version 0.6 626fce9a778df4d4 [2019-01-04 17:22:43][http]: http https://info.ddnet.tw/info?name=Aca%5E [2019-01-04 17:22:43][engine/mastersrv]: saving addresses [2019-01-04 17:22:46][http]: task failed. libcurl error: Connection timed out after 2750 milliseconds [2019-01-04 17:22:46][ddnet-info]: download failed
16:23
And I think I know whats the error
16:24
ddnet.tw doesnt want to load
16:24
the connection times out
16:24
so that may be the reason?
Avatar
oh yea, maybe
16:27
hmm. but why doesn't ddnet.tw load
Avatar
Yeah I'm trying to see that
16:28
Can you check if my ip is maybe blacklisted?
Avatar
I don't know a place where your IP would be blacklisted
16:28
can you check what IP address of ddnet.tw you see?
16:28
I see 31.186.251.128
Avatar
same
16:29
but doesnt want to ping
Avatar
for me, it does
Avatar
hmmm
16:29
Wait I think i know
16:30
Troubleshoot problems
16:30
it should say all is fine
16:30
now put ddnet.tw
16:32
hmmm
16:32
god fucking damn it
16:33
Can you screenshot to me this
16:37
Okay now
16:37
while master1.tw.com and master2 are pinging like normal
16:37
master3 and master4 are timing out
Avatar
that's normal
16:38
at least master3
16:38
master4 is ddnet.tw
16:38
You can send me your ip privately
16:38
maybe it got blocked somehow
Avatar
Alright
Avatar
Btw the "I fall in the 1 tile even with alot of speed in run guy 25" bug, is not a bug and it's like this since at least 7 years
18:08
(and probably forever but I didnt play before that)
Avatar
hey
18:19
so i complied the source
18:20
and when i try and run the file "DDnet" (edited)
18:20
Linux just tells me to select an application to run it (edited)
Avatar
how do you run it ? ./DDNet in console ?
18:34
i never had to chmod +x my binary but maybe you should
18:38
okay it works if i do that
18:39
but how can i make it run regularly? In the properties it's set to be allowed to run as an executable
18:43
well i don't know why i doesn't work when you click on it, what DE/WM are you using ? there should be a way to create a launcher or just a script that launchs it when you click on it but it won't be the same solution for every DE/WM
18:46
with gnome like thingy you can create .desktop files for example
18:49
with kde i don't know i never used it, with openbox it'll be another method, with any tilling wm you'd use dmenu or just your console, it really depends on your environement
Avatar
@Fudgy try it on 0.6.5 and then try it on 0.7.2
19:08
It's a big difference
Avatar
@Deleted User It's a DE called Budgie (by the developers of Solus OS)
19:19
i think .desktop files will work
19:19
but how do i make one?
Avatar
@Deleted User i mean you need to learn how to use google.. .desktop files have a .ini like syntax, they live either in /usr/share/applications or in the ~/.local version of that directory. [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Exec=/path/to/executable Name=Name of Application Icon=/path/to/icon It took me like 3 seconds to look for that, you can even download an graphical app that will create entries in your menus directory. If the .desktop gives you the same thing as when you click on the binary you just create a one line executable bash script that runs the binary and you point the .desktop to that script
19:29
okay thank you
19:33
I never use bloaty DEs i prefer tiling wms so i never use .desktop files i'm as clueless as you on the topic, you can find everything about .desktops files using google, as i said you can even find posts about your specific DE and how to use a graphical application to add anything into your menus
19:35
so just to clarify
19:35
by compiling the source
19:35
I'm not creating a standard executable?
19:37
you are creating a normal executable by compiling, that's how every binary executable is created (edited)
19:37
then why wouldn't it just run normally?
19:37
it does since it works when you do ./DDNet
19:38
there's no "normal" way of launching executables, ./DDNet is a normal way of executing it
19:38
if i wanted to run firefox, I could install it from the package manager, or i could download the .tar.gz from Mozilla and just double click the file called "Firefox".
19:38
I dont have to ./Firefox to run it
19:39
no, you can run "firefox" in console it'll work because the firefox executable is placed inside /bin or /usr/bin, and your console known that every executable in those folders are executed when you type their name
19:40
your firefox package certainly includes a .desktop too
19:40
well it's not in /bin
19:40
it's in the downloaded folder in my downloads folder
19:40
it can be in any directory
19:40
i just double click and it runs
19:41
what, firefox is in the download folder ?
19:41
yes
19:41
that's not how i run it
19:41
but it's an example
19:41
that i've done before
19:43
when you install a package files are moved in some directories then you can just use "firefox" and it"ll run them, when you compiled it nothing moves around the executable is where you compiled it
19:43
a package also contains .desktop files and so on
19:43
but this isn't an installed package
19:43
yeah you compiled it
19:44
my point is that i can run firefox without having to install it or do anything
19:45
so why can't i do the same with the ddnet executable?
19:45
if you did not install firefox it was already installed by default so it's just like you installed it
19:45
no
19:46
without having firefox installed
19:46
i don't know why your DE doesn't want to execute DDNet just by clicking on it, if it's chmod +x it should do that
Avatar
@heinrich5991 hey! I don't know if you discussed it earlier, but many players have huge lags on 11+ versions of ddnet client. Lags are gone if you switch back to 9.0.2. I have the same problems. That is a big problem for kog, because some players switched to ATH client for smooth gameplay
Avatar
@Deleted User my point is that since when you're doing ./DDNet it works, the issue is coming from your environement/DE configuration or something, you said it's already chmod +x so i have no idea, i don't know why it doesn't work just like that i've never used your DE. So using a .desktop should work easily, if it doesn't the .desktop can just launch a .sh that launches DDNet, that'll work
19:50
the DE environment shows the file to be a "shared library", if that helps
19:50
@Deleted User I never said anything about chmod +x
19:51
Thanks for helping anyway
19:51
"In the properties it's set to be allowed to run as an executable"
19:51
Sorry for being such a pain
19:51
yes
19:55
you're not it's just that i can't tell you what's wrong i never used your DE and since it works when you do ./DDNet the issue doesn't come from the executable itself it comes from your DE or something like that, "In the properties it's set to be allowed to run as an executable" should mean that it's chmod +x
19:55
okay
Avatar
Okay so
22:00
About my problem
22:00
If I click on the command prompt
22:00
it slow it down
22:00
so it waits a bit
22:00
and then i just get a fraction of the loaded ddnet
22:00
but I cant move the cursor
22:01
and in 5 seconds it closes
22:01
So I actually was able to see one server and players playing
22:01
So what I might do is just slap another installation of windows and fuck it
Avatar
install each piece of ddnet until you get the whole ddnet
22:50
problemsolved
Avatar
How can I start multiple servers with a single config file, I mean I somehow have to add different ports
23:10
Can I do something like ./DDNet-Server -f autoexec_server.cfg -port 8304
23:10
and in the config file it says sv_port {port}
Avatar
You are trying to run two servers with the same ip address but with different ports?
23:15
@Deleted User I tried with 0.6.5 and 0.7.2 and other clients
23:15
I'm not saying it's a ddnet problem, it's a teeworlds problem
Avatar
Why shouldnt I? Works fine
Avatar
I mean
23:17
It's gonna eat RAM
23:17
and shit
23:17
you know
Avatar
What would it change with different Ip, its still on the same Server
23:18
I wont have ram problems
Avatar
It may or may not be possible to run two servers with the same ip but different port
Avatar
What are you talking about
Avatar
what are you talking about
Avatar
Of cause it works, I can run 100 servers without a problem on the same ip with different ports
23:19
DDnet runs like 10 servers on the same ip
23:19
with high traffic (edited)
Avatar
Alright then
Exported 314 message(s)