1 2
11 12
Player (42)
Joined: 12/27/2008
Posts: 873
Location: Germany
Ah, so that's what you wanted the addresses for... If you have trouble with Lua syntax, here's a small revision of your script using the loops and a small trick to get the bit-sum:
Language: Lua

function popcount(x) local counter = 0 while x>0 do x = x - AND(x,-x) counter = counter + 1 end return counter end function showCaught() local startAddress = 0xD2F7 local caught = 0 for i=0,18 do caught = caught + popcount(memory.readbyte(startAddress+i)) end gui.text(140,130,caught) end gui.register(showCaught)
I know that there's at least one DS Castlevania run published with a Lua encode...
Player (42)
Joined: 12/27/2008
Posts: 873
Location: Germany
For people subscribed to this thread, run finished and submitted. Thanks for your patience.
P.JBoy
Any
Editor
Joined: 3/25/2006
Posts: 850
Location: stuck in Pandora's box HELLPP!!!
ElectroSpecter wrote:
I was a bit disappointed when I found out that lua text can't be drawn on the SGB border
You can use this version to use Lua over the SBG border
Player (42)
Joined: 12/27/2008
Posts: 873
Location: Germany
Thanks a lot, PJBoy! However, I think the run won't sync in v23.5. Apparently the desync is caused by the newer versions not understanding a hard reset, perhaps the conversion of the movie file can fix this.
P.JBoy
Any
Editor
Joined: 3/25/2006
Posts: 850
Location: stuck in Pandora's box HELLPP!!!
Oh yeah, forgot about that. Here's one based off SVN r232 (last SVN to use v22 timing).
MarbleousDave
He/Him
Player (13)
Joined: 9/12/2009
Posts: 1559
If BizHawk allowed linking with up to 4 Game Boys at once, we could do 4-player TASes of F-1 Race, Super R.C. PRO-AM, and Yoshi's Cookie. But we're not here for that. I was thinking about using the Japanese versions of Red, Green, Blue, and Yellow, and have the option to switch between link options between horizontal, vertical, cross, and 4-way. The 4-way option is for 4-player games, but not for Pokemon, we use horizontal, vertical, and cross connections.
Editor, Emulator Coder, Site Developer
Joined: 5/11/2011
Posts: 1108
Location: Murka
PikachuMan wrote:
If BizHawk allowed linking with up to 4 Game Boys at once, we could do 4-player TASes of F-1 Race, Super R.C. PRO-AM, and Yoshi's Cookie. But we're not here for that. I was thinking about using the Japanese versions of Red, Green, Blue, and Yellow, and have the option to switch between link options between horizontal, vertical, cross, and 4-way. The 4-way option is for 4-player games, but not for Pokemon, we use horizontal, vertical, and cross connections.
4 way link is new emulation development; might be difficult. 2 way link with more than 2 total carts and connections that can be plugged and unplugged is much simpler; all the complex work has already been done. How useful would this feature be? Are there many games that could do something interesting with it?
1 2
11 12