Player (37)
Joined: 9/9/2006
Posts: 388
You forgot to copy the local y and x variables in the script.
A whisper in the wind~~
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
Oops; I renamed the variables outside but forgot to rename them in the actual function. The new version is up.
Marzo Junior
HHS
Active player (286)
Joined: 10/8/2006
Posts: 356
In Sonic 3, the address you're looking for is E912. Here, you can set D0 to 384, for example.
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
HHS wrote:
In Sonic 3, the address you're looking for is E912. Here, you can set D0 to 384, for example.
Sorry, I should have mentioned that I had already found it; but thanks anyway.
Marzo Junior
Player (37)
Joined: 9/9/2006
Posts: 388
Any chance you can add support for "Sonic Boom" ? It's a total modification hack based on Sonic 2, I took a shot at it myself and it works except that they seem to have changed the memory address for the HUD and so kill_orig_hud doesn't function properly.
	s2BOOM	= 0xda18,
A whisper in the wind~~
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
DDRKhat wrote:
Any chance you can add support for "Sonic Boom" ? It's a total modification hack based on Sonic 2, I took a shot at it myself and it works except that they seem to have changed the memory address for the HUD and so kill_orig_hud doesn't function properly.
Where can I find the hack?
Marzo Junior
Joined: 7/2/2007
Posts: 3960
A quick Googling turned up this page which includes a download link.
Pyrel - an open-source rewrite of the Angband roguelike game in Python.
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
It is done: the new version is here.
Marzo Junior
Player (37)
Joined: 9/9/2006
Posts: 388
marzojr wrote:
It is done: the new version is here.
Thanks. Minor bug: Lua Ring counter for Sonic Boom does not work.
A whisper in the wind~~
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
Fixed the bug and fixed another bug with disabling original game HUDs. New version here.
Marzo Junior
Player (37)
Joined: 9/9/2006
Posts: 388
Ring counter still does not increase.
A whisper in the wind~~
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
Hm. I kept staring at your post in disbelief as the script I have locally works correctly. Just to be safe, I downloaded the script from the links and found something even weirder: the first thing I fixed (the S2 Boom ring counter) was not on the file linked to, but the second thing I fixed (do_huds_init calling kill_orig_hud) was. I have no idea what happened, but the fixed version is up now.
Marzo Junior
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
As it turns out, some of the timers (speed shoes, invincibility) were broken when I changed from bitwise & 7 to mod 8. The newest version of the hud is this.
Marzo Junior
Joined: 11/11/2006
Posts: 1235
Location: United Kingdom
Hello there. I don't like score tallys. I do, however, like your script. So I modified it so that with skip_boring_stuff and skip_s3k_score_tally (a new variable) set to true, s3k's score tallys are also skipped. I've uploaded the modified version here, though it'll only be up for a month. Just incase you want to merge or include such functionality in your own script. Changes are made line 28, lines 754-760.
<adelikat> I am annoyed at my irc statements ending up in forums & sigs
Joined: 4/25/2004
Posts: 498
I can't get the script to run: it immediately quits with an error at line 500, "attempt to index local 'file' (a nil value)". Raiscan's edit does the same thing on line 501. Is there a certain directory I have to put the script in? (I'd put this script in its own directory since it had all the extra images and stuff.)
Joined: 11/11/2006
Posts: 1235
Location: United Kingdom
make sure the img folder is in the lua folder (so if gens is in a folder called C:\gens, your img folder needs to be in C:\gens\lua).
<adelikat> I am annoyed at my irc statements ending up in forums & sigs
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
I have a new version, linked in the first post. The changes are:
  • A slight redesign, replacing the boxes with the minus/plus signs by a larger (but thinner) bar glued to the screen edge. This is to make it easier to bring back a disabled box (by Fitts' law).
  • Hit counters and invulnerability timers for all bosses in S1 (including hacks), S2 (not including S2Boom), S3K (but not plain S3). Neither is available for SCD.
  • Tails flight boost timer. This factors in the vertical limit and limiting upward speed, as well as the actual timer.
  • Raiscan's code to skip S3K score tally, slightly modified.
Marzo Junior
Skilled player (1327)
Joined: 9/7/2007
Posts: 1354
Location: U.S.
"SONIC THE HEDGEHOG 2 ...ts\Irony\Gens11b\GensHacks\sonic-hud.lua:512: attempt to index local 'file' (a nil value)"
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
New version of the script is up, with the following changes:
  • Fixed support for S&K and plain S3.
  • Fixed jump predictor for S2K.
  • Added Upthorn's code to disable super/hyper music in S3, S&K and S3&K.
  • Reorganized code into multiple source files, all of which include the files it needs. All the scripts directly in the "sonic" subdirectory are standalone scripts included by the main HUD script and conditionally toggled on or off.
  • Added configuration menu and persistent settings.
  • Fixed behavior of script when it was started and when loading a saved state.
  • Score tallies for all supported games can now be skipped.
Marzo Junior
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
New version, featuring the following changes:
  • Revamped the ROM detection and feature set code.
  • Added several hacks to the compatibility list.
Marzo Junior
Banned User
Joined: 8/30/2010
Posts: 500
Location: Argentina Bs. As.
Hey Sonikkustar, I've been through this and found the solution, but not is if you functioning. You have to create a folder called "Lua" in the place where you have the Gens 11b, extract the lua file and see if it works for you Note: If you did something to functioning, no matter if one does not work, you just have to read this post
[18:51] <scrimpy> Oh, nothing [18:51] <mmarks> oh [18:51] <Nach> I think scrimpy is just jealous of you mmarks
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
Oops, I should have mentioned that I talked to Sonikkustar onver in IRC and solved the problem a few minutes after he posted.
Marzo Junior
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
New version is up, featuring:
  • Added instashield timer.
  • Improved Tails' flight icon.
  • Fixed Marble Garden 1 mini-boss HUD.
  • Compatibility update for latest version of Amy Rose in Sonic 1.
  • When disabling or enabling the original HUD in Sonic 1 and Sonic 1-based hacks through the configuration menu, you no longer have to wait for the next act for it to be restored.
Marzo Junior
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
New version:
  • Fixes error in plain Sonic 3 with the boss tables introduced in previous version.
  • Updated to Amy in Sonic 2 v1.2.
  • Tracking Tails despawn timer as well.
  • Improved Tails flight icon again.
  • Now also watching slope horizontal move lock timers. (new)
  • Super Amy support for Amy in Sonic 2. (new)
Marzo Junior
marzojr
He/Him
Experienced player (762)
Joined: 9/29/2008
Posts: 964
Location: 🇫🇷 France
New version:
  • Move lock support in Sonic 1 and derivatives;
  • Tails flight grab timer is now tracked in S3/SK/S3&K;
  • Fixed bug in configuration menu;
  • Added support for Charmy Bee in Sonic the Hedgehog ROM hack.
Marzo Junior