The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help [SOLVED]Script problem
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
[SOLVED]Script problem

Today I wanted to test my MASSIVE script, and when I say massive I mean 1800 lines.

I had just added a health to percentage logic. All fine and doodely doo. As I wanted to test my script something weird happens.

Script lines are not triggering.

According to my debug messages, everything is working fine.

[Image: 78a0d92ff4.jpg]

But certain lines are not triggering, such as "SetPlayerActive(false);".
This is a part of my script where the debug message is clearly calling:
PHP Code: (Select All)
if(asTimer == "FindMonster")
    {
        
AddDebugMessage("WHYDOESN'TTHISWORK?"false);
        
BattlePreparation();
        
SetPlayerActive(false);
        
PlayMusic("MonsterMusic_1.ogg"true7110false);
        
        
FadePlayerFOVMulTo(1.52);
        
FadeImageTrailTo(153);
        
        
FadePlayerRollTo(901010);
        
FadeOut(2);
        
AddTimer("PrepareVision"2"FindMonsterTimer");
    } 

Lines that a not calling are:

PHP Code: (Select All)
SetPlayerActive(false);
PlayMusic("MonsterMusic_1.ogg"true7110false);

FadePlayerFOVMulTo(1.52);
FadeImageTrailTo(153);

FadePlayerRollTo(901010);
FadeOut(2);
AddTimer("PrepareVision"2"FindMonsterTimer"); 

Does anyone have any idea why this is happening? Is there a limit to how much scripting I can have? That would REALLY suck!

Keep in mind I have no errors, this used to work, then I added a couple of stuff with no relation to this part, and it stopped working.

Things I've tried:
- Delete map.cache
- Restart Amnesia
- Overwrite my .hps file to the same folder

Trying is the first step to success.
(This post was last modified: 12-03-2014, 01:46 AM by FlawlessHappiness.)
12-02-2014, 05:10 PM
Find


Messages In This Thread
[SOLVED]Script problem - by FlawlessHappiness - 12-02-2014, 05:10 PM
RE: Script lines stopped triggering. - by Mudbill - 12-02-2014, 05:16 PM



Users browsing this thread: 1 Guest(s)