Official Soldat Forums

Official Content => Soldat Developer Log => Topic started by: 14th_account on November 19, 2012, 06:18:05 am

Title: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: 14th_account on November 19, 2012, 06:18:05 am
(http://skoskav.org/etc/soldat/dev/pierce.jpg)

Heyo!

This week I got to fix various hit detection issues. Most of them related to either piercing bullets or nades. Piercing bullets were also tweaked not to get direct damage penalties anymore, aside from their loss in speed. There was also an issue with nades being thrown in unexpected directions due to ongoing animations or actions.

As for the net code, there was an issue with the server sending out slightly incorrect aiming information to other clients - mainly a problem when fighting Minigun and chainsaw users. I also fixed the soldat.ini setting PacketRate_Adjusting=1 which was completely broken for clients. It's fine to use for 1.6.3 servers though. This setting will be activated by default on both clients and servers in the next version.

The timings when some packets were sent to the server was also tweaked to be less likely to send redundant information followed by relatively long periods without any. And I had aiming information sent out more frequently when using Minigun or chainsaw to hopefully make them more reliable. There was also a possible packet flooding issue when using MP5 or the flamer.

zakath figured out some tweaks to move more processing over to the GPU and synchronize some calculation precision between the client and server. He also fixed bug #202 (http://bugs.soldat.pl/view.php?id=202) by making demos always record everything. Screenshots and recorded demos were also given a new format for filenames - YYYY-MM-DD_HH-NN-SS_MAPNAME_TYPE.

E.g. 2012-11-19_12-09-59_ctf_Viet_endgame.bmp


Oh, and of course there's the usual code cleanup.
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Bonecrusher on November 19, 2012, 09:05:09 am
Good job and hope to see more tweaks to be made to netcode.
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Prodigyx on November 19, 2012, 09:44:57 am
Hey ho!
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: DutchFlame on November 19, 2012, 10:02:09 am
what netcodes getting fixed the fuck

holy shit release! good job
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Vucgy92 on November 19, 2012, 10:38:03 am
Great Work !
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: mtk on November 19, 2012, 10:40:57 am
what netcodes getting fixed the fuck

holy shit release! good job
yeah gj keep going bros
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Furai on November 19, 2012, 11:23:58 am
Amazing!
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: themangokid2 on November 19, 2012, 11:46:41 am
Good job!! :D
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Mittsu on November 19, 2012, 12:57:01 pm
you guys are the heroes of soldat

that demo thing was definitely annoying, thanks for fixing!
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: L[0ne]R on November 19, 2012, 02:13:39 pm
Fix for autodemos is a really nice bonus in addition to hitreg improvements. I used to record a lot of demos and had either unnecessarily long ones, or awfully short ones that didn't capture the moment I wanted to record. Once again, awesome job!
Would it be possible to change the duration of an autodemo? Also, any words on when we can check out a beta?
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: 14th_account on November 19, 2012, 03:00:43 pm
Auto-demos record everything. There's no duration to set. As for the beta it all depends on Shoozza finishing up the auto updater.
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Mittsu on November 19, 2012, 03:12:07 pm
Auto-demos record everything. There's no duration to set.

so we're not able to set specific amount of time to record anymore, for example 2 minutes back?
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: 14th_account on November 19, 2012, 04:05:46 pm
I thought I just answered that question. :P
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: homerofgods on November 19, 2012, 05:16:37 pm
Auto-demos record everything. There's no duration to set.

so we're not able to set specific amount of time to record anymore, for example 2 minutes back?
For movie-makers it might make things a bit harder, but it will be good for leagues and other stuff, so overall it's the right thing to do.
We might find other solutions for helping movie-makers in their work, such as a fast backwards feature.. well see. Right now I'm just so excited about the upcomming beta, it will be one hell of a version!
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Mittsu on November 19, 2012, 05:33:10 pm
oh well, that sucks then, even previous option was better

say i want to record a teamkill that has just happend, i press F8 and it saves entire map play? I pity the admins that need to review those demos later (myself included...)
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: L[0ne]R on November 19, 2012, 05:38:24 pm
I don't know how demos work, but if it's just a continuous stream of raw netcode - shouldn't it be possible to just take everything that has been recorded so far, cut out the last bit and save it? Or is there a lot more to it than that?
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Mighty on November 20, 2012, 02:33:27 am
Keep up the good work Dev-Team :) We really appreciate your fixes, updates, tweaks and all.
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: zakath on November 20, 2012, 04:01:46 am
oh well, that sucks then, even previous option was better

