aboutsummaryrefslogtreecommitdiff
path: root/docs/modding-and-development/development
diff options
context:
space:
mode:
Diffstat (limited to 'docs/modding-and-development/development')
-rw-r--r--docs/modding-and-development/development/README.md13
-rw-r--r--docs/modding-and-development/development/contributing-code-to-northstar.md80
-rw-r--r--docs/modding-and-development/development/northstarlauncher.md7
-rw-r--r--docs/modding-and-development/development/northstarmasterserver/README.md15
-rw-r--r--docs/modding-and-development/development/northstarmasterserver/deploy.md27
-rw-r--r--docs/modding-and-development/development/releases.md69
-rw-r--r--docs/modding-and-development/development/repositories/README.md28
-rw-r--r--docs/modding-and-development/development/repositories/atlas.md7
-rw-r--r--docs/modding-and-development/development/repositories/northstarmods.md7
-rw-r--r--docs/modding-and-development/development/reviewing.md69
10 files changed, 0 insertions, 322 deletions
diff --git a/docs/modding-and-development/development/README.md b/docs/modding-and-development/development/README.md
deleted file mode 100644
index 56acd02..0000000
--- a/docs/modding-and-development/development/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-description: >-
- Instructions on how to make changes to Northstar source code, build, and run
- it.
----
-
-# Development
-
-Check the following page for information about different code repositories Northstar uses
-
-{% content-ref url="repositories/" %}
-[repositories](repositories/)
-{% endcontent-ref %}
diff --git a/docs/modding-and-development/development/contributing-code-to-northstar.md b/docs/modding-and-development/development/contributing-code-to-northstar.md
deleted file mode 100644
index 98cf770..0000000
--- a/docs/modding-and-development/development/contributing-code-to-northstar.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-description: Useful information when contributing to Northstar
----
-
-# Contributing code to Northstar
-
-{% hint style="info" %}
-WIP
-{% endhint %}
-
-## Guidelines
-
-For a pull request to be merged, it has to be reviewed first. In order to make the review process as smooth as possible and therefore ensuring quick merging of your pull request, keep the following things in mind:
-
-- If the changes you made can be summarised in a screenshot or screenrecording, make sure to add one to quickly give a reviewer an idea what your pull request is about.
-- Please use a sensible title for your pull request. We squash commits when merging and as such your pull request title will be used as the commit message. We can of course edit it before merging but using a sensible title for your PR both makes it easier to understand what it is about and saves us from having to edit the title before merging.
-- Please describe the changes you made. The easier it is to understand what you changed, the higher the chances of your PR being merged (in a timely manner).
-- If you made multiple independent changes, please make a new PR for each one. This prevents cases where your PR is being blocked from merging by a bug one of the changes you made.
-
-## Tips and tricks
-
-An example of a well-formatted PR description:
-
-{% embed url="https://github.com/R2Northstar/NorthstarMods/pull/392" %}
-
-To get the cropped GIFs of a screenrecording:
-
-1. Use your screenrecording tool of choice (OBS/ShadowPlay/...) to record the clip
-2. Cut it down to just the moment you want to show using [Avidemux](http://www.avidemux.org/), [VLC](https://www.videolan.org/vlc/), etc.
-3. Use a site like [https://ezgif.com/video-to-gif](https://ezgif.com/video-to-gif) for cropping and turning it into a GIF \
- (The linked site has not been vetted, use at own risk)
-4. Upload GIF to GitHub pull request description by just pasting it at the appropriate location.
-
-### Avoiding "PR hell"
-
-_"PR hell"_ is what contributors refer to when a pull request is stuck as pending without any indication for progress.
-
-There can be a variety reasons for this. Whether it's because the pull request was overlooked, the changes are too big that anyone actually dares looking at it, or simply every reviewer is too busy at the moment, not getting a response on something you put a lot of work into is a terrible experience.
-
-While we are continuously working on improving the experience and recruiting more reviewers, here's a few tips to avoid _"PR hell"_.
-
-**Make sure your PR is easy to review:**
-
-If you are submitting a new feature, highlight it with screenshots, screenrecordings, GIFs etc. If you can make your change look interesting, it highly increases the chance of someone becoming interested in getting it merged.
-
-If you are submitting a bug fix, make sure to mention the steps to reproduce the bug and that the same steps no longer cause the bug on your fixed version.
-
-Finally, smaller code changes are easier to review than bigger ones, which brings us to:
-
-**Keep PRs concise and focused on a specific issue:**
-
-While working on code to create some feature or fix some issue you might come across some other things you also want to change. While this is fine, it's highly recommended to split out these changes into separate PRs.
-
-Having lots of small PRs is way easier to review and work with than one big PR. Further if there's an issue with one of the changes it does not block the whole big PR but just one of the small ones.
-
-Smaller changes are also way easier to review and test.
-
-If you're working on a big feature that introduces lots of changes (let's say you implemented an entire party system into Northstar) a recommended approach is to PR your big change so that feature can be easily observed and interest generated. \
-Then ask which parts should be turned into separate pull requests, PR those, and link them with your big PR. As the the smaller PRs are merged, the diff of the big PR should shrink overtime until concise enough to be merged all at once.
-
-Just make sure to resolve merge conflicts when the smaller PRs are merged ;)
-
-**Ping previous author:**
-
-Especially when you fix a bug in existing code, you usually modify code that was written by someone else. In that case the best person to review that code is the original author. So `@` ping them in the pull request!
-
-You can use tools like [`git blame`](https://www.git-scm.com/docs/git-blame) (on the web via GitHub, in vscode via gitlens, via command-line, ...) to see who previously wrote the code.
-
-
-**Ping for updates:**
-
-Sometimes it can happen that a pull request simply gets lost in the sea of other pull requests. If you haven't received a response in a while on a pull request that has already received some responses, just leave a comment on it (even if it's just "bump"). This will send a notification to everyone that responded previously in the PR and likely cause them to respond again.
-
-Similarly, you can also check merged pull requests and see who reviewed/merged them and ping that person individually.
-
-**If all else fails:**
-
-If despite all your attempts you are still not seeing responses, your last resort is always to ask around in `#development` on the Northstar Discord. We really do not want to see anyone become frustrated with the lack of responses on their pull request and close it in frustration. As such please reach out earlier rather than later.
-
-We will try our best to look at it <3
diff --git a/docs/modding-and-development/development/northstarlauncher.md b/docs/modding-and-development/development/northstarlauncher.md
deleted file mode 100644
index 89aeca4..0000000
--- a/docs/modding-and-development/development/northstarlauncher.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# NorthstarLauncher
-
-### Setup
-
-Build instructions for the launcher can be found here:
-
-{% embed url="https://github.com/R2Northstar/NorthstarLauncher/blob/main/BUILD.md" %}
diff --git a/docs/modding-and-development/development/northstarmasterserver/README.md b/docs/modding-and-development/development/northstarmasterserver/README.md
deleted file mode 100644
index e40cef5..0000000
--- a/docs/modding-and-development/development/northstarmasterserver/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# NorthstarMasterServer
-
-{% hint style="warning" %}
-The old NodeJS master server has been replaced in favour of the Go rewrite called Atlas.
-{% endhint %}
-
-## Introduction
-
-The master server is responsible for centralizing game servers created by players, it also verifies that connecting players own an Origin account with Titanfall 2.
-
-There's no need to host your own master server to play games with other people, you can use [direct connect](../../../using-northstar/direct-connect.md) or just setup a [normal server](../../../hosting-a-server-with-northstar/basic-listen-server.md) that announces itself to `northstar.tf`. This tutorial is aimed for those who want to contribute improvements to the code or test their own changes to the project.
-
-## Contents
-
-* [Deploy](deploy.md)
diff --git a/docs/modding-and-development/development/northstarmasterserver/deploy.md b/docs/modding-and-development/development/northstarmasterserver/deploy.md
deleted file mode 100644
index c384730..0000000
--- a/docs/modding-and-development/development/northstarmasterserver/deploy.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# Deploy
-
-## Development
-
-A Development Master Server uses http requests, it should be used for development purposes on your local machine.
-
-### Installation steps
-
-1. Clone [NorthstarMasterServer](https://github.com/R2Northstar/NorthstarMasterServer).
-2. Copy the default [dev.env](https://github.com/R2Northstar/NorthstarMasterServer/blob/main/dev.env) to `.env` replace the ip with `127.0.0.1`.
-3. Run `npm install` && `npm run watch`.
-
-Your master server is now running, to connect to it you need to change some configuration files.
-
-Northstar default masterserver is https://northstar.tf, to point to a new location you need to modify this URL in the `autoexec_ns_server.cfg` and `autoexec_ns_client.cfg` config files.
-
-### Enabling HTTPS
-
-HTTPS should be used if you plan for other people to use your master server. It can be enabled pretty easy with [Caddy](https://caddyserver.com/). Download a Caddy binary and create a `Caddyfile` with the following content:
-
-```
-{$SHORTDOMAIN:localhost} {
- reverse_proxy http://127.0.0.1:8080
-}
-```
-
-After configuring your DNS domain you can run it with `SHORTDOMAIN=example.com caddy run`. Caddy will automatically generate and maintain your certificates for you, check its documentation for more info: https://caddyserver.com/docs/
diff --git a/docs/modding-and-development/development/releases.md b/docs/modding-and-development/development/releases.md
deleted file mode 100644
index 44f502a..0000000
--- a/docs/modding-and-development/development/releases.md
+++ /dev/null
@@ -1,69 +0,0 @@
----
-description: >-
- Information intended mostly for internal use on what to consider when making
- new releases
----
-
-# Releases
-
-{% hint style="info" %}
-WIP
-{% endhint %}
-
-## General
-
-CI on Northstar release repo builds versioned release if tag is pushed. It checks Launcher and Mods for same tag and builds those versions. \
-Therefore make sure to push tags of Mods and Launcher first.
-
-CI also pushes release directly to Thunderstore as a mod called [`Northstar`](https://northstar.thunderstore.io/package/northstar/Northstar/). \
-If it's a release-candidate with the `-rcX` suffix, it will instead get pushed to Thunderstore as [`NorthstarReleaseCandidate`](https://northstar.thunderstore.io/package/northstar/NorthstarReleaseCandidate/).
-
-### Git commands for tags:
-
-**For release candidates:**
-
-```
-git tag vX.Y.Z-rcN
-git push origin vX.Y.Z-rcN
-```
-
-Example:
-
-```
-git tag v1.8.0-rc1
-git push origin v1.8.0-rc1
-```
-
-**For actual releases**
-
-```
-git tag vX.Y.Z
-git push origin vX.Y.Z
-```
-
-Example:
-
-```
-git tag v1.8.0
-git push origin v1.8.0
-```
-
-## Version numbering
-
-In general, Northstar tries to follow [semantic versioning](https://semver.org/). This means version numbers are `MAJOR.MINOR.PATCH`, where
-
-- `MAJOR` is updated for breaking changes
-- `MINOR` is updated for changes that are backwards compatible
-- `PATCH` is updated for fixes that are backwards compatible
-
-Semantic versioning is however not followed exactly. For example, to ship out smaller features faster they have been included in patch releases. Similarly, there have been smaller breaking changes, yet at the time of writing the major version number so far has never been updated.
-
-The reason for this is mostly due to player expectations. Players expect the change from `1.0` to `2.0` to be big. As such, the plan for the near future is to update the major version, once we have a bigger feature ready to release that brings us closer to vanilla in terms of missing features (e.g. _Frontier Defense_).
-
-Once `2.0` has been released, expectations for `3.0` tend to be lower as the number is no longer "doubled". Past `3.0`, proper semver can probably be employed without hampering player expectations.
-
-
-## Best practices:
-
-- Make at least one release candidate and test it before actual release.
-- Release should also only ever be latest release candidate but tagged as release to avoid introducing new bugs.
diff --git a/docs/modding-and-development/development/repositories/README.md b/docs/modding-and-development/development/repositories/README.md
deleted file mode 100644
index bce048e..0000000
--- a/docs/modding-and-development/development/repositories/README.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Repositories
-
-Northstar is split over multiple git repositories that fulfill different functions.
-
-* [Atlas](https://github.com/R2Northstar/Atlas):\
- The next-gen master server for Northstar
-* [Northstar](https://github.com/R2Northstar/Northstar):\
- Contains compiled and packaged releases
-* [NorthstarLauncher](https://github.com/R2Northstar/NorthstarLauncher):\
- Contains the source for the launcher used to modify the Titanfall|2 install to allow mods to be loaded.
-* [NorthstarMods](https://github.com/R2Northstar/NorthstarMods):\
- Contains the standard mods shipped with Northstar to allow joining and hosting custom servers.
-* [NorthstarMasterServer](https://github.com/R2Northstar/NorthstarMasterServer):\
- Contains the source for the old master server used to authenticate clients, display the server browser list, and connect clients to community hosted servers.
-* [NorthstarDiscordRPC](https://github.com/R2Northstar/NorthstarDiscordRPC):\
- Contains plugin to integrate Northstar with Discord's SDK to enable rich presence.
-* [NorthstarNavs](https://github.com/R2Northstar/NorthstarNavs):\
- Contains custom navmesh files to use with TItanfall 2 AI
-* [NorthstarStubs](https://github.com/R2Northstar/NorthstarStubs):\
- Contains D3D11 and GFSDK stubs for the Northstar dedicated server.
-* [NorthstarTF](https://github.com/R2Northstar/NorthstarTF):\
- The Northstar website.
-* [NorthstarWiki](https://github.com/R2Northstar/NorthstarWiki):\
- The repository for this wiki.
-* [ModdingDocs](https://github.com/R2Northstar/ModdingDocs):\
- Contains guides and tutorials on how to mod using Northstar
-
-Check the subpages of this wiki for additional information about some of these repositories.
diff --git a/docs/modding-and-development/development/repositories/atlas.md b/docs/modding-and-development/development/repositories/atlas.md
deleted file mode 100644
index 9f67c75..0000000
--- a/docs/modding-and-development/development/repositories/atlas.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-description: A new Northstar master server written in Go
----
-
-# Atlas
-
-TODO
diff --git a/docs/modding-and-development/development/repositories/northstarmods.md b/docs/modding-and-development/development/repositories/northstarmods.md
deleted file mode 100644
index 1798661..0000000
--- a/docs/modding-and-development/development/repositories/northstarmods.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-description: Core squirrel mods
----
-
-# NorthstarMods
-
-TODO
diff --git a/docs/modding-and-development/development/reviewing.md b/docs/modding-and-development/development/reviewing.md
deleted file mode 100644
index 920df35..0000000
--- a/docs/modding-and-development/development/reviewing.md
+++ /dev/null
@@ -1,69 +0,0 @@
----
-description: >-
- This pages describes how to review PRs to ensure quick and efficient merging.
- It is written for both novices and people with experience with GitHub and code
- review in general.
----
-
-# Reviewing
-
-For new pull requests to be merged into any of the Northstar repos, they need to reviewed to reduce the changes of introducing bugs as well as ensuring that in case of a feature it's something the community actually wants.
-
-### Process
-
-For a review there's two major parts **code review** and **testing**.
-
-It's not necessary to do both when reviewing as long as you mention what you did when leaving the review comment on GitHub.
-
-#### Code review
-
-For code review head to the _"Files changed"_ section of the PR.
-
-![](../../.gitbook/assets/review1.png)
-
-From there you can select the line(s) you want to leave a comment on.
-
-![](../../.gitbook/assets/review2.PNG)
-
-Type in your comment and click on _"Start a review"_.
-
-![](../../.gitbook/assets/review3.png)
-
-Note that this will **NOT** post your comment immediately! Add any remaining comments to other lines of code, then head to the _Finishing up_ section of this wiki page to see how to post your code review.
-
-
-
-#### Testing
-
-For testing a PR, refer to the following page
-
-{% content-ref url="../testing.md" %}
-[testing.md](../testing.md)
-{% endcontent-ref %}
-
-The TL;DR is to test the aspect that has been changed.
-
-#### Finishing up
-
-After you performed the testing and/or code review leave a final comment by clicking on _"Finish your review"_ on the top right of the _"Files changed"_ page of the PR.
-
-![](../../.gitbook/assets/review4.png)
-
-In your final comment make sure to mention what you did, e.g. which aspects of the change you tested for or what you considered during code review (formatting, edge cases, ...). The more detailed this part is the easier it is for other reviewers to tell which aspects they can skip during reviewing to speed up the process.
-
-After leaving your comment, select the type of feedback.
-
-* **Comment**: General remarks, use if neither of the later two applies.
-* **Approve**: You found no issues when looking at the code or during testing.
-* **Request changes**: Either something in the code doesn't look right or you found bugs during testing.
-
-{% hint style="warning" %}
-Approval reviews should **always** contain information about what parts of the code you looked at or tested. Approvals without comment or a single _LGTM_ are not useful and will be dismissed. \
-Some exceptions to this rule are e.g. approving a single line comment typo fix, though even than the review should say something along the lines of "LGTM as it's just single line typo fix in a comment". In a nutshell it should be obvious to a future reader why you approved a PR without the reader having to look at the file diff first.
-
-Contributors with reviewer access may see their role removed should they leave (multiple) empty/_"LGTM"_ reviews.
-
-If you want to "approve" a pull request because you like the feature it implements, please opt for simply giving the PR a "👍" reaction instead.
-{% endhint %}
-
-Finally, click on _"Submit review"_. Your review is now publicly visible, congrats! :D