Home   Help Search Login Register  

Author Topic: Mando Hitching (ACCEPTED)  (Read 35067 times)

0 Members and 1 Guest are viewing this topic.

Offline Shadow.D. ^BOB^

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #15 on: 15 Jun 2008, 02:31:12 »
Sorted the HUD issue, cheers bud.

Could you tell me, where abouts is the value is that changes the height in which the cargo vehicle is placed below the helicopter?
While testing the HUD on my dedicated server, i've had the helicopter seemingly blow up in mid air, it seems this happens when i decrease altitude quickly; the helicopter then hits the cargo below and explodes.  Just wonder if placing the cargo a bit further below the helicopter might solve this issue.

Thanks for all the support again m8.  I will keep testing various situations and report back if i find anything else of interest.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #16 on: 15 Jun 2008, 02:36:17 »
That is the single argument of mando_hitch.sqf

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #17 on: 18 Jun 2008, 00:18:33 »
New v1.3 available, list of changes:
    * You now can hitch and drop ammo boxes.
    * Hitching hud does not interfere any more with Mando Missile huds.
    * You now can hitch and drop airplanes, if fast enough they'll keep flying.
    * Cargo will not try to go underground even if you fly really low.
    * Now you can transport cargo as long as the cargo is not destroyed, so you can transport severely damaged vehicles too.
    * Minimum altitude to drop a cargo may be overridden with new mando_hitch_no_check_for_drop global variable.
    * Hitching hud is gone if you are not hitching any cargo and there is no potential cargo nearby.

Offline Manzilla

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #18 on: 18 Jun 2008, 01:18:03 »
Holy new features Mandoble. :good: The speed at which you work is astonishing.

Is it possible to hitch artillery pieces and the like? My apologies for the post if the answer is yes. I couldn't seem to get that part to cooperate. :dunno:

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #19 on: 18 Jun 2008, 01:56:04 »
Add your arty class to the array of hitchable classes like in the example:
mando_hitch_types = ["LandVehicle","ship", "Air", "ReammoBox"];

Offline Manzilla

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #20 on: 18 Jun 2008, 02:00:41 »
Oh yeah of course. Christ I should have been able to figure that out. Thank you.

