[XP] Custom Blizz-ABS HUD

Started by winkio, November 23, 2008, 02:38:38 pm

Previous topic - Next topic

Rose Guardian

This is the game I'm using the hud in. By the way it is not finished.  You'll notice the error happens right when you start the game.

http://www.filedropper.com/knightguard

winkio

July 15, 2009, 09:26:38 pm #81 Last Edit: July 15, 2009, 09:30:48 pm by winkio
ohhh, I see what's happening.  the parhud (what I call the part at the top of the screen) doesn't load until the second frame of the game.  I fixed that now, so it will load at the beginning.  Updated the first post again.

Rose Guardian

Thank you.  The error is finally gone! :)

winkio

yeah, no problem.  I'm always happy to maintain my own scripts :)

Epinaten

I have a few problems with the script:

1. When I have the map name option turned on as true, it gives me the following error:
"Script 'Blizz-ABS Party HUD' line 77: NoMethodError occured.
Undefined method `[]' for nil:NilClass"

2. When I have the map name option turned off as false, and all the others on as true, it gives me the following error every time I change the leader to the 3rd actor:
"Script 'Blizz-ABS Party HUD' line 230: NoMethodError occured.
Undefined method `hp' for nil:NilClass"
I don't know if it has anything to do with it, but my third actor is a test actor with a hp value of 747 (I have not added anything special to the actor yet).

3. When I change the party leader to the second actor, the hp and sp changes in numbers.

4. When I change the party leader to the second actor, and then enter and exit the menu, the name and the hp and sp of all the party members are swapped - the names and hp and sp have changed order, but the pictures haven't.

5. It doesn't have the option to turn the minimap into fullscreen, like in the original blizz-abs script.

I hope you'll look at it, because besides the problems, its a great-looking script!

Blizzard

It's possible that the versions don't match of that the newest Blizz-ABS version isn't fully compatible with this version of the HUD (and winkio would need to edit it a bit). I suggest that you check the versions first.

Also, keep in mind that you shouldn't use the scripts with old save games that were created without them. Start a new game.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

winkio


Epinaten

Sorry for not responding earlier.

Blizzard: Thanks for the advice!

Winkio: Thanks! I'm looking forward to it!

This Side Backwards

I'm having the same problem as Epinaten...

Where when switching through party members, only the HP SP bars swap positions but not the names (I'm not using any faces).
I've already tried starting a new game, but the same problem occurs again.
Any suggestions?

Thanks in advance!

winkio

October 24, 2009, 01:03:37 pm #89 Last Edit: October 24, 2009, 01:30:58 pm by winkio
I'm actually fixing this right now.  The fixed version should be up in an hour.

EDIT:
Quote from: Epinaten on October 05, 2009, 04:30:11 am
I have a few problems with the script:

1. When I have the map name option turned on as true, it gives me the following error:
"Script 'Blizz-ABS Party HUD' line 77: NoMethodError occured.
Undefined method `[]' for nil:NilClass"

2. When I have the map name option turned off as false, and all the others on as true, it gives me the following error every time I change the leader to the 3rd actor:
"Script 'Blizz-ABS Party HUD' line 230: NoMethodError occured.
Undefined method `hp' for nil:NilClass"
I don't know if it has anything to do with it, but my third actor is a test actor with a hp value of 747 (I have not added anything special to the actor yet).

3. When I change the party leader to the second actor, the hp and sp changes in numbers.

4. When I change the party leader to the second actor, and then enter and exit the menu, the name and the hp and sp of all the party members are swapped - the names and hp and sp have changed order, but the pictures haven't.

5. It doesn't have the option to turn the minimap into fullscreen, like in the original blizz-abs script.

I hope you'll look at it, because besides the problems, its a great-looking script!


1.  This is most likely happening because you didn't start a new game.  If you want to use it with old save data, try running these lines in an event in game:

$map_infos = load_data('Data/MapInfos.rxdata')
$map_infos.keys.each {|key| $map_infos[key] = $map_infos[key].name}


If that doesn't work, then you will have to start a new game.  This is because it gets all the map names when you start a new file.

2,3,4.  All those were just because of one bug in the script.  It's now fixed.

5.  I took the option to make it fullscreen out because I was changing the size of the minimap tiles, and didn't want to deal with messing with fullscreen.  I added that option back in now.

For clarification, everything at the top of the screen is supposed to stay in the same place.

The new version is up.

Epinaten

It's a very nice and well-functioning update! Thanks!
However I have about 30 actors in my game - do you think it will be possible to have the support of more than 4 facesets in a future update (not at the same time, but changing - when adding/removing new party members - with the corresponding actor)?
Plus could it be possible to make a switch turn on/off the HUD (for for example cutscenes)?

Best wishes

winkio

turning the HUD off/on is already doable:

$game_system.hud = false


false for off, true for on, just run it in an event.

and I updated with the faceset fix - it was supposed to be actor ID in the first place.

samwis3

Winkio I'm having a problem with this script.

The error is "Wrong # of arguments (4 for 3) on line 183 of the script.
This only happens when I try to use an image for bgtop.

Any reason why this is doing this and how I can fix?

Blizzard

You should post the script listing from your game. This could be an incompatibility problem.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

winkio

No it is definitely my stupidity XD.

Change line 183 from:

self.bitmap.blt(0, 0, Rect.new(0, 0, 640, 50+PARHUD_CONFIG::TOPSPACE))

to

self.bitmap.blt(0, 0, bitmap, Rect.new(0, 0, 640, 50+PARHUD_CONFIG::TOPSPACE))

Metaron

I've got a small issue, whenever I turn the Hud off, using:

$game_system.hud =
false

The hud won't come back on again when I call the script again and set it to true, except the map and the skill bar.

winkio

$game_system.parhud =
true/false

call that as well, I did that so that you could show them independently.

Metaron

Using $game_system.parhud = true/false doesn't seem to work either, at the moment i've got:

$game_system.hud =
false

$game_system.parhud =
false

At the beginning of the event and at the end to try and turn the HUD back on:

$game_system.hud =
true

$game_system.parhud =
true

And it still remains off at the end of the event.

winkio

Hm, that's odd, I'll look into it.

Metaron

Nevermind  :^_^':, it's because I was using Blizz ABS 2.57 instead of the latest one, it works fine now.