Guild icon
DDraceNetwork
DDraceNetwork / questions
For newcomers to ask questions and get help. Also check https://wiki.ddnet.org/wiki/FAQ
Between 2023-01-02 00:00:00Z and 2023-01-03 00:00:00Z
Avatar
Avatar
Stryfe
Does anyone the name of the Background music?
I thing it's "menu_music" in the files
Avatar
Ye I found it thx
Avatar
How to transfer points to another name?
Avatar
Avatar
Simon
How to transfer points to another name?
Avatar
Thank you brother, hugs and kisses, may u have a long and fullfilling life and may the sun love u and the winter be white for u and the bitches love ur d like they love mcdonalds
Avatar
hell yeah brother
Avatar
Hello, I made a skin and submitted it in the #📬submit-skins channel but in the past I could add a gif to it, now I can't anymore but i've made a little preview gif and I wanted to put it right next to the skins so people can see what they look like in game :( (edited)
Avatar
Post the preview in #showroom
Avatar
How come we have to wait when we join an empty server to vote a map? It wasn't like this before
Avatar
where is the option where the server list indicates that i finished the map?
Avatar
Avatar
deen
Click to see attachment 🖼️
wow, thats a small screen 😄
Avatar
Square screen
Avatar
Avatar
Avolicious
wow, thats a small screen 😄
size doesn't matter 🙄
Avatar
Where can I find documentation for twmap? (https://crates.io/crates/twmap)
Avatar
Avatar
Ar1gin
Where can I find documentation for twmap? (https://crates.io/crates/twmap)
This crate provides a library for safe parsing, editing and saving of Teeworlds and DDNet maps. Goals of this library are:
Avatar
But it doesn't tell me how to actually use it
Avatar
I'll release a new version soon, where the Point struct is replaced and some other smaller changes by using vek https://crates.io/crates/vek for geometric primitives like rectangle, color
15:51
can you program in Rust already?
Avatar
Yess, I am a bit dumb though
Avatar
well twmap is all about the TwMap struct. https://docs.rs/twmap/0.9.1/twmap/ hast some examples of using the parse methods. https://docs.rs/twmap/0.9.1/twmap/struct.TwMap.html on here is the documentation for the TwMap struct itself, it contains the map groups, images, envelopes and everything else. To find more about those, click on their linked doc page. The page for the TwMap struct also contains all methods that are available
15:54
what are you trying to figure out specifically right now? :) (edited)
Avatar
Uhm, I want to create map procedurally :)
Avatar
oh nice!
Avatar
I don't understand how to properly add tiles to empty map. I can of course create CompressedData then create GameLayer and so on but is this the right way to do it?
Avatar
@Ryozuki wrote a map generator in Rust with twmap as well, maybe that codebase can help https://github.com/edg-l/ddnet-map-gen
15:57
well to add a game layer, you mostly only need a Array2<GameTile>
15:58
Array2 is from the ndarray crate which provides 2D arrays
Avatar
Avatar
Patiga
@Ryozuki wrote a map generator in Rust with twmap as well, maybe that codebase can help https://github.com/edg-l/ddnet-map-gen
Ah, thank you so much, that's the example I was searching for!
heartw 2
Avatar
you can create Array2 from a vector with a shape https://docs.rs/ndarray/latest/ndarray/struct.ArrayBase.html#method.from_vec, from a closure that takes the y, x coordinates https://docs.rs/ndarray/latest/ndarray/struct.ArrayBase.html#method.from_shape_fn or from a element that fills the entire array https://docs.rs/ndarray/latest/ndarray/struct.ArrayBase.html#method.from_elem those are the most useful constructors in my experience :)
🤔 1
16:02
once you have a Array2<GameTile> (assuming its bound to a variable tiles), you do Layer::Game(GameLayer { tiles: tiles.into() }) to create a layer you can add to a group
16:09
@Ar1gin I'll happily answer all question about twmap btw, #developer is probably the better place for that though happy
👌 1
heartw 1
Avatar
Is it forbidden to discuss cheats in #general ?
21:00
#welcome
21:00
#8 Don't promote or encourage illegal activities - Includes botting/cheating.
falls under this
Avatar
Avatar
Avolicious
wow, thats a small screen 😄
I split my 21:9 screen into two logical screens, so it's basically two squares
21:20
I still like the old 5:4 screens I used to have, so I guess I'm imitating that
Avatar
I still have a laptop with 4:3 screen and it's great, the web and most other things look 'right'
21:59
Only place where it's inferior to widescreen is watching movies
Exported 41 message(s)