Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    234

    Actor Framework Login Client

    Ok so when I run the Client from inside Unity everything works as it should but when I do a build and run it from the command line I get nothing none of the dialogs show up in the exe and in the logs don't show any connection.
    The only way to fail is to give up or die...

  2. #2
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    234
    I have found in the output_log this error

    NullReferenceException: Object reference not set to an instance of an object
    at Assets.Code.GameContext.Awake () [0x00000] in <filename unknown>:0

    (Filename: Line: -1)
    The only way to fail is to give up or die...

  3. #3
    Join Date
    Aug 2010
    Posts
    127
    Is the client you are building from unity set as a development build?

  4. #4
    Join Date
    Feb 2014
    Posts
    246
    ... or are you actually building the command line test client which was used to test the server connection.

    Keep in mind whichever video you are watching was probably seen by me at least a year ago. Memory is foggy....
    Plus I have rebuilt my computer and can't do much in vs at the moment.
    Last edited by oldngrey; 01-20-2017 at 06:28 AM.

  5. #5
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    234
    Nope I did not select development build in the build settings.
    The only way to fail is to give up or die...

  6. #6
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    234
    Yes this is to test both the UI and the server connection.
    The only way to fail is to give up or die...

  7. #7
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    234
    Update on what I have found so far, first the Resources Config.json file was not being generated and thus the "NullReferenceException: Object reference not set to an instance of an object at Assets.Code.GameContext.Awake () [0x00000] in <filename unknown>:0" error.

    So the next thing I did was a Developer Prompt> msbuild MMOFrameworkBuild.proj /p:env=dev /t:deployclient
    And got three build errors that also added to the Config.json not getting made.

    GameLobbyPlayerDetails.cs(87,20): error CS1056: Unexpected character '$'
    [C:\MMOFramework.Base.Components\MMOFramework.Base. Components.csproj]

    LobbyDetails.cs(103,20): error CS1056: Unexpected character '$'
    [C:\MMOFramework.Base.Components\MMOFramework.Base. Components.csproj]

    Systems.Master\LoginSystem.cs(62,20): error CS1056: Unexpected character '$'
    [C:\MMOFramework.Base.Components\MMOFramework.Base. Components.csproj]

    You can see I am testing the formatting syntax this error is due to msbuild and the new C# 6

    namespace MMOFramework.Base.Components.Systems.Master.LoginS ystem.cs
    public override string ToString()
    {
    //return $"(player: {Id}, {Username})";
    return ($"(player: {Id}, {Username}");
    }
    namespace MMOFramework.Base.Components.LobbyDetails.cs
    public override string ToString()
    {
    //($"Method {Id}, {Name} ");
    //return $"(lobby: {Id}, {Name}, (player-count: {PlayerCount}))";
    return ($"lobby: {Id}, {Name}, (player-count: {PlayerCount})");
    }
    namespace MMOFramework.Base.Components.GameLobbyPlayerDetail s.cs
    public override string ToString()
    {
    //return $"(player {Id}, {Name}, {Team}, {Hero})";
    return ($"player {Id}, {Name}, {Team}, {Hero}");
    }

    The next thing I did was to just write the Config.json file to see if the standalone Client would run and generate the UI, well it does but only when I check the Developer Build in the Unity Build settings.
    The only way to fail is to give up or die...

  8. #8
    Join Date
    Feb 2014
    Posts
    246
    From memory the thing to check repeatedly is the BuzzMMOBuild.proj file.
    There are also a couple of other .config files in scattered in the projects for both debug and release builds.
    Glad you are making progress.

    I rebuilt my computer and am thinking seriously about redoing the entire series again this time with up-to-date packages and addins. Maybe I will learn something this time. In the meantime I can only offer the vaguest help.

    The thing is, I feel this project is almost close enough to be a complete infrastructure for a game. I say almost because when you get to the end you realise how much more there is to do.

    As an example if I was really confident in converting NHibernate to EF6 I would include Nelson's SimpleBlog project. Maybe when I get half a working brain.
    Last edited by oldngrey; 01-21-2017 at 07:02 PM.

  9. #9
    Join Date
    Nov 2006
    Location
    Vancouver, WA
    Posts
    234
    Thank you, making progress is slow and painful but it is where I have learned the most.

    Glad to hear that you have basically a new computer and restarting the series with the latest tools should be fun, be careful with NuGet packages I had issues in that area.

    I agree on the state of the project it is very close to a complete infrastructure and it is sad that Nelson will not finish but I am hopeful that just maybe am385 would be able to see it through.
    Although I will continue and pray that I understand enough about Actors to be able to add more and build out the class.
    The only way to fail is to give up or die...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •