Frictional Games Forum (read-only)
HELP MODDER! - 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: HELP MODDER! (/thread-22409.html)

Pages: 1 2 3 4


RE: HELP MODDER! - The chaser - 08-16-2013

(08-16-2013, 09:37 PM)albertoilmodder Wrote: Hello everyone Modder Amnesia, excuse my English, I'm Italian, I'm creating a mod and I have a problem, I wrote the script that is used to open a door with a crowbar, and I put a sound in the game but you do not hear, now I write the script below:

void OnStart ()
{
AddUseItemCallback ("", "spranga1", "porta6", "apridoor", true);
}

void apridoor (string & in item, string & in door)
{
    SetSwingDoorLocked ("porta6", false, true);
    PlaySoundAtEntity ("", "hit_wood2", "Player", 0, false);
    RemoveItem ("spranga1");
}

I did wrong, can you help me please?
Thanks in advance!

void OnStart ()
{
AddUseItemCallback ("", "spranga1", "porta6", "apridoor", true);
}

void apridoor (string & in item, string & in door)
{
SetSwingDoorLocked ("porta6", false, true);
PlaySoundAtEntity ("", "hit_wood2.snt", "Player", 0, false);
RemoveItem ("spranga1");
}


When you use a sound in a script, you must put .snt right after you write the name.

Don't worry, I understand you: I'm spanish so I can more-or-less understand italian.
Plutomaniac meant that you made a thread outside Development Support, this section. He has merged your thread with this one, and he is telling you to make all your questions in this thread, to organise everything better, like this thread:

http://www.frictionalgames.com/forum/thread-18769.html

Oh, and, please, don't say anything in that thread (it's quite old...)


RE: HELP MODDER! - albertoilmodder - 08-17-2013

¡Muchas gracias! ¿Está seguro? Porque cuando lo hago una llave abre una puerta, el sonido no ponemos SNT y las obras, y luego tengo que escribir en mayúsculas o minúsculas, el punto antes snt va? Perdona que te moleste, pero no estoy muy experimentado.


RE: HELP MODDER! - Slanderous - 08-17-2013

(08-16-2013, 09:37 PM)albertoilmodder Wrote: Hello everyone Modder Amnesia, excuse my English, I'm Italian, I'm creating a mod and I have a problem, I wrote the script that is used to open a door with a crowbar, and I put a sound in the game but you do not hear, now I write the script below:

void OnStart ()
{
AddUseItemCallback ("", "spranga1", "porta6", "apridoor", true);
}

void apridoor (string & in item, string & in door)
{
    SetSwingDoorLocked ("porta6", false, true);
    PlaySoundAtEntity ("", "hit_wood2", "Player", 0, false);
    RemoveItem ("spranga1");
}

I did wrong, can you help me please?
Thanks in advance!

remove hit_wood2, and write hit_wood.snt


RE: HELP MODDER! - The chaser - 08-17-2013

(08-17-2013, 09:35 AM)albertoilmodder Wrote: ¡Muchas gracias! ¿Está seguro? Porque cuando lo hago una llave abre una puerta, el sonido no ponemos SNT y las obras, y luego tengo que escribir en mayúsculas o minúsculas, el punto antes snt va? Perdona que te moleste, pero no estoy muy experimentado.

Cuando se usa un sonido, siempre se pone "sonido.snt", ya que le dices al juego el sonido exacto.

When you use a sound, it's always "sound.snt", as you tell the game the exact sound.


RE: HELP MODDER! - albertoilmodder - 08-17-2013

ok, ahora trato y luego te digo

No funciona, que hago?


RE: HELP MODDER! - albertoilmodder - 08-19-2013

????????????????


RE: HELP MODDER! - The chaser - 08-19-2013

Pon tu script y toda la información posible, por favor.

Put your script and all the possible information, please.


RE: HELP MODDER! - albertoilmodder - 08-20-2013

void OnStart()
{
AddUseItemCallback("", "spranga1", "porta6", "apridoor", true);

}


void apridoor(string &in item, string &in door)
{
SetSwingDoorLocked("porta6", false, true);
PlaySoundAtEntity("", "hit_wood2.snt", "Player", 0, false);
RemoveItem("spranga1");
}


RE: HELP MODDER! - The chaser - 08-21-2013

(08-20-2013, 06:54 PM)albertoilmodder Wrote: void OnStart()
{
AddUseItemCallback("", "spranga1", "porta6", "apridoor", true);

}


void apridoor(string &in item, string &in door)
{
SetSwingDoorLocked("porta6", false, true);
PlaySoundAtEntity("", "hit_wood2.snt", "Player", 0, false);
RemoveItem("spranga1");
}

Okay, the sound "hit_wood2.snt" doesn't exist. Use "hit_wood.snt" instead, as it will randomize between 4 different sounds.

If you really need to play hit_wood2, use this instead PlaySoundAtEntity:

PlayMusic("hit_wood2.ogg", false, 1, 1, 0.5, false);

Vale, el sonido "hit_wood2.snt" no existe. Usa "hit_wood.snt" en su lugar, ya que escogerá un sonido aleatorio hit_wood1 a hit_wood4.

Si realmente necesitas hit_wood2, usa esto en lugar de PlaySoundAtEntity.

PlayMusic("hit_wood2.ogg", false, 1, 1, 0.5, false);

Con lo que quedaría esto:

void OnStart()
{
AddUseItemCallback("", "spranga1", "porta6", "apridoor", true);

}


void apridoor(string &in item, string &in door)
{
SetSwingDoorLocked("porta6", false, true);
PlayMusic("hit_wood2.ogg", false, 1, 1, 0.5, false);
RemoveItem("spranga1");
}


RE: HELP MODDER! - albertoilmodder - 08-21-2013

Muchas gracias, funciona