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
Configuration Files Help [FC] Permanent Sanity Loss
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
[FC] Permanent Sanity Loss

I'm sorry if I didn't search good enough.
I checked different threads with sanity, but couldn't get the answer to my question.

I've created a functioning Full Conversion.
Now, i want to implement it, so that the sanity drops every second by, let's say, 1.67. If I'm right this means that you have one minute and then the sanity will be 0, right?

Is this possible?

I looked in the game.cfg under Player_Sanity. I tried changing the SanityRegainSpeed to -10.0 just to see if anything changed. Nothing happened.

Then I noticed the line SanityLossPerSecond in Player_Darkness, and i tried adding it to the Player_Sanity, but it didn't work Sad

Does anybody have an idea what to do, or how to do it?

Sincerely BeeKayK.


EDIT: Ok, so i found that i can change MinLightLevel to 1.0. This makes the sanity drain, as if the player was in the darkness all the time. Now, the effects and sounds still play. iIs there somewhere in any file that i can change these?

Trying is the first step to success.
(This post was last modified: 03-28-2013, 04:38 PM by FlawlessHappiness.)
03-28-2013, 04:20 PM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#2
RE: [FC] Permanent Sanity Loss

I think you'll have to script the sanity loss in your hps file(s). Something like this:
PHP Code: (Select All)
void Enter()
{
    
DoSanityLoss("");
}

void DoSanityLoss(string &in timer)
{
    
AddPlayerSanity(-1.67f);
    
AddTimer(""1.0f"DoSanityLoss");


In Ruins [WIP]
(This post was last modified: 03-28-2013, 05:29 PM by NaxEla.)
03-28-2013, 05:28 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: [FC] Permanent Sanity Loss

(03-28-2013, 05:28 PM)NaxEla Wrote: I think you'll have to script the sanity loss in your hps file(s). Something like this:
PHP Code: (Select All)
void Enter()
{
    
DoSanityLoss("");
}

void DoSanityLoss(string &in timer)
{
    
AddPlayerSanity(-1.67f);
    
AddTimer(""1.0f"DoSanityLoss");


Are you sure it cannot be implemented by files?
If i could find out where the sanity files are, that create the flickering sounds and the screen effects, it should work.

Trying is the first step to success.
03-28-2013, 05:50 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#4
RE: [FC] Permanent Sanity Loss

pretty sure you control sanity drop rate from the game.cfg, which can be replaced with a full conversion.
03-28-2013, 06:08 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
RE: [FC] Permanent Sanity Loss

(03-28-2013, 06:08 PM)martinnord Wrote: pretty sure you control sanity drop rate from the game.cfg, which can be replaced with a full conversion.

That is also what i got. The thing is that I can only control the sanity drop in darkness, because that's the only place it is meant to drop.
It is, as i wrote in the first post, possible to make every light-adjustment into "Darkness", but then this effect and flickering begins, and i think it will be unbearable to keep listening to through the whole game.

Trying is the first step to success.
(This post was last modified: 03-28-2013, 06:12 PM by FlawlessHappiness.)
03-28-2013, 06:11 PM
Find
WALP Offline
Posting Freak

Posts: 1,221
Threads: 34
Joined: Aug 2012
Reputation: 45
#6
RE: [FC] Permanent Sanity Loss

(03-28-2013, 06:11 PM)BeeKayK Wrote:
(03-28-2013, 06:08 PM)martinnord Wrote: pretty sure you control sanity drop rate from the game.cfg, which can be replaced with a full conversion.

That is also what i got. The thing is that I can only control the sanity drop in darkness, because that's the only place it is meant to drop.
It is, as i wrote in the first post, possible to make every light-adjustment into "Darkness", but then this effect and flickering begins, and i think it will be unbearable to keep listening to through the whole game.
the flickering sound can be removed by using your FC to replace it with a silent sound file.

as for the effect im not sure, but I think some of the setting found under player_sanity might have something to do with it so I suggest you start experimenting.
03-28-2013, 06:23 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#7
RE: [FC] Permanent Sanity Loss

(03-28-2013, 06:45 PM)Robosprog Wrote: The sanity effects can be removed when in the dark, as can sanity loss - keep looking and you'll find it.

I'm trying...

It seems that I can change a lot of values in the game.cfg, but it's hard to figure out which value is the right one.

EDIT:
1. Discovery!!!
SanityEffectsStart = "100"
Obviously, states when the effects should start, according to how much sanity the player has. In my case I'm using 100 because then i don't have to wait for the sanity to fall.

SanityWaveAlphaMul = "0"
SanityWaveSpeedMul = "0"
These two are creating the waves in the sanity effect. Setting them to 0 will make no waves at all.

Trying is the first step to success.
(This post was last modified: 03-28-2013, 06:51 PM by FlawlessHappiness.)
03-28-2013, 06:47 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#8
RE: [FC] Permanent Sanity Loss

(03-28-2013, 06:49 PM)Robosprog Wrote:
(03-28-2013, 06:47 PM)BeeKayK Wrote:
(03-28-2013, 06:45 PM)Robosprog Wrote: The sanity effects can be removed when in the dark, as can sanity loss - keep looking and you'll find it.

I'm trying...

It seems that I can change a lot of values in the game.cfg, but it's hard to figure out which value is the right one.

As I said, keep looking.

SanityLossPerSecond = "0"

I'm using that line to say how much i want the sanity to drop Wink

I think it's something with these:

HitZoomInSpeed = "3.5"
HitZoomOutSpeed = "0.6"
HitZoomInFOVMul = "0.06"
HitZoomInAspectMul = "0.15"

But i cannot figure out, what they should be at...
I put them to:

HitZoomInSpeed = "0.0"
HitZoomOutSpeed = "0.0"
HitZoomInFOVMul = "1.0"
HitZoomInAspectMul = "1.0"

Didn't change anything

Trying is the first step to success.
03-28-2013, 06:59 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: [FC] Permanent Sanity Loss

Well.. It works... I'm just not losing sanity...



Setting MinLightLevel to 0 means that the light must be 0 or less for the effects to start... But the sanity drop is one of the effects, and it's not being triggered.

I should just do it in a script then...

Trying is the first step to success.
(This post was last modified: 03-28-2013, 07:13 PM by FlawlessHappiness.)
03-28-2013, 07:13 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#10
RE: [FC] Permanent Sanity Loss

I just hope I can make it, when you change level, and such.

Trying is the first step to success.
03-28-2013, 08:58 PM
Find




Users browsing this thread: 1 Guest(s)