Giter Site home page Giter Site logo

Comments (12)

asusralis avatar asusralis commented on May 27, 2024

I tried it in a command prompt and got this:

Asset details must contain mount path and local file path for each asset.
Warning: SessionCookie is not specified.
The specified settings are invalid. Please correct them and re-run the agent.

If I understand correctly if RunContainer is false then you wouldn't need these settings, right? I don't see them mentioned in the webpage I'm following until later on.

Edit:

Keeping RunContainer to false, I did what it said and added the following to the settings:

"MountPath": "C:\Users\XXX\Desktop\playfab_server"
"LocalFilePath": "C:\Users\XXX\Desktop\playfab_server\Release.rar"
"StartGameCommand": "C:\Users\XXX\Desktop\playfab_server\XXX.exe"

I get this:
PS C:\Users\XXX\Desktop\playfabmock> Start-Process MockVmAgent.exe
Start-Process : This command cannot be run due to the error: The specified executable is not a valid application for
this OS platform..
I'm on Windows 10 1903

from localmultiplayeragent.

ravarnamsft avatar ravarnamsft commented on May 27, 2024

@asusralis , for windows we only support ".zip" files. So, you will have to compress your asset as a Release.zip file. In Windows, you can do this by selecting all the files you want to compress and right click -> Send to archive-> Release.zip. Make sure that you select the files directly (rather than a folder) since otherwise it creates an additional directory when unzipped and can cause errors.

Also, in the folder where you have unzipped the MockAgent executable, in PowerShell (as Administrator), you can just do .\MockVmAgent.exe (instead of Start-Process) and that should have the same behavior as running on cmd.

from localmultiplayeragent.

asusralis avatar asusralis commented on May 27, 2024

But I shouldn't have to do this, right? I have RunContainer to false. This is what I'm confused about :D

from localmultiplayeragent.

ravarnamsft avatar ravarnamsft commented on May 27, 2024

Runcontainer only dictates whether the server is run as process or as a container. The assets would have to be a zip file in either case. If RunContainer is false, the agent extracts the zip file and runs the executable directly as a process. If RunContainer is true,the agent extracts the zip file, mounts the extracted folder as a volume inside a container and runs the executable within the container. In either case, the agent has to first extract the contents of the asset file (which has to be a zip file). Does that help?

from localmultiplayeragent.

asusralis avatar asusralis commented on May 27, 2024

But that's not what it says in the webpage I linked. It says you can just set the output folder and it will start listening - you don't have to touch any other setting. Is it just really out of date or something?

It would be great if it worked without needing the zip because then I don't have to do that every time I want to test.

from localmultiplayeragent.

ravarnamsft avatar ravarnamsft commented on May 27, 2024

All the new documentation is at https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/locally-debugging-game-servers-and-integration-with-playfab

I think searches sometimes still lead to the old documentation website. For multiplayer stuff, you can use aka.ms/playfabmultiplayer as a shorturl and then click on "Servers"

from localmultiplayeragent.

asusralis avatar asusralis commented on May 27, 2024

Oh, I see. Are most the pages on the PlayFab website out of date? They mentioned 2.0 servers a lot so I assumed they were up to date.

Thanks, I'll put in the other parameters and try it out.

from localmultiplayeragent.

ravarnamsft avatar ravarnamsft commented on May 27, 2024

I would say most of the content on the old site is out of date. We are slowly setting up redirections on a content by content basis to the new website. The new website was created after Servers 2.0 was released, so the old website still has content for it, but it is outdated.

from localmultiplayeragent.

asusralis avatar asusralis commented on May 27, 2024

After setting up all the settings it seems that it is still telling me:

Program 'MockVmAgent.exe' failed to run: The specified executable is not a valid application for this OS platform.At
line:1 char:1

  • .\MockVmAgent.exe

At line:1 char:1

  • .\MockVmAgent.exe
  •   + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
      + FullyQualifiedErrorId : NativeCommandFailed
    
    

When running from cmd a windows prompt says: This app can't run on your PC. Then "Access is denied." is printed in the cmd. I'm running both in admin.

"OutputFolder": "C:\Users\XXX\Desktop\playfab_output"
"MountPath": "C:\Users\XXX\Desktop\playfab_server"
"LocalFilePath": "C:\Users\XXX\Desktop\Release.zip"
"StartGameCommand": "C:\Users\XXX\Desktop\playfab_server\XXX.exe"

from localmultiplayeragent.

dgkanatsios avatar dgkanatsios commented on May 27, 2024

Is there a chance that you need to unblock the .exe file? Here are some (old but still relevant) instructions on how to do that.

from localmultiplayeragent.

asusralis avatar asusralis commented on May 27, 2024

Wow, that was actually the problem. The folder did not have that button, but the zip file did. I clicked it, extracted it, and it worked. Thanks!

from localmultiplayeragent.

dgkanatsios avatar dgkanatsios commented on May 27, 2024

Great, let us know if you have any more questions!

from localmultiplayeragent.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.