From 459c699cec958363cd52940b4e3d46594d023b13 Mon Sep 17 00:00:00 2001 From: h0lybyte <5599058+h0lybyte@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:21:05 -0500 Subject: [PATCH 1/4] docs(journal): updating the notes again. --- apps/kbve.com/src/content/journal/11-27.mdx | 10 +++++++++- packages/kilonet/README.md | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/kbve.com/src/content/journal/11-27.mdx b/apps/kbve.com/src/content/journal/11-27.mdx index 5f50766db..de3cc7c45 100644 --- a/apps/kbve.com/src/content/journal/11-27.mdx +++ b/apps/kbve.com/src/content/journal/11-27.mdx @@ -82,4 +82,12 @@ import { Adsense, Tasks } from '@kbve/astropad'; **Lifetime** The next part will be to switch back from the asset management and focus on the lifetime and entrypoints, oh boi. - We still need to setup the level manager and multiplayer level manager, once both of those are setup, we move forward with the player and npc list of prefabs. \ No newline at end of file + We still need to setup the level manager and multiplayer level manager, once both of those are setup, we move forward with the player and npc list of prefabs. + +- 09:18PM + + **Build** + + While we are making some changes, we should move forward with having a build ready to queue up and run! + Let me go ahead and move forward the issue, ideally we need to make a couple more changes to the `mmextension` package but there are some issues to resolve. + \ No newline at end of file diff --git a/packages/kilonet/README.md b/packages/kilonet/README.md index 780759ce8..79c5500d8 100644 --- a/packages/kilonet/README.md +++ b/packages/kilonet/README.md @@ -25,7 +25,7 @@ Adding new tilemap generator script and fixed some asmdefs. Triggering another build once more, oh boi, another docker build. We got the helm chart working and now are preparing for a basic multiplayer game. The WebGL build is a bit slower and needs some adjustments, starting the test case now. -Vcontainers added and a new model is coming soon. +Vcontainers added and a new model is coming soon, getting the build ready to be triggered. - [KBVE](https://kbve.com/) - [RareIcon](https://rareicon.com/) \ No newline at end of file From cacdd7ca8789b689ce0fe2bac45bbd5a5baf9211 Mon Sep 17 00:00:00 2001 From: h0lybyte <5599058+h0lybyte@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:38:35 -0500 Subject: [PATCH 2/4] fix(gameserver): updating the UDP port again. --- .../gameserver/templates/axum-gameserver.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml b/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml index 5e1187870..469591196 100644 --- a/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml +++ b/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml @@ -100,13 +100,9 @@ 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 + - name: udp-port + protocol: UDP + port: 8081 + targetPort: 8081 + type: NodePort {{- end }} \ No newline at end of file From fa89a2108a350f04cb376123ac7f11aa2598599b Mon Sep 17 00:00:00 2001 From: h0lybyte <5599058+h0lybyte@users.noreply.github.com> Date: Thu, 28 Nov 2024 03:08:14 -0500 Subject: [PATCH 3/4] docs(journal): nightly journal entry --- apps/kbve.com/src/content/journal/11-28.mdx | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 apps/kbve.com/src/content/journal/11-28.mdx diff --git a/apps/kbve.com/src/content/journal/11-28.mdx b/apps/kbve.com/src/content/journal/11-28.mdx new file mode 100644 index 000000000..b86aa1c56 --- /dev/null +++ b/apps/kbve.com/src/content/journal/11-28.mdx @@ -0,0 +1,25 @@ +--- +title: 'November: 28th' +category: Daily +date: 2024-11-28 12:00:00 +client: Self +unsplash: 1732601471603-404af59bc450 +img: https://images.unsplash.com/photo-1732601471603-404af59bc450?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85 +description: November 28th. +tags: + - daily +--- + +import { Adsense, Tasks } from '@kbve/astropad'; + +## 2024 + +- 03:05AM + + **Nightly** + + Still working through the code to help me get a better understanding, but there are so many weird issues that I run into. + I am still a bit lost in the process of the websockets but I think that might be just a lack of experience? + + + \ No newline at end of file From aaeb38d0b349f3d0a7286d706a8cf15cc653e417 Mon Sep 17 00:00:00 2001 From: h0lybyte <5599058+h0lybyte@users.noreply.github.com> Date: Thu, 28 Nov 2024 03:41:41 -0500 Subject: [PATCH 4/4] fix(rust_rareicon_gameserver): adjusting the chart deployment and preparing the http2 multiplex --- apps/kbve.com/src/content/journal/11-28.mdx | 9 +++++++++ apps/rust_rareicon_gameserver/src/main.rs | 2 +- .../rareicon/gameserver/templates/axum-gameserver.yaml | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/kbve.com/src/content/journal/11-28.mdx b/apps/kbve.com/src/content/journal/11-28.mdx index b86aa1c56..b27ea6a67 100644 --- a/apps/kbve.com/src/content/journal/11-28.mdx +++ b/apps/kbve.com/src/content/journal/11-28.mdx @@ -14,6 +14,15 @@ import { Adsense, Tasks } from '@kbve/astropad'; ## 2024 +- 01:40AM + + **GameServer** + + I am keeping track of the gameserver stats, which comes with some great surprises! + Our current gameserver is a 4mb docker build with about 2.7mb ram usage! + I think that has been my best build so far this year, really excited about it as well. + Yet I think there are some issues with the helm chart and the UDP access, but I think I can figure it out. + - 03:05AM **Nightly** diff --git a/apps/rust_rareicon_gameserver/src/main.rs b/apps/rust_rareicon_gameserver/src/main.rs index 3cf06fedd..e60371f7d 100644 --- a/apps/rust_rareicon_gameserver/src/main.rs +++ b/apps/rust_rareicon_gameserver/src/main.rs @@ -6,7 +6,7 @@ use axum::{ }; // use axum_extra::TypedHeader; - +use tokio::sync::broadcast; use futures::{sink::SinkExt, stream::StreamExt}; use std::{net::SocketAddr, path::PathBuf}; use tokio::net::{ UdpSocket, TcpListener}; diff --git a/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml b/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml index 469591196..8451642dd 100644 --- a/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml +++ b/migrations/kube/charts/rareicon/gameserver/templates/axum-gameserver.yaml @@ -64,6 +64,12 @@ metadata: annotations: nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" + nginx.ingress.kubernetes.io/http2-push-preload: "true" + nginx.ingress.kubernetes.io/proxy-http-version: "1.1" + nginx.ingress.kubernetes.io/enable-websocket: "true" + nginx.ingress.kubernetes.io/proxy-connect-timeout: "60" + nginx.ingress.kubernetes.io/keepalive: "on" + nginx.ingress.kubernetes.io/connection-proxy-header: "keep-alive" spec: rules: - host: {{ .Values.gameserver.ingress.host }}