[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1792169622119269.jpg (414 KB, 1086x1448)
414 KB JPG
I'm trying to make a fighting game and I want it to have rollback netcode. I know that in order to make a game with rollback netcode, you need to build the game from the ground up to support it. Because of this, I'm doing research on how to actually implement it. The only problem is that people are sending me projects that are already completed to I guess show me how it is implemented. Am I really expected to go through someone else's code and parse it in order to implement this retarded shit in my game? Is this something programmers are really expected to do constantly, just raw dog other people's code? My only experience with programming is webdev with Node.js/Express.js
>>
the problem is you seem like a newbie and yet you're tackling one of the hardest things to make in gamedev (multiplayer AND rollback). this is almost like choosing an mmorpg as your first project.

also just use AI.
>>
>>110087820
brain atrophy? no thanks
>>
>am I retarded?
>posted on 4chan.org/g/
>>
working netcode? ha good luck with that
>>
>>110087875
You can use AI to explain this stuff to you. Not just vibe code shit.
>>
>>110087776
You send and receive timestamped events or inputs. The game logic simulation resolves the order of action based on the timestamps. When there's a discrepancy in your game's logic state and the timestamped events, you rollback. For your game that means the animations snap to what should have been the correct animation at the correct frame it should have been based on the true order. Typically you probably won't let the rollback eligible period exceed a few frames, so you probably just need to figure out one animation to play and determine what frame to snap to based on the number of frames passed since the frame you're reconciling using the timestamps. If you ever implemented client-side prediction and server reconciliation with server authoritative hit detection it's similar, but fighting games are run by megajews so you don't even get a server and you play directly with brazilians.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.