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
Unexpected end of file!! ;(
schmupper Offline
Junior Member

Posts: 23
Threads: 1
Joined: Aug 2011
Reputation: 2
#11
RE: Unexpected end of file!! ;(

(10-06-2011, 09:07 AM)Gamemakingdude Wrote: Try changing true to false.
And remove "" from "true"

''Oh. My. God. He's DEAD. Quickly, if he hasnt started to smell, give him the kiss of life!''

Clarence - The monkey hater
10-06-2011, 02:07 PM
Find
Apfel Offline
Junior Member

Posts: 19
Threads: 3
Joined: Jun 2011
Reputation: 1
#12
RE: Unexpected end of file!! ;(

(10-06-2011, 08:36 AM)cooleoj Wrote: main (4,5) : ERR : no matching signatures to 'AddEntityCollideCallback("Player", "monstertrigger1", "MonsterFunction", "true", 1); '
Gahhh seems i messed up some crazy shit
true without ""

AddEntityCollideCallback("Player", "monstertrigger1", "MonsterFunction", true, 1);

10-06-2011, 02:08 PM
Find
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#13
RE: Unexpected end of file!! ;(

IT WORKS I LOVE YOU GUYS! <3

Now if any1 could link a script on how to make a entity (a piano) play a sound when i enter that room Smile
And also basic guide to making the freaking exta_lang file work... Those i have checked doesnt work, i wanna name my hollow needle not just make it say "Picked up"

__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
(This post was last modified: 10-06-2011, 03:14 PM by cooleoj.)
10-06-2011, 03:03 PM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#14
RE: Unexpected end of file!! ;(

For your piano problem, it's really quite simple. Though it depends on what you want. For example
void OnStart()
{
AddEntityCollideCallback("Player", "RoomArea", "PlayPianoSound", false, 1);
}
void PlayPianoSound(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "[sound you want to play + .ogg extension]", "[Name of Piano entity]", 0, false);
}
will make the sound at the piano every time you enter the room.
If you want it to happen just once, change
AddEntityCollideCallback("Player", "RoomArea", "PlayPianoSound", false, 1);
to
AddEntityCollideCallback("Player", "RoomArea", "PlayPianoSound", true, 1);

For your extra_lang file, you will want something along the lines of
<LANGUAGE>
<CATEGORY Name="Description"> Description of your custom story!</CATEGORY>
<CATEGORY Name="Inventory">
        <Entry Name="ItemName_[Item Name]">The name of your item</Entry>
        <Entry Name="ItemDesc_[Item Name]">The description of your item</Entry>
</CATEGORY>
</LANGUAGE>
And be sure that the [Item Name] isn't the in-editor name (I.e, the name under the General Tab) but rather the name in the CustomSubItemTypeName field under the entity tab of the item.

(This post was last modified: 10-06-2011, 04:18 PM by Obliviator27.)
10-06-2011, 04:11 PM
Find
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#15
RE: Unexpected end of file!! ;(

Thanks for all help it really helped me out and made me understand allitle bit more abit scripting! Big Grin

Haha just two more quickes tho! Smile
How do i give sanity when and the blue screen effect when i unlock the door with a hollowneedle and how do i make the map play music.
Thanks!

Oh yeah how do i write positions for example a loading door?

the door part that is...

__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
(This post was last modified: 10-06-2011, 06:51 PM by cooleoj.)
10-06-2011, 06:13 PM
Find
schmupper Offline
Junior Member

Posts: 23
Threads: 1
Joined: Aug 2011
Reputation: 2
#16
RE: Unexpected end of file!! ;(

You should really take a look on this page http://wiki.frictionalgames.com/hpl2/amn..._functions

And if you find it hard to locate right script try Ctrl+F

''Oh. My. God. He's DEAD. Quickly, if he hasnt started to smell, give him the kiss of life!''

Clarence - The monkey hater
10-06-2011, 09:48 PM
Find




Users browsing this thread: 1 Guest(s)