Page 16 of 78 FirstFirst ... 61213141516171819202666 ... LastLast
Results 151 to 160 of 776

Thread: [R3F] Artillery and Logistic: Manual artillery and advanced logistic (mission script)

  1. #151
    I want to reiterate that this is still absolutely amazing even if nothing is changed. Thanks again for the great work. Every additional change is just icing on the cake.
    Dulce et decorum est pro patria mori.

  2. #152

    new ammo

    as mention before creating new ammo table is not that easy and clear as seems.
    it took me a long time to understand what to do (from reading the note on the files and from this topic). @madbull - it's clear that you tried hard to make it simple and clear, but to me it's not that clear.

    like phxfire, i also trying to make the m109 self-propelled artillery cannon (from the us vehicle pack) useable with the mod, without success so far.
    this is my init.sqf from the main mission folder:
    startLoadingScreen ["Computing..."]; // Permits to compute very faster
    [
    // Mיta-donnיes (meta-data)
    [
    getNumber (configFile >> "CfgMagazines" >> "m109_HE" >> "initSpeed"),
    -(getNumber (configFile >> "CfgAmmo" >> (getText (configFile >> "CfgMagazines" >> "m109_HE" >> "ammo")) >> "airFriction")),
    R3F_ARTY_table_altitude_impact_defaut,
    R3F_ARTY_table_angles_defaut
    ],
    // Donnיes (data)
    [] // Vide en entrיe (empty in output)
    ] call compile preprocessFile "R3F_ARTY_AND_LOG\R3F_ARTY\calcul_balistique\gener er_table.sqf";
    endLoadingScreen; // <- DON'T forget this line !

    i preview the mission in the editor and the "computing..." is shown and after a few seconds the game starts. arma2.rpt:

    Updating base class UH1_Base->Helicopter, by UnlimitedTransportOfWeaponsAndMagazinesInVehiclesT oAvoidAmmoSpillingBug_Fix_C_PROPER\config.bin/CfgVehicles/UH1Y/
    Exe version: 1.05.62017
    Error in expression <109_HE" >> "ammo")) >> "airFriction")),
    R3F_ARTY_table_altitude_impact_defaut,
    R>
    Error position: <R3F_ARTY_table_altitude_impact_defaut,
    R>
    Error Undefined variable in expression: r3f_arty_table_altitude_impact_defaut
    File C:\Users\Harel\Documents\ArmA 2 Other Profiles\[IDF]Harel\missions\generationgable.Chernarus\init.sqf, line 8
    /****** DEBUT DE LA TABLE ******/
    [
    // Meta-donnees
    [
    0, // Vitesse initiale
    -0, // Coefficient de frottement
    // Liste des paliers d'altitudes d'impact
    any,
    // Liste des angles d'elevation
    [
    Error in expression <vation = 0}, {_indice_elevation < count _liste_elevations}, {_indice_elevation =>
    Error position: <_liste_elevations}, {_indice_elevation =>
    Error Undefined variable in expression: _liste_elevations
    ]
    ],
    // Donnees
    [
    Error in expression < = 0}, {_indice_altitude_impact < count _liste_altitudes_impact}, {_indice_altit>
    Error position: <_liste_altitudes_impact}, {_indice_altit>
    Error Undefined variable in expression: _liste_altitudes_impact
    ]
    ]
    /****** FIN DE LA TABLE ******/

    it may be because i don't know what's a "good class name".
    any help would be appraised. thanks.

  3. #153
    Quote Originally Posted by madbull View Post
    Thanks for your effort to release your stringtableFix.rar. But I think there is something wrong in the download. Is it the good stringtable.csv in the archive (i.e. from the good directory) ?
    Sorry about the link, I jumped ahead of myself when archiving everything. Here is the working link:

    Stringtable.csv Fix (for F2 Framework with R3F's Arty and Logic)
    http://www.filefront.com/15482079/stringtableFix.rar

    (I updated the original post of the link as well)


    I also had yet a different problem with the modification. It appears for unknown reasons at times, when I try to lift crates with helos it does not give the command text to lift. Any ideas why? Almost like the code is not initializing properly sometimes.

  4. #154
    Staff Sergeant madbull's Avatar
    Join Date
    May 3 2009
    Location
    France
    Posts
    218
    Author of the Thread
    > "Looking forward to the change for direction to target from the FO. "
    It'll be done ASAP I'm aware of the improvement that it'll be. Same thing for the grid digit reference.

    Thx phaeen.

    @VirusLIVED : now it looks good

    @seansharlos :
    1. you must copy/paste this code in the main init.sqf after the #include "R3F_ARTY_AND_LOG\init.sqf"
    The error message "Undefined variable in expression: r3f_arty_table_altitude_impact_defaut" made me think that's not the case.

    2. a good class name is the class name in the CfgMagazines. For ArmA 2 standard ammo, you can see it there : http://community.bistudio.com/wiki/ArmA_2:_Weapons
    For new ammo type, check the addon documentation (or use unRAP tool to read the config file)

    3. yes, it's a hard task. It'll be easier in the future.

  5. #155
    Hi,

    Yesterday we tested it in a MP mission in GrupoArmados and it worked great. I personally like it a lot because of the possibilities it can offer to a standard mission (combat is not the only thing..)

    Probably it was already discussed in the previous posts but we noticed it´s a problem to get a precise fire solution when the arty pieces are not placed in a flat area. For instance, we placed them on a field which was not 100% flat and obviously the shells missed the target position because of the cannon deviation. One solution could be to add to the gunner the action to stabilize the weapon (via "(vehicle this) setvectorup [0,0,1]" for instance) when it´s already deployed. It´s just a proposal

    Cheers
    Last edited by geloxo; Feb 2 2010 at 20:04.

  6. #156
    Staff Sergeant madbull's Avatar
    Join Date
    May 3 2009
    Location
    France
    Posts
    218
    Author of the Thread
    @geloxo :
    Thanks for the issue report.
    I already knowed that. It's already fixed too (but not yet released).

    In the file R3F_ARTY_AND_LOG\R3F_ARTY\dlg_artilleur\afficher_d lg_artilleur.sqf line 48 :
    Code:
    _elevation = asin ((_piece weaponDirection _canon) select 2) - asin(vectorDir _piece select 2);
    must be simply
    Code:
    _elevation = asin ((_piece weaponDirection _canon) select 2);
    I thought the weaponDirection was relative to the gun. But it's relative to the "world" (so ~absolute).

    My bad.

  7. #157
    Quote Originally Posted by madbull View Post
    @geloxo :
    Thanks for the issue report.
    I already knowed that. It's already fixed too (but not yet released).

    In the file R3F_ARTY_AND_LOG\R3F_ARTY\dlg_artilleur\afficher_d lg_artilleur.sqf line 48 :
    Code:
    _elevation = asin ((_piece weaponDirection _canon) select 2) - asin(vectorDir _piece select 2);
    must be simply
    Code:
    _elevation = asin ((_piece weaponDirection _canon) select 2);
    I thought the weaponDirection was relative to the gun. But it's relative to the "world" (so ~absolute).

    My bad.
    No prob, I managed to do it via script too: add to the gunner the action to stabilize the weapon via setting in the gun init field:

    this addaction ["Stabilize gun", "stabilizegun.sqf"];
    where stabilizegun.sqf script content is simply:

    _target = _this select 0;
    _caller = _this select 1;

    _target setvectorup [0,0,1];
    Cheers

  8. #158
    looks interesting !! keep with the good job
    No War No Pain

  9. #159
    Quote Originally Posted by VirusLIVED View Post
    Thank you for the rapid response... I appreciate it VERY much!

    The .csv-.xml program didn't work out on my machine for some reason, so I have to do the entire thing manually. Only problem I am stuck on is that I am not sure what to rename the name and properties ID's. This is probably the most important step, and I am stuck as to what to do. If it is at all possible to send me your converted stringtables.xml file, that would probably save me an entire night of struggle.

    Also, what do we do about the includes in the stringtable.csv file? Can you just add them to the .xml file?

    I discovered a method of including other xml files... does the following look appropriate for ArmA 2 related xml files? I think there might be a better way of going about this.
    Code:
    <includes xmlns:xi="http://www.w3.org/2001/XInclude">
        <title></title>
            <xi:include href="R3F_ARTY_AND_LOG\stringtable.xml"/>
    </includes>
    If the above method works, then we will need to convert all .csv files into .xml and add the includes using the code above.


    ----------UPDATE----------

    For all who are using F2 mission template framework, I made a temporary fix for the stringtable.xml issues:

    Basically, it is easier to convert the stringtable.xml (F2's stringtable file) to a stringtable.csv (the format Artillery and Logistics uses) then it is the other way around.

    The following link is the fix that will make the F2 framework and R3f's Artillery and Logistics mod compatible together.

    http://www.filefront.com/15482079/stringtableFix.rar
    (Just replace the original stringtable.csv with this one, and delete stringtable.xml)

    (I only did English and French Languages)

    ----------------------------

    Thanks my brother!!

  10. #160

Page 16 of 78 FirstFirst ... 61213141516171819202666 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •