Frictional Games Forum (read-only)
overlay screen with .tga-file - 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: overlay screen with .tga-file (/thread-19916.html)

Pages: 1 2


overlay screen with .tga-file - Ravenskull - 01-13-2013

Hey, Smile

another question came up when thinking about my mod concerning screen effects. At a specific point in Penumbra you had to use a gasmask to cross an area. I want to use the same quest in my mod (Amnesia). Is there an option to overlay the screen with an custom .tga file? For example if you use the following script:

GivePlayerDamage(30.0f, "damage_bloodsplat1.tga", false, false);

... the bloodsplat tga-file will appear.
If I try to use my own file, by simply replaceing my own file it will not work.
example:

GivePlayerDamage(30.0f, "gasmask.tga", false, false);

It also doesn`t work if I replace the original file by my own custom file.

Is there an option to make the programm recognize my file?
I´m also searching for an script to overlay the screen with an .tga-file permanent.
If theres a way to realize my idea it would be a nice snack for all players.

Thanks for your support,
Ravenskull

p.s. Demo is coming soon !


RE: overlay screen with .tga-file - Traggey - 01-13-2013

Moving to development support.


RE: overlay screen with .tga-file - Ravenskull - 01-13-2013

(01-13-2013, 04:42 PM)Traggey Wrote: Moving to development support.

thanks !Heart


RE: overlay screen with .tga-file - xxxxxxxxxxxxxxxx - 01-14-2013

Never tried this, so maybe it's a really stupid idea, but could it instead be possible to just stick a billboard or a plane with the gasmask texture on it to the player? So that it would always be in front of the camera?


RE: overlay screen with .tga-file - Acies - 01-14-2013

Palistov did this for me a while ago.. That man holds many secrets..


RE: overlay screen with .tga-file - Ravenskull - 01-14-2013

(01-14-2013, 12:24 AM)Hirnwirbel Wrote: Never tried this, so maybe it's a really stupid idea, but could it instead be possible to just stick a billboard or a plane with the gasmask texture on it to the player? So that it would always be in front of the camera?

I don´t think this will work, because you have to refresh the texture with every step you walk. Anyway it´s not even possible to add own texures to Amnesia (at least I haven´t found a way).

I sent a pm to Palistov, hope he will reply...


RE: overlay screen with .tga-file - palistov - 01-14-2013

The GivePlayerDamage function uses a damage type as a string, not a file.

You would do GivePlayerDamage(..., "BloodSplat", ...); or something like that. There are a few damage types; I'm not sure what they all are.

Using that function might accomplish what you want, but you'll need a full conversion. I haven't worked with Amnesia in a while, but look into full conversion tutorials. I think Your Computer wrote a good tutorial on it a while back. You'll need to list your own directory for graphics/ or something like that. Be careful though, full conversions are curious beasts.

And if you want to do what Hirnwirbel suggested, it's definitely possible. That's how I created the pseudo-HUD. But you also need a full conversion for that, and it means that the entire game will have that goggles effect, not just a specific time, as using the damage screen effect would let you do.


RE: overlay screen with .tga-file - The chaser - 01-14-2013

(01-14-2013, 07:44 PM)Ravenskull Wrote:
(01-14-2013, 12:24 AM)Hirnwirbel Wrote: Never tried this, so maybe it's a really stupid idea, but could it instead be possible to just stick a billboard or a plane with the gasmask texture on it to the player? So that it would always be in front of the camera?

I don´t think this will work, because you have to refresh the texture with every step you walk. Anyway it´s not even possible to add own texures to Amnesia (at least I haven´t found a way).

I sent a pm to Palistov, hope he will reply...

I think Palistov doesn't reveal his secrets. Although you may try:

I've never tried it, but make a completely empty entity: Then, make a shape and then a body: Then, attach a billboard to the body.
Then, with script, Attach the model to the player.


RE: overlay screen with .tga-file - Your Computer - 01-14-2013

If i remember correctly, trying to redirect the game to different damage images won't work since the damage types and images are hard-coded.


RE: overlay screen with .tga-file - palistov - 01-14-2013

Images hard-coded? That's bizarre. The damage types probably are, but I wouldn't think the images would be. They've got to be stored in the files somewhere. I'm at my PC now, I'll take a look

Edit: Yea I looked, they're under graphics/hud. Don't think I've ever tried changing them in a full conversion though.