#(FIKA ONLY) SPT Server Manager

443 messages Β· Page 1 of 1 (latest)

gaunt hazel
#

Astolfo_SUPERwave

Note: on hold, got newborn 28/08/2025

Disclosure

I'll start of with disclosing that this is primarily a project I made to learn how to code with C# whilst also producing something that I'd actually like to have myself as I didn't really find anything already doing this 02Shrug
To achieve this goal, apart from google and asking people here, I've also utilised ChatGPT to help either explain stuff or provide examples of how to structure/separate things or straight up code examples.
TL;DR Learning with vibe coding, apologies to any actual proper programmers sadge

Massive thanks to all the people here on the Discord that helped with answering any questions I had and providing feedback on some design choices I was not sure with Prayge love_u

πŸ›‘οΈ SPT Server Manager

A lightweight .NET application to monitor and manage an SPT-Fika server. It provides automatic crash recovery, Discord alerts, and resource usage monitoring.

✨ Features

  • πŸš€ Automatically starts and monitors your SPT server
  • πŸ” Attempts auto-restarts on crashes, alerts when max attempts reached and needs manual intervention
  • ⚠️ Discord alerts on server crash, high CPU/RAM usage via either Webhook or Discord Bot
  • πŸ‘₯ Periodic updates on Players online / activity (in raid, menu, level)
  • πŸ“Š Logs CPU, RAM, and uptime
  • 🌐 Basic Web Dashboard
  • 🧡 Configurable via config.jsonc

πŸ§‘β€πŸ« Instructions

  • Download, place it wherever you want
  • Edit the .config file accordingly (most things are documented inside of it on what they do) for you
    • Server Path ( sptExePath )
    • Server IP ( fikaBackendUrl )
    • Discord Mode (Webhook or Bot) for how you'd like to receive alerts and then the relevant configs for desired mode ( discordWebhookUrl OR discordBotToken + discordChannelId )
    • (OPTIONAL) User ID or Role ID for getting pinged on critical alerts to the Server ( mentions )
  • Run included .exe and it will start the Server for you, reboot as needed on crashes

πŸ”— Links

CL0_Downloading **DOWNLOAD: ** Release v1.0.0.6 CL0_Downloading
Github repo
Github Dashboard - View all planned features / active work

Why Fika only?

Because I CBA stripping or making the fika specific things optional as I don't play SPT without Fika, I might do it in the future but honestly I doubt I will bother 02Shrug

Known Issues πŸ›

  • Windows Defender for some blocks the app, works fine for others HUH
    • Workaround: Exclude in Defender, permanent solution is having to wait for MS to "learn" about the app

Planned features

  • IDK, anything else people suggest perhaps HmmNote
fluid talon
#

Pretty cool!

Only odd thing I am running into, using Webhook mode (havnt tried bot), the messages with the server resources (CPU/RAM/Uptime), the "RAM %" is getting like.... spoilered out by Discord for some reason?

I can click on it and it shows it. I think it might be the formatting in whatever is being sent to Discord making it think it needs a spoiler tag?

fluid talon
#

No rush, love it so far, been looking for something like this for quite a while!

Just what it looks like FYI in case I didnt explain myself well enough. You click the "box" and the RAM info pops in, like a spoiler

gaunt hazel
#

Yeah no I see it ASlife seems that whenever I changed that, I added another | by accident in there thats causing that FacePalm I'll fix that asap

gaunt hazel
#

Pushed update to fix that Spoiler tag issue FacePalm
https://github.com/BiddinWar/SPT-ServerManager/releases/tag/v1.0.0.2

  • Added basic Web Dashboard - Can be accessed on hostmachine through localhost:5000 in browser or on any other device on the same LAN network through <servermachine IP>:5000
  • Fixed weird double start of SPT.Server.exe after some time
  • Fixed accidental addition of another | causing spoilertags to appear in Discord embeds
  • Fixed bot commands not being recognized post first one used
fluid talon
#

Works perfectly, thank you!

gaunt hazel
#

Prayge Enjoy, feel free to throw any sort of suggestions on features or w/e. Open to most things probably HmmNote

swift sandal
#

Does dark mode work?

gaunt hazel
#

πŸ€” Worked when I tested it, but Imma base it on your question it's not sadge

#

I'll take a look again once I'm done making dinner bcaPatientlyWaiting

swift sandal
#

Your patch fixed my issue of not hooking correctly at first btw. Thank you so much for the widget. It is great

gaunt hazel
#

Not hooking? πŸ‘€

swift sandal
#

No worries 1.0.0.2 works out of the box now

#

1.0.0.1 was not working for me

cyan sandal
#

the app will close it itself immediatly after i open it defender closed btw

gaunt hazel
cyan sandal
#

it ask like this app not sec etc.. then i just started anyway but the app appears and gone

gaunt hazel
#

HUH the fuck

cyan sandal
#

any idea?

gaunt hazel
#

Not at all, throw your logs at me giveplz

