Armed-Assault.de Twitter
 
 
Themen-Optionen Ansicht
Alt 22.08.2012, 20:00   #1 (permalink)
Newbie
 
Registriert seit: 22.08.2012
Beiträge: 3
Standard Zwei Description.ext kombinieren

Hallo zusammen.
Ich habe folgendes Problem. Ich möchte ein Revive Script das seine eigene "Description.ext" hat mit einer anderen kombinieren.

Hier mal die Description.ext von dem Revive Script

// Mission Header
class Header
{
gameType = Coop;
minPlayers = 1;
maxPlayers = 12;
};


onLoadMission = "REVIVE TEST MISSION";
OnLoadMissionTime = FALSE;

// description.ext settings for revive
///////////////////////////////////////////////////////////////////////////////////////////
respawn = "BASE";
respawndelay = 4;
disabledAI = 0;

#include "revive_sqf\dialogs\config.cpp"
#include "revive_sqf\dialogs\define.hpp"
#include "revive_sqf\dialogs\rev_cam_dialog.hpp"
#include "revive_sqf\dialogs\respawn_button_1.hpp"
#include "revive_sqf\dialogs\respawn_button_2.hpp"
#include "revive_sqf\dialogs\respawn_button_3.hpp"
#include "revive_sqf\dialogs\respawn_button_4.hpp"
#include "revive_sqf\dialogs\respawn_button_1b.hpp"
#include "revive_sqf\dialogs\respawn_button_1c.hpp"
#include "revive_sqf\dialogs\respawn_button_2b.hpp"
#include "revive_sqf\dialogs\respawn_button_3b.hpp"
#include "revive_sqf\dialogs\respawn_button_4b.hpp"
#include "revive_sqf\dialogs\respawn_button_1map.hpp"
#include "revive_sqf\dialogs\respawn_button_2map.hpp"
#include "revive_sqf\dialogs\respawn_button_3map.hpp"
#include "revive_sqf\dialogs\respawn_button_4map.hpp"
#include "revive_sqf\dialogs\OK_map.hpp"
#include "revive_sqf\dialogs\dead_cam_dialog.hpp"
#include "revive_sqf\dialogs\rev_cam_dialog_blank.hpp"

///////////////////////////////////////////////////////////////////////////////////////////
class Params
{
class DayTime
{
//paramsArray[0]
title = "Time Of Day";
values[] = {-6, 0, 8, 13};
texts[] = {"Morning", "Clear day", "Sundown", "Night"};
default = 0;
};
class Revive
{
// paramsArray[1]
title = "Number of Revives:";
values[] = {2000,1000,20,10,7,5};
texts[] = {"No Revive","Infinite - Cadet","20 - Easy ","10 - Normal","7 - Hard","5 - Extreme"};
default = 10;
};

};



Und hier das von dem Sound

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {viet1,viet2,viet3,AK47};

// Definition for each sound


class viet1
{
name = "viet1"; // Name for mission editor
sound[] = {"sound\viet1.ogg", db+10, 1.0};
titles[] = {};
};

class viet2
{
name = "viet2"; // Name for mission editor
sound[] = {"sound\viet2.ogg", db+10, 1.0};
titles[] = {};
};

class viet3
{
name = "viet3"; // Name for mission editor
sound[] = {"sound\viet3.ogg", db+10, 1.0};
titles[] = {};
};

class AK47
{
name = "AK47"; // Name for mission editor
sound[] = {"sound\AK47.ogg", db-10, 1.0};
titles[] = {};
};
};


Einzeln funktionieren beide wunderbar, aber wenn ich die Sound Description unter die Revive Description setze. bekomme ich die Fehlermeldung "Member allready defined". Ich habe auch schon andere Reihenfolgen probiert. Aber es bleibt das selbe problem.

Wäre nett wenn ein allwissender Scripter da mal drüberschauen könnte und mir vielleicht einen hinweis oder gar die lösung meines Problems geben würde.

Danke schon mal

Zaphod
zaphod2342 ist offline  
Alt 22.08.2012, 20:15   #2 (permalink)
10 Jahre hx3
5000 Beiträge10.000 Beiträge15.000 Beiträge
 
Benutzerbild von burns
 
Registriert seit: 13.04.2003
Ort: Monerica
Alter: 41
Beiträge: 32.969
Standard

Revive hat seine eigenen Sounds schon in "revive_sqf\dialogs\config.cpp" definiert.
Dort musst du auch deine Sounds eintragen, dann gibts keine Fehlermeldung von wegen class already defined
__________________

burns ist offline  
Alt 22.08.2012, 20:41   #3 (permalink)
Newbie
 
Registriert seit: 22.08.2012
Beiträge: 3
Standard

Burns du bist der Held des Tages. Es funktioniert!!!!!!
Vielen vielen vielen Dank.
Ich hätte da noch ewig gesucht.

DANKE DANKE DANKE DANKE DANKE DANKE DANKE

Zaphod
zaphod2342 ist offline  
Alt 22.08.2012, 20:49   #4 (permalink)
10 Jahre hx3
5000 Beiträge10.000 Beiträge15.000 Beiträge
 
