Frictional Games Forum (read-only)
My problems - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: My problems (/thread-18769.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


RE: My problems - naseem142 - 10-19-2012

(10-19-2012, 06:16 PM)Nemet Robert Wrote: You have "Removeitem".

It must be "RemoveItem".

Without quotes. On line 158.
It actually worked! no more errors! Big Grin
Thank you so much!


RE: My problems - Robby - 10-19-2012

Not a problem on that one. Remember, organized writing. Check them once in a while.


RE: My problems - naseem142 - 10-19-2012

(10-19-2012, 06:34 PM)Nemet Robert Wrote: Not a problem on that one. Remember, organized writing. Check them once in a while.
One last question Sleepy , If i want to play sounds out of the original amnesia file do i need to put them in my customs story "Sounds" folder? or it will load them from the game files?

EDIT:


Is there something wrong with this?


void OnLeave()
{
void StartCredits(91229.ogg , true, Ending, MainCredits, 2);
}


( I'm going to leave right now , i got a huge exam to do tomorrow and i don't have much time left to study Rolleyes)
So .. good night Big Grin


RE: My problems - Robby - 10-19-2012

It isn't necessary. It's from the original Amnesia, which means everybody has it.
And yes, the music name (including the .ogg extension) is not "declared". Like this:

void StartCredits("91229.ogg", true, Ending, MainCredits, 2);

EDIT:

If that music file 91229.ogg is something new, then in the CS folder it goes!


RE: My problems - The chaser - 10-19-2012

(10-19-2012, 06:15 PM)naseem142 Wrote: I got a new error , it is in line 158. Does it mean the error is somewhere in lines 158 and below?

[Image: MIBR4.png]
I'm glad you have it working. I just realised the asdf.png at the right, it made my laugh Big Grin


RE: My problems - Robby - 10-20-2012

Lol, didn't see that image.


RE: My problems - The chaser - 10-20-2012

(10-19-2012, 08:13 PM)The chaser Wrote:
(10-19-2012, 06:15 PM)naseem142 Wrote: I got a new error , it is in line 158. Does it mean the error is somewhere in lines 158 and below?

[Image: MIBR4.png]
I'm glad you have it working. I just realised the asdf.png at the right, it made my laugh Big Grin
It seems like the asdf.png wants to kill the Fatal error XD


RE: My problems - naseem142 - 10-21-2012

I need help with the playing a sound func. The function: PlaySoundAtEntity( Scream1 , Scream1.ogg, Deadbody_1 , 2.0f, false);
is not working , i get an error " Scream1 is not declared and Deadbody_1 is not declared.


RE: My problems - Adny - 10-21-2012

Strings must be declared, and declared means putting something in quotation marks "like this". You should declare all arguments except boolean, integer, and float values. With that said, your function should look something like this:

PlaySoundAtEntity("Scream1", "Scream1.ogg", "Deadbody_1", 2.0f, false);



Hope that helped!


RE: My problems - naseem142 - 10-21-2012

(10-21-2012, 08:57 AM)andyrockin123 Wrote: Strings must be declared, and declared means putting something in quotation marks "like this". You should declare all arguments except boolean, integer, and float values. With that said, your function should look something like this:

PlaySoundAtEntity("Scream1", "Scream1.ogg", "Deadbody_1", 2.0f, false);



Hope that helped!
Lol. i actually had a feeling that " " were missing but i wasn't sure where to put them so i tired doing it like this:
PlaySoundAtEntity("Scream1 , Scream1.ogg , Deadbody_1 , 2.0f, false");


Thanks for helping Big Grin

EDIT: There is no error , but the sound isn't playing :/
I took the sound out of amnesia files so it can't be corrupted.

EDIT: Oh wait nvm , I forgot to rename the entity from Male_corpse to Deadbody_1

Off topic edit: 69 posts Cool