Armed-Assault.de Twitter
Antwort
 
Themen-Optionen Ansicht
Alt 11.04.2012, 23:36   #1 (permalink)
50 Beiträge100 Beiträge
 
Registriert seit: 05.11.2011
Beiträge: 235
Icon5 Mando music

Guten Abend Leute,

ich habe mal wieder eine Frage, hoffe Ihr findet mit mir zusammen eine Lösung, denn ich habe das Internet schon durchforstet und nichts passendes gefunden.

"Gibt es eine Möglichkeit bei Mando Music eigene Musik einzubinden?"

Ich habe Musik in der Description.ext eingebunden, doch es wird nichts
angezeigt. Außerdem wird bei mir die "init.sqs" benötigt, anstatt nur die Zeilen in die "Init.sqf" einzufügen, welche ja reibungslos funktioniert...

Hier sind meine Description.ext, init.sqs, mando_checkradio (car_037064_1 ist mein Auto welches "Tune Music" ausgibt), mando_playtrack und mando_showplayer, außerdem noch 2 Bilder. Und ich binde alles noch einmal als ZIP-Datei ein, falls dies hier zu unübersichtlich geraten sollte:

Description.ext:

class CfgMusic {
tracks[]= {beginn, briefing, haeuserkampf_1, boden_1, boden_2, flug_1, flug_2, flug_3, wasser_1, abspann_win, abspann_lose, music_1, music_2};
class beginn {
name = "beginn";
sound[] = {\music\beginn.ogg, db+0, 1.0};
};
class briefing {
name = "briefing";
sound[] = {\music\briefing.ogg, db+0, 1.0};
};
class haeuserkampf_1 {
name = "haeuserkampf_1";
sound[] = {\music\haeuserkampf_1.ogg, db+0, 1.0};
};
class boden_1 {
name = "boden_1";
sound[] = {\music\boden_1.ogg, db+0, 1.0};
};
class boden_2 {
name = "boden_2";
sound[] = {\music\boden_2.ogg, db+0, 1.0};
};
class flug_1 {
name = "flug_1";
sound[] = {\music\flug_1.ogg, db+0, 1.0};
};
class flug_2 {
name = "flug_2";
sound[] = {\music\flug_2.ogg, db+0, 1.0};
};
class flug_3 {
name = "flug_3";
sound[] = {\music\flug_3.ogg, db+0, 1.0};
};
class wasser_1 {
name = "wasser_1";
sound[] = {\music\wasser_1.ogg, db+0, 1.0};
};
class abspann_win {
name = "abspann_win";
sound[] = {\music\abspann_win.ogg, db+0, 1.0};
};
class abspann_lose {
name = "abspann_lose";
sound[] = {\music\abspann_lose.ogg, db+0, 1.0};
};
class music_1 {
name = "music_1";
sound[] = {\music\music_1.ogg, db+0, 1.0};
};
class music_2 {
name = "music_2";
sound[] = {\music\music_2.ogg, db+0, 1.0};
};
};

#define MANDCT_STATIC 0
#define MANDCT_BUTTON 1
#define MANDCT_EDIT 2
#define MANDCT_SLIDER 3
#define MANDCT_COMBO 4
#define MANDCT_LISTBOX 5
#define MANDCT_MAP 101
#define MANDST_LEFT 0
#define MANDST_CENTER 2
#define MANDST_MULTI 16
#define MANDST_PICTURE 48
#define MANDST_FRAME 64
#define MANDST_BACKGROUND 80
#define MANDST_HUD_BACKGROUND 128
#define MANDST_WITH_RECT 160
#define MANDST_SHADOW 256
#define FontMandM "Bitstream"
#define FontMandHTML "Bitstream"

class RscMandText
{
type = MANDCT_STATIC;
idc = -1;
style = MANDST_LEFT;
h = 0.04;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = FontMandM;
sizeEx = 0.02;
};

class RscMandPicture
{
type = MANDCT_STATIC;
idc = -1;
style = MANDST_PICTURE;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = FontMandM;
sizeEx = 0.04;
};

