Nans Timeline System

This plugins allows to keep tracks of time for different timeline paradigm, attached events to them and managed serialization for Save and Load game.

Category:
Tags: , , , ,

Description

This plugins allows to keep tracks of time for different timeline paradigm(1), attached events(2) to them and managed serialization for Save and Load game.

2. Usages

I use this for different purposes.

First I created this to manage a bonus/malus system cause I needed to centralized their life duration.

Then I realized that it can be very helpful for different purposes in my game as creating promotional content, bonus/malus, temporary skills, XP earning factors, … with a limited time and having precise stats for player activities.

A timeline is a simple queue of events which is dedicated to store (to keep traces for stats) and notify them (depending on their parameters and timeline paradigm) on their lifetime events: start & time increase.

As a client, you should never have to use it.

Is working as a remote control for Timeline, it controls time state (Play, Pause) and stream (tick interval, slow motion, …).

As a client, it is your main interface.

The intent of the Real Life timeline is to track times since the first start of the game.

It is not affected by time alterations such as play/pause and slow motion.

After the game stops, it should replay all the missing time on game reloading to update attached Events states.

As real life is, its state is always Play.

Be careful when you attached events, it could increase memory if they have indeterminate life time.

It keeps track of player game session. It follows the same stream, Play/Pause, Stop, slow motion, …

After the game stops, it should restart at the exact same time as the last session.

Be careful too when you attached event here.

The same as Game Life but it is reinitialized when level changes.

You can be less worried on attaching event here, but be aware that all events are definitively removed on reinitialization (level changes).

You can easily create your own timeline manager. See Developers docs.

It is intended to be the most extensible as possible.

So in its actual state, it is just a base UObject which embeds the necessary data to managed its lifetime.

You can specialized it with a dedicated Blueprint asset or in c++ classes (creating a Decorator of the UNEventBase) to do what your want.

To get some examples:

To maintain a short doc here, please read this page here

5. Open Source

This plugins is open source (license apache2) and can be downloaded here

https://github.com/NansPellicari/UE4-TimelineSystem

Technical Details

Code Modules:

Number of Blueprints: +7

Number of C++ Classes: +10

Network Replicated: Not yet (next iteration)

Supported Development Platforms: Win64, Win32

Supported Target Build Platforms: Win64, Win32

Documentation: https://github.com/NansPellicari/UE4-TimelineSystem

Example Project: https://github.com/NansPellicari/UE4-TimelineSystem-Showcase

Supported Engine Versions

4.27