FICTURE7 / uberstrok

An effort to write an UberStrike server emulator.
MIT License
12 stars 10 forks source link

How to deploy #9

Open GithubAccount453 opened 6 years ago

GithubAccount453 commented 6 years ago

Any help would be greatly appreciated thanks.

FICTURE7 commented 6 years ago

Holy shit, people actually found this repo?

Anyways, Its been a while and I kinda forgot how to set all this up, but this should be most of it.

Requirements

Compiling & Server Setup

NOTE: When I am referring to root directory, I mean the directory where UberStrok.sln is found.

  1. Clone the repository using a recursive clone to clone dnlib needed for the patcher. In cmd or bash:

    $ git clone --recurse-submodules https://github.com/FICTURE7/uberstrok.git
  2. Install/Extract the Photon OnPremise SDK in the root directory in a directory called photon. You will get a root directory with the following structure

    ./.git
    ./.gitignore
    ./.gitmodules
    ./docs
    ./libs
    ./LICENSE
    ./packages
    ./photon                         <- the `photon` directory which you should create
    ./PhotonServer.config
    ./README.md
    ./scripts
    ./src
    ./tests
    ./UberStrok.sln

    And your photon directory should have the following structure.

    ./build
    ./deploy
    ./doc
    ./lib
    ./src-server
  3. Copy ./PhotonServer.config in the root directory to ./photon/deploy/bin_Win32/PhotonServer.config.

  4. Compile the solution UberStrok.sln using Visual Studio. You will get a lot of errors from the comm server since, I have not updated it to use the new abstractions. But the game server will compile.

  5. Run ./photon/deploy/bin_Win32/PhotonControl.exe to launch Photon, then you should see UberStrok in Photon instances when you click on Photon Control in the icon tray. Click on Start as application to start the game server.

  6. Run ./src/UberStrok.WebServices/bin/Debug/UberStrok.WebServices.exe to start the web services.

That should be it for the servers.

Client Setup

  1. Patch Assembly-CSharp.dll and Assembly-CSharp-firstpass.dll by running ./src/UberStrok.Patcher/bin/Debug/UberStrok.Patcher.exe. It will search your steam library and try to find the location of the .dlls to patch.

  2. A new directory named ./patched should be created in the same location where you ran UberStrok.Patcher.exe. It should contain the patched .dlls, copy those to the installation directory of UberStrike at /UberStrike/UberStrike_Data/Managed/.

  3. Create a new file named .uberstrok (without any extensions) in the installation directory of UberStrike at ./UberStrike/UberStrike_Data/.

  4. Type in the URL of the web services which should be at http://localhost/2.0/ if you are connecting to your own server, in the .uberstrok file. NOTE: The web services runs on HTTP and not HTTPS.

I think that should be it.

GithubAccount453 commented 6 years ago

Hi Thanks for the help :) I am having a error with the photon server. this is the photon log file. Photon-UberStrok-20180610.log

FICTURE7 commented 6 years ago

It seems that you didn't set up the directory structure as above since it can't find the game server .dlls.

Can't find UberStrok.Realtime.Server.Game.dll in  or C:\photon\deploy\UberStrok.Realtime.Server.Game\bin

You should install photon in the same folder as the source code, where UberStrok.sln is found. Also Python 3 should be in your PATH environment variable as well.