Jump to content

Barba-negra

Member
  • Content Count

    445
  • Joined

  • Last visited

  • Medals

Posts posted by Barba-negra


  1. 41 minutes ago, Mr H. said:

    can you post your config ?

    yes, is here 

     

    class CfgPatches
    {
        class Tuto
        {
            units[]=
            {
                ""
            };
            weapons[]={};
            requiredAddons[]={};
            requiredVersion=1;
        };
    };
    class CfgVehicleClasses
    {
        class Tuto
        {
            displayName="TUTO";
        };
    };
    class CfgVehicles
    {
        class Ruins_f;
        class House;
        class Building;
        class House_F;

     

     

            class Caja_Panal_1: House_F
        {
            model="\TUTO\panel_1.p3d";
            scope=2;
            displayName="panel_1";
            vehicleclass="Tuto";
            destrType="DestructNo";

        };

     

    };


  2. 4 hours ago, Mr H. said:

    This is the wrong forum for this question you should move it to https://forums.bohemia.net/forums/forum/162-arma-3-addons-configs-scripting/

    As per your question, might be several explanations. What exactly is your object ? What class does it inherit from ? Does it have several resolution LODs? Is the texture applied to all of them? You should post your config and a rpt to get better answers.

     

    my object is of inherited House_F class, the texture was made mainly in blender with the UV editing to obtain all the sides, later I transferred it to photosho to work the obtained sides, and finally with the texture created the mount in object builder in format. paa, I don't know why after a few seconds the texture disappears in the EDEN editor


  3. Hi guys, how are you? I come to ask for help, I am currently creating an object with the buider object, and I am using blender, once I create the object and create the texture with the UV edition, and the object generator I send, I do all the corresponding steps to adapt it the texture created, but it happens that once in the EDEN editor, I place the object on the stage and it appears with the texture well placed, but after a few seconds, the texture disappears and the object is transparent, someone knows why this happens ? and how to fix it? Thank you


  4. Hi guys, how are you? I come to ask for help, I am currently creating an object with the buider object, and I am using blender, once I create the object and create the texture with the UV edition, and the object generator I send, I do all the corresponding steps to adapt it the texture created, but it happens that once in the EDEN editor, I place the object on the stage and it appears with the texture well placed, but after a few seconds, the texture disappears and the object is transparent, someone knows why this happens ? and how to fix it? Thank you


  5. Good morning to all boys as always informing them about the progress of the mod, in this case a new system of optional manual torpedoes was added when attacking, the trajectory is straight line, these torpedoes can be fired with the radial silence system activated, And they will not interrupt you, the ship will continue to be hidden, the torpedo will sail in a straight line without following the objective, you as a good captain should use your naval knowledge, and with the help of the new visual contact system that you will have from the periscope, you should only Aim with the laseral hull of the boat, and activate the visual contact system, and follow requested actions, and the information of the enemy ship will appear on the screen, such as, for example, class type, nationality, course or course course, constant speed , the distance you are in, and the weight you carry in tonnage, with this information you can calculate the address and distance p that you should Place the ship to fire the manual torpedoes, said shot is executed from the gun control compartment, given the information from the command bridge must be sent to this compartment to open fire, of course if you have questions we will gladly help you . Greetings, and have a good underwater hunt.
     

    This eye contact scripts belong to my dear friend Mr. @cervantes

     

     

     

     

    • Like 1

  6. Good to all guys the version is now available, regards

    Release Version 2.3

    -Incompatibility correction with the game version 1.94
    -Increased navigation performance to 95%
    -Combination of dedicated server and host player versions to a single version

    -Activated 3 more torpedo launch tubes for a total of 4 tubes, two bow and two aft

    -Added new manual firing function of torpedoes with straight line trajectory, without affecting the radial silence system

    • Like 1

  7. Hello Bohemian friends, greetings and a hug to all, I am here again to ask for help, I am trying to make a visual hydrofono system, which identifies the characteristics of an enemy ship in motion, but I have had several problems and I still can't do it, in the search for information and compiled and managed to make a script that meets the requirements, its operation is to make it possible for the designator to show me a series of data collected when I mark the target ship with laser, but When executing it, it gives me the image of information about data not found, please ask for help

     

    this is the script:

     

    fnc_Contact =
    {

    _testing = param [6,false];
    _wPos = nil;
    _laser = laserTarget player;

    if(isNull _laser) then
    {
        _wPos = screenToWorld [0.5,0.5];
    }
    else
    {
        _wPos = _laser;

    };

    selPos = createAgent ["Logic", _wPos, [], 0, "FORM"];
    _target = objNull;

    if (isNull _laser) then
        {
        _nearObj = nearestObjects [selPos, ["Ship"], _radiusSearch];


        if(count _nearObj == 0) then
        {
            strikeAllowed = false;
            hint "no objetivo";
        }
        else
        {
            strikeAllowed = true;
            //Selecting random target
            _target = selectRandom _nearObj;

        };
    }
    else
    {
        strikeAllowed = true;
        _target = selPos;
    };

    if(strikeAllowed) then
    {
        
    _name = getText (configFile >> "CfgVehicles" >> typeOf _Target >> "displayName");
    _tonnage = getText (configFile >> "CfgVehicles" >> typeOf _Target >> "tonnage");
    _side = side _Target;


    _D = _target distance _Target;
    _dir = direction _target;

    _knots = (speed _target) / 1.85;
    _speedmode = speedMode _target;    


        while {true} do
        {
        
            if(!_testing) then
            {
       
            hintSilent format["*Submarine*%0  \n\nShip-Type\n%1   \n\nSide\n%2      \n\nTonnage\n%3   \n\nTarget-Distance\n%4   \n\nTarget-speed\n%5%6  \n\nTarget-speed-mod\n%7   \n\nTarget-direction\n%8%9",_name,_side,_tonnage,_D,_knots,"-knots",_speedmode,_dir,"-Deg"];

                };
            };
        };

    };


  8. Good to all friends, I wanted to share with you the new update of Submarine USS Alabama, Manual Conduction, at the arrival of version 2.0 of the mod, we have as an option to manually drive the ship, divided as it is known in the submarine ships with two pilots, one that drives the ship from bow to stern, and from port to starboard, and a second pilot that controls the ascent and descent of the boat. in the case of Alabama, now it's the same, making the underwater simulation as real as possible.

     

    Update 2.0, Manual Conduction

     

    m36xrse

    • Thanks 1

  9. Good afternoon, How's everybody ? I hope that very well, I am trying to make a compass screen that shows the direction of a vehicle, and continuously show the direction of the compass, I was reviewing and I could find several authors' guides, for example this :

     

    disableSerialization; 
    MyCompass = findDisplay 46 ctrlCreate ["RscPictureKeepAspect", -1];  
    MyCompass ctrlSetPosition [0.5,0.5,.1,.1];  
    MyCompass ctrlSetText "\A3\ui_f\data\map\markers\handdrawn\arrow_CA.paa";  
    MyCompass ctrlCommit 0; 
    addMissionEventHandler ["EachFrame",{ 
     MyCompass ctrlSetAngle [getDirVisual _Vehicle, 0.5, 0.5];  
    }];

     

    the image is seen on the player's screen and shows the position of the vehicle's compass, and that's fine, now my wish is to have that compass displayed on a game screen or monitor, or on an image poster, and Do your job of pointing out the vehicle's position, how could I do it to achieve it? thanks to everyone

     

     


  10. I need a help please, I have managed to make the script work, but it is giving me a problem, and that is that the keydown key is repeated again and again while I keep it pressed, I need to make it repeat only once while I keep it pressed, how can I do it??

     

        [] spawn {
            waitUntil {!isNull findDisplay 46};
            
            (findDisplay 46) displayAddEventHandler ["keyDown","_this call fnc_keyDown"];
            (findDisplay 46) displayAddEventHandler ["keyUp","_this call fnc_keyUp"];
        };

    fnc_keyDown = {
       _dikCode = _this select 1;

       if (_dikCode in actionKeys "MoveForward") then {
       hint "hola";
           true
       };
    };

    fnc_keyUp = {

       _dikCode = _this select 1;

       if (_dikCode in actionKeys "MoveForward") then {
          hint "chao";
           true
       };
    };

     

    keyUp works correctly does not repeat, but keydown does it again and again and that is the problem, help please


  11. if you were testing it directly and it is not persistent, you are right, however if you want to raise the key another option occurs so you can create another line in the same script can work? example:

     

    keydown_fnc = {
        switch (_this) do {
            {
                case _x: {
                    [] spawn { 
                                 

                hint " first action";


                         };
                    };        
                } foreach (actionkeys "MoveForward");  

            };
        };

     

    keyUp_fnc = {
        switch (_this) do {
            {
                case _x: {
                    [] spawn { 
                                 

                hint "second action";


                         };
                    };        
                } foreach (actionkeys "MoveForward");  

            };
        };


    waituntil {!isnull (finddisplay 46)};
    (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call keydown_fnc;false;"];

    (findDisplay 46) displayAddEventHandler ["KeyUp","_this select 1 call keyUp_fnc;false;"];


  12. Hello friends how are you? I come here asking for help to know if you can help me, because I am trying to do an action when I press a key and looking for this scripts:

     

    keydown_fnc = {
        switch (_this) do {
            {
                case _x: {
                    [] spawn { 
                                 

                _truck1 setVelocity [0, 10, 0];


                         };
                    };        
                } foreach (actionkeys "MoveForward");  

            };
        };


    waituntil {!isnull (finddisplay 46)};
    (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call keydown_fnc;false;"];

     

    my problem is that I need that when I release the key (keyup) _truck1 it stops and emits a motor noise stopping, how can I complete this scripts? please help, thanks

×