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
[SOLVED] Need help - HPS/Skybox trouble
Zokrar Offline
Member

Posts: 85
Threads: 16
Joined: May 2013
Reputation: 0
#1
[SOLVED] Need help - HPS/Skybox trouble

Hi all, I took a fairly long break from mapping, and have run into a problem I ran into a long time ago. The new problem is that I've forgotten how to fix said problem Confused

First off, my hps file is not working. At the moment, all it has in it is...

Spoiler below!
void onStart()
{
GiveItemFromFile("lantern", "lantern.ent");
SetSkyBoxActive(true);
SetSkyBoxTexture("foreign_skyscape.dds");
}

I have made sure it is named the same as my map (Realism.hps, Realism.map), but I am not spawning with a lantern. I'm in debug mode, if that changes anything.

My next problem is that I can't get skyboxes to work. If I select the option in the editor (Edit -> Level settings) the skybox will appear in the editor, but once I start up the map, the sky is white.

Any and all help is greatly appreciated.

(This post was last modified: 06-21-2013, 10:21 PM by Zokrar.)
06-21-2013, 02:23 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#2
RE: Need help - HPS/Skybox trouble

where is the skybox file?
It must be in a directory recognized by your resources.cfg

06-21-2013, 02:53 AM
Find
Zokrar Offline
Member

Posts: 85
Threads: 16
Joined: May 2013
Reputation: 0
#3
RE: Need help - HPS/Skybox trouble

(06-21-2013, 02:53 AM)WIWWM Wrote: where is the skybox file?
It must be in a directory recognized by your resources.cfg

It's in... custom_stories/Egypt/Textures/evnmaps/

06-21-2013, 02:56 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#4
RE: Need help - HPS/Skybox trouble

(06-21-2013, 02:56 AM)Zokrar Wrote:
(06-21-2013, 02:53 AM)WIWWM Wrote: where is the skybox file?
It must be in a directory recognized by your resources.cfg

It's in... custom_stories/Egypt/Textures/evnmaps/

okay try not using any hps file (just move it out of the folder to desktop or something) set the skybox through lvl editor again then go in game after saving and closing the editor.

06-21-2013, 03:29 AM
Find
Zokrar Offline
Member

Posts: 85
Threads: 16
Joined: May 2013
Reputation: 0
#5
RE: Need help - HPS/Skybox trouble

No luck. Sky is still white.

06-21-2013, 03:34 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: Need help - HPS/Skybox trouble

You have to include the custom story directory in your Resources.cfg.

HOW TO DO THAT
Spoiler below!

Find your Resources.cfg in
Amnesia - The Dark Descent/redist/

Then, open it.

After that, copy paste this to the contents. Make sure it's inside the </RESOURCES> sign.
<Directory Path="/custom_stories" AddSubDirs="true" />

Then, your skybox should be working now!


[EDIT : It's void OnStart() by the way.]

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 06-21-2013, 03:46 AM by PutraenusAlivius.)
06-21-2013, 03:37 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#7
RE: Need help - HPS/Skybox trouble

(06-21-2013, 03:37 AM)JustAnotherPlayer Wrote: You have to include the custom story directory in your Resources.cfg.

HOW TO DO THAT
Spoiler below!

Find your Resources.cfg in
Amnesia - The Dark Descent/redist/

Then, open it.

After that, copy paste this to the contents. Make sure it's inside the </RESOURCES> sign.
<Directory Path="/custom_stories" AddSubDirs="true" />

Then, your skybox should be working now!


i thought about that but would it work for other people who dont have it added?

It would work for him but why not him? and why isnt his script activating it?

06-21-2013, 03:43 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#8
RE: Need help - HPS/Skybox trouble

(06-21-2013, 03:43 AM)WIWWM Wrote:
(06-21-2013, 03:37 AM)JustAnotherPlayer Wrote: You have to include the custom story directory in your Resources.cfg.

HOW TO DO THAT
Spoiler below!

Find your Resources.cfg in
Amnesia - The Dark Descent/redist/

Then, open it.

After that, copy paste this to the contents. Make sure it's inside the </RESOURCES> sign.
<Directory Path="/custom_stories" AddSubDirs="true" />

Then, your skybox should be working now!


i thought about that but would it work for other people who dont have it added?

It would work for him but why not him? and why isnt his script activating it?

It WOULD work only on the Level Editor. Other people that didn't add that will see the white skybox on the Level Editor. The game works just fine.

"Veni, vidi, vici."
"I came, I saw, I conquered."
06-21-2013, 03:48 AM
Find
Zokrar Offline
Member

Posts: 85
Threads: 16
Joined: May 2013
Reputation: 0
#9
RE: Need help - HPS/Skybox trouble

Will try that now

(This post was last modified: 06-21-2013, 03:55 AM by Zokrar.)
06-21-2013, 03:55 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#10
RE: Need help - HPS/Skybox trouble

(06-21-2013, 03:48 AM)JustAnotherPlayer Wrote:
(06-21-2013, 03:43 AM)WIWWM Wrote:
(06-21-2013, 03:37 AM)JustAnotherPlayer Wrote: You have to include the custom story directory in your Resources.cfg.

HOW TO DO THAT
Spoiler below!

Find your Resources.cfg in
Amnesia - The Dark Descent/redist/

Then, open it.

After that, copy paste this to the contents. Make sure it's inside the </RESOURCES> sign.
<Directory Path="/custom_stories" AddSubDirs="true" />

Then, your skybox should be working now!


i thought about that but would it work for other people who dont have it added?

It would work for him but why not him? and why isnt his script activating it?

It WOULD work only on the Level Editor. Other people that didn't add that will see the white skybox on the Level Editor. The game works just fine.

he said it already works in the editor...
(06-21-2013, 02:23 AM)Zokrar Wrote: skybox will appear in the editor

(This post was last modified: 06-21-2013, 03:58 AM by 7heDubz.)
06-21-2013, 03:57 AM
Find




Users browsing this thread: 1 Guest(s)