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 cs not working on other computer
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#4
RE: cs not working on other computer

the script in my post is not the script which causes the error.
just take a look at the error message. the file path is invalid.

the "wrong" script from the error message is:
void debug(const string text){
    AddDebugMessage(text,false);
}

const int mustRounds = 3;
int rounds = 0;
bool right1 = false;
bool right2 = false;

void rightround(string &in asParent, string &in asChild, int alState){
    if (asChild == "ScriptRight_1"){
        debug("right 1 , right2 == "+right2);  //  line 112
        if (!right2){
            right1 = true;
        }else{
            rounds--;
            right2 = false;
        }
    }
    if (asChild == "ScriptRight_2"){
        debug("right 2 , right1 == "+right1);  // line 121
        if (!right1){
            right2 = true;
        }else{
            rounds++;
            right1 = false;
        }
    }
    debug(rounds+" / "+mustRounds);
    if (rounds >0){
        SetEntityActive("changeWall_1",true);
        SetEntityActive("changeWall_2",false);
        if(rounds >= mustRounds){
            SetEntityActive("changeWall_3",false);
            SetEntityActive("changeDoorframe_1",true);
            SetEntityActive("changeDoorway_1",true);        
        }else{
            SetEntityActive("changeWall_3",true);
            SetEntityActive("changeDoorframe_1",false);
            SetEntityActive("changeDoorway_1",false);
        }
    }else{
        SetEntityActive("changeWall_1",false);
        SetEntityActive("changeWall_2",true);
        SetEntityActive("changeWall_3",true);
        SetEntityActive("changeDoorframe_1",false);
        SetEntityActive("changeDoorway_1",false);
    }
}

but, the whole story with all its script files is working 100% on my pc. the problem is that it does not work on the other computer.
(This post was last modified: 02-25-2013, 02:55 PM by darksky.)
02-25-2013, 02:53 PM
Find


Messages In This Thread
cs not working on other computer - by darksky - 02-25-2013, 02:33 PM
RE: cs not working on other computer - by darksky - 02-25-2013, 02:53 PM
RE: cs not working on other computer - by darksky - 02-25-2013, 04:21 PM



Users browsing this thread: 1 Guest(s)