561 karma · joined Jun 29, 2016 (10y ago) · 68 submissions
comment 5d ago · link · parent
I gave it a try and added it to the TIE Fighter 32-bit DOS/4GB game in about 11 days with some machine-assisted tooling helping porting the hook layer, writing the cockpit generator for that Tydirium Shuttle I always wanted to fly and helping me debug some of the sync errors.
TIE Fighter had these large spanning missions and relied a lot of exact aim as a gameplay mechanic, so I decided to have ownership of NPC craft shift around between players. And turns out since TIE Fighter has a demo from 1994, you can give it a try and if you like it can buy the GOG version. You can try it here: https://fireflyk64.github.io/tf/ , and hopefully I’ll see you online. Many thanks to the OpenTIE project for the address map.
2.
Show HN: TIE Fighter co-op in 11 days, built from 11 years of Wing Commander(fireflyk64.github.io ↗)
3 points · by daniel_rh · 5d ago · 1 comment
comment 2w ago · link · parent
comment 2w ago · link · parent
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...
comment 2w ago · link · parent
comment 2w ago · link · parent
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.
comment 2w ago · link · parent
comment 2w ago · link · parent
comment 2w ago · link · parent
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.
comment 2w ago · link · parent
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.
13.
Show HN: After a decade of reversing, I got co-op working in DOS Wing Commander(fireflyk64.github.io ↗)
257 points · by daniel_rh · 2w ago · 41 comments
comment 1mo ago · link · parent
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.
comment 1mo ago · link · parent
comment 1mo ago · link · parent
comment 1mo ago · link · parent
18.
Show HN: Reversing Wing Commander to find the entity table in 64k to add co-op(fireflyk64.github.io ↗)
4 points · by daniel_rh · 1mo ago · 5 comments
comment 4y ago · link · parent
comment 4y ago · link · parent
eg a.py: import c
if False:
import b
class X:
def x(self):
#type: () -> b.Y
from b import something_that_returns_y
return something_that_returns_y(self)
b.py: from a import X
class Y:
pass
def something_that_returns_y(x : X) -> Y:
return Y()
per https://github.com/asottile/flake8-typing-importscomment 4y ago · link · parent
Per the article: bazel + rules_rust should have the flexibility to override the linker flags that Cargo may take as required since that would be a property of the bazel toolchain used.
It's a nice amalgamation of how cargo works and how bazel works.
In general bazel supports hermetic builds, multiple toolchains, cross complilation, and ways to compile multi-language projects.
I still wish that Cargo.toml didn't support build.rs as it can cause a lot of system-dependent problems that bazel sidesteps entirely by being hermetic.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
At the time there were some mod communities like privateer Gemini gold with a polished release and Vega Trek; those also had windows builds that also work on wine. You might need to install into a folder with read/write permissions.
28.
A Statement on the Walled Metaverse(github.com ↗)
5 points · by daniel_rh · 5y ago · 1 comment
comment 5y ago · link · parent
it was interesting that the AI craft were just like player craft but had a different controller. It was possible to splice in keyboard input for that. Then I wrote some screen scraping software to send the commands remotely.
Here's the software project http://begin2.sourceforge.net/
Unfortunately the sourceforge matchmaking server has long gone offline, but you could connect direct to IP addresses too, so it should still be playable