News for hackers. Stuff that matters.
Re:Zelda: Link's Awakening Game Engine Documentation by kemenaran on Friday January 06, 2023 @01:53AM (#34271761)
Author here! Most of the engine documentation was figured out by many romhackers over the years; I merely started the efforts to write a comprehensive overview.

If you're interested in projects taking advantage of this knowledge, the Daid's LADX Randomizer [0] is awesome. It includes a ton of assembly tweaks that makes the engine more flexible, and add many options to the game.

And Link’s Awakening Redux [1] is a good example of life-improvement game tweaks made using the disassembly.

[0] LADXR: https://daid.github.io/LADXR/ [1] Link’s Awakening Redux: https://github.com/ShadowOne333/Links-Awakening-Redux

Re:Zelda: Link's Awakening Game Engine Documentation by wodenokoto on Friday January 06, 2023 @02:10AM (#34271840)
What was censored and what was the untranslated present?
Re:Zelda: Link's Awakening Game Engine Documentation by LukeShu on Friday January 06, 2023 @03:38AM (#34272422)
Instead of losing her bra (which Link must then find), the mermaid loses her necklace. The hippo lady being painted instead of pulling a towel to cover herself when Link enters the room, is edited to have no nude characteristics.
Re:Zelda: Link's Awakening Game Engine Documentation by coldpie on Friday January 06, 2023 @09:36AM (#34275010)
Re:Zelda: Link's Awakening Game Engine Documentation by a_t48 on Friday January 06, 2023 @02:55AM (#34272115)
I've been working on a project on top of LADXR, many thanks to all involved.
Re:Zelda: Link's Awakening Game Engine Documentation by causality0 on Friday January 06, 2023 @06:33AM (#34273586)
Nice. I wonder if they'd be willing to fix the bug where pressing left and right on the d-pad at the same time renders Link's sprite invisible. Not an issue on original hardware but quite dangerous when emulating.
Re:Zelda: Link's Awakening Game Engine Documentation by mikepurvis on Friday January 06, 2023 @07:41AM (#34274025)
Given that original hardware prevented that, I’m surprised it wouldn’t be a default-on option in emulator frontends.
Re:Zelda: Link's Awakening Game Engine Documentation by lostlogin on Friday January 06, 2023 @10:22AM (#34275624)
Oh that’s neat. I’m struggling to think of bug prevention that’s similar on a PC. Orientation lock maybe?
Re:Zelda: Link's Awakening Game Engine Documentation by Zircom on Friday January 06, 2023 @10:36AM (#34275833)
The original hardware prevented it in the sense it's impossible to push both the left and right button at the same time on the Gameboy dpad, not through any software means.
Re:Zelda: Link's Awakening Game Engine Documentation by mikepurvis on Friday January 06, 2023 @01:12PM (#34278557)
Yes, I understood that it was "hardware" as in a fundamental constraint of the physical controller, but appreciate the clarification.

Certainly if it had been enforced by the console firmware, then it would be a no-brainer that emulators should do it.

Funny story about this actually is that a while ago I was retrofitting an old dance mat to be an XInput device via a Teensy, and I ran into a constraint where XInput's d-pad support only allowed one direction to be set at once, which obviously doesn't work for that use case. I ended up giving up and having the Teensy emulate a USB keyboard instead. (This was for use with Stepmania and Necrodancer on PC.)

Re:Zelda: Link's Awakening Game Engine Documentation by LocalH on Friday January 06, 2023 @02:23PM (#34279550)
Games of that era tended to hit the hardware directly for I/O, meaning that there is no firmware that can enforce any such thing. AFAIK the Game Boy boot ROM just verifies the Nintendo logo data, plays the chime, then boots the game, and after the game boots, the boot ROM completely disappears from the memory map.
Re:Zelda: Link's Awakening Game Engine Documentation by Danieru on Saturday January 07, 2023 @11:07AM (#34289343)
Nintendo held onto this no os approach into the Wii era. Hence if you ran a japanese version game on a north American Wii you got the japanese Wii pause menu.

Meanwhile the PS3 and Xbox 360 had hypervisors.

Re:Zelda: Link's Awakening Game Engine Documentation by mikepurvis on Saturday January 07, 2023 @04:32PM (#34293082)
Yeah, I remember that too— each game was shipping its own instance of the pause menu, so they would have subtly different behaviour, including around weird things like what the light on the disk drive did.

I imagine this kind of thing is also why the backcompat story for playing Wii games on a Wii U is so janky— you have to access them through the "vWii" environment, which I guess is basically just a kind of VM, so that it can provide a virtualized instance of the hardware that the game ROMs/discs are expecting to talk to.

Re:Zelda: Link's Awakening Game Engine Documentation by LocalH on Saturday January 14, 2023 @10:00AM (#34380780)
Well, the Wii did have an OS, that would receive updates over time. IOS was managed sort of shitty, though. Since older games would be linked with specific versions of IOS, they had to literally keep multiple versions of the OS around on NAND. They would occasionally stub out specific slots (usually those used by the System Menu, or by internal-only discs, or even slots they never used but that pirates did use).

Agreed, however, that all PPC code running during a game came from code on the disc, even "OS" things like the Home menu. The IOS code largely gatekept the advanced Wii features as compared to the GC

Re:Zelda: Link's Awakening Game Engine Documentation by vikingerik on Friday January 06, 2023 @11:11AM (#34276411)
It depends on the emulator, across pretty much every platform that uses a joystick or d-pad, but in my experience the default most commonly is no left+right input at the same time. (It's semantics as to whether the implementation is "allow left+right input" defaulted to off, or "prevent left+right input" defaulted to on.)
Re:Zelda: Link's Awakening Game Engine Documentation by mikepurvis on Friday January 06, 2023 @01:15PM (#34278601)
I'd also be interested to know what ends up happening if there are simultaneous presses— I assume last-one-wins would be the least surprising strategy for resolving it, but certainly several options are possible, and what is preferred might even be game-dependent.
Re:Zelda: Link's Awakening Game Engine Documentation by andrewmcwatters on Friday January 06, 2023 @02:37PM (#34279757)
This reminds me vaguely of the Sega Dreamcast controllers.

If I remember correctly, there is a hardware and software difference between pushing up on the joystick.

It doesn’t represent `{ x: 0, y: 1 }’, but I can’t remember if that was the case because of the physical joystick, which was then remapped in software, or some other case, though I assume that’s why.[1]

[1]: https://github.com/flyinghead/flycast/issues/287

Re:Zelda: Link's Awakening Game Engine Documentation by zoklet-enjoyer on Saturday January 07, 2023 @11:50PM (#34296136)
I've never played this game on an emulator. That's pretty interesting. I need to find a ROM now.