Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by GraySeedGames · Jun 16, 2021 at 02:01 AM · Custom Game Serversmultiplayerunreal

LocalVMAgent not working while running container mode for UE4 server build

My UE4 game server EXE file works fine while using the non-container mode of the VM agent. but when I run my game server using container mode VM agent stock in this stage :


everything works fine on non-container mode.

screenshot-2021-06-14-161649.png (78.3 kB)
Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by GraySeedGames · Jun 25, 2021 at 09:16 PM

All fixed. my server now running in container mode. thanks to all Playfab community and thank you, Rick. the last issue was my path to EXE was wrong. now I want to explain some other things for developers.

make sure you don't miss DLL files and your DLL files are loaded correctly what I mean is when you run "Listalldll" you should see the DLL files are loading from your local binaries folder of your game not the System32 folder of your windows.

I followed another thread and copied a line of code that supposed to add the D3DCompiler DLL file but that was wrong and I wonder how ue4 added that DLL file to my binaries folder so for D3D Compiler use :

 RuntimeDependencies.Add("$(TargetOutputDir)/D3DCompiler_43.dll", "C:/Windows/System32/D3DCompiler_43.dll", StagedFileType.SystemNonUFS);

and another thing was the plugins. I added a blacklist plugin in "Myserver.build.cs" file :

DisablePlugins.Add("WMFMediaPlayer");
DisablePlugins.Add("AsyncLoadingScreen"); //if you are using this plugin
DisablePlugins.Add("WindowsMoviePlayer");
DisablePlugins.Add("MediaFoundationMediaPlayer");

and the last thing :

you must give the path to your EXE file in the binaries folder, not the root EXE file

eg: C:\Assets\YourGame\Binaries\Win64\YourGameServer.exe

I hope other developers do not dig as much as I did for this :)

Comment
Rick Chen
DevDan

People who like this

2 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DevDan · Sep 28, 2021 at 07:19 PM 0
Share

Thank you for leaving your answer. I've spent hours trying to get my server to work, and this solution fixed it for me. Though I think you miss typed when you said to disable the plugins in the Build.cs file. You do that in the YourProjectNameServer.Target.cs file. At least that is how I did it.

avatar image

Answer by Rick Chen · Jun 16, 2021 at 08:17 AM

This issue indicates that the VM agent cannot detect the heatbeat from your server EXE. It could be due to incorrectly configured Game port. Please check if the game port in your server EXE matches the game port in the MultiplayerSettings.json.

Comment

People who like this

0 Show 6 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image GraySeedGames · Jun 16, 2021 at 08:32 AM 0
Share

Thanks for the reply, Yes I think I didn't config my game server to listen to the given Playfab's port name.I will fix this and update this thread.

avatar image GraySeedGames · Jun 17, 2021 at 09:56 PM 0
Share

I fixed this issue but now my dock exits with code 1. I implemented almost every DLL that ue4 needs. Please help . i don't know whats wrong.

0011.png (341.9 kB)
avatar image Rick Chen ♦ GraySeedGames · Jun 18, 2021 at 05:46 AM 0
Share

Could you please describe how your UE4 game server is built in detail? Please also check this thread: https://community.playfab.com/questions/46217/cant-run-server-withing-a-container-exited-with-ex.html and see if it helps.

avatar image GraySeedGames · Jun 18, 2021 at 07:47 PM 0
Share

UE4 Server has separate modules to configure. I configured my server module to connect to GSDK for heartbeats. after some try and error, I understand that I miss many DLL files for my server build, so I tell ue4 to add some dynamic and static DLL files to my game server binaries folder. I test these in "process" mode and all worked together and fine, but it's not working in container mode. after all of these, I used the "list all DLL" application to see what DLL I'm missing in the Playfab docker image and then imported some of DLL files that don't exist in docker. again nothing happened. for my next stage, I want to add all of the DLL files listed in the "list all DLL "to see what is wrong. I know this is crazy but I have to . after I do this I will update this thread. BTW my sever build is 64bit. should I add 32bit DLL files ?

avatar image Rick Chen ♦ GraySeedGames · Jun 22, 2021 at 02:38 AM 0
Share

Please make sure that these actions are taken:

  1. Include all DLLs with these steps that are not in docker.
  2. Place the DLLs in the same folder as your executable.
  3. Turn off the Windows Media Player plugin in UE4, as it may not be compatible with the PlayFab.
  4. make sure your UE4 server is source build. Please refer to Setting Up Dedicated Servers

I am looking forward to your update.

avatar image GraySeedGames Rick Chen ♦ · Jun 25, 2021 at 08:11 PM 0
Share

I fixed the issue, that was a plugin that used a windows media player. now the problem is in my local system docker works using container but when I upload on Playfab its state is pending heartbeat and stays.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    5 People are following this question.

    avatar image avatar image avatar image avatar image avatar image

    Related Questions

    How do I get The team ID of a player in Unreal Blueprints after calling GetMatch? 1 Answer

    GSDK and dedicated Unreal Server not launching both processes in container 6 Answers

    How should I pass Playfab's given port to UE4 game server 1 Answer

    UE4 Dedicated server state bouncing between Initializing and StandingBy 1 Answer

    Problems implementing GSDK with Unreal Engine 4 0 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges