-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3380 from KBVE/beta
Preparing Release Branch
- Loading branch information
Showing
18 changed files
with
335 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: 'November: 25th' | ||
category: Daily | ||
date: 2024-11-25 12:00:00 | ||
client: Self | ||
unsplash: 1541320779116-ec4a3d4692bc | ||
img: https://images.unsplash.com/photo-1541320779116-ec4a3d4692bc?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85 | ||
description: November 25th. | ||
tags: | ||
- daily | ||
--- | ||
|
||
import { Adsense, Tasks } from '@kbve/astropad'; | ||
|
||
## 2024 | ||
|
||
- 12:29AM | ||
|
||
**VContainers** | ||
|
||
Going to continue learning more about the containers and maybe get the first batch finished. | ||
If we can get the exisiting MM components to load under the VContainer, then it will make extending and gameplay so much easier. | ||
|
||
- 12:32PM | ||
|
||
**Helm** | ||
|
||
Time to work out the helm chart! | ||
We want this helm chart deployment to be easy but also useful, I believe the websockets will be a breeze but the UDP might be an issue. | ||
Thanks to Fudster, we were able to move past my insecurities and resolve the issue. | ||
He is a great leader and knows how to get things done. | ||
|
||
- 04:30PM | ||
|
||
**Unity** | ||
|
||
Updating the unity game and fixing the missing scenes from the game, almost as if ... uhh... I forgot to include the actual game. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>RareIcon</title> | ||
<style> | ||
html, body { | ||
margin: 0; | ||
padding: 0; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
iframe { | ||
border: none; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<iframe src="https://1308198462155653180.discordsays.com/.proxy/nested" scrolling="no"></iframe> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
defaultNamespace: rareicon | ||
helm: | ||
chart: ./shipyard | ||
chart: ./gameserver | ||
releaseName: rareicon-release | ||
valuesFiles: | ||
- shipyard/values.yaml | ||
- gameserver/values.yaml |
File renamed without changes.
112 changes: 112 additions & 0 deletions
112
migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# Deployment | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: rareicon-gameserver | ||
namespace: rareicon | ||
labels: | ||
app: rareicon | ||
spec: | ||
replicas: {{ .Values.gameserver.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: rareicon | ||
tier: gameserver | ||
template: | ||
metadata: | ||
labels: | ||
app: rareicon | ||
tier: gameserver | ||
spec: | ||
containers: | ||
- name: gameserver | ||
image: "{{ .Values.gameserver.image.repository }}:{{ .Values.gameserver.image.tag }}" | ||
ports: | ||
{{- range .Values.gameserver.service.ports }} | ||
- name: {{ .name }} | ||
containerPort: {{ .targetPort }} | ||
protocol: {{ .protocol }} | ||
{{- end }} | ||
resources: | ||
{{- toYaml .Values.gameserver.resources | nindent 12 }} | ||
|
||
--- | ||
|
||
# Service (TCP and UDP) | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: rareicon-service | ||
namespace: rareicon | ||
labels: | ||
app: rareicon | ||
spec: | ||
selector: | ||
app: rareicon | ||
ports: | ||
{{- range .Values.gameserver.service.ports }} | ||
- name: {{ .name }} | ||
protocol: {{ .protocol }} | ||
port: {{ .port }} | ||
targetPort: {{ .targetPort }} | ||
{{- end }} | ||
type: ClusterIP | ||
|
||
--- | ||
|
||
# WebSocket Ingress - TODO: Values | ||
{{- if .Values.gameserver.ingress.enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: rareicon-ingress | ||
namespace: rareicon | ||
annotations: | ||
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" | ||
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" | ||
spec: | ||
rules: | ||
- host: {{ .Values.gameserver.ingress.host }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: rareicon-service | ||
port: | ||
number: 3000 | ||
- path: /ws/ | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: rareicon-service | ||
port: | ||
number: 3000 | ||
{{- end }} | ||
|
||
--- | ||
|
||
# UDP LoadBalancer Service | ||
{{- if .Values.gameserver.service.udp.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: rareicon-udp-service | ||
namespace: rareicon | ||
labels: | ||
app: rareicon | ||
spec: | ||
selector: | ||
app: rareicon | ||
ports: | ||
{{- range $index, $port := .Values.gameserver.service.ports }} | ||
{{- if eq $port.protocol "UDP" }} | ||
- name: {{ $port.name }} | ||
protocol: {{ $port.protocol }} | ||
port: {{ $port.port }} | ||
targetPort: {{ $port.targetPort }} | ||
{{- end }} | ||
{{- end }} | ||
type: LoadBalancer | ||
{{- end }} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
gameserver: | ||
nameOverride: rareicon | ||
name: rareicon-app | ||
replicaCount: 1 | ||
image: | ||
repository: kbve/rareicongs | ||
tag: 1.03.0 | ||
service: | ||
name: gameserver | ||
ports: | ||
- name: tcp | ||
protocol: TCP | ||
port: 3000 | ||
targetPort: 3000 | ||
- name: udp | ||
protocol: UDP | ||
port: 8081 | ||
targetPort: 8081 | ||
webscoket: | ||
enabled: true | ||
udp: | ||
enabled: true | ||
ingress: | ||
enabled: true | ||
host: discord.rareicon.com | ||
paths: | ||
- path: / | ||
backend: html | ||
- path: /ws/ | ||
backend: websocket | ||
resources: {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/mmextensions/mmextensions/Shaco/GameLifetimeScope.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using UnityEngine; | ||
using VContainer; | ||
using VContainer.Unity; | ||
using MoreMountains.Tools; | ||
using MoreMountains.TopDownEngine; | ||
using KBVE.Kilonet; | ||
|
||
namespace KBVE.MMExtensions.Shaco | ||
{ | ||
public class GameLifetimeScope : LifetimeScope | ||
{ | ||
[SerializeField] | ||
private GameObject localPlayerPrefab; | ||
|
||
[SerializeField] | ||
private GameObject remotePlayerPrefab; | ||
|
||
[SerializeField] | ||
private GameObject gameManagerPrefab; | ||
|
||
protected override void Configure(IContainerBuilder builder) | ||
{ | ||
builder.UseComponents(components => | ||
{ | ||
var gameManager = Object.Instantiate(gameManagerPrefab).GetComponent<GameManager>(); | ||
DontDestroyOnLoad(gameManager.gameObject); | ||
components.AddInstance(gameManager); | ||
|
||
}); | ||
|
||
// Register the EntryPoint for GameManager initialization | ||
builder.RegisterEntryPoint<GameManagerEntryPoint>(); | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/mmextensions/mmextensions/Shaco/GameLifetimeScope.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.