Guild icon
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
Avatar
[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
Avatar
[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?
Avatar
[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
Avatar
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
Avatar
[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
Avatar
reading unfamiliar languages is hard
12:46
no, I can't write datafiles IIRC
12:46
only read them
Avatar
[quakenet] ChillerDragon BOT 2020-07-21 12:46:29Z
hm
Avatar
try strace ./map_resave (edited)
12:52
and check what files it tries to access
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
Avatar
[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
Avatar
that exists?
Avatar
[quakenet] ChillerDragon BOT 2020-07-21 15:06:07Z
doubt
15:06
create one then pls :)
15:06
i feel like we need it
Avatar
[quakenet] ChillerDragon BOT 2020-07-21 15:06:40Z
i dont get it tho :/
15:06
i hate using my brain
Avatar
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
Avatar
[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?
Avatar
Well you probably do need one because most parts of the tw code rely on it being there
Avatar
[quakenet] ChillerDragon BOT 2020-07-21 15:43:23Z
im seems to glue all the parts together
Avatar
kernel is a global variable that isn't a global variable 😛
15:45
everyone uses it to find the other modules
Avatar
[quakenet] ChillerDragon BOT 2020-07-21 15:45:52Z
yea but i fail to create a kernel
15:46
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
15:46
do i need that?
Avatar
no. the server also manages to create a kernel
15:46
IKernel *pKernel = IKernel::Create(); is what you need to create a kernel
Avatar
[quakenet] ChillerDragon BOT 2020-07-21 15:47:05Z
oh yea ok that makes sense
Avatar
[quakenet] ChillerDragon BOT 2020-07-21 18:10:33Z
18:10
is this a warning in stdlib or in tw? :D
Avatar
i think stdlib
Avatar
tw
Avatar
yes: inlined from fs_makedir_recursive
Exported 49 message(s)