Fixing Multiplayer Of A 25 Year Old Game

  Рет қаралды 114,790

Nathan Baggs

Nathan Baggs

Күн бұрын

Пікірлер: 172
@keiyakins
@keiyakins Жыл бұрын
Team 17 apparently agreed with you that this was overly complicated, because in Worms Armageddon they ripped the whole thing out and replaced it with an IRC server with some HTTP apis
@RobotnikPlays
@RobotnikPlays Жыл бұрын
I was honestly wondering if a potential solution is to just patch out some/all of the network code with a more modern implementation, rather than trying to stand up an ancient server list/join protocol
@halfbakedproductions7887
@halfbakedproductions7887 Жыл бұрын
Honestly, that is probably good enough for a simple turn-based game like Worms. There isn't any serious real-time updating required - just push the data to the other client and let the client game "play back" the action as if it were local real time. IRC is grand, as you could just encapsulate game updates as some kind of text-based chat message. On a game like Worms, you don't have to worry half as much about things like keeping physics in sync, client-side prediction, pings and latency management etc.
@keiyakins
@keiyakins Жыл бұрын
@@halfbakedproductions7887 Once you're actually in-game it uses a different protocol connecting between players directly, it's the matchmaking server that uses the IRC+HTTP thing.
@dieSpinnt
@dieSpinnt Жыл бұрын
@@RobotnikPlays Nope. Nathan's method of emulating the original server is the least invasive. Actually it is non-invasive, so no one has to patch a client or juggle some versions around or add some DLL or stuff ... which leads to all sorts of horrors and uncertainties and frustration, as we know from history. I believe you had good intentions, but by adding additional dependencies and excluding the original clients (and with that: time travelers .... hehehehe) you go down the path to the dark side ...:P P.S.: Some of those projects reviving the network capabilities of our old beloved games can take years or over a decade to get into a working state. But who cares? Let's rather pay our respect: F. Well, and at all: That is part of the reverse engineering fun;)
@stevobox8726
@stevobox8726 Жыл бұрын
Dude you’ve got a knack for this type of content. I could watch these all day. Please make more!
@publicacct5626
@publicacct5626 Жыл бұрын
This is some of the most accessible reverse engineering content on KZbin. Thanks! Do you keep any notes while you're doing this work? For me it's essential to have a text doc of discoveries and to rename things/add comments to the decompiled output.
@nathanbaggs
@nathanbaggs Жыл бұрын
My aim is to try and make things like this approachable, so I’m glad that comes through. My usual approach is to do most of the RE ahead of time and aggressively keep notes, I can then script up a video with a clearer narrative (and cut out most of the bits where I just stare blankly at a debugger hoping for inspiration)
@user-bq6vh9fk8r
@user-bq6vh9fk8r 3 ай бұрын
@@nathanbaggs I am sure that there are people who would appreciate more advanced content and longer videos
@Woohoojin
@Woohoojin Жыл бұрын
11k subs is criminally low for how entertaining you make such a frequently frustrating process look. Glad to have stumbled on your channel!
@nathanbaggs
@nathanbaggs Жыл бұрын
Glad you enjoy it!
@pkalman2045
@pkalman2045 Жыл бұрын
oh coach banan is also interested in comp sci? and yeah if he just keeps up this quality at least a 100k is to be expected, truly outstanding content
@stevobox8726
@stevobox8726 Жыл бұрын
Sitting on 14k now, this channel could be huge
@junebug9320
@junebug9320 Жыл бұрын
3:50, finally my go-to solution of screaming into the void has been validated
@nathanbaggs
@nathanbaggs Жыл бұрын
Sometimes that’s all you can do
@damianabregba7476
@damianabregba7476 Жыл бұрын
When you scream into the void, the void screams back at you
@Maric18
@Maric18 Жыл бұрын
don't just scream into the void! screaming is a great catch all experimental interface method random people ask you to sign up for things on the street? SCREAM computer wont start? maybe SCREAMING fixes it its 2 minutes before clockout and your boss walks in with more work? GUESS WHAT
@santypk5
@santypk5 Жыл бұрын
Please continue making this kind of videos, your work is truly amazing
@hajimemash1375
@hajimemash1375 Жыл бұрын
Best video that finally made RE seem practical and not some black magic! Aside, distance to camera seems decent and moving it back a bit may be even better [the closeup one].
@Frrk
@Frrk Жыл бұрын
Awesome stuff. I have fond memories of playing Worms 2. Online, people mention Armageddon or WWP more often, but I always felt that those added too much convoluted stuff.
@ChrisRodger87
@ChrisRodger87 Жыл бұрын
Marvellous and inspiring. It's fascinating to see problem-solving at this level. I recall only having to produce one pretty simple program in assembly at university - we all had a mortal fear as students, lol. Most of us thought Java was a tough cookie to crack! Your fluidity and mastery blows my mind!
@OghmaNano
@OghmaNano Ай бұрын
I'm really loving your content, really great effort! It must take ages to make these vids.
@joshxwho
@joshxwho Жыл бұрын
This is a fantastic introduction to reverse engineering, glad KZbin recommended me this - I already know the tools but always love a good reverse engineering story.
@metalpachuramon
@metalpachuramon Жыл бұрын
I watched the first part yesterday, so glad that the algorithm blessed me with the fresh upload! Keep up the good work mate
@xdan0x
@xdan0x Жыл бұрын
Met too! KZbin at it's best
@JRDavison
@JRDavison Жыл бұрын
Mate, this is unreal. I've learnt so much. Thanks heaps for making it. I glad it's you and not me though, looks pretty tricky.
@migueldellicarpini4437
@migueldellicarpini4437 Жыл бұрын
Wow thanks for bringing back so many good memories, besides this video encourages me to go back to low level tinkering just for fun. I'm eager to watch more content from you about this masterpiece of software.
@axelqt1
@axelqt1 Жыл бұрын
i'm in a similar process with a game that closed more than a decade ago called Infinity online, thanks for all those precious informations
@sandwich2473
@sandwich2473 Жыл бұрын
This is a really really interesting project, thank you for going through the process and showing it to us :O
@HugoCornellier
@HugoCornellier 6 ай бұрын
This is incredible content. Keep making videos like these!
@nathanbaggs
@nathanbaggs 6 ай бұрын
Will do!
@LightTheMars
@LightTheMars Жыл бұрын
Great channel. I've been randomly recommended your Roller Coaster Tycoon video and I can't wait for more content like this. I've dabbled with reverse engineering in the past with Ghidra and x64dbg, it's really interesting seeing how to use them in tandem like you do.
@Pikmeir
@Pikmeir Жыл бұрын
I'm not a programmer so I understood close to 0% of what you were doing, but I still loved the video and especially loved how somehow this game is still being played. I'll have to dust off my Worms 2 CD and give it a try!
@Scarhandtunes
@Scarhandtunes Жыл бұрын
This is unreal stuff mate, just seen the first part recently too! Subbed for sure
@nathanbaggs
@nathanbaggs Жыл бұрын
Thanks!
@KingMoronProductions
@KingMoronProductions Жыл бұрын
No this is Worms, not Unreal 😆
@Scarhandtunes
@Scarhandtunes Жыл бұрын
@@KingMoronProductions any more of this and I'm unsubbing! 😂
@liqzz
@liqzz Жыл бұрын
just saying that your work wasnt for nothing. i am currently learning about networking and IT in generall and this video really helps to understand the inner workings of a simple multiplayer funktion really good and understandable. also i really like the editing. thanks :)
@poison812
@poison812 Жыл бұрын
Watching this brings back very old memories
@halfbakedproductions7887
@halfbakedproductions7887 Жыл бұрын
This looks like old fashioned, direct Winsock function calls and everything built from scratch. I can see why that made sense at the time and for this kind of application, but nobody really does that anymore.
@djstrickson1284
@djstrickson1284 Жыл бұрын
I like this video a lot. As a computer scientist with a specialization in distributed and networked systems, this is very well-explained. For me it would be more interest to see the connections between the output of the "real game" and the ghydra assembly. Maybe you can show the path, how you see the details to follow back the path and the find the values and functions that are important ? :D Thank you
@Bobbias
@Bobbias Жыл бұрын
I'm curious about the function you identify at ~5:40 How did you identify that it takes 2 parameters? Was it purely by looking at the assembly rather than the decomp? And is there a reason you're not renaming and correcting the decomp?
@nathanbaggs
@nathanbaggs Жыл бұрын
The decompilation of the function showed two args, I think I might have cut that out to zoom into the actual code
@xy-box
@xy-box Жыл бұрын
He use IDA decompiler instead Hydra 🤣
@bobbyaremyshoes2233
@bobbyaremyshoes2233 Жыл бұрын
It would probably show the real number of arguments during the actual function decompilation. Ghidra only decompiles a function if it's actually opened. What you see in the video is just a guess based on the passed arguments. To be able to see the real arguments (or rather another guess based on the internals of the function) at calling sites, you need to decompile that function and commit its parameters ('P' by default). If I remember correctly, it's done automatically while renaming a function or its parameters. It's strange he doesn't do it, being able to set comments and types is literally the best feature of tools like Ghidra and IDA
@Bobbias
@Bobbias Жыл бұрын
@@bobbyaremyshoes2233 I've used Ghidra myself for a little while when attempting to recover the source code to several functions in an old game (Enemy Nations), so I'm somewhat familiar with Ghidra at a basic level. I had the benefit of source code to work from, which made identifying various functions far easier, but the decomp definitely didn't always get things right. vtables in particular were a nightmare to reconstruct (I never tried automating things or using the header parsing features though). But yeah, it just stuck out as weird to me that there was absolutely no visible use of any of the functionality Ghidra exposes in the video.
@TheJaber288
@TheJaber288 Жыл бұрын
What a nice channel, you deserve more subscribers, very nice explanation and very logical to follow, maybe you can show more in detail some bits of the workflow in ghidra ?
@robert-yates
@robert-yates Жыл бұрын
stare at bytes and divine some meaning from them sounds like a good job title
@codenamegamma
@codenamegamma Жыл бұрын
something that could really use some help is Sonic R, the main version we use from 1997 doesn't have the netcode that shipped with the original release, so the original version for networking just won't run at all, so while the game did support networking at one point, it's not something anyone is working on sadly. this is one of those things where if it could get working again the community im sure would use it.
@louisparry-mills9132
@louisparry-mills9132 Жыл бұрын
Awesome, a really cool idea for a video. I can't wait to watch it all when I get a minute o.o
@nicholasholmes197
@nicholasholmes197 Жыл бұрын
I would absolutely love if you could fix lego rock raiders. Such a nostalgic game that I cannot get to work for the life of me.
@vonBlankenburgLP
@vonBlankenburgLP Жыл бұрын
Absolutely great content. I've never seen one presenting how to reverse engineer code on KZbin with so much detail. Subbed!
@HinkHall
@HinkHall Жыл бұрын
This video really makes me want to finally dive into the code of one of my old favorite now delisted/offline titles of Spartacus Legends...
@YetiWizard
@YetiWizard Жыл бұрын
Amazing content, superbly presented! I really hope there's more to come :) Have you tried using Ghidra's debugger? I don't have experience with it myself but it might make it easier to debug alongside the decompiled code and all the info you've documented.
@nathanbaggs
@nathanbaggs Жыл бұрын
Not yet, just been sticking to what I know. I also think it provides a bit of visual variety in the video
@NeverGiveUpYo
@NeverGiveUpYo Жыл бұрын
Epic. Finally some interesting content on the tube. Thanks for this.
@injurera
@injurera 10 ай бұрын
It is a lot of FUN with all those FUNctions.
@whynotanyting
@whynotanyting Жыл бұрын
The thought of yelling at something to potentially get an answer is hilarious
@shaisarfaty
@shaisarfaty 2 ай бұрын
in Worms 2 when you do a crack CD it is bit of a tricky protection (although its easy) but the main issue after you are cracking the CD protection, is that you don't get the audio of the CD tracks. meaning need to fix the game to call manually the tracks that are ripped from the game... would enjoy seeing you doing the CD crack of that old game the the fix for the audio issues..
@Barrytown69
@Barrytown69 Жыл бұрын
Wonderfully enjoyable content for a programming novice like myself!
@xymaryai8283
@xymaryai8283 Жыл бұрын
i wonder if this kind of thing is what the Northstar Server and Client team for Titanfall 2 had to do, its interesting to see the gritty details that make it clear why these things are difficult, but still possible.
@unknowntotherestoftheworld
@unknowntotherestoftheworld Жыл бұрын
NGL i thought this was going to be about reverse engineering worms as in the malicious software type, used in the spreading of malware on networks. Even though the video is on something else entirely it was still worth the watch :)
@zenguru84
@zenguru84 Жыл бұрын
Thx for letting us in your brain and way of thinking. You are true ninja.
@Diogenes_von_Sinope
@Diogenes_von_Sinope Жыл бұрын
oh the memories... in our local computer club, we had a worms 2 Lan tournament. i made 2nd place. won a copy of quake. :D
@AlexKiraly
@AlexKiraly Жыл бұрын
What an underrated channel - Reverse engineering has always been on my bucket list, but I never have the time to discover these things on my own. This content is literally a strong push towards my dreams, thank you!
@christopherbennett1173
@christopherbennett1173 Жыл бұрын
This channel is a true gem.
@JamesTDG
@JamesTDG Жыл бұрын
Kinda sucks that your journey on this project is over, but it is nice that it was finished at least
@vladislavkaras491
@vladislavkaras491 5 ай бұрын
It was interesting to watch, thanks!
@L3D451R7
@L3D451R7 Жыл бұрын
Hello. While watching your video i couldn't resist hopping on my disassembler and looking in worms main executable. There is 605 references of "OutputDebugStringA" logging which probably would be useful in your research since i noticed a bunch of DirectPlay debug strings.
@Jango1989
@Jango1989 Жыл бұрын
Brilliant video. I love your process and your explanations are really good too
@timeimp
@timeimp Жыл бұрын
Subbed. This video was great!
@sanderbos4243
@sanderbos4243 Жыл бұрын
Loved it, thank you for the follow-up!
@DerSolinski
@DerSolinski Жыл бұрын
Just for digging this old gem up you get a 👍
@generalkilbabathemadmansch3602
@generalkilbabathemadmansch3602 Жыл бұрын
Very informative! Thanks for the video.
@snooks5607
@snooks5607 Жыл бұрын
title talks about "fixing" but the video seems to be all about discovery, apparently the context for this video is in prior videos, it might be worth mentioning that somewhere
@shakeuk
@shakeuk Жыл бұрын
Love the content, keep it up
@shawnio
@shawnio Жыл бұрын
I have to say this is basic stuff but it's very interesting
@xtomvideo
@xtomvideo Жыл бұрын
That's fascinating and impressive.
@RandomGeometryDashStuff
@RandomGeometryDashStuff 13 күн бұрын
05:39 you can edit function signature in ghidra
@soup9911
@soup9911 Жыл бұрын
oh SHIT he actually did it
@darrenfalconer3267
@darrenfalconer3267 Жыл бұрын
Did what?
@nathanbaggs
@nathanbaggs Жыл бұрын
(:
@jackdeespadas
@jackdeespadas Жыл бұрын
A wizard in action. Thank you for the interesting content.
@haxguy0
@haxguy0 Жыл бұрын
Your content is marvelous
@UndeadAlex
@UndeadAlex Жыл бұрын
Oh its a good day when Nathan posts ❤️
@enterrarte
@enterrarte Жыл бұрын
thank you kindly for interesting video
@TomWhi
@TomWhi Жыл бұрын
Mega interesting! Looking forward to watching more. Thank you algorithm.
@TheRealZeaga
@TheRealZeaga Жыл бұрын
It's baffling to me that you only have 18K subscribers!
@rogo7330
@rogo7330 Жыл бұрын
When you stuck at client not sending anything to server my first thought was that server must send back how many bytes of the next message it will read. This is what SSH does for its channels. But I guess it is not necessary in here since all possible data is structured and expected to be meaningfull.
@iamtimsson
@iamtimsson Ай бұрын
we love your workkkkkkkkkkk!!!!!!!!!!!!!!!!!!!!!!!!!!
@TeamUnpro
@TeamUnpro Жыл бұрын
nostalgia Before this vid: alright im done coding today, was a nice long coding session, but gotta take a break *sees this video*... Hang in there brain
@57F.K
@57F.K Жыл бұрын
Please do not stop making these videos, they are great! You will definetly get the attention you deserve 👍🏼
@verm_ms
@verm_ms Жыл бұрын
how long have you been doing this stuff? it's so cool (sorry i don't understand this stuff so i don't know how to verbalize it)
@nathanbaggs
@nathanbaggs Жыл бұрын
Ive been doing forward and reverse engineering for about a decade
@joachimm81
@joachimm81 Жыл бұрын
Is it local network multiplayer? Have you tried spinning up two instances and watching how they talk to each other?
@LawrenceTimme
@LawrenceTimme Жыл бұрын
I used to play this game all the time when I was a kid. 😎
@MidtownMadness1
@MidtownMadness1 Жыл бұрын
I have yet to watch the video, but I'm sure it will be a good one. Is Midtown Madness also a childhood game of yours? A lot of the exe has already been reverse engineered (see Open1560). I have been wondering lately how difficult it would be to upgrade some of the network libraries they used back in the day. As currently, it visually appears as though the player's network data is only updated a few times a second.
@RebrandSoon0000
@RebrandSoon0000 Жыл бұрын
Is it possible to do this for a game which has SSL cert inside it for networking ? (server-client).
@velox__
@velox__ Жыл бұрын
Really great work! Both the hacking & the video.
@e102em
@e102em Жыл бұрын
Are you able to fix the de sync on cities in motion 2?
@67steinip
@67steinip Жыл бұрын
Although I love worms and your enthusiasm and skillset in resolving Worms 2, I wonder why 2? Why not Worms Armageddon, that to me was the best Worms and only because I hated the damn Magic bullet, it was way to god damn strong. Anyway Worms Armageddon is readily available and works already for newest OS's, so is it nostalgia? or is it just the interest in getting it done, curiosity :)? love your content though.
@CharlesHydronium
@CharlesHydronium Жыл бұрын
Armageddon's servers are still alive, in this case it's nostalgia
@Kakerate2
@Kakerate2 Жыл бұрын
5:45 can you explain how you know it has 2 parameters?
@nathanbaggs
@nathanbaggs Жыл бұрын
I could see from the dissemblly of the function itself, sorry for not making that clear
@jamesread11
@jamesread11 Жыл бұрын
So how is the discord community playing the network version? Have they all hacked the app too?
@Povilaz
@Povilaz Жыл бұрын
Very interesting!
@57F.K
@57F.K Жыл бұрын
Do you have any recommended resources, for example books or websites, to learn reverse engineering?
@nordgaren2358
@nordgaren2358 Жыл бұрын
I haven't finished the video, yet, but did you try editing the function signature of the function that was only showing you one of two arguments being passed?
@nathanbaggs
@nathanbaggs Жыл бұрын
Nah I just powered through (:
@Fewnity
@Fewnity Жыл бұрын
I want more videos about RE worms 2!
@ryccosn
@ryccosn Жыл бұрын
Keep it up. Great content
@TheBitPunch
@TheBitPunch Жыл бұрын
I relate to how he looks at the end when he turns off his camera. No explanation. Deal with it.
@nathanbaggs
@nathanbaggs Жыл бұрын
That was an accident (: just didn’t want to rerender the whole thing to cut a second off the end
@bubbleopter
@bubbleopter Жыл бұрын
I'm battling to understand how you manage to run two separate processes listening under the same port number, I'm really new to this but I've experienced issues when trying to run services on Linux at least when they share the same port number there's always been an issue.
@nathanbaggs
@nathanbaggs Жыл бұрын
The server is listening on that port and the client is connecting to it, so there’s no conflict
@bubbleopter
@bubbleopter Жыл бұрын
@@nathanbaggs but what about the python script, how is that able to process the traffic as well? or is the python script acting as the server.
@nathanbaggs
@nathanbaggs Жыл бұрын
Yes the python script is the server
@terryjbutler
@terryjbutler Жыл бұрын
Wonderful stuff!
@johanngambolputty5351
@johanngambolputty5351 Жыл бұрын
Hmm, I've always wanted to get into reversing, but not sure how doable it is for windows games on a freedom loving OS (and how much windows-specific knowledge is required)...
@cougar-town
@cougar-town Жыл бұрын
You discovered the byte for the flags, that's pretty good. I'd assume it goes from 01 to 10, or longer to maybe X amount of flags so it might end up at like 20 or 30? not sure how many flags there are but, at least you've gotten some progress in. Then you could write a packet-like thing like this: packet { var flag_byte:0x02; type:mumbo jumbo; ... } This might be the way to reply to the response or something like that to ACK (acknowledge that the packet is received via TCP/UDP.
@StatueSounds
@StatueSounds Жыл бұрын
If you want to have a poor round of worms 2 let me know!
@taureon_
@taureon_ Жыл бұрын
okay you gotta be a new channel, cuz there is no way you only have 12k subs
@TomTheEnglishPicker
@TomTheEnglishPicker Жыл бұрын
Hi Nathan. If you interested in some old cd / dvd based pc games get in touch. I buy and sell them as part of my business and would be happy to send you a box full over for free to have a play with. Sadly most these days aren’t worth much as the common consumer struggles to get them to run on current windows . Just thought I’d offer and even if most is over my head I enjoy these videos . 😊
@Trooperos90
@Trooperos90 4 ай бұрын
is it much harder to reverse engineer a modern/steam game?
@nathanbaggs
@nathanbaggs 4 ай бұрын
Modern games do tend to be a lot more complicated
@cortx7
@cortx7 Ай бұрын
LOL, the brazilian flag is upside-down at 1:41 😀
@SpinningPsycho
@SpinningPsycho Жыл бұрын
This. 🔥
@CharlesVanNoland
@CharlesVanNoland Жыл бұрын
ws2_32.dll is the Winsock 2 DLL.
@calvinthedestroyer
@calvinthedestroyer Жыл бұрын
What is geedra?
@joeybruins
@joeybruins 2 ай бұрын
ghidra is a opensource decompiler
@hacked2123
@hacked2123 Жыл бұрын
I'm sure I'm not the only genius to say it...but why didn't you just spin up a couple Windows 95 VMs, install it there, and then start doing packet capture between the two?
@2xAA
@2xAA Жыл бұрын
This is very cool, though O != 0 ;)
@prahjister
@prahjister Жыл бұрын
The first multiplayer game we got to work was 688 Attach Sub
@amaanqureshi1286
@amaanqureshi1286 Жыл бұрын
😀😀
Hacking a 25 Year Old Game To Make It Work
11:26
Nathan Baggs
Рет қаралды 312 М.
The Free Version Of StarCraft Is NOT What It Seems...
12:17
Nathan Baggs
Рет қаралды 99 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
EA Won’t Sell This Game - So I Hacked It
18:31
Nathan Baggs
Рет қаралды 349 М.
An Engineering Fairy Tale: Cascade Failure at the Super Kamiokande
22:21
Alexander the ok
Рет қаралды 723 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,2 МЛН
Tiny Core Linux is Basically Magic
14:23
Action Retro
Рет қаралды 273 М.
Reverse Engineering This Insane Glitch (Ocarina of Time)
12:46
Nathan Baggs
Рет қаралды 66 М.
Building an Enigma Machine
12:10
Code Bullet
Рет қаралды 4,3 МЛН
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
Can you fit a whole game into a QR code?
20:03
MattKC
Рет қаралды 9 МЛН
How Do Hackers Actually Cheat In Games?
12:38
Nathan Baggs
Рет қаралды 47 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН