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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Dedicated Server session

Hello everyone,

I've a big LNK2019 error wich make me crazy...

 Error    4    error LNK2019: unresolved external symbol "public: void __cdecl FVariantData::Empty(void)" (?Empty@FVariantData@@QEAAXXZ) referenced in function "public: __cdecl FVariantData::~FVariantData(void)" (??1FVariantData@@QEAA@XZ)              Module.Engine.5_of_30.cpp.obj

I'm trying to make my dedicated server able to start session for player, as instancing a new zone for a specific player / group of player.

I include those Module

 PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "OnlineSubsystemUtils", "OnlineSubsystemNull", "Sockets", "Networking", "Slate", "SlateCore", "MoviePlayer" });
 PrivateDependencyModuleNames.AddRange(new string[] {});        DynamicallyLoadedModuleNames.Add("OnlineSubsystemNull");

this is my fonction at the moment:

 void AGameSession::RegisterServer()
 {
     UWorld* World = GetWorld();
     check(World);
     IOnlineSessionPtr SessionInt = Online::GetSessionInterface(World);
     if (SessionInt.IsValid())
     {
         FOnlineSessionSettings SessionSettings; //this is the line where it make error if i remove it, it compile
         return;
     }
     return;
 }

Any help would be greatly appreciate.

Best regards.

Product Version: UE 4.8
Tags:
more ▼

asked Aug 11 '15 at 05:43 PM in C++ Programming

avatar image

Atidote
11 2 3 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Solved, i made a inheritance and a override of the AGameSession and no more error.

By the way if you have any idea about this:

https://forums.unrealengine.com/showthread.php?79929-Network-Session-and-Dedicated-Server

Thank you :).

more ▼

answered Aug 12 '15 at 01:59 AM

avatar image

Atidote
11 2 3 6

avatar image Sarceus Dec 06 '15 at 09:27 PM

Hi, how did you do the inheritance and override?

avatar image Podgyhodgy Apr 28 '19 at 02:56 PM

@Sarceus, If you are still interested: Basically inhertance means create your own GameSession class. Override means that because the RegisterServer function is virtual you can put your own RegisterServer function in your new class that will override the parent (base) class. Anyway, this is for anyone who ends up here like I did seeking to fumble their way to an understanding of unreal.

I wrote a much longer answer with more details but it was too long! If you have any good links to more information on the ins and outs of dedicated server creation I would be interested. cheers Podge.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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