Home   Help Search Login Register  

Author Topic: Vektorboson's dialog tutorial still good?  (Read 2449 times)

0 Members and 2 Guests are viewing this topic.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Vektorboson's dialog tutorial still good?
« on: 31 Mar 2007, 04:12:46 »
okay - so I have been putting off dialogs for a long time - cause i can only handle so many ctds a day - but now i find my mission hands are tied.
Is Vektorboson's dialog tutorial applicable to Arma? Cause I don't wana have to learn it if it's not gonna help :blink:
I've attached the tut im refering to.
anyone know?
just setpos & forgetpos!

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: Vektorboson's dialog tutorial still good?
« Reply #1 on: 02 Apr 2007, 23:07:31 »
the quick and dirty answer is yes, it's still good, because all of the principles still apply, even if some of the commands are new in arma. it will also prepare you for how tricky dialogs can be to get right.

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: Vektorboson's dialog tutorial still good?
« Reply #2 on: 03 Apr 2007, 02:32:44 »
thx for the heads up - in ofp it was cut and paste most the time for titles and pics ect,
so i got away without having to have to learn what it was i was really doing :D (...kinda like at work!)

Anyway ~ thanks

*EDIT:
the fonts have changed :P

for discription:

Zeppelin33
Zeppelin33Italic
Zeppelin32
Bitstream
TahomaB
LucidaConsoleB
« Last Edit: 03 Apr 2007, 03:51:39 by D_P_ »
just setpos & forgetpos!

Offline IGWedge

  • Members
  • *
  • Internal Coordinator @ www.ic-arma.com
    • International Conflict Armed Assault
Re: Vektorboson's dialog tutorial still good?
« Reply #3 on: 09 Apr 2007, 16:40:56 »
im having a go at this myself and im gettin a little frustrated..lol

I tried the first couple of examples and am not getting anywhere.

For instance i just wanted to get a small image to show onscreen when radio alpha is called.

I have this in my description.....


Code: [Select]
class RscPicture
{
type = CT_STATIC;
idc = -1;
style = ST_PICTURE;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = FontS;
size = 0;

class mypic : RscPicture
{
    style=48;
  text="mypic.paa";
sizeEx = 0.04;
    x = 0.1;
y = 0.33;
w = 0.33;
h = 0.33;
};

};

and am calling it in the trigger by
Code: [Select]
ok = createDialog "DlgTutorial"
its telling me it cant find the resource mypic
Its definatly there

i know i probably sound like a tool and have got it all wrong but im desperate to learn this so i dont care :D

Wedge


Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Vektorboson's dialog tutorial still good?
« Reply #4 on: 10 Apr 2007, 06:44:41 »
Try giving it the complete path to your picture and not just the picture name.    :)


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

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re: Vektorboson's dialog tutorial still good?
« Reply #5 on: 12 Apr 2007, 02:18:27 »
im having a go at this myself and im gettin a little frustrated..lol
"a little frustrated"?
You lucky person!
I've just completely lost 2 hours just trying to populate a simple ComboBox list.
No error, nothing, I can even chose items in the list, it's just that the text of each item NEVER appear.
I've stopped the edition just before throwing my PC through the window.
The lack of BI-made documentation is infuriating, tbh. Moreover when they change things that their customers already documented themselves after years of research without any help from them. Getting sick to see we have to do it all again.

I tried everything going through my feeble mind. No go. Changing font, font size, combo size, colors and transparencies, verifying the script was really giving a text to add, etc, etc...
Gonna try 1 last time with some of the fonts given above.
I may not be able to check this message after as my rig may well be lying on the street 3m below my desktop, out of sheer frustration. Sometimes, I hate BI.


EDIT : tested
sometimes I hate myself, too.
At least it works.
thanks for the font list ;) it directed me to the correct error

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Vektorboson's dialog tutorial still good?
« Reply #6 on: 12 Apr 2007, 12:16:17 »
Faulty or non-working dialogs will generate errors, check your RPT file to view them.

RPT file can be found in:

C:\Documents and Settings\Administrator\Local Settings\Application Data\ArmA

Presuming you are administrator.


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

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re: Vektorboson's dialog tutorial still good?
« Reply #7 on: 12 Apr 2007, 14:43:18 »
Aww, nice, I gonna check when I'm back from work. not sure, though, as the font defined was a constant that I did not declare beforehand w/ #declare so it could be a bit tricky.

And sorry for last night rant, it was late, too much good wine and hours lost over a too little issue. Well, I guess every scripter has got this kind of moments :P

Offline D_P_

  • Members
  • *
  • YAY! I'm a lama again! ...oh wait.
    • ArmaAddons
Re: Vektorboson's dialog tutorial still good?
« Reply #8 on: 13 Apr 2007, 08:33:41 »
I'm all for cheating....as long as it's not ingame   :whistle:
I found this Dialog Making tool in the attic, it's made for ofp...so it requires some tweaking before it'll function in arma...but it sure beats trying to write the code from scratch!!
The fonts are still coded for ofp
Anyway - maybe it'll help some poor sucka! ( no offense WhisperOFP)  ;) 
just setpos & forgetpos!

Offline WhisperOFP

  • Members
  • *
  • I'm a llama!
Re: Vektorboson's dialog tutorial still good?
« Reply #9 on: 13 Apr 2007, 18:17:19 »
Awesome. Thanks alot, gonna check it tonight.  :D