cyan sandal
#

the logs are also empty

gaunt hazel
#

Now thats less fucking useful Sweaty
Try run with admin? πŸ€”

cyan sandal
#

i did

#

same result

#

sth about my pc cause it stop but what is it

gaunt hazel
#

I'd like to know myself HmmNote
You're trying latest 0.2 version right and ya got the win version and not the linux one by accident yeah? πŸ€”

cyan sandal
#

0.2 confirmed and the win version confirmed

gaunt hazel
#

hmm I don't think I'll be able to figure this one out tonight as I'd need to do some research on why this would happen.

cyan sandal
#

okay i ll take a look another day then but also tried 0.1 version right now same result just to be informed you

gaunt hazel
#

HmmNote Thanks love_u

cyan sandal
#

btw so useful mod thanks for your help

gaunt hazel
#

Thank you yourself love_u

gaunt hazel
#

@cyan sandal Well, some update on the issue. the TL;DR is you'll have to just exclude it in Windows Defender for now

I just have to wait for MS to learn more about my app for it to stop triggering the false positive so to say on the app and in the meantime if anyone encounters similar issue to you where their Defender just closes the app even after "Run anyway", you just have to exclude it for now sadCat

twilit scarab
#

tried to reach the web dashboard from another pc on the same LAN, connection refused per browser message (after disabling firewall on the servermachine)

#

checked netstat - seems like it's only listening on port 5000 through the localhost/loopback IP

#

are we able to modify the listening IP/port? πŸ€“

#

disclaimer - im not familiar with creating discord bots but i believe i have the right permissions set, tho im open to any troubleshooting steps

#

seems the bot is unable to post the embed link

gaunt hazel
twilit scarab
gaunt hazel
#

Think I've fixed the issue with the graph HmmNote
Looking at the port issue now and making it a config bcaPatientlyWaiting

twilit scarab
gaunt hazel
twilit scarab
gaunt hazel
#

Got a bit side tracked with fixing the Dashboard URL and ended up spending time improving the embed pepe_uwu

Packaging and then uploading new update salute

#

Changes

  • Fixed Dashboard URL not working properly across LAN devices
  • Fixed Player Graph not sending with Bot as mode
  • Exposed some more discord settings to work at Runtime and also display them in Dashboard + Startup embed
  • Improved Startup Embed formatting
  • Improved Dashboard UI

Full Changelog: https://github.com/BiddinWar/SPT-ServerManager/compare/v1.0.0.2...v1.0.0.3

Plans

  • Shutdown / Restart schedule + In-Game/Discord notification with intervals'
  • Write proper How-to steps πŸ˜…
  • Document code better for own sanity and others

arrow_right_hd2 DOWNLOAD arrow_left_hd2

gaunt hazel
#

sigh regardless of me testing stuff, I forgot to properly check the discord messages and I broke the filter for it FacePalm
Fixing it rn

gaunt hazel
#

Well thats fixed FacePalm But bot is double posting, WHY CL5_REE I'll get an update going for tomorrow ASlife

patent lance
#

This looks awesome! Anything I can do to help figure out how to run headless?

gaunt hazel
patent lance
#

It’s just a powershell file. Could just target that?

gaunt hazel
#

That much I know too hmm
But its more like launching it, making sure it does connect and then just monitoring it for issues and resource usage.
I just need to probably get my lazy ass off and set a headless up for just testing purpose

patent lance
#

Wish I could be more helpful lol

gaunt hazel
#

its all good love_u Does the headless run in a terminal window after it launches? πŸ‘€

wise thistle
#

Personally, I wouldn't use one application to do both. The option wouldn't be a bad thing, but I would want a separate app for headless.

Launching a headless client is as easy as passing specific arguments to EscapeFromTarkov.exe. Then monitoring the app to see if it closed and restarting it. That's all the powershell does (with a bit of basic sanity checking to make sure Fika.Headless.dll exists and such)

gaunt hazel
#

NOTED I see

#

Wonder if I could satisfy that need then, standalone app for Headless but with option to just have it all managed from one if desired HmmNote

#

Because what I had in mind for the Headless monitoring etc was to actually be able to monitor multiple headless instances and manage multiple of em by starting up all or turning some off etc as desired πŸ€”

patent lance
#

Some of my friends that play on our server tend to do stupid stuff that borks the headless such as leaving after joining or starting a raid and then quitting the game. (Idk, they’re smart jjjkekw ). Just something that would allow me to restart the headless without being at my pc. Cause I’m tired of getting (hey, server down, can you fix?)

#

And it’s always the headless being borked

#

Some type of a discord command to restart the headless would beπŸ”₯

gaunt hazel
#

Yeah, I'll write that down

patent lance
#

Such a cool mod/application though, excited to use it!

gaunt hazel
#

NotLikeHaachama These discord bot issues are doing my head in

gaunt hazel
#

Fixed the duped bot messages bcaPatientlyWaiting I'll package an update for it rn, plan to work on a Scheduled Restart / Stopping unless some other issue arises or concerns by folks love_u

