• 0
Unkown_GTX

Infistar blocking my display

Question

Hey guys im the creator of voyagerCompass and some people complained they cant open my dialog. 

This workshop addon is actually a single script these peope have been using. InfiStar requires you to whitelist idds but my dialog is being created without one (no description.ext config..). It is created inside the script.sqf itself. Like this: 

with uiNamespace do {
  nc_dialogDisplay = findDisplay 46 createDisplay "RscDisplayEmpty";
};

_display = uiNamespace getVariable "nc_dialogDisplay";

ctrlIDD returns Display #-1. Main Display (46) and -1 are already whitelisted but dont work here.

 

And a titleDisplay is also in use:

("compassTitle" call BIS_fnc_rscLayer) cutRsc ["RscTitleDisplayEmpty", "PLAIN"];

_display = uiNamespace getVariable "RscTitleDisplayEmpty";

 

Is there a way to whitelist the uiNamespace variable? Or are there other Methods or Whitelists.?

  • Like 2

Share this post


Link to post
Share on other sites

12 answers to this question

  • 0
1 hour ago, Beowulfv said:

In your logs is there anything else infiSTAR is telling you when a player tries to open it?

I just realized i wrote my name wrong when registrating haha

The thing is i dont own InfiStar or even play exile. Its just that people have reported its not working

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Please mark this as solved.  The mod works great with infistar after the update 1.1 :)

Line 229 should be changed to V1.1 next time your in the code.  It still reads "Voyage Compass 1.0"

Cool script @Unknown_GTX you should release it here. Keep up the good work.

 

20170923024509_1.jpg

Edited by aussie battler

Share this post


Link to post
Share on other sites
  • 0
15 minutes ago, aussie battler said:

The marker on the far left drops down on the screen & you can't remove it.

20170923042051_1.jpg

I got a fast dirty fix for you. I guess youre using the script so a small line-change shouldn't be a problem

Can you try inserting these two lines at 489

      _edit ctrlSetPosition [-2, -2, 0.05, 0.05];
      _edit2 ctrlSetPosition [-2, -2, 0.05, 0.05];

so it looks like this

if !(_x in currentMarkers) then {
      _display = uiNamespace getVariable "RscTitleDisplayEmpty";
      _index = allMapMarkers find _x;
      _idc = 5500 + _index;

      _edit  = _display ctrlCreate ["RscStructuredText", _idc];
      _edit2 = _display ctrlCreate ["RscStructuredText", _idc + 100];

      _edit ctrlSetPosition [-2, -2, 0.05, 0.05];
      _edit2 ctrlSetPosition [-2, -2, 0.05, 0.05];

      _img =  getText (configfile >> "cfgMarkers" >> markerType _x >> "icon");
      _txt = parseText format ["<img image='%1' align='center'/>", _img];
      _edit ctrlSetStructuredText _txt;
      _edit2 ctrlSetStructuredText _txt;

      _edit  ctrlCommit 0;
      _edit2 ctrlCommit 0;

      currentMarkers pushBack _x;
      combMarkers pushBack [_idc, _x];
      systemChat format ["created: %1", _x];
    };

 

I know its really dirty code but optimization comes last haha

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

So I downloaded the latest version and installed it as a mod.   I' got this in my server.RPT:

Spoiler

13:29:14 File @VoyagerCompass\mod.cpp, line 6: '.logo': Missing ';' at the end of line
13:29:14 File @VoyagerCompass\mod.cpp, line 7: '.logoOver': Missing ';' at the end of line
13:29:14 File @VoyagerCompass\mod.cpp, line 11: '.overviewPicture': Missing ';' at the end of line

so I added the semicolons but and my server won't unlock once it starts.  But I'd much rather run it as a script instead of mod but didn't see a download for a script version.  Where did you get it?  

Share this post


Link to post
Share on other sites
  • 0
On 25.1.2018 at 10:16 AM, ~EL BARTO~ said:

@aussie battlerHow can i open the settings for the compass app? I can open the compass over the xm8 but i cant close the compass over the xm8 and i dont know opening the settings u displayed in ur git hub...thx for help :rock:

Bump*

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.