PDA

View Full Version : Help me with script dialogs



ArtSerjGaming
January 9th, 2017, 11:33
Hi.

Advise me please.
as i think that i have problem with soundaliases. I see many forums and other sites about this topic but it's no helped me, and I do not understand.

This is example how i want to do: example picture (http://www.mediafire.com/view/4q484vsg8sdeht4/cod5visual.jpg)

Such moment. :)
I want to make a dialogue for my allies actors. the like code examples working in all standart maps named_anim.gsc
into CoDWaW (SP):

---------------------------------------------

load.scr_anim[nameactor_from_radiant_named][animname] ="%ch_named_actor_animation_(form_xanim_folder)";
//chatting
load.scr_sound[nameactor_from_radiant_named][animname] = "name_sound_from_soundaliases";

--------------------------------------------

and i write so code for dialogue (animation + sound):

//////////// in main gsc i insort:

#include maps\_anim;
#include maps\_utility;
#include common_scripts\utility;

main()
{

flag_init( "player_spawns_soldier" );
flag_init( "sgt_reaches_trigger" );
flag_init( "soldier_reaches_trigger" );

thread heroes();

//wait for soldier to reach his trigger after spawn
flag_wait( "soldier_reaches_trigger" );
}




heroes() {

flag_wait( "player_spawns_solider" );

//we have to wait a small instance so game recognizes ai existance
wait 0.15;

level.chernov = getent( "pvt. Chernov", "targetname" );
level.chernov.animname = "intro_cher";

flag_wait( "soldier_reaches_trigger" );

//wait a bit for seargant to be alive in game
wait 0.15;

level.Reznov = getent( "sgt. Reznov", "targetname" );
level.Reznov.animname = "intro_rez";

}



//////////// and this code insort to my map _anim.gsc :


#include maps\_anim;
#include maps\_utility;
#include common_scripts\utility;

#using_animtree("generic_human");
main() {

setup_level_anims();
audio_loader();
}

////////////////////////////////////////////// this code /////////////////////////////////////////////////////////////////////
setup_level_anims()
{

//lets wait for sargeant to reach his trigger
flag_wait( "sgt_reaches_trigger" );

//wait for a bit so it looks like they regroup
wait 0.75;

level.scr_anim["Reznov"]["intro_rez"] = %ch_seelow1_reznov_runandcaugh;
addNotetrack_dialogue( "reznov", "Ber3_INT_000A_REZN", "intro_rez_01", "Ber3_INT_000A_REZN" );
level.scr_anim["chernov"]["intro_cher"] = %ch_seelow1_intro_chernov;
addNotetrack_dialogue( "chernov", "Ber3_IGD_028A_CHER_A", "intro_chern_01", "Ber3_IGD_028A_CHER_A" );

wait 0.15; //pause2

}

audio_loader()
{

level.scr_sound["Reznov"]["intro_rez_01"] = "See1_INT_011A_REZN01";
level.scr_sound["Reznov"]["intro_rez_02"] = "See1_INT_013A_REZN02";

wait 0.2; //pause

level.scr_sound["chernov"]["intro_chern_01"] = "Ber3_IGD_028A_CHER_A";

wait 0.2; //pause

level.scr_sound["Reznov"]["intro_rez_03"] = "See1_IGD_148A_REZN03";
level.scr_sound["Reznov"]["intro_rez_04"] = "See1_IGD_149A_REZN04";
level.scr_sound["Reznov"]["intro_rez_05"] = "See1_IGD_300A_REZN05";
level.scr_sound["Reznov"]["intro_rez_06"] = "See1_IGD_058A_REZN06";
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

----------------------------------------------------------------------------------------------------------------

but still this code don't working. :( :(
CoDWaW doesn't show any errors when loading this map .

the map starting complite and i walking in the map and Chernov and Reznov spawning - ok,
but they don't talking both ((

Help, what could be the problem, at least understanding of the causes.
code like as a "self playsound (....);" - no interest because then actor speech without animation lips

ArtSerjGaming
January 9th, 2017, 12:10
and more. here i write this is uncorrected. line to: "%ch_named_actor_animation_(form_xanim_folder)" but real in my code to: %ch_named_actor_animation_(form_xanim_folder);

MelVin
January 9th, 2017, 21:37
first thing I noticed...

heroes() {

flag_wait( "player_spawns_solider" );

should be ...

heroes() {

flag_wait( "player_spawns_soldier" );

check for other spelling mistakes, if there are no others. compile or build the map again and test. Hope this helps

ArtSerjGaming
January 10th, 2017, 11:05
But if use the example script without a flags?

MelVin
January 10th, 2017, 20:45
just fix the spelling error/s and try again. if it doesn't work post back

ArtSerjGaming
January 11th, 2017, 13:15
hi! No, it isn't working :((
im check your corrected but its no working :((
i many time find method how its make - "dialogs with face animation and speech audio"
but it no working ((
I very very much want to make it. i dont know... how you think.. if write to treyarch company for this queation... just i dont understand how may solving for "dialogs with face animation and speech audio"
just really i very want do it)
just i think a map without an "audio face dialogs" is low interesting but with "audio face dialogs" -is interesting maps as realism, natural, a moments that make up the history of the game, no just a stupid silent shootout. Since a map are similar to the Internet as a drop in the sea.

Can you help me for find a solving?
Site: modsrepository.com didn't help and looking at scripts in standart sp-maps is too.
just the scripts in standart sp-maps is unfortunately very confusing and hard for understandable and I'm no a programmer)) just designer
but very much make a nice and interesting sp-map.

i here: https://www.youtube.com/user/artsergo

MelVin
January 12th, 2017, 20:11
A lot can go wrong gwith the setup, it could be something simple inside the the map, or the zone file not having the calls listed, it could be the the sounds are not in a soundalias file. It has been some time since I did SP for COD5, and I have never worked with "dialogs with face animation and speech audio" if you have A tutorial that you were using please link it. If your not getting any script errors, I would suggest double checking that all precaching is correct and that the zone file is up to date.

ArtSerjGaming
January 13th, 2017, 15:27
https://www.mediafire.com/folder/a722bcv0wbcar/animation_and_speech_actors

ArtSerjGaming
January 13th, 2017, 15:57
And other moment, maybe tomorrow I will add one file a little working , but not 100%.
its need check some things.

ArtSerjGaming
January 14th, 2017, 17:18
MelVin hi!
right now i found the solve for this topic. it with help from other peoples in internet ))

right now its working such:

https://www.youtube.com/watch?v=fpHq920jeDM

and source archive: http://www.mediafire.com/file/65i4lor7knlell3/sp_dialog7.rar

MelVin
January 15th, 2017, 06:07
congrats! glad to see your sorted:) And thanks for sharing your source. cheers

ArtSerjGaming
January 16th, 2017, 13:15
Ok ) :)

there is a full pack with folders

but MelVin, right now i found no corrected work. There example playing no all sounds for voice actors.

There, in one file need rewrite code ( in ..\mods\sp_dialog7\maps\sp_dialog7_anim.gsc )
need replace the file: http://www.mediafire.com/file/carr77njayuyhd3/sp_dialog7_anim.gsc

and then actors can talk all sound which you insert in _anim.gsc

I think this is all corrected for anyone want make this example in his map

;)