say i want to record a teamkill that has just happend, i press F8 and it saves entire map play? I pity the admins that need to review those demos later (myself included...)

You are aware of that it didnt actually record the last 2 minutes? it just recorded intervalls of 2 minutes so it wasnt a ringbuffer of 2 minutes.
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Mittsu on November 20, 2012, 04:08:58 am
oh well, that sucks then, even previous option was better

say i want to record a teamkill that has just happend, i press F8 and it saves entire map play? I pity the admins that need to review those demos later (myself included...)

You are aware of that it didnt actually record the last 2 minutes? it just recorded intervalls of 2 minutes so it wasnt a ringbuffer of 2 minutes.

yes, but i was still sure the demo won't be longer than 2 minutes and it was usually past 10-30 seconds that i needed. The previous option was surely faulty sometimes but i prefer it over the current solution.

i'm guessing it isn't possible to have soldat record everything and by pressing F8 you save past X minutes back, without intervals? (X specified in soldat.ini)
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Fujifabric on November 20, 2012, 07:29:06 pm
Good job! all those sync issues now fixed as shown in the past devlogs sure will make quite some difference.
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: As de Espada on November 20, 2012, 08:41:50 pm
the next update will be one of the best ones =D
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: Furai on November 21, 2012, 07:52:40 am
If it will ever happen. (:
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: DutchFlame on November 21, 2012, 10:14:08 am
as de espada comes with code cleanup next log
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: As de Espada on November 21, 2012, 10:32:32 am
as de espada comes with code cleanup next log
by update I meant soldat update, not devlog update :)
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: DutchFlame on November 21, 2012, 11:12:44 am
oh i was more like hoping next soldat update would be monday
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: CheeSeMan. on November 22, 2012, 07:49:49 pm
wooowww patch this baby up ! Good job!
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: AND1 on November 23, 2012, 04:30:54 am
Nice one! :)
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: DodsBR on November 25, 2012, 03:23:20 pm
Waiting for beta  :P
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: chox on November 25, 2012, 05:12:33 pm
Fix for autodemos is a really nice bonus in addition to hitreg improvements. I used to record a lot of demos and had either unnecessarily long ones, or awfully short ones that didn't capture the moment I wanted to record. Once again, awesome job!
Would it be possible to change the duration of an autodemo? Also, any words on when we can check out a beta?
if you ask if it's possible arleady, then yes it is
open soldat.ini in your soldat directory search for those lines and set them like that
Quote
Auto_Record=1
Record_Time=99
Title: Re: Devlog update (2012-11-19) Hit detection & net code fixes, plus better filenames
Post by: L[0ne]R on November 25, 2012, 06:22:24 pm
Fix for autodemos is a really nice bonus in addition to hitreg improvements. I used to record a lot of demos and had either unnecessarily long ones, or awfully short ones that didn't capture the moment I wanted to record. Once again, awesome job!
Would it be possible to change the duration of an autodemo? Also, any words on when we can check out a beta?
if you ask if it's possible arleady, then yes it is
open soldat.ini in your soldat directory search for those lines and set them like that
Quote
Auto_Record=1
Record_Time=99
Well no, the problem is that it's unpredictable what part of the gameplay the demo saves. When autodemo records set amount of time - it stops the recording, deletes it, and starts a completely new recording. Sometimes awesome moments end up being recorded only partially if the demo decides to cut it in the process.
The new solution eliminates that problem, but it makes the other problem worse - when you end up having the cool moment being at the very end of the demo. So as it turns out, this fix unfortunately doesn't really fix anything. :/