gaunt hazel
#

V 1.0.0.4 Bot Filter & Double Posting no more

Changes

Plans

  • Shutdown / Restart schedule + In-Game/Discord notification with intervals
  • Headless Client Support
  • Write proper How-to steps πŸ˜…
  • Document code better for own sanity and others (Never ending task)

Download: here

Poll in regards to Headless Client (24hrs): #mod-development message

swift sandal
#

Server won't launch. I will be honest I have been having trouble getting this to work as intedend most of the time between updates. I am doing a Webhook to a channel in discord. I have only applied my "sptExePath", "fikaBackendUrl", "discordMode", "discordWebhookUrl", and "discordChannelId". Here is my log. Am I missing something?

gaunt hazel
wise thistle
#

all i did was

  • download the release
  • extract somewhere
  • change the server path to the correct spot
  • launch SPTManager.exe

spt.server.exe never launches, no indication of why in logs. i'm not intending to use it, i was just curious why it wasn't working for RodHertz. no idea.

gaunt hazel
#

MeongFaceTable
I even tried all the things and it worked fine, wtf CL5_REE
@swift sandal did this only happen with .4 or were you seeing it with .3 too? HmmNote

wise thistle
gaunt hazel
#

so something auto triggered the shutdown here hmm

wise thistle
#

seems like it

gaunt hazel
#

welp, time to put everything else on hold and figure this out then

#

Okay, this is pissing me off HmmNote
I can repro it if I run it with the .exe but if I go back to the commit for that release and run in VS, it works fine

HUH wtf

void wadi
#

My brother in Christ don't make those jokes joe_pray

gaunt hazel
#

Ah, ya ment the emote πŸ˜‚

void wadi
gaunt hazel
#

still stands, I'd like to not think I did that much of a dumb FacePalm

void wadi
gaunt hazel
#

the facepalm ? LUL

void wadi
#

Yes

gaunt hazel
gaunt hazel
#

I'd like to say I've ruled out the possibility of being dumb and doing compile + zipping by having used this script

# Requires PowerShell 7+
$ErrorActionPreference = "Stop"

# -------- CONFIG --------
$projectName = "SPTManager"
$releaseDir = "release"
$versionFile = "VersionInfo.cs"
$configTemplateSource = "config/config.template.jsonc"
$configTemplateTargetRel = "config/config.jsonc"

# Target runtimes: win-x64 and linux-x64
$runtimes = @(
    @{ Rid = "win-x64"; Ext = "zip" },
    @{ Rid = "linux-x64"; Ext = "tar.gz" }
)

# -------- Extract Version --------
$versionLine = Select-String -Path $versionFile -Pattern 'public const string CurrentVersion = "(.*)";'
if ($versionLine.Matches.Count -eq 0) {
    Write-Error ":x: Could not extract version from $versionFile"
    exit 1
}
$version = $versionLine.Matches[0].Groups[1].Value
Write-Host ":package: Packaging version $version"

# -------- Ensure Output Dir --------
New-Item -ItemType Directory -Force -Path $releaseDir | Out-Null

# -------- Loop Through Targets --------
foreach ($runtime in $runtimes) {
    $rid = $runtime.Rid
    $ext = $runtime.Ext
    $packageName = "$projectName-$version-$rid"
    $publishPath = "$releaseDir/$packageName"
    $archivePath = "$releaseDir/$packageName.$ext"

    Write-Host "`n:rocket: Publishing for $rid..."

    # Clean any previous build
    if (Test-Path $publishPath) {
        Remove-Item -Recurse -Force $publishPath
    }

    # Build
    dotnet publish "./SPTManager.csproj" -c Release -r $rid --self-contained true -p:PublishSingleFile=true -o $publishPath

    # Copy config template
    $targetConfigPath = Join-Path $publishPath $configTemplateTargetRel
    $targetConfigDir = Split-Path $targetConfigPath
    New-Item -ItemType Directory -Force -Path $targetConfigDir | Out-Null
    Copy-Item $configTemplateSource $targetConfigPath -Force

    # Archive
    if ($ext -eq "zip") {
        if (Test-Path $archivePath) { Remove-Item $archivePath }
        Compress-Archive -Path "$publishPath/*" -DestinationPath $archivePath
    }
    elseif ($ext -eq "tar.gz") {
        if (Test-Path $archivePath) { Remove-Item $archivePath }
        Push-Location $publishPath
        tar -czf "../$packageName.$ext" *
        Pop-Location
    }

    Write-Host ":white_check_mark: Created $archivePath"
}

