Hallo Leute ,
Ich habe ein wenig experimentell mich mal wieder ans Modding herangewagt und beisse mir gerade an einem Fehler die Zunge aus.
Mein Objekt (eine alte Öllampe) möchte nicht in Arma 3 erscheinen. Es ist im Editor gelistet, aber sobald ich dieses Objekt platzieren möchte wird mir eine Fehlermeldung angezeigt. Im Bulldozer klappt es, da wird es angezeigt.
Da ich keine Ahnung vom skripten habe, habe ich mir aus den Sample Files die configs zusammengebastelt. Und dort ist sicherlich auch der Fehler... Ich weis nur nicht wo .
C: config.cpp
- /* this is a sample of a lamp */
- #include "cfgPatches.hpp"
- #include "basicDefines_A3.hpp"
- class CfgVehicles
- {
- class Lamps_base_F;
- class old_lantern: Lamps_base_F
- {
- scope = 2; /// makes the lamp invisible in editor
- displayName = "Old Lantern"; /// displayed in Editor
- model = "\old_lamp\objects\old_lamp.p3d"; /// simple path to model
- mass = 1;
- editorPreview = "";
- picture = "";
- icon = "iconObject_circle";
- editorCategory = "EdCat_Things";
- editorSubcategory = "EdSubcat_Lamps";
- vehicleClass = "Tents";
- armor = 5000; /// just some protection against missiles, collisions and explosions
- class Hitpoints {};
- class AnimationSources {};
- class MarkerLights
- {
- class Light_1
- {
- color[] = {1.0, 0.0, 0.0}; /// approximate color of standard lights
- ambient[] = {0.01, 0.0, 0.0}; /// nearly a white one
- intensity = 800; /// strength of the light
- name = "Light_1_pos"; /// name of the light
- blinking = true; /// lets make it blinking to show how patterns work
- blinkingPattern[] = {0.25, 1.0}; // 0.25 s flash, 1.25 s period
- blinkingStartsOn = true; /// pattern starts with length of the first flash
- blinkingPatternGuarantee = true; /// use this to guarantee all blinks of the patter to be done
- /// doesn't guarantee the length of pattern if true
- /// (e.g. because of blinks shorter than a frame would take a frame to be seen)
- useFlare = true; /// does the light use flare?
- flareSize = 1.5; /// how big is the flare
- flareMaxDistance = 1000; /// how far can you see the flare
- activeLight = true; /// engine counts this one as an active light into limit of lights
- dayLight = false; /// it doesn't shine during the day
- drawLight = false; /// doesn't create a specific face for flare
- size = 1; /// size of the light point seen from distance
- innerAngle = 100; /// angle of full light
- outerAngle = 165; /// angle of some light
- coneFadeCoef = 4; /// attenuation of light between the above angles
- position = "Light_1_pos"; /// memory point for start of the light and flare
- direction = ""; /// memory point for the light direction
- hitpoint = "Light_1_hitpoint"; /// point(s) in hitpoint lod for the light (hitPoints are created by engine)
- selection = ""; /// selection for artificial glow around the bulb, not much used any more
- class Attenuation
- {
- start = 0;
- constant = 2;
- linear = 10;
- quadratic = 20;
- hardLimitStart = 5; /// it is good to have some limit otherwise the light would shine to infinite distance
- hardLimitEnd = 6; /// this allows adding more lights into scene
- };
- };
- };
- };
- };
Im Ordner außerdem vorhanden: objects, textures, icons: basicDefines_A3.hpp,cfgPatches.hpp, config.cpp und model.cfg old_lamp.7z
Ich würde mich über jede Hilfe freuen.
MfG JeckZeRippa