Home   Help Search Login Register  

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

0 Members and 1 Guest are viewing this topic.

Offline loki72

  • Former Staff
  • ****
    • Loki's Nightmare
Re: Mando Hitching (ACCEPTED)
« Reply #30 on: 19 Jun 2008, 23:15:24 »
if i counted right... it needs 2 more }'s at the end.

Code: [Select]
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};
};
};
};
    };
};

« Last Edit: 19 Jun 2008, 23:18:04 by loki72 »

Offline winchesterdelta

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #31 on: 19 Jun 2008, 23:47:36 »
I did it like you sayd but i still get the error '{' encounterd instead of =

Working on this allready for 6 our's with no result.. So i call it a quit.. Gonna wait till somebody els makes a warfare with mando script so i can get that description file from him...

Thanks for all the great help guy's...

P.S. if i do the code like below the hitching will work but than you get the error mando_hitch_hud not found... If you did the code like in the previous reply's you wood get the error  '{' encountered instead of '='


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};
};
};
};
};
« Last Edit: 20 Jun 2008, 00:01:55 by winchesterdelta »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Mando Hitching (ACCEPTED)
« Reply #32 on: 20 Jun 2008, 04:38:25 »
 :blink:

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;
        ......
        ......
        ......


Presumably


Planck
I know a little about a lot, and a lot about a little.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #33 on: 20 Jun 2008, 07:38:02 »
---->>>>titles[] = {WF_Splash,CampCaptureProgress,TownCaptureProgress,EndOfGameStats,UseObject};
In your titles section only WF_Splash is defined, CampCaptureProgress and the rest seem to be missing there.
You may remove the titles[] array or, if not removed, include the hitch.h below that titles line and add to that line mando_hitch_hud. But the main problem I see there is that some mission title classes are missing.

Code: [Select]
class RscTitles
{
titles[] = {WF_Splash,CampCaptureProgress,TownCaptureProgress,EndOfGameStats,UseObject,mando_hitch_hud};

#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};
};
};
};
};

Offline eggbeast

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #34 on: 20 Jun 2008, 15:40:39 »
Hi guys

Great work on the script Mando, it's much betterthan the winch script I was using from Hohei Evolution.  Very graceful coding dude.

I'm having a small problem trialing it and porting it into my (private) evolution mods - the truck or w/e is hitched goes on TOP of the chopper (checked with hind, chinook, MH6 and blackhawk) causing a spectacular and immediate plane crash....





I'm guessing this line sets the height of the cargo?
_fheight = _height + (0 min (_unit modelToWorld [0,-1,-_height] select 2));

any idea why it might set it above the chopper, when the chopper is at height 13 or 14?

« Last Edit: 20 Jun 2008, 16:23:09 by eggbeast »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #35 on: 20 Jun 2008, 16:45:27 »
Might be related to the model coordinates origin of your chopper. Try with more distance between cargo and chopper:
Code: [Select]
[15]execVM"mando_hitch\mando_hitch.sqf"
If might be also related to the existance of surfaces in your chopper that might be considered "ground" by ArmA. For example, if you place an ammo box directly below your chopper, 5m lower, while your chopper might be 300m above ground, its altitude is 5m (a terrible ArmA bug, yep).

Offline eggbeast

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #36 on: 20 Jun 2008, 16:59:38 »
is the [15] meaningful here?
I left my [] empty in that line cos I didn't know what it was meant to be... could that be the problem?

[EDIT] That was it... I think you may want to add that in the readme file lol.  The [15] is the rope length!! so if you set it on [] then you crash as above lol.

CHEERS - great script - been trying to edit the old winch.sqf to ass "ship" classfor ages so thanks a huge bunch!

 :D
« Last Edit: 20 Jun 2008, 17:08:21 by eggbeast »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #37 on: 20 Jun 2008, 17:29:58 »
Extracted from the readme  :blink:

There are two main scripts: mando_hitch.sqf and mando_add_hitch.sqf.

mando_hitch.sqf:
Execute this script only once before executing any mando_add_hitch.sqf. Make sure it is executed everywhere, server and clients.
It has a single parameter which is the distance between cargo an chopper while transporting the cargo.

Offline winchesterdelta

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #38 on: 20 Jun 2008, 17:59:55 »
Hey Mando thanks for the great help you'r script works now with warfare.....

Appreciate you'r help man.... and offcourse the help from all the others also...  :clap:

Offline GaReb

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #39 on: 22 Jun 2008, 04:52:10 »
Im having trouble getting the hud to come up.  I have tried changing the UH60MG to heli1 in the ini.sqf with no effect.  When the mission starts I get no errors at all nor any hud directing me to a hitchable load.  Any idea why this is happening? In the ini file this string is in it [12]execVM"mando_hitch\mando_hitch.sqf"; Should the 12 be replaced by the UH60MG?
« Last Edit: 22 Jun 2008, 04:55:45 by GaReb »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #40 on: 22 Jun 2008, 09:30:41 »
Code: [Select]
[heli1]execVM"mando_hitch\mando_add_hitch.sqf";

Offline GaReb

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #41 on: 22 Jun 2008, 20:18:54 »
Code: [Select]
[heli1]execVM"mando_hitch\mando_add_hitch.sqf";

Thanks Mandoble that did it...I was leaving in the double [[ ]] instead of just single.  Works great now.  Thank you

Offline eggbeast

  • Members
  • *
Re: Mando Hitching (ACCEPTED)
« Reply #42 on: 22 Jun 2008, 21:25:57 »
hi again

yeah the readme says theres one variable but it doesnt say it is the figure in the brackets - some mission makers (like me) might not realise thats what u mean...

I've imported the script into my versions of Evo RED, Evo Blue and Evo Brit and we have been testing it out.  Some feedback that may be helpful in development:

1. Sometimes the "pick up" and "drop" actions remain added in an empty heli, so that they accumulate and are not removed when exiting the chopper/ function.  This means you get 3 "pick up"'s at once and they cease to work properly.
2. Sometimes the "pick up" doesn't execute at all, although the "drop" becomes added (addaction), so it thinks you have cargo but the cargo is back where it started....  when you select "drop" you get the "pickup" option again
3. the M119 and D30's are not hitchable?  They are in the old winch script I used (as landvehicle) but not with hitch??
4. Lastly, but MOST importantly, the circle within which you can hitch a target seems way too small: compared to the old winch script where you can winch into and out of battle with panache this is a nightmare to use... perhaps because the pickup is so temperamental - ittakes me like 10 passes to grab something and i have to check its really there lol.  very frustrating.  perhaps a variable for pickup zone or else just a bigger one would be better?

cheers for working on this, i hope we can use it in time.  meantime i'm reverting to winch, but i don't want to...

thanks again man

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #43 on: 22 Jun 2008, 21:39:40 »
1. Sometimes the "pick up" and "drop" actions remain added in an empty heli, so that they accumulate and are not removed when exiting the chopper/ function.  This means you get 3 "pick up"'s at once and they cease to work properly.

In which situations?

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Mando Hitching (ACCEPTED)
« Reply #44 on: 23 Jun 2008, 00:05:49 »
New version available.
Changes in 1.4:

    * You now can hitch and drop static weapons and static objects.
    * You can hitch only civilian (empty) or your own side cargo.