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 2020-02-28 00:00:00Z and 2020-02-29 00:00:00Z
Avatar
@archimede67 there are a lot of services running on it, it'd be a pita
Avatar
sv_vote_kick "0" sv_vote_spectate "0" With at least one of these two lines in the config the server will behave odd. It is not possible to add the server to favorites and the client thinks it has 0 slots and thus can not change the team. The whole server info message seems to be broken. It has to be in config seems like setting it on the admin console while the server is running is fine.
Avatar
Using addresses of variables for ui element id's is not that nice
Avatar
ChillerDragon 2020-02-28 12:36:10Z
well 0.7 at least has a CButtonContainer
Avatar
./update-points.py File "./update-points.py", line 20 with open("releases") as f: ^ IndentationError: unexpected indent
13:06
why I getting this error when i want to update points ?
Avatar
@Vexar Try python2 update-points.py
Avatar
python2 update-points.py File "update-points.py", line 20 with open("releases") as f: ^ IndentationError: unexpected indent ======================================== python3.7 update-points.py File "update-points.py", line 20 with open("releases") as f: ^ IndentationError: unexpected indent
Avatar
weird, works for as, can you upload the file somewhere? Is it the original from ddnet-scripts?
13:13
for us*
Avatar
yes it's original from ddnet/ddnet-scripts
13:13
let's me redownload
13:15
sorry it's original ./update-points.py Traceback (most recent call last): File "./update-points.py", line 20, in <module> with open("releases") as f: IOError: [Errno 2] No such file or directory: 'releases'
Avatar
yeah, now it makes more sense. You need a releases file
Avatar
i don't know what's that ?
13:17
should I download something to fix this error ?
Avatar
0127efa Update servers scripts - Dennis Felsing
Avatar
For your server you'll need a file like that which contains all the map release infos. The official one looks like this: https://github.com/ddnet/ddnet-scripts/blob/master/servers/releases
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
Avatar
Oh that's make sense now 😄
13:20
thank you
Avatar
we kind of have that info duplicated, it's also in the database in record_maps. Should get rid of one of those actually :/
13:24
my scripts are the opposite of clean as you might have noticed 😄
Avatar
I remember that before i downloaded ddnet's database then import record_maps to my server database every weekends 😄
13:32
lmao
13:32
how did that end up here
Avatar
nice dir
Avatar
@jao I just took everything from ddnet.tw:servers/scripts . Sorry if that shouldn't have been made public :/
Avatar
its public anyways but i dont remember putting it in there xd
13:41
i guess that was an accident xd
Avatar
@Ravie &&|| @jao https://learath2.info/ddnet-windows-latest.zip can you give the multilayer editing a try? I think this is the best I can do
Avatar
colors dont work
Avatar
Sure?
Avatar
cant change them
Avatar
yep that broke somehow
14:05
Oh there is a problem, which color should I display when editing multiple layers?
Avatar
the one you clicked last?
14:07
does color editing even make sense
Avatar
nvm, even for width and height this is not a good way to do this :/
Avatar
i think its very rare that you have multiple layers with the same color
Avatar
I should make it so you need to confirm the edit
14:09
Currently, as soon as you open the properties box it will set all the layers sizes to the max
Avatar
@Learath2 I can only make all the layers black
Avatar
ChillerDragon 2020-02-28 15:14:53Z
@jao did u just dox ur self? 😄
Avatar
@jao can you try the last commit again?
15:26
I think this should work
Avatar
it doesnt apply the color
Avatar
@Learath2 seems perfect to me :D
15:45
maybe change "commit" to "apply"
Avatar
It did apply the color for me, I only tested it with color even
Avatar
they both worked for me
Avatar
the text on the button
Avatar
you have to click a button?
15:50
but you need to see a preview of the color
Avatar
It's better to have a button imo
15:51
previews is whatever, you can click the button a few times and make adjustments
Avatar
whats the point of having the button if you have to do blind commits anyways
Avatar
only if you wanna preview, it's not blind if you know what yuo want
15:53
I guess a live preview would be good but then people might think it's final and not click Apply
Avatar
u can only know what u want if the tileset is white tho
Avatar
no, why?
Avatar
the color of the tileset influences the result
Avatar
yeah, so?
Avatar
so how do u know how the result will look like if its not white
Avatar
it's better to have a button to commit to resizing a layer
Avatar
does it give a preview for resizing?
15:58
you're most likely going to scale layers to the size of the entities layer, so you already know what you want
Avatar
well if u have no preview u dont know whether u cut something off so thats a blind commit too
Avatar
you already know the size of the map
16:00
all Game layers scale together so you just make all design layers the same size or a bit bigger
Avatar
but u dont know the size of every single layer
16:00
what if u dont use game layers
16:01
show me one map without game layers
Avatar
no i mean what if the layers u resize dont include the game layer
Avatar
people will know what layers they wanna resize and how
16:03
and you don't need a preview to imagine what 10+ tiles will look like
16:04
if you're doing a fine adjustment
Avatar
what if youre doing a bigger adjustment
16:04
u cant estime such stuff for every layer
Avatar
the point is to resize all selected layers to the same size, so they're most likely already the same size
16:05
and it starts from the biggest layer so you're not going to cut anything off unless you make the default number smaller
Avatar
i dont think its guaranteed that they are already the same size xd
Avatar
then you will make some layers bigger
16:07
imo you're more likely to cut something off if you're doing it "live" (edited)
Avatar
ye but then you can at least choose to not commit
16:08
if u have no preview ur fucked if u commit
Avatar
by doing it "live" you commit by default
16:09
so the preview is the final thing, same as pressing the button after every change
Avatar
i mean preview + commit
Avatar
then people will think the preview is the final thing and have to redo it and press Apply
16:10
unless you code a whole warning about unsaved changes which is just too much for such a little feature
Avatar
I did want to do a preview, but it's extremely complicated to rework
16:15
I mean it'd take like 200-300 line change to get layers to get props from a temp object
Avatar
I guess it's a choice between "live edit" and clicking a button, each one is fine with me tbh
16:15
"live edit' is how it normally works when editing a layer but a button seems kinda safer
Avatar
live edit is easy to do, but as soon as you open the menu it'd commit all the changes
Avatar
ah, it would make all the layers the same just by opening the menu
16:16
well that is crap xD
Avatar
yep, and making it not do that would be very hard
Avatar
I'd just keep it how it is
Avatar
well without a preview the commit is blind
Avatar
could have a button that shows a preview only as long as you hold it and then reverts, but it's probably a lot of work
16:17
if it worked live and you clicked something by accident you can't easily revert it, might have to edit several layers back to what they were individually
16:17
so it's good how it is right now imo
Avatar
Well if it's not useful like this I can't really be assed to make it work with a preview, so we won't have the feature
16:18
Don't we have undo?
Avatar
its still a decent feature how it is now
16:19
can be improved later
16:19
u should just not do anything dangerous with it for now xd
Avatar
@Learath2 It's very useful, I can't think of any better way to do it that wouldn't be a mountain of work
16:20
just don't listen to jao xd
Avatar
im not against it lol
16:55
8c49c8a Update client scripts to python3 - ChillerDragon fcb1453 Merge pull request #15 from ChillerDragon/pr_client_py3 - def-
Avatar
ChillerDragon 2020-02-28 16:56:59Z
btw deen why use zsh in a shebang? isnt /bin/sh fine enough for that script? I had to install zsh just to test this simple thing.
16:57
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
16:58
i know it says use zsh in the setup instructions but.. why? 😄
Avatar
[quakenet] deen BOT 2020-02-28 16:58:40Z
because that's what I use, not just if bash has **
16:59
otherwise you can replace the ** with an appropriate find command
Avatar
ChillerDragon 2020-02-28 16:59:13Z
yea that would be better i guess
16:59
or pass it to grep directl
16:59
so everywhere here you use zsh features?
Avatar
[quakenet] deen BOT 2020-02-28 16:59:42Z
but no one ever used this script except me, so not much need to port it
Avatar
ChillerDragon 2020-02-28 16:59:54Z
yea but grmpf
17:00
i was just wondering and if ** is a zsh exclusive feature thats the response i wanted i guess
Avatar
[quakenet] deen BOT 2020-02-28 17:00:34Z
it's super annoying to write everything in standard compliant posix shell, and I don't like bash, so for scripts not meant for public consumption I use zsh
Avatar
ChillerDragon 2020-02-28 17:01:20Z
ye makes sense
17:01
no thats fine i thought you randomly slapped zsh in some scripts to annoy people 😄
17:02
well probably not to annoy but more out of habit
Exported 140 message(s)