HX3 Foren

HX3 Foren (https://hx3.de/)
-   Editing & Scripting (https://hx3.de/editing-scripting-167/)
-   -   Dialogproblem (https://hx3.de/editing-scripting-167/dialogproblem-25155/)

Haloman 17.12.2015 23:44

Dialogproblem
 
Ich bastel immer mal wieder an meiner mission.
Dabei sollen mehrere Dialoge statfinden.
Als Beispiel für mein Problem soll der erste Dialog dienen.

Das Problem bei meinen Dialogen: Die soundfiles werden teilweise doppelt abgespielt.
Woran kann das liegen? Kann es sein, dass das script versucht, bei einer gegebenen Zeit von 4 Sekunden einer Soundlänge von aber nur 2 Sekunden die 4 Sekunden zu füllen indem es zweimal die 2 Sekunden abspielt?

Zu den Details:
Die .oggs habe ich aus Operation Flashpoint. Teilweise sind sie noch geschnitten.
sie liegen im Missionsordner in \sound.

In der description.ext sind die sounds wie folgt definiert.
Zitat:

// NOTE: Your sound/radio files must be in the ...\mission\sound
// folder and your music files in the ...\mission\music folder.
class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {convsa61, convsa62, convsa63, convsa64, convsa65, convsa66, convhq1, convhq2, convhq3, convhq3};

// Definition for each sound
class convsa61
{
name = "sa61"; // Name for mission editor
sound[] = {\sound\sa61.ogg, db + 5, 1.0};
titles[] = {2, "Genosse Leutnant?"};
};
class convsa62
{
name = "sa62"; // Name for mission editor
sound[] = {\sound\sa62.ogg, db + 5, 1.0};
titles[] = {2, "Ja, Genosse Staabsunteroffizier."};...
};

Das Ganze wird dann in folgendem sqs Script abgerufen:

Zitat:

player switchCamera "internal";
~0.1
player attachTo [sa6off, [0, 2, 0] ]
player setDir 180
~0.1

player lookat sa6off;
~1
sa6off playhmove "AmovPercMstpSlowWrflDnon_Salute;
~2;

player say ["convsa61",10]
~1.5
sa6off say ["convsa62",10]
~1.5
player say ["convsa63",10]
~6
sa6off say ["convsa64",10]
~11
player say ["convsa65",10]
~11
sa6off say ["convsa66",10];
~5
detach player
exit;


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:08 Uhr.

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119