#installing dedicated server

99 messages · Page 1 of 1 (latest)

marble roverBOT
#
Itzdankhill has submitted a ticket

Versions: newest versions of both
Networking: port forwarding
Description: while trying to install a dedicated server im getting an error that says a patch in sptcustomplugin failed the type initializer for spt.custom.easyassetspatch threw an exception subsequent patches have not loaded

#

Thread started by: @lament stratus

marble roverBOT
#

@lament stratus please attach any applicable log files and mod lists while waiting for help!

lament stratus
#

there are no mods installed as this is a new install for the fika dedicated server

#

[Error :SPT.Custom] A PATCH IN SPTCustomPlugin FAILED. SUBSEQUENT PATCHES HAVE NOT LOADED
[Error :SPT.Custom] SPTCustomPlugin: System.TypeInitializationException: The type initializer for 'SPT.Custom.Patches.EasyAssetsPatch' threw an exception. ---> System.BadImageFormatException: Could not resolve field token 0x04000004, due to: Could not load type of field 'SPT.Reflection.Utils.PatchConstants:_backEndSession' (10) due to: Could not resolve type with token 01000010 (from typeref, class/assembly ISession, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null) assembly:Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null type:ISession member:(null) signature:<none> assembly:D:\SPT Server\BepInEx\plugins\spt\spt-reflection.dll type:PatchConstants member:(null) signature:<none>
at SPT.Custom.Patches.EasyAssetsPatch..cctor () [0x00000] in <b688b79dfa8e47c69c0abbc5c464e98a>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at SPT.Custom.SPTCustomPlugin.Awake () [0x00010] in <b688b79dfa8e47c69c0abbc5c464e98a>:0

#

that is the entire error message

graceful adder
#

Dedicated server or client?
The error you threw is related to EFT being launched.

#

IIRC the most common issue of this specific thing is when client getting stuck on loopback, aka you try to connect your SPT server that is in local machine by using external IP.

lament stratus
#

this is dedicated server setup on the same machiene ill be playing on

graceful adder
#

what

#

Dedicated server...
On same machine
What makes it dedicated then?

lament stratus
#

for my friends to join that one

graceful adder
#

Can you just show up your setup and guide you're following?

lament stratus
#

yeah

#

thats the guide

#

and what do you mean by setup

#

like how i have spt installed?

#

is it maybe because i have both my client and server installed into the same directory?

#

there not in the same folder just both on my d drive

graceful adder
#

So, the guide you dropped is for Dedicated Client.
It is an optional thing and not really intended to be used within same machine.
The issue you have is most likely relevant to your network settings within Dedicated Client.

lament stratus
#

we want the dedicated because 2 people cannot access there port forwarding settings so theyd be able to host raids as well the dedicated made it so they dont have to edit there port forwarding

#

like there isps dont allow them to access there modems

graceful adder
#

Dedicated Client should be as a separate folder from your usual Client, because it is supposed to run different set of plugins, including dedicated plugin, SPT installation may not matter in this aspect, you can run from either of installations or have the server structure installed independently (if you know how).

#

Anyway, back to my main concern - which ip you use to connect dedicated to SPT server?

lament stratus
#

i cant even get to the point of connnecting to the server it throws that error before the dedicated ever even start

#

this video explained that i have to use my ipv4

#

not my public ip for the dedicated side

#

but when i got to connect since its local i have to use 127.0.0.1

#

at least thats how i understood it from the guide

#

the normal server runs but when i try to start the dedicated it throws that error

#

im gonna try to just do a reinstall on a different drive and see if that changes anything

graceful adder
#

Alrite, show your dedicated settings and server settings you've set.

#

Changing drive defo won't change a thing.

lament stratus
#

dang well ill lyk when i get back to that issue i kinda jumped the gun to quick my b

#

its already done installing spt so should only be like 5 min till i get back to that

graceful adder
#

smh

lament stratus
#

yeah im an ass i know lol

graceful adder
#

what's the point of asking for help if you act regardless

lament stratus
#

i apologize i jumped the gun to quick

graceful adder
#

In your case you do need to leave it on 127.0.0.1.
Meanwhile, guide exist with FAQ related to it

#

#1267842049357643837 message

#

With exact issue of yours

graceful adder
#

I should've looked there in the first place, oh well

lament stratus
#

all good g i just got back to that issue any way

#

thank you for peeping that ill correct that now

#

i changed that and im still getting the same error

graceful adder
#

Well then we're back to square one huh?

lament stratus
#

the last thing its asking for before it throws that code is spt.custom

graceful adder
lament stratus
graceful adder
#

Anyway, you still haven't provided the settings you have.
What did you set in fika server config and dedicated fika core settings?

#

and do not use phone for screenshots, you have PC for that

lament stratus
#

I did exactly what the guide told me I'll send screenshots of both

#

fika settings

graceful adder
#

Well, start with having 0.0.0.0 in both.
Second, you could have just dropped the files here instead of screenshoting the piece of them

#

because i cannot see what ip you took in scripts zone

lament stratus
#

oof

#

i got you

marble roverBOT
#

@lament stratus, that file extension is not allowed! finger_wave
Allowed extensions: .png, .jpeg, .webp, .gif, .mp4, .webm, .mp3, .wav, .json, .txt, .log

If your text files are being rejected, verify that the charset is 'utf-8'

graceful adder
#

Huh, lul

lament stratus
#

thats for the fika.jsonc

#

wont let me send that lol

graceful adder
#

it tried to, but jsonc is blocked by the bot, lul

#

Alrite, guess we're back to pics, just send the rest of the thing.

lament stratus
#

the other half

graceful adder
#

Ok, as being said by the guide.
set to 127.0.0.1, and in http.json - set Backend IP to 0.0.0.0

#

restart everything, run the server, run the dedi

lament stratus
#

so in fika.jsonc put that as 127.0.0.1

graceful adder
#

For now, yeah.

lament stratus
#

should i also restart the pc?

graceful adder
#

no

lament stratus
#

kk

graceful adder
#

I feel like i'm 911 operator

lament stratus
#

so still the same error

graceful adder
#

Did you changed http.json as well and restarted SPT server?

lament stratus
#

yeah

graceful adder
#

Ok, IIRC there should be a .bat file with launch options, including IP.

#

What settings did you set there?

lament stratus
#

the only .bat file i see is for the dedicated server start

graceful adder
#

DEDICATED CLIENT.

#

The names are confusing but you gotta call things what they are

lament stratus
#

is there supposed to be another batch file

graceful adder
#

No, that one bat you're supposed to run to get dedicated client going.

#

I'm just not sure should you change it or not, since i'm not accustomed with dedicated setup, plus as i said before - you weren't suppose to run it on same machine.
The guide you follow also made for 2 machines.

lament stratus
#

i have another pc i use for servers its just underpowered for a tarkov client

#

its a mini pc so intergrated gpu not gonna run this game the right way i already had a server for fika on it just not dedicated

#

this dedicated stuff is a handfull ngl and thank you for being patient with me

graceful adder
#

Eh fuck it, i need to see whole setup to form a picture of what is the cause.
Let's go to VC

lament stratus
#

kk

graceful adder
#

Ticket solved: User did not split dedicated and main copy.