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 2018-05-10 00:00:00Z and 2018-05-11 00:00:00Z
Avatar
@Learath2 you here for a short discussion?
10:25
nemo: do you have map download in hedgewars?
10:25
@Learath2 (regarding stronger hashes for maps)
Avatar
@heinrich5991 Jeder client springt bei mausbewegung sofort in irgendeine ecke meines bildschirmes so wie hier: https://streamable.com/grqjw Ich bewege meine maus nur minimal. Egal ob borderless, windowed oder fullscreen Bei borderless und windowed springt der cursor weniger aber trotzdem
Avatar
@Fluni can you go into the console (f1) and enter inp_mousesens and ui_mousesens?
Avatar
inp is 140; ui = 370
Avatar
that sounds like a lot, although not terribly much
13:52
I have them set to 96 and 100, respectively
Avatar
well my dpi is on 400
13:52
:p
Avatar
ah
13:52
I don't know what causes this.
13:52
have you tried using inp_mouseold or sth?
13:53
I don't actually know what that does
13:53
@Learath2 you look online. up for a short discussion about strong map hashes?
Avatar
so no clue?
Avatar
not from me, no 😦
13:56
you say that this happens with every client? also for vanilla?
Avatar
@heinrich5991 am outside but we can discuss sure
Avatar
so
14:03
let sha512 be our secure hash for this discussion
14:03
I added a network message that tells the client which sha512 the map of the server has
14:03
theoretically, this is as simple as switching to that map naming scheme in downloadedmaps:
14:03
mapname_<sha512>.map
14:04
the problems come with the backward-compatibility, obviously 😛
Avatar
Yeah thats what I was going to type
Avatar
so
14:05
we receive map name and crc and sha512 from a server
14:05
we don't have mapname<sha512>.map, I guess we should be looking for mapname<crc>.map and check whether that matches the sha512, if not, download from server
14:05
easy enough
14:05
we receive map name and crc from a server
14:06
we can't tell which map the server wants
14:06
my suggestion would be something like: store which IP offered which (mapname, crc) with which sha512, and only load the map from the hdd if we've seen it on the server before
14:07
i.e. first time visiting a server without crc support always means downloading the map again
Avatar
*wtihout sha512 support
Avatar
Why do you bother with ips? Lets just store a map from crc->sha512
Avatar
but we have a server that won't tell us which sha512 it expects
14:09
and in order to not have to download the map every time, I wanted to download it once and then assume that no changed crc means no changed sha512 for that particular server
14:10
but we can have multiple servers hosting the same (mapname, crc) combination with different maps
Avatar
Why not just get the first crc match fkr those?
Avatar
because that might get the wrong map
14:10
it allows people to poison other people's downloadedmaps
Avatar
Storing the sha might too
Avatar
how so?
14:11
the crc → sha512 mapping is supposed to be per IP
14:11
so a server can't manipulate other servers
14:12
don't spam, @ᶰ°Konͧsti
Avatar
Server crafts a new map with same crc, you assume sha didnt change old map gets loaded
Avatar
the server can do that anyway
14:13
send a crc/sha512 that doesn't match what the server has loaded
14:14
I guess an ip+crc to sha map should work
Avatar
ok
14:14
then the next thing
14:14
how should we name the maps?
14:14
mapname_crc_sha512.map?
14:14
mapname_sha512.map
14:14
sha512.map
14:14
I dislike the last one
14:15
and another thing
14:15
I guess we should still verify the CRC on the sha512'd maps?
14:15
just for consistency?
Avatar
No need though right?
Avatar
the CRC is still sent by the server so the client could look for mapname_<crc>.map
14:16
or should I also not do that?
Avatar
mapname_crc_sha.map should work actually
14:17
How do we handle the http downloads though?
14:18
Actually we could do mapname_sha_crc.map and maybe abuse the fact that the crc is appended
Avatar
I thought that this might be a bad idea
14:19
because then you can't see that veryfunnymapname_usingonlyhexcharshere_crc.map doesn't contain a sha512
14:19
offer both maps.ddnet.tw/mapname_crc_sha.map and maps.ddnet.tw/1.2.3.4/mapname_crc.map?
14:19
for map downloads?
14:19
we can do hardlinks there
14:19
or actually
14:20
maybe maps.ddnet.tw/1.2.3.4/mapname_crc.map redirects to maps.ddnet.tw/mapname_crc_sha.map
Avatar
@heinrich5991 can mapnames be that long?
Avatar
@Learath2 what do you mean?
Avatar
veryfunnymapname_usingonlyhexcharshere_crc.map
Avatar
ah
Avatar
somebody good in jquery / javascript ?
Avatar
[quakenet] <Learath2> I'm pretty decent at ES7 by now
20:15
[quakenet] <Learath2> @NeXus what do you need?
Avatar
For my autocomplete I sort my results into 3 sections "title", "company", "tag". I would like to have a headline for each section. In practise I want to add <div class='ui-optionHeader'>Headl...
20:15
Maybe you can help me with this
Avatar
[quakenet] <Learath2> Well I usually start out by laying out a non functional DOM
Avatar
this seems more of a jquery question though, you could do some css trickery if that's acceptable for you
20:23
first-child selector to be exact
Avatar
ah this could work
Avatar
@NeXus correct way would be to extend _renderMenu btw
20:30
while(items[0]){let title = items[0].option; addHeader(title); while(items[0].option === title) { addItem(items[i]); items.splice(0, 1); }}
20:31
would be a pretty meh way to do it but it'd work 😛
Avatar
Holy xD where would I put this and I assume addHeader(title); is the function which got my header content ? (edited)
Avatar
[quakenet] <Learath2> @NeXus instead of extending _renderItem like you are doing there extend _renderMenu
20:34
[quakenet] <Learath2> addHeader and addItem are placeholder functions because idk much jQuery, you should check the docs to see how they insert items
20:35
[quakenet] <Learath2> gist of it is addHeader(title) would add a header with title and addItem(item) would add the autocomplete item item :)
Avatar
heh
20:56
autocomplete
20:56
that's what I'm trying to do with qt right now
Avatar
what's so difficult about it? it's just a strstr
Avatar
it's not that part that I'm trying right now
20:58
it's the rendering part
20:58
hence qt
Avatar
hmm, how is it any different then rendering something else?
Avatar
I'm not experienced with qt → stuff takes a while
20:59
if you know how to do it, help would be appreciated
Avatar
well I never did it before so I don't see how it'd be any harder then rendering sth else
20:59
I'm surely missing sth
Avatar
nah
21:00
it's probably not harder than putting other widgets on the screen
21:00
but I don't even know how to do that properly
21:00
I want a window that consists of a single line edit box
21:00
haven't managed to do this one yet
21:00
if someone knows devs working with qt, please tell me
Avatar
[quakenet] <Learath2> heinrich5991: do they not have an irc channel for that?
Exported 117 message(s)