Benutzerbild von burns
 
Registriert seit: 13.04.2003
Ort: Monerica
Alter: 41
Beiträge: 32.969
Standard

Immer gerne, hab da selbst mal drüber gekotzt
__________________

burns ist offline  
Alt 09.03.2014, 10:40   #5 (permalink)
Newbie
 
Registriert seit: 16.12.2008
Ort: Herdecke/NRW
Beiträge: 47
Standard

Guten Morgen,

nach längerer Suche habe ich diesen Thread hier gefunden.

Da ich ein ähnliches Problem habe, schreibe ich mal hier herein. Jedoch dreht es sich mittlerweile um Arma 3.

Könnt ihr mir sagen wie man mehrere Description.ext in eine zusammenfasst?

Ich habe es schon versucht, jedoch weiß ich nicht wie die Reihenfolge aussehen muss, damit das auch läuft. Ich jedenfalls bekomme immer Fehlermeldungen.

Hier mal mein Vorhaben:

Für eine Mission möchte ich folgende Scripte nutzen:

Virtual Ammobox,

IEDS

Hier die Descriptions:

IEDS:
Code:
respawn = "BASE";respawndelay = "3";

author = [EPD] Brian;
onLoadName = IED Sample Mission;
onLoadMission = JUST A SIMPLE IED SAMPLE MISSION;

class Header
{
gameType = Coop; // Game type, see 'class' columns in the table below
minPlayers = 1; //min # of players the mission supports
maxPlayers = 8; //max # of players the mission supports
};

enableDebugConsole = 2;

class CfgFunctions {
class Dictionary {
class Dictionary {
file = "EPD\SanjosFunctions\dictionary";
class new { description = "Returns a new empty dictionary. \nExample: _myDictionary = call Dictionary_fnc_new;"; };
class get { description = "Returns the value of the key or objNull if the key doesn't exist. \nExample: [_myDictionary, _myKey] call Dictionary_fnc_get;"; };
class set { description = "Sets the key to a new value. Overwrites the previous value if the key already existed. \nExample: [_myDictionary, _myNewKey, _myNewValue] call Dictionary_fnc_set;"; };
class remove { description = "Removes a key from the dictionary. \nExample: _oldValue = [_myDictionary, _keyToRemove] call Dictionary_fnc_remove;"; };
class isEmpty { description = "Returns true if the dictionary is empty. \nExample: _isDictionaryEmpty = _myDictionary call Dictionary_fnc_isEmpty;"; };
class containsKey { description = "Returns true if the dictionary contains the key. \nExample: _dictionaryContainsKey = [_myDictionary, _myKey] call Dictionary_fnc_containsKey;"; };
class containsValue { description = "Returns true if the dictionary contains the value. \nExample: _dictionaryContainsValue = [_myDictionary, _myValue] call Dictionary_fnc_containsValue;"; };
class size { description = "Returns the number of elements in the dictionary. \nExample: _count = _myDictionary call Dictionary_fnc_size;"; };
class keys { description = "Returns the keys as an array. \nExample: _keys = _myDictionary call Dictionary_fnc_keys;"; };
class values { description = "Returns the values as an array. \nExample: _values = _myDictionary call Dictionary_fnc_values;"; };
};
}; };
VAS:

Code:
OnLoadMission = "Virtual Ammobox System";
respawn = BASE;
respawndelay = 10;
disabledAI = true;
enableDebugConsole = 2;

#include "VAS\menu.hpp"

class CfgFunctions
{
	#include "VAS\cfgfunctions.hpp"
};
Ich habe schon in die Wiki geschaut, werde jedoch nicht schlau raus.
Auf was muss ich achten? Wo könnte ich etwas darüber finden?


Gruß und schönen Sonntag

Geändert von M_Headman1983 (09.03.2014 um 10:50 Uhr).
M_Headman1983 ist offline  
Alt 09.03.2014, 11:58   #6 (permalink)
User gesperrt
5000 Beiträge
 
Registriert seit: 20.10.2009
Ort: Jetzt auch im BIF
Alter: 39
Beiträge: 9.163
Standard

Zitat von M_Headman1983 Beitrag anzeigen

... Jedoch dreht es sich mittlerweile um Arma 3.

...

Dann poste es doch bitte auch im Arma 3 Forum.
AHTNTEPPOP ist offline  
 

Stichworte
description, kombinieren, revive, sound


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
eigene Kampagne description.ext Sgt. Macro Technische Fragen & Probleme 3 04.05.2012 13:42
Probleme mit Ubuntu ArmA Linux Dedicated Server und ACE Clawhammer Multiplayer 29 26.02.2011 18:49
Probleme mit der description.ext ca$hflow Editing & Scripting 10 04.10.2010 08:17
Probleme bei Norrin Revive Script 0.49b Jekko Editing & Scripting 24 21.09.2010 19:39
description.ext (sound) problem miromanu Editing & Scripting 7 07.07.2010 15:40


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 117 118 119