Hacker Newsnew | past | comments | ask | show | jobs | submit | daniel_rh's commentslogin

Blog co-author here: this year, it was interesting to see people walking around the halls with their laptop slightly askew so their agents could keep processing. I think the reasonable next step is putting compute both in an isolated sandbox but also close to the data.

Initially, I had sketched some ideas of having some sort of "safe" artifact-hosting service to serve any vetted packages to an agent that it may want to install, but then the huggingface "note passing" incident made me think it was safest to just have a frozen, pre-installed image that was configured to have all the vetted packages.

If anyone's interested in the cityscape render, I pasted it here: https://www.dropbox.com/scl/fi/w78fzyd80qvy5uya9x1vq/citysca...


I love what you've done. I see your multiplayer is on a lan with UDP. Would you mind looking into lobbylink ? Lobbylink uses webRTC to punch through firewalls and send both reliable and unreliable packets. It works with nearly every language on every platform. The server side is completely game-independent and feel free to use the same server I do for your game lobby if you want. If you need help getting started you can file an issue at https://github.com/danielrh/lobbylink or direct message me

I think we could target both Privateer (have it so that when your ship shows up at the same nav point as another you spawn the other player) or the x-wing and tie-fighter series.

One problem I'm noticing is that people are much more interested in one-click play (which means using the Open Source RetroVega space game, which I checked in at https://github.com/danielrh/wcmulti/tree/master/retrovega ) rather than going through the trouble to dig up the installer and get the full year 1990 retro experience with Wing Commander. I worry that making older games work is not worth the time it takes if no one tries it.


Yes! I remember finding out which integer was the money in my Sim City save. And I remember when I figured out the build order list for Star Trek: Armada 2 and fixed the Borg AI to be so formidable that we'd have to play the First Contact sound track at full blast to even have a chance of winning against 3 Borg players.

By later times it seems this was tougher, I remember trying it with Ultima IX and utterly failing to locate a single relevant memory location after a solid week.

Not sure what game's save file it was, but I remember learning about big vs little endian this way. And before that, why I would suddenly get negative money if I made it too big!

Ya especially with DRM or multiplayer lockdown measures.

But there is still a revolution where most game files are JSON or plain text (like that build list from Star Trek Armada 2).


Dwarf Fortress is like this too, in fact much of the game can be modded from such files. I like that, but I do understand the frustrations of the developer who not only saw their games cracked but also trained back in the day. It presaged what was to come heh.

Thanks for the feedback! I'll have a look. I do worry about congestion coupling since it would mean a bursty voice stream could affect game packets. Keeping it on a different stream allows game data priority over voice.

I can port https://github.com/danielrh/lobbylink to rust if that's helpful.... probably would have the same external interface.

Author here: in 2015, I was playing the classic Wing Commander in DOSBox and suddenly realized the game state fit in the 64k data segment.

Over ten years my brother and I went through a set of experiments (stop and go, turn, communicate) while probing the memory. We uncovered where the variables were, how to inject calls into the game functions, and how to sync the gamestate across the network, so we can fly the story missions together.

My favorite finding is that the camera lives in entity slot 0x3D, which is possibly a "3D" reference by the original developers.

You can play it at https://fireflyk64.github.io/dosbox in browser. If you own Wing Commander, drag in the installer since no game files are hosted. If you don't, the page will load the original DOS/3Dfx version of Vega Strike, before I open sourced it. I upscaled and redid DOS Vega Strike art using AI, but it now has multiplayer and a similar feel.

I'll be in the lobby for the next few hours if anyone wants to fly together.

Disclosure: I also used AI for the final step to help compile for the browser and port our TCP networking stack to WebRTC with voice and solve a few lingering bugs.


I don't know if I'm more impressed with the result, or that you kept coming back to it for a decade. Super cool!

helllllll yeah. i think it's awesome when domain experts and clever humans use AI to automate the implementation after they've designed the path through the forest. Nice work.

I definitely used AI to bring my old Vega Strike DOS game up to speed and make it work with the layout. Some of the art is better than the rest, but it did feel good to dust off the old dos game from the geocities era and write an equivalent "accelerator" in DOSBox, so that we could get 640x480 graphics in dos. The new Vega Strike is still being developed at https://www.vega-strike.org/

However, that original WC-only 8+ years of figuring out how the data segment was organized and how to call original functions was all by-hand hacking. It was indeed like cutting through a dark forest with no guide.


HI DANIEL YOU'RE AWESOME <3 <3 <3

guess what me and kuprin who met on the privateer remake forum are a couple, and i got citizenship <3

miss you!


Hey spiritplumber, that's a nick I have not seen in many years! Are you still working on any of the old models from back during the vegastrike era? I remember you prolificly produced a ton of wing commander models, I think at least some had gotten used in other projects, but then vegastrike 0.5 changed a bunch of formatting?

Anyways just wanted to say I appreciated all the work you did and thought it was cool to randomly run across you here!


hi! did you see the new priv remake? (i wasn't in it) they saw WCU and basically ran with it

what i DID do is a bunch of accurate wing commander 1 and privateer ships for Space Engineers, just yoink them on the steam workshop :)


You write well.

If you start today with AI assistance, how long will it take?

0 minutes because the entire 11 years this project has been open source on a dosbox branch; therefore, it has all been harvested in the training set, and it's a matter of requesting that the model reproduce the training set and replicate my and others' memory debugging adventures.

Reading my comment again, I realize it sounded not okay and even rude, sorry about that! I didn't want to say AI can just replace 8+ years of hard work and probing memory by hand. I'm curious what parts of the reverse engineering process can be faster with modern AI tools today? What parts still need 100% human logic and trial and error. Amazing job for not giving up on this for so long!

This is so cool! I've been working on trying to minimize the F-zero render loop to fit on gameboy and multiplayer over the link cable...it's been a journey. (I rushed the writeup cus of this article--still polishing the text), but give the game a try on the in-browser emulator: https://fireflyk64.github.io/makingfsub/


This is really great, thank you for sharing. I may borrow this technique for a Playdate project in the future.


I love that idea! Please let me know if it's of any help :-)

Since the Playdate doesn't have any of the sprite rendering hardware that made the gameboy both underpowered in compute and overpowered in graphics at the time, some of the tricks may be unnecessary.

I suppose you could do some kind of shift of a whole row of the framebuffer easily with a memmove sort of operation. The gameboy's shift registers and the per sprite drawing are what really made this both difficult and possible at such a slow CPU clock speed. The playdate CPU is about 40x faster than that on the gameboy, so probably all these kinds of tricks and more would work just fine.


Yes the old game only ran at 15-20 fps and it wasn't even synced to the clock! This endeavour also added time sync and I chose 20 fps (which makes some missions harder). Wingman shots are delayed by up to a few frames, but the system has a high latency mode that double-sends steering commands over the lossy layer. The weapon commands are at least synced with where the ships fly. I haven't tried too much in high latency scenarios (mostly LAN) so we will see how well it holds up online


I remember the lack of clock sync. When I got my 486, I had to slow it down to make WC playable. I recall I found a tool which would disable the internal cache, and also turned off the "Turbo" button.


Here's the source code: https://github.com/danielrh/wcmulti if you notice any issues and want to file any tickets (or want to add support for X-Wing or others)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: