Guild icon
DDraceNetwork
DDraceNetwork / questions
For newcomers to ask questions and get help. Also check https://wiki.ddnet.org/wiki/FAQ
Between 2022-05-19 00:00:00Z and 2022-05-20 00:00:00Z
Avatar
how to make Kog server
Avatar
Avatar
βŠ—Seasons
what if I use cheat engine on the server cmd xD joking
if you would use cheat engine on server and client it could maybe work xD but you could also change the SERVER_TICK_SPEED in the protocol.h and compile your own version with slower or faster game ticks ... the variable sets the ticks per second..., since some prediction code hardcoded the default value of 50, you probably also have to turn of predictions this would then not be compatible with other teeworld clients... (edited)
Avatar
@heinrich5991 would NetIntRange("m_InputJump", 0, 1) look the same as NetBool("m_InputJump"), in the net package? or are intRange not compressed?
Avatar
NetBool is just NetInt, probably
Avatar
so both would use more space as you would think?
Avatar
but 0s and 1s are pretty well compressed using the huffman and snapshot compression
14:41
yes, they'd be identical
Avatar
just a thought: could you maybe get rid of "inputdirection" and "inputjump" and rather send these in the real character object?
Avatar
we could but then we would have to change the prediction code
14:43
its the same for m_ActiveWeapon xD
Avatar
sounds better than duplicating it to me tbh
14:43
yes, same there
Avatar
the problem is, that we control the movement of the tees in gamecore only by the inputs, and just reset the inputs if the tee is in freeze, if we would not reset the inputs we would have to change the gamecore so that it knows if someone is in freeze
Avatar
sounds very good
14:47
does gamecore not know about this yet?
Avatar
mh thinking about it a little more, we probably do not need to change the gamecore, because the inputs are also reset in clientside prediction... Mh, but then it will mispredict for vanilla client, spectators and players with cl_predict off
Avatar
send the old values for old clients
14:50
but not for spectators. hmmm
Avatar
gamecore knows if you are in freeze, with m_FreezeTick, and since I added m_IsInFreeze also more simple with a bool xD
Avatar
no, m_IsInFreeze is about whether freeze would refresh, no?
Avatar
I will test a little, and think about it more... mh, m_IsInFreeze is if you are in a freeze tile, but not if you are outside of freeze, freezed yes you are right
Avatar
yo can we have the #bot-cmds stuff on the player pages on ddnet.tw? (edited)
Avatar
the graphs? someone would have to code it, I'm too lazy
Avatar
the total hours also
Avatar
Avatar
deen
the graphs? someone would have to code it, I'm too lazy
the code for the dynamic part of ddnet.tw is not public, right? nvm found this https://github.com/ddnet/ddnet-web/issues/166#issuecomment-993895717 (edited)
Avatar
is it possible to make everyones feet white? (locally)
17:27
its hard to memorize a different shade of grey for each tee
Avatar
Avatar
heinrich5991
just a thought: could you maybe get rid of "inputdirection" and "inputjump" and rather send these in the real character object?
I could have set m_IsInPracticeMode also as Flag in DDNetCharacter.m_Flags, to fill up all 32bits of the flag xD and m_IsInFreeze too... probably could have added a flag field to DDNetCharacterDisplayInfo :/ (edited)
Avatar
why not do that? πŸ™‚
Avatar
sending the real inputs in CharacterCore is much more work than just sending them additionally xD (and probably risking physic change, but I'm carefull) ... hope this will be useful ^^ ...
Avatar
Avatar
heinrich5991
why not do that? πŸ™‚
mh since it is still not released, I could change it πŸ˜„ what would be your favourite option?
Avatar
having duplicate information all around isn't nice either
18:19
yea, a flag sounds more space-efficient than an integer, probably best to put it there
πŸ₯° 1
brownbear 1
Avatar
Avatar
heinrich5991
yea, a flag sounds more space-efficient than an integer, probably best to put it there
if we add a flag to DDNetCharacterDisplayInfo, xD we could also use 3 bits of it for the inputs πŸ˜›πŸ™ˆ but I try to send it with DDNetCharacter ... -.- (edited)
Avatar
can you give me a bind that if I press Z deepfly be ON and if I press it again or another char.. will be OFF?
Avatar
echo Deepfly: ON bind mouse1 "+fire; +toggle cl_dummy_hammer 1 0" bind z "echo Deepfly: OFF; cl_dummy_hammer 0; bind mouse1 +fire; bind z exec deepfly.txt"
❀️ 1
Avatar
thanks
Avatar
would be nice to have a bot that can give those types of binds to people that dont have it
23:53
so they dont have to ask for binds like that if its a common bind
Exported 40 message(s)