Home   Help Search Login Register  

Author Topic: Info text not appearing..  (Read 3561 times)

0 Members and 1 Guest are viewing this topic.

Offline Rytuklis

  • Members
  • *
Info text not appearing..
« on: 12 Mar 2013, 12:52:20 »
So what i'm trying to do is place an infotext function.

I place a module "Function" on the map, then i type this into init.sqf:

Code: [Select]
waitUntil {!isNil "bis_fnc_init");
["Line 1", "Line 2"] call bis_fnc_infoText;

Nothing happens.. nothing at all..
And when i use a trigger and paste this in the trigger initialization field, i can hear that "beep" typewriter sound once, but text doesnt appear.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Info text not appearing..
« Reply #1 on: 12 Mar 2013, 16:29:49 »
You do have typo there, on the first line:
Quote
waitUntil {!isNil "bis_fnc_init");
They should both be curly brackets..

EDIT:
You should add -showScriptErrors startup parameter to the shortcut you launch the game from, without it you will not get any notifications on the screen if a script has a problem..
« Last Edit: 12 Mar 2013, 16:35:52 by h- »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Rytuklis

  • Members
  • *
Re: Info text not appearing..
« Reply #2 on: 27 Mar 2013, 08:55:05 »
It says that "bis_fnc_infoText" is an undenified variable
Also, i added " " to the bis_fnc_InfoText and now its saying  typestring expected
« Last Edit: 27 Mar 2013, 08:57:40 by Rytuklis »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Info text not appearing..
« Reply #3 on: 29 Mar 2013, 10:51:16 »
Are you by any change using vanilla Arma2?

The function is included in Operation Arrowhead only which means you either have to use OA or Combined Ops to able to use this function.
Although then again if you hear the typewriter sound it wouldn't happen in vanilla A2..

EDIT:
This is what I got in my init.sqf:
Code: [Select]
waitUntil {!isNil "bis_fnc_init"};
["Hello", "World"] call bis_fnc_infoText;
Works just fine..  :dunno:
« Last Edit: 29 Mar 2013, 10:57:11 by h- »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Rytuklis

  • Members
  • *
Re: Info text not appearing..
« Reply #4 on: 03 May 2013, 13:58:04 »
Yea, i'm using vanilla. Probably thats the problem

Offline Rytuklis

  • Members
  • *
Re: Info text not appearing..
« Reply #5 on: 15 May 2013, 16:23:01 »
Switched to combine ops, still the same problem happens

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Info text not appearing..
« Reply #6 on: 15 May 2013, 18:42:24 »
You probably should post up your mission/files, would be easier to troubleshoot..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Rytuklis

  • Members
  • *
Re: Info text not appearing..
« Reply #7 on: 16 May 2013, 14:12:26 »
Actually just got it fixed, it seems that WaitUntil command was not supposed to be there. IT works now :)

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Info text not appearing..
« Reply #8 on: 16 May 2013, 15:56:29 »
Well, I'd bet more on you having some sort of typo on the waitUntil line because it is infact needed ;) (not mandatory obviously, but still)
Like I pointed out already earlier in the code you quoted in the first post there is a typo..

What the line does is it ensures the functions module has properly intialized before any functions from it are called. I also base my claim on the fact that the waitUntil line is actual official method and also that it has always worked for me. :P
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.