Write-Host "`n:tada: All builds and packaging complete!"```
void wadi
#

I'd have to look at the code before I can be of any help then

gaunt hazel
#

Its oki love_u Is learning experience πŸ˜…

gaunt hazel
#

I think I fixed it HmmNote
Time to try and test everything then bcaPatientlyWaiting

gaunt hazel
#

Yup, that issue is fixed FacePalm

Culprit

var botService = host.Services.GetRequiredService<BotService>();
await botService.StartAsync(cts.Token);

This, for some reason fired twice which caused it to most of the time send out the cts token which caused the closure FacePalm

Commenting out those two lines, boots without issues now, but it has bricked the startup message I sent to Discord hmm
So need to fix that first and then I can release a fixed version Prayge

Apologies folks for the newbie mistakes cat_thumbs_up

gaunt hazel
#

FacePalm
I'll have something up tomorrow, had to deal with some personal shit ASlife

gaunt hazel
#

Just doing a final sanity check of the .exe and then there'll be an updated version available Prayge

gaunt hazel
#

Goodnight now sleep_Ganyu

gaunt hazel
gaunt hazel
#

Honestly just not sure which one to tackle first LUL Scheduler would deffo be easier but I feel like its not as much of a wanted/desired feature as headless support bcaPatientlyWaiting

gaunt hazel
# gaunt hazel
poll_question_text

Next feature to work on

victor_answer_votes

16

total_votes

18

victor_answer_id

1

victor_answer_text

Headless Support

victor_answer_emoji_name

πŸ€•

#

Guess headless it is deercat_derp

Time to figure out how to do all that then bcaPatientlyWaiting

gaunt hazel
#

Who has Headless clients on a separate machine from the one they're running the server on? HmmNote
I don't have a second PC so I can only test stuff thats all on the same system πŸ˜…
Asking so I can poke ya later when I need to get some testing done to make sure stuff works when its not on the same system Prayge

gaunt hazel
# old dune I do

I'll be poking ya hopefully later in the week to try something then Prayge

old dune
#

Funny thing is I was just looking at the mod was thinking of using it

gaunt hazel
#

appreciate it, still needs tweaking and features πŸ˜…

old dune
gaunt hazel
old dune
#

Sure if it crashes I won’t get no logs but this helps my buddy play when I’m not home to fix

gaunt hazel
#

Yeah, its the point essentially of all this πŸ˜‚
Get stuff going so I don't have to be present if friends wanna play

runic prairie
#

Reading all this a assume you can’t run this all in a docker container or on Linux, right?

gaunt hazel
#

Works on linux, or should at least Sip

gaunt hazel
#

I'm also a complete beginner/noob at all this so yeah CL9_Yay

runic prairie
#

😬

gaunt hazel
#

sadge you're free to attempt it and if ya encounter any issues do tell and I can try and fix what I can sadCat

twilit scarab
#

downloaded v1006, can't get the app to run

#

made sure server is running and file path is correct - port isn't in use, ill try rebooting the maching in a sec

#

was curious if anyone had this behaviour too

twilit scarab
#

reboot didn't correct it - the console would come up for 1 - 2 secs, no output, then disappears. I noticed i couldn't rename the SPTManager folder that i nested all the files into tho, so something is running but can't figure out why I can no longer get the console to stay up

gaunt hazel
twilit scarab
#

i excluded the folder from windows defender virus scans as well

gaunt hazel
#

πŸ€”πŸ€”

twilit scarab
#

no logs aint helpful, i know lol

gaunt hazel
#

Nah just trying to think what can be attempted

twilit scarab
#

but thats the indicator that its not running long enough to generate logs

gaunt hazel
#

Path has double slashes yes?

twilit scarab
#

yes

#

lemme paste my config without the secret stuff

#

there's teh file path, on the local box its C:

#

i tried changing the dashboard port as well to 9000, no dice

wise thistle
#

have you tried not running it from a network drive?

twilit scarab
#

i did check netstat -a and didn't see anything listening on port 5000

#

so the app shouldn't be running, but i can't change the folder name atm... "folder is open in another program"

wise thistle
#

fwiw i downloaded it, copied the config template & changed filename to config.jsonc, changed my server path, and it all immediately worked (obviously without discord notifications).

though that said my does not seem to properly set windows terminal to utf-8 or whatever encoding

gaunt hazel
gaunt hazel
#

And if the folder open issue remains you can try restarting Explorer.exe

twilit scarab
#

I'll re-download from github and start fresh

#

not sure if it's something on my pc specifically - Shynd's test confirms that tho

gaunt hazel
#

Still got me confused πŸ˜…

#

Especially the logging as it should log something at the very least

gaunt hazel
twilit scarab
#

Will do, wish I can provide more info.

#

I'll try to run it on my main PC as well

#

Currently working today, but I get downtime again, I'll poke at it

gaunt hazel
#

Yeah no rush love_u
Hopefully we can figure out what is at least happening

twilit scarab
#

alright so tried downloading a fresh copy to my main pc, same thing - console opens for a moment, then closes out - nothing else happens

#

i kept the default config but pointed it to my pc's SPT folder instead

#

tried disabling windows firewall and the real-time protection

gaunt hazel
#

You mind making a small recording hmm

#

can DM it to me if ya dont wanna post it here

twilit scarab
gaunt hazel
twilit scarab
#

rebooting the machine, gonna record here in just a sec

gaunt hazel
twilit scarab
#

@gaunt hazel this is after a fresh reboot - only differences in config from earlier is that i use the loopback/localhost IP and turned on debuglogging

gaunt hazel
#

the fucking thing doesn't even get to output a line???

twilit scarab
#

and this happens on my main pc too

gaunt hazel
#

Bruh wtf HUH

twilit scarab
#

you can see the process start up in task manager, then go away

#

then

gaunt hazel
#

I am actually fucking confused AF HmmNote

twilit scarab
#

if you attempt to modify the folder, it says the app is running.. but no task??

gaunt hazel
#

yeah no thats windows (explorer.exe) breaking after trying to rapid fire the app πŸ˜‚

#

restart of explorer.exe in Task Manager fixes that LUL

#

at least has for me with any other app thats done similar HmmNote

wise thistle
#

shift+right-click in the folder -> open Powershell window here -> type .\SPTMan[TAB] -> Enter

start it in an open console window, see if it does anything

gaunt hazel
#

imma write that down HmmNote

twilit scarab
#

ill record

wise thistle
#

screenshot should suffice since it will just go back to the terminal

#

or record, up to you, whatever's easiest

#

it's curious that windows modules installer worker seems to be taking up 20% cpu cycles. like it's installing a runtime or something?

twilit scarab
#

fwiw, both machines are on windows 10 22H2

gaunt hazel
#

Shouldn't matter hmm

twilit scarab
#

welp

#

i know what the issue is

#

well, let me try something lol

gaunt hazel
twilit scarab
#

file name

wise thistle
#

yeah honestly it should create a copy of the template config in the correct spot & throw up an error and a Console.Read(); to wait for user input

#

if the config file doesn't exist

gaunt hazel
#

It should be doing that hmm

wise thistle
#

mine didn't

gaunt hazel
#

mfer FacePalm

#

Lemme go update my todo list ASlife

twilit scarab
#

that worked

#

thank you guys @wise thistle @gaunt hazel

twilit scarab
gaunt hazel
#

yeah but its annoying FacePalm
Also, any and all feedback is appreciated as well Prayge

twilit scarab
#

ill play aroudn with it and ill let you know of any issues or feedback ok

twilit scarab
#

its def annoying tho

gaunt hazel
twilit scarab
#

more effort than ive ever put into app development, so you're doing well yesyes

gaunt hazel
#

I was googling that wheeze so thanks

twilit scarab
#

does starting the SPTManager.exe supposed to bring the server up?

wise thistle
gaunt hazel
gaunt hazel
#

Currently I'm tackling support for the Headless client so that people can monitor them and also start/stop on demand πŸ˜…

#

Oh, also a very basic Webb Dashboard accessible to any device on the same LAN network

#

Looks something like this HmmNote

#

You can also just start/stop the server whenever you want through the manager so essentially the Manager is just on constantly and You or others can boot it up with appropriate Discord command or if they're on your LAN, the Dashboard

twilit scarab
#

just making sure im understanding:

  • Start SPTManager.exe, it will then automatically run the sptserver.exe and combine the windows into one.
#

?

gaunt hazel
#

Yes

#

Goal is to literally just have SPTManager.exe do most if not everything for you, especially if you have Headless Clients

twilit scarab
#

ohh i see what is doing now

gaunt hazel
twilit scarab
#

the headless connected to it no problem

gaunt hazel
twilit scarab
#

aight so i go to the web console

#

i hit stop

gaunt hazel
#

Yeah, if ya got headless stuff ya gotta manually start those for now SadEgg

twilit scarab
#

the server stops, but it throws an exception error

#

and now the start/restart/stop buttons are grayed out

gaunt hazel
#

Which one HmmNote Cuz I'm pretty sure its a false positive one because of a dummy mistake i did

twilit scarab
#

ill pull the logs, one sec

#

where is it writing logs to?

gaunt hazel
#

SPTManager folder -> Logs

twilit scarab
#

its not outputting that log file

gaunt hazel
#

FacePalm Why do I feel like I didn't make it actually write logs in real time to the file

#

That folder should appear

twilit scarab
#

the log file doesn't write to the folder

gaunt hazel
#

And then logs based on day ASlife
But by the looks of it, it might not make the file unless the Manager closes which is now pissing me off FacePalm

twilit scarab
gaunt hazel
#

ASlife the fuck

#

@wise thistle When ya tried earlier, did it make a Logs folder? ASlife I'm going mental NotLikeHaachama

void wadi
#

Could it be because you're running it from a network drive...? It looks like you are from the picture.

#

Maybe not

wise thistle
#

that's what i thought too but they're just grabbing screenshots from that pc, actually running it locally

gaunt hazel
#

hes only accessing it from a network drive

twilit scarab
#

yes sorry if that's confusing, but its far easier for me to manage the files and post to discord from this KB/M lol

gaunt hazel
#

all gucci

twilit scarab
wise thistle
gaunt hazel
# twilit scarab

Yeah, that error is fine, its a squashed one in my current build

Dashboard greying out the buttons incorrectly thou is new to me HmmNote

#

and its a false positive also πŸ˜‚

twilit scarab
gaunt hazel
#

Also, I'm not insane in believing this should actually be creating the directory ASlife

{
    Directory.CreateDirectory(_logDir);
    _logger = new AppLogger(new Config(), _logDir);
    return _logger;
}```
twilit scarab
gaunt hazel
twilit scarab
#

