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
FullGameSave option not working?
Draugemalf Offline
Junior Member

Posts: 27
Threads: 6
Joined: Jul 2016
Reputation: 4
#1
FullGameSave option not working?

I tried to test the feature using two simple levels connected with leveldoors. I had some moveable boxes with the FullGameSave option checked. When I moved them around, went to another map via the LevelDoor and then went back to this map the objects were reset in the initial position.
Is there any other way to save the positions of objects between level changes like you could in amnesia?
I tried this both with Somadev and with the mod launcher, neither of them worked.

06-20-2017, 03:41 PM
Find Reply
Mudbill Offline
Muderator

Posts: 3,734
Threads: 59
Joined: Apr 2013
Reputation: 173
#2
RE: FullGameSave option not working?

If it truly doesn't work, you could manually store the position by putting the X, Y and Z position into a Vector3f upon OnLeave, then set the position again for the entity upon OnEnter, eh? I guess the entity's rotation could be put into another Vector3f.

06-21-2017, 08:13 AM
Find Reply
Draugemalf Offline
Junior Member

Posts: 27
Threads: 6
Joined: Jul 2016
Reputation: 4
#3
RE: FullGameSave option not working?

That could mean a really large amount of work needed if it's more than just a few objects. Could be areas, lights, button states etc. There has to be some way to get that to work.

06-21-2017, 01:34 PM
Find Reply
Mudbill Offline
Muderator

Posts: 3,734
Threads: 59
Joined: Apr 2013
Reputation: 173
#4
RE: FullGameSave option not working?

Assuming there's something wrong with the FullGameSave feature, I'm sure we could create our own. Instead of manually saving all these properties into global vars for each entity, we could create a custom function that just takes in an entity or a light or whatever else and performs the extraction on that input object. It would reduce the amount of script, but you may still have to do something like

PHP Code: (Select All)
void OnLeave() {
    
SaveProperties("Chair");
    
SaveProperties("Table");
    
SaveProperties("Light");


It's better than manually saving and loading specific vectors every time, but the best would of course be to get an answer if FullGameSave works so we don't have to do any extra work. Plus, I think that lets you set it via a checkbox in the Level Editor, right? I find it odd why this feature wouldn't be working. It worked fine in HPL2.

(This post was last modified: 06-22-2017, 12:25 PM by Mudbill.)
06-22-2017, 12:24 PM
Find Reply


[-]
Quick Reply
Message
Type your reply to this message here.

Human Verification
Please tick the checkbox that you see below. This process is used to prevent automated spam bots.



Users browsing this thread: 1 Guest(s)