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 2023-12-24 00:00:00Z and 2023-12-25 00:00:00Z
Avatar
reminder that this almost existed at one point https://github.com/chaosk/trinitee
A box of mystery. // OK, so this repo is dead. Contribute to chaosk/trinitee development by creating an account on GitHub.
Avatar
minus: what is that supposed to be?
Avatar
a new website for teeworlds
Avatar
ChillerDragon BOT 2023-12-24 11:07:51Z
new as in 12yo ago axaxaxax
Avatar
Thats new
Avatar
ChillerDragon BOT 2023-12-24 11:08:21Z
imagine the maintenance effort this would have caused
11:08
maintaining some py app for 12yrs sounds pain
Avatar
16 Players 😲
Avatar
On the flipside, we wouldn't have so much spam, I suppose
Avatar
Can somebody guide me the right way? I'm trying to parse the layers inside maps (specifically the tilemap layers) but I'm a bit confused about the data structure. Looking at it here https://github.com/heinrich5991/libtw2/blob/master/doc/map.md#layers says its a nested item, but the item data I get only holds the base data, not the extension containing the data..
15:44
In the file it's described as item_data base for all layer items (different types have different extensions): [1] _version (not used, was uninitialized) [1] type [1] flags With the extension being item_data extension for tilemap layers: [1] version [1] width [1] height [1] flags [4] color: Color [1] opt *color_envelope [1] color_envelope_offset [1] opt *image [1] &data: 2d-array of the the tile type 'Tile' version 3 extension: [3] name: I32String DDNet extension (no version change): [1] opt &data_tele [1] opt &data_speedup [1] opt &data_front [1] opt &data_switch [1] opt &data_tune Which confuses me. The base doesn't have any data or a data index reference
Avatar
Just realised its christmas eve and it's very unlikely that I'll get a reply - yikes
Avatar
There is a twmap tool by patiga which does that already, i would search it for you but I am literally in the swiss mountains and have bad internet
Avatar
chillerdragon BOT 2023-12-24 16:49:39Z
cargo install twmap
16:49
pip install twmap
16:49
It’s really good
Avatar
tried reading the rust code (somewhere on gitlab, sratch for patiga) and was lost pretty fast as I don't know any rust. Gave up implementing map parsing in Go (for now). What are you attempting to do Blade? Implementing a livrary in a different language or do you want to just use an existing library as mentioned above?
16:55
search, library
Avatar
ChillerDragon BOT 2023-12-24 17:00:35Z
no need to read rust
17:00
the python bindings are really easy to use and there is lots of docs using the help() method
Avatar
In order to implement parsing
17:02
either heinrich's docs, the c++ implementation or the rust implementation are your routes
17:03
if Blade wants to implement that for typescript or whatever else, he'd need to actually understand how that map format works.
17:06
-routes + your reference implementations that you can look at
Avatar
ChillerDragon BOT 2023-12-24 17:30:51Z
ah but why xd
17:34
I assumed he wants to work on a map with code. Because for that you do not have to reinvent the wheel anymore.
Avatar
For context I'm porting the map format to GDScript (Godot)
Avatar
@Blade think of it as inheritance, all layers have the base fields, but depending on the type of layer, in this instance a tilemap layer, there are more fields to read
22:41
the item is just longer
Avatar
ChillerDragon BOT 2023-12-24 22:41:33Z
pogtiga
22:41
woke
22:41
the map pro
Avatar
ChillerDragon BOT 2023-12-24 22:42:23Z
Just realised its christmas eve and it's very unlikely that I'll get a reply - yikes
22:42
got quality responses and more activity in the channel than the whole month combined
Avatar
tbh the rust code is harder to navigate, an ide helps a lot
Avatar
ChillerDragon BOT 2023-12-24 22:43:58Z
patiga C++ promoter hehe
Avatar
the complexity comes from lots more checks, and harder typing (which helps when actually working with the maps, but makes parsing a little longer)
22:44
here, fixed it ChillerDragon :p
Avatar
ChillerDragon BOT 2023-12-24 22:44:53Z
fixed wot
22:45
did u edit a message? xd
Avatar
promoting C++ too much ^^
Avatar
ChillerDragon BOT 2023-12-24 22:45:27Z
all hail ferris the crab
Avatar
I don't know enough rust for that, I gave up on understanding it using rust.
Avatar
will look at them at some point. I might have started the wrong way
22:53
using your implementation as reference
Avatar
Isnt it 'just' unzipping and reading the binary?
Avatar
well pretty much any parsing can be boiled down to "reading the binary" ^^
Avatar
ChillerDragon BOT 2023-12-24 23:43:39Z
its not using "zip" compression is it?
Avatar
its using zlib
Exported 53 message(s)