Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia Video Tool (v2.0.0)
Mudbill Offline

Posts: 3,877
Threads: 59
Joined: Apr 2013
Reputation: 178
Amnesia Video Tool (v2.0.0)

Want videos to play inside Amnesia? On a TV or computer monitor? Don't like the built-in gobo animation for spotlights?

This tool will let you animate a sequence of images in the game easily.

This application is written in Java which means it's platform independent. It should work fine on Windows, macOS and various distributions of Linux.

[Image: mSHKvCj.png]

  • Java 7 or newer
  • A video split into individual images
  • Amnesia - The Dark Descent
  • The HPL Tools


Latest version 2.0.0:

[Image: rfJLRwe.png]

[Image: mhrWygp.png]


Spoiler below!

To start off, you need to acquire a sequence of images that will make up your
video. There are tools for extracting videos and gifs into separate images.
Adobe Photoshop can do this, and probably other free tools like Gimp.

Once you have your sequence, use the app to generate the required files for

- File setup
--- Name prefix
        - Whatever your sequence is named (for example frame_00.png,
          frame_01.png, frame_02.png etc), this is the prefix. In this case
--- Number progression
        - x+ will number things normally. The others will use a certain amount
          of leading zeros. The appropriate setting for the above example is
          "xx". Remember that numbering starts at 0.
--- File extension
        - The extension matching your image files.

- Animation
--- Number of frames
        - The total number of frames in your animation. If you have 100 frames
          input 100. The total is the number of your last frame + 1 (because
          it starts at 0).

- Export options
--- Material files
        - The .mat files needed. Required.
--- Entity files
        - The .ent files needed. Also required.
--- Level script
        - The script which animates the frames in the game. Optional if you
          want to make your own script, but I highly recommend this one. You
          can also edit it if you want to.
    -- Minimalized
        - If you don't plan on editing or reading the script, you can use this
          setting which will make the script highly compact and spread across
          a single line. Useful if you want it to take as little space in your
          .hps file as possible.
--- Video placeholder files
        - You need 1 set of these files for the animation to work. Keep them in
          the same folder as your frames.

Once you're done, hit "Generate files" and choose the folder for your frames.

== IN-GAME ==
Copy the exported script into your <Level>.hps file. The script gives you the
folling functions:

void PreloadAnimation(string asName, string asArea, int frameAmount);
void StartImageAnimation(string asName, string asArea, string asFromArea, int
    frameAmount, int fps, bool abLoop);
void StopImageAnimation(string asName, bool abRemove);

You MUST call PreloadAnimation before you play start the animation. This will
load all your frames into the game at a specified area (place them outside your
level somewhere hidden for best effect).

After the animation is loaded, you can play and stop it using the other two
scripts. the asFromArea refers to the area used in the preload function.

Remember that asName here must be the same as the prefix you put into the app.
E.G. "frame_"


August 7, 2018 - v2.0.0
  • Re-wrote the application. GUI is mostly the same, but the underlying functionality is very different. The animation is now more optimized, so it can run at a higher resolution and faster framerate with much less lag.
August 16, 2014 - v1.1.0
  • Completely re-made the design to look prettier and be more clean.
June 5, 2014 - v1.0.2
  • Fixed a bug I overlooked causing the .expobj file to only load 1 entity.
June 4, 2014 - v1.0.0
  • Initial release.

(This post was last modified: 08-08-2018, 02:58 AM by Mudbill.)
06-04-2014, 09:36 PM
Find Reply

Messages In This Thread
Amnesia Video Tool (v2.0.0) - by Mudbill - 06-04-2014, 09:36 PM
RE: Amnesia Video Tool (v1.0.0) - by Neelke - 06-04-2014, 10:01 PM
RE: Amnesia Video Tool (v1.0.0) - by Mudbill - 06-04-2014, 10:05 PM
RE: Amnesia Video Tool (v1.0.0) - by Slanderous - 06-04-2014, 10:18 PM
RE: Amnesia Video Tool (v1.0.2) - by Daemian - 06-09-2014, 01:48 AM
RE: Amnesia Video Tool (v1.0.2) - by Mudbill - 06-09-2014, 03:03 AM
RE: Amnesia Video Tool (v1.0.2) - by Daemian - 06-09-2014, 06:50 AM
RE: Amnesia Video Tool (v1.0.2) - by Straxedix - 06-09-2014, 06:50 AM
RE: Amnesia Video Tool (v1.0.2) - by Mudbill - 06-09-2014, 03:16 PM
RE: Amnesia Video Tool (v1.0.2) - by Mudbill - 08-16-2014, 04:39 AM
RE: Amnesia Video Tool (v2.0.0) - by Mudbill - 08-07-2018, 07:25 AM

Users browsing this thread: 1 Guest(s)