Slanderous
Posting Freak
Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation:
63
|
RE: 1 error and I can't find it! help!
Try this
void OnStart()
{ wakeUp(); } void wakeUp() { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground GiveSanityDamage(2, false); AddTimer("trig1", 4.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); SetPlayerLampOil(35); AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true); } void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("CellDoor", false, true); PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false); RemoveItem(asItem); }
|
|
01-05-2014, 11:21 PM |
|
Radical Batz
Posting Freak
Posts: 953
Threads: 145
Joined: Dec 2013
Reputation:
25
|
RE: 1 error and I can't find it! help!
(01-05-2014, 11:21 PM)Lazzer Wrote: Try this
void OnStart()
{ wakeUp(); } void wakeUp() { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground GiveSanityDamage(2, false); AddTimer("trig1", 4.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); SetPlayerLampOil(35); AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true); } void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("CellDoor", false, true); PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false); RemoveItem(asItem); }
OMG DUDE you're the best! it worked! Anyway good luck with your mod I tracked it
|
|
01-05-2014, 11:28 PM |
|
Slanderous
Posting Freak
Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation:
63
|
RE: 1 error and I can't find it! help!
(01-05-2014, 11:28 PM)Badcat5550 Wrote: (01-05-2014, 11:21 PM)Lazzer Wrote: Try this
void OnStart()
{ wakeUp(); } void wakeUp() { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground GiveSanityDamage(2, false); AddTimer("trig1", 4.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); SetPlayerLampOil(35); AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true); } void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("CellDoor", false, true); PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false); RemoveItem(asItem); }
OMG DUDE you're the best! it worked! Anyway good luck with your mod I tracked it
Thank you, sir.
|
|
01-05-2014, 11:45 PM |
|
Radical Batz
Posting Freak
Posts: 953
Threads: 145
Joined: Dec 2013
Reputation:
25
|
RE: 1 error and I can't find it! help!
(01-05-2014, 11:45 PM)Lazzer Wrote: (01-05-2014, 11:28 PM)Badcat5550 Wrote: (01-05-2014, 11:21 PM)Lazzer Wrote: Try this
void OnStart()
{ wakeUp(); } void wakeUp() { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground GiveSanityDamage(2, false); AddTimer("trig1", 4.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); SetPlayerLampOil(35); AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true); } void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("CellDoor", false, true); PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false); RemoveItem(asItem); }
OMG DUDE you're the best! it worked! Anyway good luck with your mod I tracked it
Thank you, sir.
anyway do you know how I can make 3 endings! i'm trying to make different endings in my levels but I seriously don't know how! this is going to be my first CS!
|
|
01-06-2014, 08:11 AM |
|
Radical Batz
Posting Freak
Posts: 953
Threads: 145
Joined: Dec 2013
Reputation:
25
|
RE: Another 1 New error and I just don't know where it is!
(01-05-2014, 11:45 PM)Lazzer Wrote: (01-05-2014, 11:28 PM)Badcat5550 Wrote: (01-05-2014, 11:21 PM)Lazzer Wrote: Try this
void OnStart()
{ wakeUp(); } void wakeUp() { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground GiveSanityDamage(2, false); AddTimer("trig1", 4.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); SetPlayerLampOil(35); AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true); } void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("CellDoor", false, true); PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false); RemoveItem(asItem); }
OMG DUDE you're the best! it worked! Anyway good luck with your mod I tracked it
Thank you, sir.
I'm really sorry to disturb you but I got another 1 error and I can't find it in my script file, I updated the topic so i can show the new error! can you find it because you're just professional at finding hidden errors!
|
|
01-06-2014, 10:50 AM |
|
Slanderous
Posting Freak
Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation:
63
|
RE: Another 1 New error and I just don't know where it is!
Quote:I'm really sorry to disturb you but I got another 1 error and I can't find it in my script file, I updated the topic so i can show the new error! can you find it because you're just professional at finding hidden errors!
First of all, i'm not professional. Those are really easy things, you keep doing the same error - you keep putting void in another void. For example it should be done this way:
void OnStart() { AddEntityCollideCallback("Player", "herpti", "derpti", "true",1); }
void derpti(string &in asParent, string &in asChild, int alState) { SetEntityActive("Penis_monster", true); }
And you keep putting it in void, like this:
void OnStart() { void derpti(string &in asParent, string &in asChild, int alState) SetEntityActive("Penis_monster", true); AddEntityCollideCallback("Player", "herpti", "derpti", "true",1); }
That's not right, okay? You must do it in the same way as I posted first. (the herpti derpti thing)
About the script thing, I think i fixed it. Try it out.
void OnStart() { wakeUp(); }
void wakeUp() { FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // Amount of seconds the fade in takes FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(50, 220, 220); // "Tilts" the players head FadeRadialBlurTo(0.5, 2); SetPlayerCrouching(true); // Simulates being on the ground PlayMusic("18_amb.ogg", true, 1, 4, 1, true); AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", "true", 1); AddTimer("trig1", 4.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last }
void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); SetPlayerLampOil(35); AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true); }
void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("CellDoor", false, true); PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false); RemoveItem(asItem); }
void EventCollide(string &in asParent, string &in asChild, int alState) { SetEntityActive("CellGuardGrunt", true); AddEnemyPatrolNode("CellGuardGrunt", "Node_1", 0.001f, ""); AddEnemyPatrolNode("CellGuardGrunt", "Node_5", 0.001f, ""); AddEnemyPatrolNode("CellGuardGrunt", "Node_13",0.001f, ""); AddEnemyPatrolNode("CellGuardGrunt", "Node_18",0.001f, ""); AddEnemyPatrolNode("CellGuardGrunt", "Node_19",0.001f, ""); AddEnemyPatrolNode("CellGuardGrunt", "Node_20",0.001f, ""); AddEnemyPatrolNode("CellGuardGrunt", "Node_21",0.001f, ""); }
|
|
01-06-2014, 11:26 AM |
|
Radical Batz
Posting Freak
Posts: 953
Threads: 145
Joined: Dec 2013
Reputation:
25
|
RE: Another 1 New error and I just don't know where it is!
[quote='Lazzer' pid='279488' dateline='1389003987']
Quote:I'm really sorry to disturb you but I got another 1 error and I can't find it in my script file, I updated the topic so i can show the new error! can you find it because you're just professional at finding hidden errors!
First of all, i'm not professional. Those are really easy things, you keep doing the same error - you keep putting void in another void. For example it should be done this way:
void OnStart() { AddEntityCollideCallback("Player", "herpti", "derpti", "true",1); }
void derpti(string &in asParent, string &in asChild, int alState) { SetEntityActive("Penis_monster", true); }
never mind I fixed it
(This post was last modified: 01-06-2014, 12:13 PM by Radical Batz.)
|
|
01-06-2014, 11:31 AM |
|
daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
RE: Another 1 New error and I just don't know where it is!
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
Does this work ?
Message says main(16,1), meaning the mistake is in the line of code number 16 ^^. The "no matching signature" part means that you did not write a function correctly if I am not mistaken, it even tells you that the problem is within the AddEntityCollideCallback. But yeah, you don't have to write true/false within "". "" are used for names, basically.
|
|
01-06-2014, 11:58 AM |
|
Radical Batz
Posting Freak
Posts: 953
Threads: 145
Joined: Dec 2013
Reputation:
25
|
RE: Another 1 New error and I just don't know where it is!
(01-06-2014, 11:58 AM)daortir Wrote: AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
Does this work ?
Message says main(16,1), meaning the mistake is in the line of code number 16 ^^. The "no matching signature" part means that you did not write a function correctly if I am not mistaken, it even tells you that the problem is within the AddEntityCollideCallback. But yeah, you don't have to write true/false within "". "" are used for names, basically.
yeah now it worked and I have one more thing! it's not an error it's the sanity damage! it doesn't work! i already posted the hps of it if you scroll to my last reply
(This post was last modified: 01-06-2014, 12:01 PM by Radical Batz.)
|
|
01-06-2014, 12:00 PM |
|
daortir
Senior Member
Posts: 422
Threads: 9
Joined: Sep 2013
Reputation:
18
|
RE: Another 1 New error and I just don't know where it is!
It works. The problem is that 2 sanity damage isn't enough to change the "Crystal Clear" Sanity state, and that you can't see any screen/audio effect because the false in your script means the effects are disabled. The following line of code should have the same effect, but this time will apply the effects. I think I'm not mistaken, tell me if it worked ^^.
GiveSanityDamage(2, true);
|
|
01-06-2014, 12:27 PM |
|
|