We need to use local storage when testing our works.  To use local storage, perform the following steps:

1 – Install Azure Storage Emulator and put the installation path in the Path environment.

2 – We have the following Apps: Server, Website, WebAPI, the Bootstrapper, the GAME, and other tools.

3 – To test something on the Web API, run it in Visual Studio and it will work in local storage automatically (if you test by Swagger, Fiddler, Postman …・etc.)

4 – To test the Website, make sure that you have a record in the Player table and UserIdToPlayerId table. If you need to be an Admin, ask the Project Leader.

Login to the game by any login Provider to register yourself.  If you run from the website the data will appear to come from Production Storage.  To change that, run the webapi locally from Visual Studio and make the website listen to it.
– To can make the website listen to the Local webapi:

From  app settings in Web.Config file  change the value of Key WebApiUrl  to Local url.

5 – To test the Server, run the Bootstrapper on your physical device.  This will ensure you are registering your server id to local storage. in BallisticServer Table.

Note: To make Server Authenticated  to the web api, use public & private Keys by requesting  POST method of SecurityApiController, store the returns Keys in app.config file.
– To run the Bootstrapper, first make BallisticAgentServer.exe listen to the WebAPI that is running locally (by change the value of the key “SyncAPIBaseAddress” in App.Config file to API local url), build changes
– Second, install Bootstrapper service in Windows,  from “InstallBootsrapper.ps1” (just run this file by Powershell as Administrator ). Note: if error raised  solve it by that
– after making sure it is running as a background app, make sure from running the Api locally as well.

Third, start Photon as an application and it will run locally.
Note: check the log as needed (we have 3 logs first one for the Server in C:\Temp and the 2nd one for the photon itself  you will find it in the Photon bits “C:\Photon\bin_Win64\log”, the last one for the bootstrapper this will be inside the bin folder of your ballistic server agent project )
6- you don’t need to run the server with Bootstrapper all the time.    as long as the server node has record in “BallisticServer” table, you can run any photon in your device  in local storage .
7 – If you want to make the local server work on Staging or Production, change the connection string type (from the dashboard web page) for your server Id / server Name.  If you are not an Admin, you may ask an Admin to do this for you.

Comments

comments

Published
Views 441

Comments (1)

  • Lotus
    August 30, 2018 at 4:41 am
    Explain in #4 how to make the website listen to the local API. Give more detailed steps for #5.

Comments are closed.

War to the Core

Recent Comments

Latest Updates

  • Solo missions

    Solo missions

    Hey guys, here are the specifics of the first two solo missions, those are sketches of the first two missions. First mission: A harvester is placed near the ship, generating supply caches. The player collects energy caches and escapes a ring of mines. No supply links allowed. The sensor component is introduced by one of […]Read More »
  • We made it to the Top 100!

    We made it to the Top 100!

    We are stoked that we managed to land on IndieDB’s Indie of the Year’s Top 100 list! We are also the only MOBA that made it to the list! The support we got from the community was overwhelming, and we would like to thank each and every person that helped us get this far. Whether […]Read More »
  • Full Campaign Series, Version 3

    Full Campaign Series, Version 3

    Characters: Daniel Blaze. Protagonist, player-character. Headstrong and rebellious. Ambiguous loyalty to the Shepherd Coalition. Joseph Blaze. Father of Daniel Blaze. Commander of the Leviathan mothership until executed for treason by the Shepherd Coalition. Sylvia. AI assistant. Provides intel, advice, mission objectives. Captain Zhukov. Cyborg commander assigned to hunt down player during the first several missions. […]Read More »
  • Story: Episode 1, Version 2

    Story: Episode 1, Version 2

    The Blaze family had long been controversial. They supported the Shepherds, but continually frustrated the Orthodox elements of their faction. Joseph Blaze was especially known for his tolerance of the weakling families that used genetic engineering to alleviate the sicknesses that exposure to the Earth’s surface had inflicted on them. Such tensions between orthodoxy and […]Read More »
  • Story: Episode 1

    Story: Episode 1

    Location: The Pole Base. When Daniel Blaze passed his final test and became the primary candidate to pilot the Leviathan, the Shepherds’ newest ship, he caused a quite a stir. Not because he’s the youngest member of the Pole fleet to be nominated for admiralship, the faction had already made peace with this as a […]Read More »
Skip to toolbar