x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[4.11] IOnlineLeaderboardsPtr Error

Trying to modify stat values on Steam using the OnlineLeaderboards interface.

 IOnlineLeaderboardsPtr myBoard = IOnlineSubsystem::Get()->GetLeaderboardsInterface();

When I try to make a call to myBoard-> I get the following error:

 Error: Pointer to incomplete class type is not allowed

Is there a known issue with the OnlineLeaderboards interface? If not, what am I doing wrong?

Product Version: UE Github Master branch
Tags:
more ▼

asked Feb 05 '16 at 09:23 PM in C++ Programming

avatar image

MajinSephiroth
1.2k 31 8 32

avatar image Maide Feb 06 '16 at 07:23 PM

Make sure you've included the online headers wherever you're using the online interfaces.

You can do this by adding:

 #include "Online.h"

in your project's main header, or in specific files that use online features.

avatar image MajinSephiroth Feb 06 '16 at 10:03 PM

Hey Ian, thanks for the reply, sadly that's not the fix.

avatar image Maide Feb 07 '16 at 07:40 AM

Was there no effect, or did you get a different error? Can you post a complete log of your compile error? Have you used any other OnlineSubsystem interface in your code?

avatar image MajinSephiroth Feb 07 '16 at 04:33 PM
  • There was no effect.

  • Intellisense is the one giving me the error, not the compiler

  • I have used: FriendsInterface, ExternalUIInterface, IdentityInterface, SessionInterface and AchievementsInterface

Intellisense worked just fine on all those interfaces, but is giving me the error I mentioned on the LeaderboardInterface.

The line IOnlineLeaderboardsPtr myBoard = IOnlineSubsystem::Get()->GetLeaderboardsInterface(); does not give the error, it's myBoard-> that does. Sorry if I was not clear about that.

avatar image MajinSephiroth Feb 16 '16 at 08:08 PM

Still looking for insight on this

avatar image haimat Jun 17 '16 at 11:17 PM

I have exactly the same issue with 4.12.
Any news on this?

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question