ah the restart cooldown is in effect - ill try later

gaunt hazel
#

Should only be in effect after first attempt to restart hmm

twilit scarab
#

so i noticed, the sptmanager keeps up with my messages on the discord server the bot is in:

#

its debug level, not a big deal in terms of console output once debugger is off

#

but - is it supposed to keep up with our chat messages from different channels in the same server?

#

i went thru and limited permissions for the bot so it wont read chat history anymore, except for the channel referenced in the config

#

thought that was odd

gaunt hazel
#

HUH
No, should only be checking the channel with the channel ID, but that might be a thing I missed as that specific Debug [Trace] was when I was trying to pin down why commands werent working, so I might not have restricted that one to a channel or anything πŸ˜…

#

I'll write it down thou and investigate, heading to bed thou as I gotta be up at 4 πŸ˜…

gaunt hazel
#

Well, think I've fixed the logging directory issues and the config file which now will check if config.jsonc is missing, and if it is will create one based on copying the included config.template.jsonc and if that file is missing for w/e reason it should throw an error hmm

gaunt hazel
# twilit scarab

I figured out why this is happening ASlife
I didn't make those buttons Event-driven (Cuz I'm so smart) so they're greyed out because the state hasn't been updated (it should update if you refresh) so I'm going to change that now to be Event-driven and probably look around at making sure everything is event-driven if I can pepeHmm

