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
A few problems with the HPL level Editor
Sneezembop Offline
Junior Member

Posts: 6
Threads: 1
Joined: Jun 2011
Reputation: 0
#1
A few problems with the HPL level Editor

I'm working on a 5 level custom story for Amnesia, and I've had a few technical difficulties with the level editor that are slowing me down.

first, there are a handful of folders and entities/static_objects that always crash the level editor when i try and put them in the game or even select the folder they're in. these include the mansion base ceiling tiles, human bone pile 1 and 2, and the castlebase wooden floor.

second, I'm trying to use a waterlurker to deter players from visiting an area before another, i have a large circular room with a staircase descending into the water where the waterlurker is. only trouble is, the waterlurker will go through the walls of the room and even come up out of the water via the stairs.

third, I have an area where the player hops along an exterior ledge to get to a blocked off room. like in the Archives. and I want to have it raining outside. the trouble is that the rain particle system is designed that either it's raining everywhere or it's raining nowhere. I'm just trying to make it look like it's raining outside the windows and on the ledge.


if anyone has encountered and overcome any of these problems, I would be exceedingly grateful for your advice. Thank you.
06-07-2011, 12:57 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: A few problems with the HPL level Editor

I'm not sure what could be crashing your level editor when you open the entities/static_objects folders. Perhaps there are custom models you downloaded/created which are causing issues.

As for the second, make sure you turn OFF Fast Physics load in your debug menu. That's the only thing I know of that allows you to walk through walls and stuff, so perhaps that's how Mr. Water lurker is doing it. If that doesn't work, create block boxes along the walls of your room; that should do the trick.

Third, you could use ps_multiple water_drop_single.ps particles to create a rain effect. The problem is that if you place them in the editor they will all start at the same time and it will look very unrealistic to have 50 drops of rain fall at the same time. To counter this, you have to script it.

Create around 15-20 script areas placed randomly above each window and call them rain_1, rain_2, etc. If you have 3 windows you should have around 60 areas.

Then, in your OnEnter(), not your OnStart() add these functions

PreloadParticleSystem("ps_water_drop_single.ps");
for(int x=1;x<=60;x++) AddTimer("rain_"+x, RandFloat(0.01, 3.5) , "FuncRain");
//change 60 to the total amount of rain_* areas you have.

Then create the FuncRain function

void FuncRain(string &in asTimer)
{
CreateParticleSystemAtEntity("", "ps_water_drop_single.ps", asTimer, false);
}

This will spawn water drops at all of your rain_* areas randomly once the player enters. You can tweak the timer values to your liking. Hopefully it'll produce a realistic looking rain effect.

(This post was last modified: 06-07-2011, 01:22 AM by palistov.)
06-07-2011, 01:21 AM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#3
RE: A few problems with the HPL level Editor

Try deleting the Temp and Thumbnails folders in My Documents/HPL2/ to see if that fixes the crashing issue.
06-07-2011, 06:09 AM
Website Find
Sneezembop Offline
Junior Member

Posts: 6
Threads: 1
Joined: Jun 2011
Reputation: 0
#4
RE: A few problems with the HPL level Editor

jens, thanks for the tip. that worked perfectly!

palistov, that's an interesting way to simulate the rain. only thing is, i've got over a dozen windows to do : (. there's got to be a way to make the rain particle system work better.
06-07-2011, 06:25 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#5
RE: A few problems with the HPL level Editor

Unfortunately that's the only thing I can think of. Maybe try customizing the rain particle system. There's probably some option to limit its size.

06-07-2011, 09:14 PM
Find
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#6
RE: A few problems with the HPL level Editor

Hey I was creepin around and I have the same crashing problem with the "human bone pile 2". I tried deleting the Temp and Thumbnails folders but it didnt work :\ still crashes
06-08-2011, 05:43 AM
Find




Users browsing this thread: 2 Guest(s)