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
How to correctly implement scripts?
xerox102 Offline
Junior Member

Posts: 1
Threads: 1
Joined: Nov 2015
Reputation: 0
#1
How to correctly implement scripts?

Hello there!

Since I have already played around with Amnesias HPL Engine way back (and made a really shitty 2 level custom story), I figured I might just try HPL3 as well and make something, well, less horrible.

I have figured out how to set up a basic map, description etc for the custom story, but I am struggling with implementing scripts. Right now I installed and configured CodeLite and I have a running script.

Now, if my map is called map01, and I want my script to run with map01, how do I do this? I tried simply calling the script map01.hps and putting it in the scripts folder, but that doesn't work.

Apologies if this is a really easy question to answer, but I have had some problems with the documentation and English is not my first language, so I might have missed it.

Regards,
xerox102
11-02-2015, 07:59 PM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#2
RE: How to correctly implement scripts?

When you create a map with the Level Editor, a script file for that map will be automatically generated in the same place as where you saved the map files. For example, if you create a map called my_map.hpm, it will generate a file called my_map.hps.

The scripts for specific maps will always be in the same folder as the map itself. The scripts folder is for any external scripts you wish to run outside of any particular map, such as user modules or utility/helper functions.
11-02-2015, 08:42 PM
Find




Users browsing this thread: 1 Guest(s)