Teeworlds
IRC / bridge
One-way IRC channel bridge. If you want to be able to send messages to IRC, contact
@Dune
or
@heinrich5991
.
https://www.teeworlds.com/?page=docs&wiki=rules/irc_rules
Between 2020-07-21 00:00:00Z and 2020-07-22 00:00:00Z
[quakenet] ChillerDragon
BOT
2020-07-21 12:31:34Z
Is this map_resave tool still working and how? I assumed it takes 2 args first being input and second output. But if I execute it it does not throw and error or create a new map
[quakenet] heinrich5991
BOT
2020-07-21 12:38:33Z
map_resave was broken for a long time (maybe since its inception), I'm not sure it got fixed
12:38
what's the use case?
[quakenet] ChillerDragon
BOT
2020-07-21 12:42:23Z
i want to build a map tool and thought basing it on mapresave makes sense
12:42
it claims to be writing but i see nothing happening
12:43
heinrich5991
2020-07-21 12:43:36Z
I know that it at some point produced subtly wrong maps that still load in teeworlds but contain random data at the end of data/item data
[quakenet] ChillerDragon
BOT
2020-07-21 12:43:59Z
ah no i do not see any file generated
12:45
or do you have something nifty in libtw2 that u can recommend?
12:45
oof reading rust so hard
heinrich5991
2020-07-21 12:46:03Z
reading unfamiliar languages is hard
12:46
no, I can't write datafiles IIRC
12:46
only read them
[quakenet] ChillerDragon
BOT
2020-07-21 12:46:29Z
hm
heinrich5991
2020-07-21 12:48:14Z
try
strace ./map_resave
(edited)
12:52
and check what files it tries to access
[quakenet] ChillerDragon
BOT
2020-07-21 13:41:42Z
https://paste.zillyhuhn.com/c1
13:41
lgtm
13:41
oh wait
13:41
xd
13:42
im so blind
13:42
ok it seems to prioritize ~/.teeworlds and i exepected the map to be in local dir
[quakenet] ChillerDragon
BOT
2020-07-21 15:05:47Z
can one please link a good ressource that explains tw setup code? :) like kernel and interfaces etc
Dune
2020-07-21 15:06:03Z
that exists?
[quakenet] ChillerDragon
BOT
2020-07-21 15:06:07Z
doubt
15:06
create one then pls :)
15:06
i feel like we need it
Dune
2020-07-21 15:06:30Z
go ahead
[quakenet] ChillerDragon
BOT
2020-07-21 15:06:40Z
i dont get it tho :/
15:06
i hate using my brain
Learath2
2020-07-21 15:17:59Z
there is a kernel, the client/server registers classes in it, you can get a pointer to any class registered in the kernel from the kernel, done
[quakenet] ChillerDragon
BOT
2020-07-21 15:40:30Z
hm sounds so easy when u say it but can i get a kernel in tools? because as far as i see it IKernel::RequestInterfaces() requires a CClient?
15:41
or does one even need a kernel for a tool?
Learath2
2020-07-21 15:42:14Z
Well you probably do need one because most parts of the tw code rely on it being there
[quakenet] ChillerDragon
BOT
2020-07-21 15:43:23Z
im seems to glue all the parts together
heinrich5991
2020-07-21 15:45:32Z
kernel is a global variable that isn't a global variable
15:45
everyone uses it to find the other modules
[quakenet] ChillerDragon
BOT
2020-07-21 15:45:52Z
yea but i fail to create a kernel
15:46
https://github.com/teeworlds/teeworlds/blob/a5afae5e38a84c6287eb3813eeb525e71dce58c9/src/engine/client/client.cpp#L2610
teeworlds/teeworlds
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
15:46
do i need that?
heinrich5991
2020-07-21 15:46:48Z
no. the server also manages to create a kernel
15:46
IKernel *pKernel = IKernel::Create();
is what you need to create a kernel
[quakenet] ChillerDragon
BOT
2020-07-21 15:47:05Z
oh yea ok that makes sense
[quakenet] ChillerDragon
BOT
2020-07-21 18:10:33Z
18:10
is this a warning in stdlib or in tw? :D
gerdoe
2020-07-21 18:15:14Z
i think stdlib
heinrich5991
2020-07-21 18:48:00Z
tw
gerdoe
2020-07-21 19:20:41Z
sure?
heinrich5991
2020-07-21 20:47:30Z
yes: inlined from
fs_makedir_recursive
Exported 49 message(s)