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 I'm blind to my own errors
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#3
RE: Editing Lights

Seems like you took the wiki a bit to serious in some parts. Look at other people's work to next time if your having trouble before asking... Also, list out the full .hps file also, the debugger isn't always accurate when it tells you what lines it thinks the problem is on.

void ghosts_visible(string &in strTimer) --> Should be "(string &in asTimer)"
{
FadeLightTo(string& asPiano, 1.000f, 0.517f, 0.225f, 0.000f, 0.75f, 0.5f);
FadeLightTo(string& asViolin 0.552f, 0.793f, 1.000f, 0.000f, 0.75f, 1.0f);
FadeLightTo(string& asCelloI, 1.000f, 0.567f, 0.413f, 0.000f, 0.75f, 1.5f);
FadeLightTo(string& asCelloII, 1.000f, 0.655f, 0.749f, 0.000f, 0.75f, 2.0f);
}

What I highlighted in green above, you don't need the "string& as" part, just the stuff after it. You also need quotation marks around the words ("")


Also on the 2nd line (string& asViolin), you forgot a comma.


void ghosts_visible(string &in strTimer)
{
FadeLightTo("Piano", 1.000f, 0.517f, 0.225f, 0.000f, 0.75f, 0.5f);
FadeLightTo("Violin", 0.552f, 0.793f, 1.000f, 0.000f, 0.75f, 1.0f);
FadeLightTo("CelloI", 1.000f, 0.567f, 0.413f, 0.000f, 0.75f, 1.5f);
FadeLightTo("CelloII", 1.000f, 0.655f, 0.749f, 0.000f, 0.75f, 2.0f);
}



In case your actually writing the scripts down by hand. Copy/paste code as templates from your own code or others to save time and cut down on spelling errors.
03-01-2013, 09:20 PM
Find


Messages In This Thread
I'm blind to my own errors - by CarnivorousJelly - 03-01-2013, 08:55 PM
RE: Editing Lights - by NaxEla - 03-01-2013, 09:15 PM
RE: Editing Lights - by Rapture - 03-01-2013, 09:20 PM
RE: Editing Lights - by NaxEla - 03-01-2013, 09:30 PM
RE: Editing Lights - by CarnivorousJelly - 03-01-2013, 11:56 PM



Users browsing this thread: 1 Guest(s)