Offline andres1135

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #21 on: 19 Jun 2008, 14:16:47 »
Hi,
At the beginning it did not work but I found the error in line 4 of init.sqf:
[["UH60MG""]]execVM"mando_hitch\mando_add_hitch.sqf";
it should be :
[["UH60MG"]]execVM"mando_hitch\mando_add_hitch.sqf";
and it works now.
Very good work, well done, I may add.
 :clap: :clap: :clap:

Offline winchesterdelta

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #22 on: 19 Jun 2008, 17:40:22 »
Hey Mando great script man.. I already had alot of good times with it.

But i tryed to get it implemented in warfare but i couden't.
When i start up my edited version of warfare i crash to desktop with the following error: RCStitle class allready used.
I tryed a cople things to get that away, but with no succes.
I don't wanne change to manny things cause i know i will screw it up than.
Is there a way to fix this.. Allready thanks for you'r time man..

Offline winchesterdelta

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #23 on: 19 Jun 2008, 19:45:38 »
Okay i got the script working atleast the hitching..

I red another reply from you that you sayd to somebody to change evrything from cutRsc to titleRcs and the titletext to cutText..
Now i changed evrything back cause i'm not using mando missiles in this warfare map, after that the hitching script works but....
When i enter the chopper i get a ERROR:  RESOURCE TITLE MANDO_HITCH_HUD not found.

Example what i did in the warfare description.ext :

Quote
titleParam2 = $STRWFPARAM2LABEL;
valuesParam2[] = {CAPTUREALLTOWNS,MIN30,MIN60,MIN90,SCORE100,SCORE200,SCORE500,SCORE1000};
textsParam2[] = {"Capture All Towns",$STRWFPARAM2B,$STRWFPARAM2C,$STRWFPARAM2D,$STRWFPARAM2E,$STRWFPARAM2F,$STRWFPARAM2G,$STRWFPARAM2H};
defValueParam2 = CAPTUREALLTOWNS;

#include "Scripts\TeamStatusDialog\TeamStatusDialog.hpp"

Class RscCut
{
#include "mando_hitch\mando_hitch_titles.h"
};
//Gui related
#define DEFAULTFONT                  "Bitstream"

#define GUIUNDEFINED               -1
#define GUILEFT                     0
#define GUIRIGHT                  1
#define GUICENTER                  2
#define GUITILEBAR                  32
#define GUIFRAME                  64
#define GUIDEFAULTTILEBAR            GUITILEBAR + GUICENTER
#define GUIIMAGE                  48
#define GUIIMAGEASPECTRATIO            48 + 0x800
#define GUISTYLEHUD                  128

#define GUITEXT                     0



And where i changed TitleRsc to CutRsc:

Quote
_action = -1;
while _condition do
{
   if (_types) then
   {
      if (((typeOf vehicle player) in _helis) && (driver vehicle player == player)) then
      {
         if (_action == -1) then
         {
            _action = (vehicle player) addAction ["Pick Up", "mando_hitch\mando_pickup.sqf"];
            _veh = vehicle player;
         };

         if (isNull mando_hitch_hud) then
         {
            CutRsc["mando_hitch_hud", "PLAIN"];
         };
      }
      else
      {
         if (_action != -1) then
         {
            _veh removeAction _action;
            _action = -1;
         };

         if (!isNull mando_hitch_hud) then
         {
            CutText["", "PLAIN"];
         };
      };
   }
   else
   {
      if (driver _heli == player) then
      {
         if (isNull mando_hitch_hud) then
         {
            CutRsc["mando_hitch_hud", "PLAIN"];
         };
      }
      else
      {
         if (!isNull mando_hitch_hud) then
         {
            CutText["", "PLAIN"];
         };
      };
   };

But obvious it isn't that simple..

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #24 on: 19 Jun 2008, 19:48:00 »
You must have that hitching resource hud defined in description.ext (RscTitles section):
Code: [Select]
class RscTitles
{
#include "mando_hitch\mando_hitch_titles.h"
};

EDIT;
RscTitles resources are usable by both, cutRsc and titleRsc command, there is not any class named "Class RscCut"
« Last Edit: 19 Jun 2008, 19:49:47 by Mandoble »

Offline winchesterdelta

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #25 on: 19 Jun 2008, 20:45:08 »
YEah i just made that cutRsc class up to see if that wood work.. LOL

But now i tryed like you said to put it under that other Class RscTitle what was allready in that warfare discreption.ext.
But that gives me still the error resource title MANDO_HITCH_HUD not found.  (i also tryed it to put you'r code at the bottom of that warfare code.. with the same result.)

P.S. I changed evrything back to defaulth mando scripts first

Code: [Select]
class RscTitles   

{
#include "mando_hitch\mando_hitch_titles.h"
};
{
titles[] = {WF_Splash,CampCaptureProgress,TownCaptureProgress,EndOfGameStats,UseObject};

//--- Karel 03/03/2008
class WF_Splash
{
idd = -1;
movingEnable = true;
duration = 10;
fadein = 0;
name = "Warfare Splash";
class controls
{
class BackgroundWindow:GuiText
{
colorBackground[] = {0,0,0,1};
text = "";
x = -1;
y = 0;
w = 3;
h = 1;
};
class InfoBackground:GuiImage
{
idc = -1;
x=-1.0;
y=+0.375;
w=+3.0;
h=+0.24;
text = "\ca\ui\data\marker_brush_horizontal_ca.paa";
colorText[] = {1,1,1,0.1};
colorBackground[]={0,0,0,0};
};
class warfarelogo: GUIImageAspectRatio
{
x = 0.1;
y = 0.2;
w = 0.8;
h = 0.5;
text = "Images\warfare_logo_matt.paa";
colorText[] = {1,1,1,1};
};
class cti: GUIText
{
style = GUICENTER;
x = 0.-5;
y = 0.45;
w = 1.0;
h = 0.2;
sizeEx = 0.06;
text = "$STRWFSPLASH";
colorText[] = {1,1,1,1};
};


class copyright: GUIText
{
style = GUICENTER;
x = 0.0;
y = 0.95;
w = 1.0;
h = 0.02;
sizeEx = 0.025;
text = "$STRWFCOPYRIGHT";
colorText[] = {1,1,1,0.5};
};
};
};

class UseObject:DefaultMenu
{
duration = 15000;
name = "UseObject";

And here the description.ext file from warfare how i changed: http://84.105.226.181/armafiles/Description.ext

Sorry for you'r time man.. but i still learning all this.. If you don't have the time to help me so be it  :D
« Last Edit: 19 Jun 2008, 20:48:55 by winchesterdelta »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #26 on: 19 Jun 2008, 21:07:04 »
Code: [Select]
class RscTitles   
{
#include "mando_hitch\mando_hitch_titles.h"
// LINE REMOVED, not needed at all titles[] = {WF_Splash,CampCaptureProgress,TownCaptureProgress,EndOfGameStats,UseObject};
// Below goes the rest of your warfare RscTitles section
class WF_Splash
{
...
...
...
};


Offline winchesterdelta

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #27 on: 19 Jun 2008, 21:45:27 »
EDITED: Hmm i did exactly what you said and deleted that line but now i crash to desktop with the error description.ext, line 1572: '.': '{' encountered insead of '='

Code: [Select]
class RscTitles

{
#include "mando_hitch\mando_hitch_titles.h"

{

//--- Karel 03/03/2008
class WF_Splash
{
« Last Edit: 19 Jun 2008, 22:15:49 by winchesterdelta »

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: Mando Hitching (ACCEPTED)
« Reply #28 on: 19 Jun 2008, 23:04:10 »
what about the rest of the code?

Code: [Select]
...
...
...
};

 :)

you gotta have }; to end the section

Offline winchesterdelta

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #29 on: 19 Jun 2008, 23:10:08 »
the total part of that code looks like this now.. how i try'd to pmlement it like i tought mando ment it to be..

Code: [Select]
class RscTitles   

{
#include "mando_hitch\mando_hitch_titles.h"

{

//--- Karel 03/03/2008
class WF_Splash
{
idd = -1;
movingEnable = true;
duration = 10;
fadein = 0;
name = "Warfare Splash";
class controls
{
class BackgroundWindow:GuiText
{
colorBackground[] = {0,0,0,1};
text = "";
x = -1;
y = 0;
w = 3;
h = 1;
};
class InfoBackground:GuiImage
{
idc = -1;
x=-1.0;
y=+0.375;
w=+3.0;
h=+0.24;
text = "\ca\ui\data\marker_brush_horizontal_ca.paa";
colorText[] = {1,1,1,0.1};
colorBackground[]={0,0,0,0};
};
class warfarelogo: GUIImageAspectRatio
{
x = 0.1;
y = 0.2;
w = 0.8;
h = 0.5;
text = "Images\warfare_logo_matt.paa";
colorText[] = {1,1,1,1};
};
class cti: GUIText
{
style = GUICENTER;
x = 0.-5;
y = 0.45;
w = 1.0;
h = 0.2;
sizeEx = 0.06;
text = "$STRWFSPLASH";
colorText[] = {1,1,1,1};
};


class copyright: GUIText
{
style = GUICENTER;
x = 0.0;
y = 0.95;
w = 1.0;
h = 0.02;
sizeEx = 0.025;
text = "$STRWFCOPYRIGHT";
colorText[] = {1,1,1,0.5};
};
};
};