[CONFIG] Extra HUD - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [CONFIG] Extra HUD (/thread-11145.html) Pages:
1
2
|
Extra HUD - nemesis567 - 11-02-2011 Is it possible to create new HUD elements, either by using script or messing around CFG files? I mean, is it possible to stream an image into the playscreen in Amnesia? RE: Extra HUD - palistov - 11-03-2011 Yes, but probably not quite the way you think. Create a misc file for your FC. (yourfcname_misc) Make sure you change your resources file to point to this new misc folder. Open the main_sanity_events.cfg file. Copy a SoundStream entry. Modify everything to the way you want it. You can choose the image to show, but make sure you change the color of it so it doesn't come out red or something. Change the fade out time to a very large number. Obscenely, unnecessarily large. 1000000000 will do just fine. This will make the image stay there for longer than the player ever could play. Change this new event's set to "MYHUD" or something. Disable the "Default" set via script, and enable the "MYHUD" set. Trigger it by StartRandomInsanityEvent();. This is unreliable though. If the player exits to the menu and re-enters, the insanity event will disappear, and there's no way to trigger a function when the player loads up the game (it doesn't count as OnEnter; I've tested it). Using a repeating timer to trigger the event may be an option. You'll have to test it thoroughly. Good luck. RE: Extra HUD - Tanshaydar - 11-03-2011 Changing HUD images is possible like I did in White Night, but creating new elements... That depends what you want to do. I think you can pull it by using elements from Amnesia. For example: - Health bar uses player health; - Sanity bar uses player sanity; - Oil bar uses lantern oil; - Tinderbox bar uses player's tinderboxes. So, by manipulating them you can use specific bar for your specific purposes. Other than that, I don't think it's possible. RE: Extra HUD - nemesis567 - 11-03-2011 I just got the idea that I've played a custom story or Amnesia itself where there was some kind of health bar from some monster or something. But it's probably that there is no such thing. HPL2 never makes it easy. I may check that insanity thing. Tanshaydar's way can only be used for when inv is open if I'm right. One other question. Is it possible to attach an entity to the player himself with an offset? RE: Extra HUD - palistov - 11-03-2011 (11-03-2011, 12:19 AM)nemesis567 Wrote: Is it possible to attach an entity to the player himself with an offset?Not as far as I know. Apjjm has done some work with attaching entities with his Katamari project. Give him a PM maybe he can shed some light on the topic. RE: Extra HUD - nemesis567 - 11-03-2011 I think the CS in which I saw the health bar or something like that was from Apjjm, maybe Abduction... Anyhow, I may just PM him. If that was possible and I could make the entity as a child of the player, I could make some extra HUD without much trouble. RE: Extra HUD - Your Computer - 11-03-2011 (11-03-2011, 12:38 AM)nemesis567 Wrote: I think the CS in which I saw the health bar or something like that was from Apjjm, maybe Abduction... I had the same idea; however, that was editing on Cryaotic's part for Abduction, and it was Anxt that made Abduction. RE: Extra HUD - nemesis567 - 11-03-2011 Oh. So that was it... Anyway, I think I can find my way from here. Thanks for your help. RE: Extra HUD - Apjjm - 11-03-2011 (11-03-2011, 12:03 AM)palistov Wrote: This is unreliable though. If the player exits to the menu and re-enters, the insanity event will disappear, and there's no way to trigger a function when the player loads up the game (it doesn't count as OnEnter; I've tested it). Using a repeating timer to trigger the event may be an option. You'll have to test it thoroughly.You can create an "onLoad" event by using a timer and a local var. Code: void OnStart() Edit: Forgot the OnEnter() event. RE: Extra HUD - nemesis567 - 11-03-2011 Local var? Don't you mean global? Or maybe static local because otherwise I don't think it'd be much of an help... I haven't found a solution for a problem that does not exist. I'm just informing myself of the engine's capabilities so that in the future I may use them. So, any ideas for making this kind of thing are still very much welcome. No good can come out of something you don't know. Again, thanks for the help. |