Page 128 of 189 FirstFirst ... 2878118124125126127128129130131132138178 ... LastLast
Results 1,271 to 1,280 of 1881

Thread: Editing, Expanding and Modifying Domination

  1. #1271
    First Sergeant
    Join Date
    Oct 9 2008
    Location
    New york & Florida
    Posts
    898
    Quote Originally Posted by BeTeP View Post
    Sorry for my English...

    Put the folder R3F_ARTY_AND_LOG, for example here on the root, and just placed

    Code:
    // init. sqf
    // after line 12
    
    GVAR(init_started) = true;
    
    if (isServer) then {
    	execVM "R3F_ARTY_AND_LOG\init.sqf";
    };

    It should also initialize the client

    for example at the end of x_client.sqf or other initialization file of the client.
    It is now a file on the root x_clientcustomcode.sqf

    There is no hurry, we initialize the client after the intro, sleep 60;

    Code:
    [] spawn {
    	sleep 60;
    	execVM "R3F_ARTY_AND_LOG\init.sqf";
    };




    Your error seems like something missing }; in an initialization file such as in the init. sqf
    end of a block not executed, a script executed poorly...
    I have already had that, I had mistakenly deleted }; during a copy / paste into a file init
    Thanks BeTep got it to work with your help! Yes Xeon did change some of the code in the new version and if you follow the direction that came with the script it will not run.

    This is how his new code looks now at line 12:
    GVAR(init_started) = true;

    if (!isDedicated) then {
    onPreloadFinished {GVAR(preloaddone) = true; onPreloadFinished {}};

    And this is what it should look like to work now:

    GVAR(init_started) = true;

    if (!isDedicated) then {
    onPreloadFinished {GVAR(preloaddone) = true; execVM "R3F_ARTY_AND_LOG\init.sqf"; onPreloadFinished {}};
    };

    Thanks for the help just want to pass down the infor for others.
    AVIBIRD 1

    When playing this game, Keep Chuck Norris home!
    If they make this game, They will play!
    The truth is out there, If you look!

  2. #1272
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,058
    Author of the Thread
    Quote Originally Posted by Demonized View Post
    just a guess, using vectorUp and vectorDir
    Code:
    _camonet setVectorDirAndUp [(vectorDir _mhq),(vectorUp _mhq)];
    if the results are not good, try switching the vectorUp _mhq and vectorDir _mhq around.

    Edit: you probably need to set the direction again after the code.
    OK, ignore my previous post. You were right, setVectorDirAndUp does work, the camo net spawns level with the terrain which is excellent, but if I do a setDir after it, the camonet goes dead flat again. I also tried doing the setDir first, but it was ignored, presumably overwritten by the setVectorDirAndUp.

    So I can have the camonet facing the right way (open end toward the front of the mhq) or same lean as the ground underneath it, but not both!
    Documentation is not a dirty word.
    : TeamSPAFF : PRACS : RKSL : Stella Artois : Creme Eggs : GITS :

  3. #1273
    you shouldnt need to do setDir, it is already intrinsic of:

    Code:
    _camonet setVectorDirAndUp [(vectorDir _mhq),(vectorUp _mhq)];
    (vectorDir _mhq) for example can be -1*(vectorDir _mhq) which would make it point the other way.

    if you need it to be turned some other way, just plug it into that part.

  4. #1274
    Second Lieutenant Tankbuster's Avatar
    Join Date
    Jun 14 2005
    Location
    RPT
    Posts
    4,058
    Author of the Thread
    Quote Originally Posted by Soul_Assassin View Post
    you shouldnt need to do setDir, it is already intrinsic of:

    Code:
    _camonet setVectorDirAndUp [(vectorDir _mhq),(vectorUp _mhq)];
    (vectorDir _mhq) for example can be -1*(vectorDir _mhq) which would make it point the other way.

    if you need it to be turned some other way, just plug it into that part.
    VectorDir is an array, so you can't just multiply it by -1 to turn it around.

    ---------- Post added at 00:37 ---------- Previous post was at 00:27 ----------

    I know how I'm going to do this though.

    I'm going to create an invisible helipad atthe same location and direction as the mhq, then spin the helipad 180 degrees, then use that to get the vector and dir for the camo net.

    ---------- Post added at 01:16 ---------- Previous post was at 00:37 ----------



    Code:
    _spunmarker = createVehicle ["HeliHEmpty", position _mhq, [], 0, "NONE"];
    _spunmarker setDir ((direction _mhq) -180);
    _camo = createVehicle [_camotype, position _mhq, [], 0, "NONE"];
    _camo setPos position _mhq;
    _camo setVectorDirAndUp [(vectorDir _spunmarker),(vectorUp _mhq)];
    Yey!

  5. #1275
    PLZ HELP with this: I am currently porting the last version over to duala but what do I do with those d_sm_XX sidemission markers? do I have to use them all????

    also I don't have enough towns to place all those main objective markers on! can I just delete the rest?
    STAR CITIZEN

    INFO about the game


  6. #1276
    Staff Sergeant Dirty Haz's Avatar
    Join Date
    Nov 29 2011
    Location
    Birmingham, United Kingdom
    Posts
    328
    Latest ver is all done by markers so you will only have to change a few other things. I have never ported Domi before so have a look at this post.

  7. #1277
    well that topic no longer applies to the new version of domination where it is as you said all done by markers! but I am not sure what still has to be changed! its fairly easy to miss one set of coordinates!

  8. #1278
    Quote Originally Posted by BelgarionNL View Post
    well that topic no longer applies to the new version of domination where it is as you said all done by markers! but I am not sure what still has to be changed! its fairly easy to miss one set of coordinates!
    You can still use normal positions (like the ArmA 2 2.60 versions still do). In the end it doesn't matter if you use markers (markerpos) or normal position arrays.
    Like some other changes in 2.60 those are preparations for something else...

    Xeno

  9. #1279
    something being JAVA and take on helicopters? anyways this error pops up in the editor when I get into the driver's seat of a land vehicle:

    Code:
      Error Undefined variable in expression: _crewctrlFile C:\Users\Gebruiker\Documents\ArmA 2 Other Profiles\Belgarion\missions\co@30_Domination_2_60za_ACE.isladuala\x_client\x_vec_hud.sqf, line 59
    Error in expression <trl 9999;
    if (!visibleMap && !ctrlShown _crewctrl) then {
    if (!_ison) then {
    673>
      Error position: <_crewctrl) then {
    if (!_ison) then {
    673>
    thats because its not hosted on a dedi box right?
    Last edited by BelgarionNL; Feb 12 2012 at 01:58.

  10. #1280
    Quote Originally Posted by Tankbuster View Post
    VectorDir is an array, so you can't just multiply it by -1 to turn it around.

    ---------- Post added at 00:37 ---------- Previous post was at 00:27 ----------

    I know how I'm going to do this though.

    I'm going to create an invisible helipad atthe same location and direction as the mhq, then spin the helipad 180 degrees, then use that to get the vector and dir for the camo net.

    ---------- Post added at 01:16 ---------- Previous post was at 00:37 ----------



    Code:
    _spunmarker = createVehicle ["HeliHEmpty", position _mhq, [], 0, "NONE"];
    _spunmarker setDir ((direction _mhq) -180);
    _camo = createVehicle [_camotype, position _mhq, [], 0, "NONE"];
    _camo setPos position _mhq;
    _camo setVectorDirAndUp [(vectorDir _spunmarker),(vectorUp _mhq)];
    Yey!
    you can multiply each term of the vector by -1

Page 128 of 189 FirstFirst ... 2878118124125126127128129130131132138178 ... 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
  •