class RscMandButton
{
type = MANDCT_BUTTON;
idc = -1;
style = MANDST_CENTER;
access = ReadAndWrite;
colorText[] = {0, 0, 0, 1};
font = FontMandHTML;
sizeEx = 0.025;
soundPush[] = {, 0.2, 1};
soundClick[] = {"ui\ui_ok", 0.2, 1};
soundEscape[] = {"ui\ui_cc", 0.2, 1};
default = false;
colorDisabled[] = {0.3, 0.3, 0.3, 1};
colorBackground[] = {0.6, 0.6, 0.6, 0.5};
colorBackgroundActive[] = {0.8,0.8,0.8,0.5};
colorBackgroundDisabled[] = {0.6, 0.6, 0.6, 1};
colorFocused[] = {0,0,0,1};
colorShadow[] = {0,0,0,0.1};
colorBorder[] = {0,0,0,1};
offsetX = 0.004;
offsetY = 0.004;
offsetPressedX = 0.002;
offsetPressedY = 0.002;
soundEnter[] = {"ui\ui_ok", 0.2, 1};
borderSize = 0.0;
};
class RscMandBackground
{
type = MANDCT_STATIC;
idc = -1;
style = MANDST_HUD_BACKGROUND;
colorBackground[] = {0, 0, 0, 0.2};
colorText[] = {1, 1, 1, 1};
font = FontMandHTML;
sizeEx = 0.04;
};

class RscMandFrame
{
type = MANDCT_STATIC;
idc = -1;
style = MANDST_FRAME;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = FontMandM;
sizeEx = 0.04;
};
class RscMandEdit
{
type = MANDCT_EDIT;
idc = -1;
style = MANDST_LEFT;
font = FontMandHTML;
sizeEx = 0.02;
colorText[] = {0, 0, 0, 1};
colorSelection[] = {0.5, 0.5, 0.5, 1};
autocomplete = false;
text = ;
};

class RscMandListBox
{
type = MANDCT_LISTBOX;
style = MANDST_LEFT;
idc = -1;
colorSelect[] = {1.0, 1.0, 1.0, 1};
colorSelectBackground[] = {0.2, 0.2, 0.2, 0.1};
colorText[] = {0.0, 0.0, 1.0, 1};
colorBackground[] = {0.0, 0.0, 0.0, 1};
font = FontMandHTML;
sizeEx = 0.025;
rowHeight = 0.03;
soundSelect[] = {"", 0.1, 1};

maxHistoryDelay = 1;
autoScrollSpeed = -1;
autoScrollDelay = 5;
autoScrollRewind = 0;
class ScrollBar
{
color[] = {1,1,1,0.6};
colorActive[] = {1,1,1,1};
colorDisabled[] = {1,1,1,0.3};
thumb = "\ca\ui\data\ui_scrollbar_thumb_ca.paa";
arrowFull = "\ca\ui\data\ui_arrow_top_active_ca.paa";
arrowEmpty = "\ca\ui\data\ui_arrow_top_ca.paa";
border = "\ca\ui\data\ui_border_scroll_ca.paa";
};
};
class RscMandCombo
{
access = ReadAndWrite;
type = MANDCT_COMBO;
style = 0;
h = 0.05;
wholeHeight = 0.25;
colorSelect[] = {0.0, 0.0, 0.0, 1};
colorText[] = {1.0, 1.0, 1.0, 1};
colorBackground[] = {0.0, 0.0, 0.0, 1};
colorScrollbar[] = {0.2, 0.2, 0.2, 0.1};
font = FontMandHTML;
sizeEx = 0.025;
soundSelect[] = {"", 0.1, 1};
soundExpand[] = {"", 0.1, 1};
soundCollapse[] = {"", 0.1, 1};
};

class RscMandSlider
{
type = MANDCT_SLIDER;
style = 1024;
color[] = {0, 0, 0, 1};
angle = 0;
idc = -1;
sizeEx = 0.025;
selection="display";
w = 0.2;
h = 0.025;
};
// Missile control center dialog
class DlgMandoMusic
{
idd = 100;
movingEnable = true;
controlsBackground[] = {MUSIC_BACKGROUND,MUSIC_FRAME};
class MUSIC_BACKGROUND : RscMandBackground
{
colorBackground[] = {0, 0.1, 0.3, 0.6};
text = ;
style = MANDST_HUD_BACKGROUND;
sizeEx = 0.015;
x = 0.0+0.05;
y = 0.0+0.05-0.01;
w = 0.32-0.05+0.1;
h = 0.585 + 0.02 + 0.011+0.02;
};
class MUSIC_FRAME : RscMandText
{
idc = 101;
style = MANDST_FRAME;
colorText[] = {0, 0.6, 1, 1};
text = "Mando Music List";
font = "Bitstream";
sizeEx = 0.03;
x = 0.01+0.05;
y = 0.011+0.05-0.01;
w = 0.30-0.05+0.1;
h = 0.585+0.02;
};
objects[] = { };
controls[] = {MUSICLIST,MUSIC};

class MUSICLIST : RscMandListBox
{
idc = 102;
style = MANDST_LEFT;
x = 0.021+0.05;
y = 0.033+0.05;
w = 0.28-0.05+0.1;
h = 0.585 - 0.033 - 0.038;
colorText[] = {0.0, 0.8, 1, 1};
font = "Bitstream";
sizeEx = 0.03;
onLBSelChanged = "_this execVM""mando_playtrack.sqf""";
};

class MUSIC : RscMandEdit
{
idc = 103;
style = MANDST_LEFT + MANDST_WITH_RECT + MANDST_SHADOW;
x = 0.021+0.05;
y = 0.585 - 0.033+0.05;
w = 0.28-0.05+0.1;
h = 0.037;
colorText[] = {0, 0.8, 1, 1};
font = "Bitstream";
sizeEx = 0.03;
text = "";
};
};

init.sqs:

[]execVM "mando_checkradio.sqf"
exit

mando_checkradio:

// mando_checkradio.sqf
// By Mandoble May 2007
// add an action to tune up musics and controls the volume based on distance and in/out vehicle
private ["_radio", "_op", "_volin", "_volout"];
_radio = false;
_op = 0;
_volin = musicVolume;
_volout = _volin*3/5;
while {true} do
{
if (!_radio && (vehicle player == car_037064_1)) then
{
_op = car_037064_1 addAction ["Tune music", "mando_showplayer.sqf"];
_radio = true;
};
if (_radio && (vehicle player != car_037064_1)) then
{
car_037064_1 removeAction _op;
_radio = false;
};
if (vehicle player distance car_037064_1 < 10) then
{
if (vehicle player == car_037064_1) then
{
0.1 fadeMusic _volin;
}
else
{
0.1 fadeMusic _volout;
};
}
else
{
0.1 fadeMusic (10/(vehicle player distance car_037064_1)*_volout);
};
Sleep 0.1;
};

mando_playtrack:

// mando_playtrack.sqf
// By Mandoble May 2007
// Handler of onLBSelChanged event configured in description.ext for the music list
disableSerialization;
_control = _this select 0;
_index = _this select 1;
_displaym = findDisplay 100;
(_displaym displayCtrl 103) ctrlSetText (_control lbData _index);
0 fadeMusic 1;
playMusic (_control lbData _index);

mando_showplayer:

// mando_showplayer.sqf
// By Mandoble May 2007
// Executed by action menu added to player
private["_ok", "_displaym", "_list", "_cfg", "_count", "_i"];
disableSerialization;
_ok = createDialog "DlgMandoMusic";
Sleep 0.1;
_displaym = findDisplay 100;
_list = _displaym displayCtrl 102;
_cfg =(configFile >> "CfgMusic");
//_count = count _cfg;
_count = 34;
for [{_i = 1},{_i < _count},{_i = _i + 1}] do
{
_cfgi = _cfg select _i;
_index = _list lbAdd (getText (_cfgi >> "Name"));
_list lbSetData [_index, format["%1", configName _cfgi]];
};
(_displaym displayCtrl 103) ctrlSetTooltip "Copy/Paste this to use with playMusic command";

Bild 1:

http://sol-diers.webs.com/Arma%202%2...3-21-47-39.jpg

Bild 2:

http://sol-diers.webs.com/Arma%202%2...3-21-50-77.jpg

Ich bleibe in der Zwischenzeit natürlich auch nicht untätig und schau, dass ich was brauchbares rausfinde.

Gruß und Vielen Dank

Euer Sol.LrMartyn
Angehängte Dateien
Dateityp: zip Sol.LrMartyn Problem with the Mando Music.zip (3,3 KB, 33x aufgerufen)
Sol.LrMartyn ist offline   Mit Zitat antworten
Antwort

Stichworte
mando, mando music, mando musik, musik


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Mando System Heli Chaos Engine Mods & Addons 3 27.06.2011 12:50
Mando Missiles Tutorial Doorgunner Editing & Scripting 1 04.01.2011 14:09
Mando Missile script in Xenos Domi nightbringer Editing & Scripting 2 29.11.2010 21:32


Kontakt - HX3.de - Archiv - Nach oben

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