gaunt hazel
#

Bot should also not be spying on you anymore apart from the associated channel pepe_uwu
Fix was rather simple hmmOk

            // Restrict to the configured channel before doing *anything* else
            if (message.Channel is SocketTextChannel textChannel &&
                textChannel.Id != _config.DiscordChannelId)
            {
                return;
            }```
patent lance
#

I told my friends I play with about your mod and the headless support πŸ”œ. They don’t leave me alone asking when we’ll start using it 🀣

gaunt hazel
patent lance
gaunt hazel
#

Meru_Sweat

Adding support for Headless is way more pain for my noob brain than I hoped for, I'm maybe like idk, halfway with what I need on the main apps side and then I need to make the actual microservice/app for the Headless Client machines that are not on the same system as the server. ASlife

I might have something testable by end of month hopefully Prayge

wise thistle
#

that's mostly why i suggested a standalone app with some communication. keeps it a bit simpler.

gaunt hazel
supple forum
#

Godspeed man

#

Just came home from vacations, luckily my server only crashed after 13 days and I returned on the 14th

#

Could've stayed there forever if I had installed your mod

gaunt hazel
#

Good to know πŸ˜‚βœŒοΈ

gaunt hazel
#

Project bit on hold
With misses at hospital ok

rustic jasper
#

Good luck

rustic jasper
#

Dms open btw, if you need.

winter girder
#

so my exe path is "C:\SPT\SPT.Server.exe" so shld the config file be "sptExePath": "C:\SPT\SPT.Server.exe"?

winter girder
#

"sptExePath": "C:\SPT\SPT.Server.exe" ?

#

ohh its not allowing double slasehes in chat lol

gaunt hazel
#

Yes that's correct tjn3

#

Then

winter girder
#

Sorry, had to go handle some irl stuff, as soon as I run the .exe I see the window open and immediately close

gaunt hazel
#

Did you rename the config template to just config.jsonc?

winter girder
#

The one in the config folder?

#

The newest release

gaunt hazel
winter girder
#

That i didn't, maybe I missed it in the instructions, after I rename it, do I leave it in the configuration folder?

gaunt hazel
#

Just needs to be renamed to purely config.jsonc

winter girder
#

Will do it shortly, tyvm. Had to go to my brother's house to make sure the server was even working correctly, tried connecting a friend to it and I felt like a moron because I cldnt get his pc to connect.

winter girder
#

how does one get the dashboard?

midnight gazelle
#

hey, i just wanted to say thanks for this app. its saved me and my friends a ton of time and it's super convenient. even without headless support, it's ridiculously helpful. best of luck getting that together too!

gaunt hazel
#

If you try and access it from a different computer then ipv4 of the server machine:port

#

Thought if you're not on the same LAN then it won't work πŸ˜…

winter girder
#

still unsure how to try and acess it

wise thistle
winter girder
#

awesome ty

supple forum
#

Helloooo

#

Got this when starting the manager on the latest update

gaunt hazel
#

HUH whyy

#

Well, the update checker failing isn't critical but it's odd that it's doing that πŸ€”

I'll write it down and look at it later @supple forum, thanks ❀️

supple forum
#

My pleasure !

#

New problem, it doesn't register me as a player, maybe I've missed something ?

gaunt hazel
supple forum
#

I am in a raid !

gaunt hazel
#

I'll poke at it when I get off work

supple forum
#

Idk what happens, seems like one message appears and dissapears almost instantaneously

gaunt hazel
#

Yeah I think I know what it is ASlife

gaunt hazel
#

Wifes addmited to hospital so I'm putting everything on hold Prayge
Think baby wants out Sweaty

rustic jasper
#

Good luck!

gaunt hazel
#

Baby born peepo_love pepeWave

vestal pivot
gaunt hazel
gaunt hazel
#

Very hype pepeWave

rustic jasper
#

Awesome! Not about the mis* but the rest!

patent lance
obsidian sonnet
#

Hi

old dune
#

@gaunt hazel awesome news boy or girl?

stoic shell
# gaunt hazel If you try and access it from a different computer then ipv4 of the server machi...

From what I'm gathering is that this tool IS working, but what I can't deduce is how to get it to function to monitor a remote server. Is that a fully functional feature?
The server is up and running on the server pc and I can load into it with my gaming pc. I attempted to change the config file for the manager to properly reflect the server pc ip:port, but was I not supposed to change the file path? It pops a window and does nothing. Unsure what I'm doing wrong if it's supposed to be able to connect.

#

and yes, I'm on the same lan
And yes I allowed it through the firewall and it's not being flagged by AV

gaunt hazel
#

You don't run the tool on a pc that isn't the server machine

old dune
#

Congrats

stoic shell
stoic shell
# gaunt hazel Tool runs on the same PC AS the Server WEB Dashboard is the only thing accessib...

So I've followed the instructions and ran the exe on the local server directly. Even after saving the changed config with the local server spt.server.exe filepath and the local server ip of 192.168.X.X:6969 it just flashes a cmd window and closes. What part is wrong in that arrangement?
I've also tried the 127.0.0- ip as well as the remote IP that the other members use. None of them worked.

gaunt hazel
stoic shell
#

Ah. That would do it, I figure. I must not have seen that in the instructions I was looking at. I'll give it a whirl tomorrow afternoonπŸ‘

gaunt hazel
stoic shell
# gaunt hazel <:ok:1319271322039357440> I'll try and write proper instructions when I get hom...

Okay, so I finally gave it a go and I'm, unfortunately, still running into the same issue. :/
I know you've got a lot going on, so there's no rush on this! 😊
I'm only trying to include the server manager for convenience, so if it's not functional, I won't lose sleep over it.
Here is my setup:
Download/install manager into its own designated folder within the SPT server folder.
Change name of config file to config.jsonc.
Changed the filepath to point at the server.exe within my spt folder. Did not delete quotes, pretty sure you don't, but just in case.
Update fika backend ip/port to the default 127.0.0.1:6969 IP.
Server is offline. Attempt to launch server. CMD window flashes, nothing.
Attempt to change IP to other variants: 0.0.0.0, the one that others use to access the server remotely, then the server's own IP of 192.168.1.X. All with the 6969 port and no removal of quotations.
No variation produces results.
That is the extent of my testing so far. Thoughts/ideas?

wise thistle
stoic shell
stoic shell
wise thistle
#

Also your backend url needs to go back to 127.0.0.1

stoic shell
# wise thistle Also your backend url needs to go back to 127.0.0.1

Thanks for the clarification! I default to 127.0.0.1 for all new tests, so at least I've got that right. I figure the instructions need some clarification given how not-obvious some of these requirements are >.>
Now I'm going to have to embark on the journey of figuring out how to utilize the web asset xD

wise thistle
#

Legit the only thing that needs changed initially is the exe path, and the example path has double back slashes so probably you need to include double back slashes in your exe path. Everything else default and it'll at least boot up.

stoic shell
#

The manager appears to be working now, so all that's left is figuring out how to utilize the interface, since this appears to be only a cmd.exe atm

wise thistle
#

You go to 127.0.0.1:5000 in a browser

#

Scroll up and read this topic from start to finish. There's not that many messages.

stoic shell
#

And utilizing it from a different local pc uses simple logic, so that's nice. Punch in the server pc ip with :5000 and bam, it's on the dashboard. Beautiful!

gaunt hazel
#

Thanks Shynd love_u

wise thistle
#

You tend to your family. I remember those days and they pass so quickly. All of my love to you and yours.

gaunt hazel
#

What day it is, is a full on blur wheeze
Getting on average ~2hrs of sleep ThumbsUP

patent lance
gaunt hazel
#

Sip smoll sneak peaks on things I try to work on between baby and trying to get sleep
among just fixing issues, I apologise for being a noob

gaunt hazel
#

Remotely view the server logs through the webapp ASevil

  • Allows downloading single or multi-zip
  • Only checking for files actually called server-*.log and not ones archived/compressed

-# Now back to baby, will be a good while before I can release anything sadge sorry

gaunt hazel
#

More small goodies pepeWave

  • Filtering by levels, context or search in Manager logs
  • SPT Logs gets simple search bar bcaHeadPatts
  • Search box highlights text CL9_Yay
  • Context (Manager Logs) lets ya search by specific context, from screenshot in this scenario would be either; Program or ServerProcessM
gaunt hazel
#

pepeHmm

I require input from the wise folks here (yes, all of you are wise now)

  • Do people care about seeing the PID of the server?
  • Is the stacked method fine or would side-by-side be more appealing?
  • Anything else specific to the Server itself that would be "nice to have" on the card here?

Thinking of just having a quick-link to Server logs but not sure 02Shrug

gaunt hazel
#

Tweaked a bit, questions from above remain

patent lance
#

Looks good! I don’t even know what the PID is so I assume I personally don’t need it? lol.
Stacked seems fine.
Not thinking of top of my head of needing other features currently. Maybe being able to see latency to those connected?

gaunt hazel
patent lance
gaunt hazel
patent lance
#

Literally… yeah buddy, sorry your WiFi sucks? Have you tried a $10 snaky boi? Haha

gaunt hazel
#

sadge I've bullied my friends to go wired long ago

patent lance
#

I’ve got a friend who swears he upgraded his internet.. bought the higher package… okay cool.. you still can’t host all our multiplayer games on your WiFi that DC’s every 30 minutes 🀣

patent lance
#

so idk what is going on but i DL'd this and was planning to use the old build and when i start the .exe my pc just quickly pops the window up and then disappears? nothing happens

wise thistle
patent lance
wise thistle
#

sounds to me like the URL is incorrect. no idea.

patent lance
#

i cant for the life of me get that to work. Created a new discord and all. Won't send, GIves me error 401

#

am i supposed to set something up through a bot or do a github?

patent lance
#

webhooks

gaunt hazel
#

If webhook, just provide the full URL in config

If bot, need to create one with read/write perms

gaunt hazel
patent lance
gaunt hazel
#

Lmao

#

πŸ˜‚ πŸ˜‚ πŸ˜‚ ❀️

patent lance
#

im sorry.... lol

gaunt hazel
patent lance
gaunt hazel
#

4am here so

#

But we get a full nights sleep all of us on average, just sometimes he wakes up like this cuz glutton

patent lance
#

for sure, eat, sleep, poop. the cycle of life lol

hearty ermine
#

i configged it but it just opens then closes

#

nothing happens

gaunt hazel
hearty ermine
#

yep

#

exactly what i missed

#

thank you

gaunt hazel
hearty ermine
#

mmm, still did the same thing

#

ill double check config

gaunt hazel
#

pepeHmm
path to SPT.Server.exe correct?

hearty ermine
#

C:\SPT\SPT.Server.exe

gaunt hazel
#

Double slashes

hearty ermine
#

yep

#

makes sense

#

there we goooo

gaunt hazel
#

I'm working on making it easier and more foolproof Prayge
Baby just takes time

hearty ermine
#

yea the double slash thing is new to me

patent lance
gaunt hazel
#

cant fall back asleep after baby woke me up sooo wheeze

stoic shell
#

been using this for about a month now and it's working like a charm (once I figured out the install with y'alls help xD)

stoic shell
#

Looking forward (patiently cuz babeh) to future headless support! ^_^

gaunt hazel
#

Fika 4.0 out πŸ‘€ which means WebApp for it too (soonβ„’ )

This little project of mine is possibly redundant now, but I'll personally still be working on it whenever I do have time regardless, but the Fika one is probably (Deffo) going to be a more polished experience than this πŸ˜…

teal glen
#

I know you are super busy with a newborn and such, and this probably isn't the place to aske, but I was wondering if there was a way to implement the discord integration aspects of this project without the management side of things. I have a few people that play on a server I host and it would be awesome to see who was online and doing what. I have zero idea where to start or what to do, but if anyone here can point me in the right direction I would greatly appreciate it.

gaunt hazel
#

Something might even exist already on the spt forge, not checked myself

teal glen
#

I was under the impression that this was incompatible with 4.0. Unless I'm thick, that is.

gaunt hazel
#

I can't confirm if it would work with 4.0 or not, I don't inherently have anything that would stop it, it's more if fika no longer has the events I've used to check for players πŸ˜…

teal glen
#

Thank you for responding, btw. I think it complains about being unable to set a console mode. I think shynd mentioned the console masking isn't supported in 4.0. I did some looking and all the integration stuff looks like 3.11 or older. It isn't a big deal. I was looking into setting something up to poll the fika api, but I am so new to this that I don't really know where to start. It is seeming like it actually is hard to teach an old dog new tricks.

gaunt hazel
teal glen
#

I'll keep checking in. Looks like I'm off to figure this out. Thanks again and I hope you have a happy new year