GithubHelp home page GithubHelp logo

jweigelt / swbf2admin Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 18.0 637 KB

Star Wars Battlefront II (2005) server management application

License: GNU General Public License v3.0

HTML 6.53% JavaScript 10.40% CSS 1.75% C# 71.11% Lua 0.98% Batchfile 0.01% C++ 8.95% C 0.06% CMake 0.20%

swbf2admin's People

Contributors

alpha5k avatar jweigelt avatar metallicafan212 avatar michaelx333 avatar swbf2aslan avatar yonilerner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swbf2admin's Issues

WebAdmin aidifficulty

Hi,

could you add a selector for bot dificulty. I couldn't find any at the moment.

Thank you in advance.

Difficulty setting does not save

Hey all,

I noticed the difficulty setting is always being set to 3 (Elite), this appears to be due to the JS that runs on the page doesn't look at #game_select_difficulty so it ends up using the default property value (which is 3).

Changing web/res/game.js should be enough to fix the issue.

Enabling !applymods commands

I downloaded the latest revision of SWBF2 ADMIN 1.2.8 with the updated xml file.
I dragged the contents of the Gamedata Folder into (.server folder)
I enabled runtime, and the server starts on Webadmin.
When I type !applymods enable no_force on the web admin chat it says Admin: Applied no_force in game
then I have my user logged in through /admin /login password
I type /admin /endgame to reset the game.
I also have tried just !endgame in Webadminchat
The No Force mod still not seeming to work. Force Push and Pull are still working.

I am confused by what you mean by (Simply copy the contents of _LVL_PC from the old server package to ./server/_LVL_PC ...)
Take the _LVL_PC folder from the GOG files, and copy the entire folder into the server folder? or the contents inside folder only?, Or The Opposite? What is old server package? (GOG)?

Also how you use !applymods inside of game,I don't know the exact phrase right after I hit the T button to type, I tried these. After being logged in through /admin /login password
!applymods enable no_force
/admin !applymods enable no_force
/admin /applymods enable no_force
/admin /!applymods enable no_force

all said command not found
and how do I get !gimmeadmin to work inside of game?
what is the exact phrase I type, I also tried that command as the same format as above

I'm pretty new to this all, I'm trying to understand. And most of all to get the No Force Mod to work. I have looked at #32 . But I am not clear on what I am doing to get it to work.

"Random" default settings

The server's settings sometimes get overwritten with the default values defined in the html form.
This is probably caused by the settings being sent before receiving them first.
So far I wasn't able to figure out what's invoking the request as it seems to happen randomly.

GOG server not loading on list

I really hate to bother you with an issue you most likely will see as a "dumb question".
I am using the GOG galaxy version of this game. I have attached some screenshots of the webadmin tab on my computer. The only thing I don't understand is "game port" and the "rcon port" sections, so I didn't touch them.
What am I doing wrong?
Screenshot (1)
Screenshot (2)
Screenshot (3)

Edit: I read some more issues, and solved it.

StatsCreateGame NullPtr

[1/3/2018 10:11:22 AM] DEBUG | Closing game 69 (dea1c_1flag). Final score: 5/1
[1/3/2018 10:11:22 AM] DEBUG | Registering new game (tat2g_eli)

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at SWBF2Admin.Database.SQLHandler.InsertGame(GameInfo game) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Database\SQLHandler.cs:line 652
at SWBF2Admin.Runtime.Game.GameHandler.StatsCreateGame(String map, String mode) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Runtime\Game\GameHandler.cs:line 105
at SWBF2Admin.Runtime.Game.GameHandler.Rcon_GameEnded(Object sender, EventArgs e) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Runtime\Game\GameHandler.cs:line 66
at SWBF2Admin.ComponentBase.<>c__DisplayClass16_0.b__0() in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\ComponentBase.cs:line 62
at SWBF2Admin.Scheduler.SchedulerTask.Run() in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Scheduler\SchedulerTask.cs:line 17
at SWBF2Admin.Scheduler.TaskScheduler.DoWork() in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Scheduler\TaskScheduler.cs:line 108
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Adding modded maps with custom sides and gamemodes

Hello, I am trying to run a modded dedicated server however I am running into issues importing the modded maps into the SQL database. How do i learn the ID's for the custom gamemodes? I know you have a tool included that lets you calculate but how do I deal with custom game modes? Do i have to get documentation from the mod developers?
If it helps I'm trying to use Battlefront 3 legacy which has custom BF3 GCW and CW sides and a custom Orbital Assault mode

Can you help me?

Ive done everything Ive seen in the youtube video but the server crashes few moments after it starts

How to Add Custom Maps from Addon Folder

I'm having difficulty determining how I should go about adding modded maps from the addon folder within the server folder. The documentation refers to 'hexedit' mods, but I'm not entirely sure if they're one and the same as traditional mods. Any assistance would be appreciated.

Server when started not showing Address, etc

So when I start my game server, non of the info under the dashboard appears. The server is not displayed in game, but is running and I have port forwarded the game port both allowing the port in windows and on my router. I'm at a loss for figuring out why its not connecting.
image
image

Steam Server didn't start "Assuming it has crashed"

I downloaded release 1.2.8, moved the contents of my Steam installation's GameData to ./server.
The web portal runs fine but when I try to start the server I get the following messages.

5/31/2020 10:26:30 PM] INFO  | [AUDIT] admin ([::1]:49240) started the server

[5/31/2020 10:26:30 PM] INFO  | Launching server with args ''

[5/31/2020 10:26:50 PM] INFO  | Steam Launcher closed. Trying to attach to the server process.

[5/31/2020 10:27:20 PM] ERROR | Server didn't start after 31 retries. Assuming it has crashed.

Is it a problem that it is launching the server with no args? My core.xml config has the correct params set.

I have also set these launch parameters inside of steam:
/win /norender /nosound /autonet dedicated /resolution 640 480

I should add that it seems the Steam game is crashing around the time it would be at the title screen. It has to do with the launch parameters.

Thanks for the help, would like to get dedicated without GOG version of the game.

Index out of range if stats db is empty

[17.10.2019 23:10:28] ERROR | [WEB] WebAdmin error(System.IndexOutOfRangeException: Der Index war außerhalb des Arraybereichs.
bei System.Data.SQLite.SQLiteDataReader.GetSQLiteType(SQLiteConnectionFlags flags, Int32 i)
bei System.Data.SQLite.SQLiteDataReader.GetValue(Int32 i)
bei System.Data.SQLite.SQLiteDataReader.get_Item(String name)
bei SWBF2Admin.Database.SQLHandler.RI(DbDataReader reader, String field) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Database\SQLHandler.cs:Zeile 231.
bei SWBF2Admin.Database.SQLHandler.ReadMatch(DbDataReader reader) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Database\SQLHandler.cs:Zeile 766.
bei SWBF2Admin.Database.SQLHandler.GetMatches(String nameExp, String mapExp, Boolean onlySelected, DateTime dateFrom, DateTime dateUntil, Int32 page, Int32 maxRows) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Database\SQLHandler.cs:Zeile 825.
bei SWBF2Admin.Web.Pages.StatisticsPage.HandlePost(HttpListenerContext ctx, WebUser user, String postData) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Web\Pages\StatisticsPage.cs:Zeile 93.
bei SWBF2Admin.Web.Pages.AjaxPage.HandleContext(HttpListenerContext ctx, WebUser user) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Web\Pages\AjaxPage.cs:Zeile 86.
bei SWBF2Admin.Web.WebServer.HandleContext(HttpListenerContext ctx) in D:\Softwareentwicklung\Projekte\SWBF2Admin\SWBF2Admin\SWBF2Admin\Web\WebServer.cs:Zeile 224.)

Can't find hosted Server

i tried to start a server. I use the gog Version of Battlefront 2. But the Server doesn't appear in the List!
I have opened all relevant ports, using Windows 10 (Not windows Server). Whats wrong? :(

LAN server crashes after a number of seconds.

[5/28/2022 8:11:17 AM] WARN  | Server has crashed.
[5/28/2022 8:11:17 AM] INFO  | Automatic restart is enabled. Restarting server...
[5/28/2022 8:11:17 AM] INFO  | Launching server with args '/win /norender /nosound /autonet dedicated /resolution 640 480'
[5/28/2022 8:11:17 AM] INFO  | Connected to rcon server at '192.168.1.77:3658'. Sending login...
[5/28/2022 8:11:17 AM] INFO  | Login OK. Rcon ready.
[5/28/2022 8:11:57 AM] WARN  | Rcon disconnected. System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   --- End of inner exception stack trace ---
   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
   at System.IO.Stream.ReadByte()
   at System.IO.BinaryReader.ReadByte()
   at SWBF2Admin.Runtime.Rcon.RconClient.WorkThread_Run()

Ad infinitum. When the server is set to WAN everything appears to activate just fine, Unfortunately it seems just about no one else has talked about this issue anywhere else so it's very tough to troubleshoot with just google this time around (assuming it's even a problem on my end).

LIkely the same as #54 but that didn't include any information and I fear it has fallen through the cracks.

Cannot find GameData content

Hi, I still have issues installing it.
The readme says about

Copy the data folder from the dedicated server installation to your SWBF2 installation. Replace all files except shell.lvl!
Copy the contents of the GameData folder that came with SWBF2Admin to your server's GameData folder

I cannot find the GameData folder, that came with SWBF2Admin. I still have the battlefront2.exe from steam, so the server starts, but its acting pretty weird and it does not seem to work properly

Issues with RconServer always disconnecting

My server has enough memory and internet bandwithd but what is happening whatever RconServer.dll version we always get connection to host lost due to RconServer being disconnected, wwhat is the cause of this and what is the fix?

Hosting using Steam version of the game

Hello!
I have been spending some time today trying to get the most recent release of SWBFAdmin working with the Steam release of the game, and it doesn't appear to be working. I have configured the server as per the README, and changed the ServerType in ./cfg/core.xml to Steam.
I also set the ServerPath variable to the game's installation directory and copied the contents of ./server to the GameData subdirectory.
Shown here is the output to the console window from when I attempted to start the server via WebAdmin:

[11/29/2019 1:46:53 PM] INFO  | [COR] Starting SWBF2Admin v1.2.0.0 LeKeks, Yoni, AsLan ...
[11/29/2019 1:46:53 PM] INFO  | [COR] Config OK.
[11/29/2019 1:46:54 PM] INFO  | [SQL] Database OK.
[11/29/2019 1:46:54 PM] INFO  | [WEB] WebAdmin started at 'http://localhost:8080/'
[11/29/2019 1:47:03 PM] INFO  | [AUDIT] Yodadude2003 ([::1]:57172) modified game settings
[11/29/2019 1:47:06 PM] INFO  | [AUDIT] Yodadude2003 ([::1]:57172) modified game settings
[11/29/2019 1:47:08 PM] INFO  | [AUDIT] Yodadude2003 ([::1]:57172) started the server
[11/29/2019 1:47:08 PM] INFO  | Launching server with args ''
[11/29/2019 1:47:14 PM] INFO  | Steam Launcher closed. Trying to attach to the server process.
[11/29/2019 1:47:15 PM] INFO  | Found running server process '' (13064), re-attaching...
[11/29/2019 1:47:19 PM] WARN  | Server has crashed.
[11/29/2019 1:47:19 PM] INFO  | Automatic restart is enabled. Restarting server...
[11/29/2019 1:47:19 PM] INFO  | Launching server with args ''
[11/29/2019 1:47:24 PM] INFO  | Steam Launcher closed. Trying to attach to the server process.
[11/29/2019 1:47:25 PM] WARN  | Can't access BattlefrontII process #28296 (Object reference not set to an instance of an object.)
[11/29/2019 1:47:26 PM] INFO  | Found running server process '' (28296), re-attaching...
[11/29/2019 1:47:30 PM] WARN  | Server has crashed.
[11/29/2019 1:47:30 PM] INFO  | Automatic restart is enabled. Restarting server...
[11/29/2019 1:47:30 PM] INFO  | Launching server with args ''
[11/29/2019 1:47:35 PM] INFO  | Steam Launcher closed. Trying to attach to the server process.
[11/29/2019 1:47:36 PM] INFO  | Found running server process '' (29904), re-attaching...
[11/29/2019 1:47:40 PM] WARN  | Server has crashed.
[11/29/2019 1:47:40 PM] INFO  | Automatic restart is enabled. Restarting server...
[11/29/2019 1:47:40 PM] INFO  | Launching server with args ''
[11/29/2019 1:47:45 PM] INFO  | Steam Launcher closed. Trying to attach to the server process.
[11/29/2019 1:47:47 PM] INFO  | Found running server process '' (23204), re-attaching...
[11/29/2019 1:47:51 PM] WARN  | Server has crashed.
[11/29/2019 1:47:51 PM] INFO  | Automatic restart is enabled. Restarting server...
[11/29/2019 1:47:51 PM] INFO  | Launching server with args ''
[11/29/2019 1:47:56 PM] INFO  | Steam Launcher closed. Trying to attach to the server process.
[11/29/2019 1:47:57 PM] INFO  | Found running server process '' (27628), re-attaching...

The moment the game launches, it immediately crashes and SWBFAdmin tries to launch it again.
The game also leaves a brief log.txt file in the GameData directory, containing this line:
bind failed with error %u
It also appears that in the source code for RconServer, some of the OFFSET_{insert-name-here} definitions are missing for Steam in bf2server.h.
This leaves me with a couple questions:

  • Is it currently possible to host with SWBFAdmin with the Steam version of the game?
  • If so, what am I doing wrong?
  • If not, are you planning on adding Steam hosting support soon?

Thanks,
Yodadude2003

Mods/Custom Maps

I can't seem to get anything in my addon folder to be recognized by SWBF2Admin. Are mods supported? I am trying to run a custom map on dedicated server, and can't find out how the other guys do it. Thanks.

Edit: Actually I see this ticket explaining how I would add a map: #31

But I am still having issues adding a single map. When I try to use it the server crashes. I'm not sure if I named the new record in .sqlite correctly. My map lives in /addon/KTH/KTH.lvl
I setup my record like this:
map_name map_nice_name map_gametype_flags
kth Kothlis Ice Haven 1

What am I doing wrong here, thanks a ton!

Edit 2: My issue was the map name. All works as intended now :)

Failed to connect to RCON Server

I can't seem to get the rcon setup at all. When I launch the server I get the following error.

Failed to connect to rcon server at '192.168.1.210:5509' (System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 192.168.1.210:5509
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at SWBF2Admin.Runtime.Rcon.RconClient.Start())

The game runs and I can connect and all that, but none of the dashboard stuff shows up, like players, chat, server info, etc..

Multiple Servers from One Machine?

Hi Jan,

First of all, what an incredible piece of work this is. Your server manager is far easier to use than the original and more intuitive.

Secondly, I have been running a server using SWBF2 admin from a Virtual Machine. It's been running great with no issues. However, I have been trying to run a second server from the same Virtual Machine. I extracted a new copy of the files to another location and followed the instructions again, but this time I used port 8081 rather than 8080. When both servers run at the same time, there have been issues operating WebAdmin. Whichever server is launched first is the "game session" for both WebAdmins, and if I shut down the first server, it shuts down the second. There have also been some other issues, such as crashes and then the server being stuck "restarting".

Do I need to make further changes to make them both work independently? Is it even possible?

Thanks in advance. Apologies for what may have an obvious answer. I've tried to find a solution myself but I feel that I am out of my depth.

Security issues

Hello, I noticed two security issues.

  1. HTTPS is not supported, which causes the login/password to be sent in clear text on every HTTP request.

  2. Passwords are hashed with MD5 before being stored in the database. MD5 is not a secure hashing algorithm, a SHA-2 algorithm (e.g. SHA-256) could be used instead (not the best but easy to implement and better than MD5) and the passwords should ideally be salted before being hashed.

I will try to implement these changes and submit a pull request, hoping you will accept it.

Error when building project: StopEventArgs.cs & EmptyRestart.cs

Hi,

I'm trying to go about installing this incredible piece of software that you guys have made but i'm coming across some issues.

For one, the installation guide implies the .zip comes with a SWBF2Admin.exe, but I fear I could not find one. So instead I tried to build it myself, but when trying to build I get this error:

'C:\Users<name>\Desktop\GIT\swbf2admin\SWBF2Admin\Gameserver\StopEventArgs.cs' could not be found.

and

'C:\Users<name>\Desktop\GIT\swbf2admin\SWBF2Admin\Runtime\Watchdog\EmptyRestart.cs' could not be found.

Any help would be appreciated, cheers :)

SWBF2Admin.exe Location?

I know the readme file is out of date, I feel like I'm close though I just don't know where the actual exe is located.

Adding in new maps

Hello,

I've been trying to figure out how to install a new map into the server but nothing seems to work.

Small timestamp problem

After messing with timestamps I have noticed a small problem with games starting and ending. I'm not sure the exact problem or if I'm just not reading it correctly, but it seems that some games are '30' hours long rather than the actual 25 minute timer. My theory is that maybe the time isn't being recorded until the next game starts so it stamps the same time for the end and start for either game.

Effectively this means that if the server is unpopulated after a map and remains unpopulated for a day or two then the timestamp will get messed up and read that the one map took '30' hours or so to play.

I was just exploring an option to find a points per minute solution that involved these timestamps recorded in the database.

Statistics: Can't View | Index was outside the bounds of the array.

Loving this tool!
Unfortunately, when I refresh the statistics page I get the following error:

[5/23/2020 6:06:29 PM] DEBUG | [WEB] Got request 'http://192.168.1.105:8080/db/statistics'
[5/23/2020 6:06:29 PM] | [SQL] Query: SELECT * FROM prefix_stats_games WHERE game_started_timestamp > @from_timestamp AND game_started_timestamp < @until_timestamp AND game_ended_timestamp > 0 ORDER BY game_started_timestamp DESC LIMIT @page,@max_rows
[5/23/2020 6:06:29 PM] ERROR | [WEB] WebAdmin error(System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Data.SQLite.SQLiteDataReader.GetSQLiteType(SQLiteConnectionFlags flags, Int32 i)
at System.Data.SQLite.SQLiteDataReader.GetValue(Int32 i)
at System.Data.SQLite.SQLiteDataReader.get_Item(String name)
at SWBF2Admin.Database.SQLHandler.RI(DbDataReader reader, String field)
at SWBF2Admin.Database.SQLHandler.ReadMatch(DbDataReader reader)
at SWBF2Admin.Database.SQLHandler.GetMatches(String nameExp, String mapExp, Boolean onlySelected, DateTime dateFrom, DateTime dateUntil, Int32 page, Int32 maxRows)
at SWBF2Admin.Web.Pages.StatisticsPage.HandlePost(HttpListenerContext ctx, WebUser user, String postData)
at SWBF2Admin.Web.Pages.AjaxPage.HandleContext(HttpListenerContext ctx, WebUser user)
at SWBF2Admin.Web.WebServer.HandleContext(HttpListenerContext ctx))

I have Game Statistics and Player Statistics gathering enabled and verified there is data in SQL.

LAN Always Crashes

Has anyone got LAN working with this? My gog BF2 client always crashes, even when I try the old way of using a .bat file to start a dedicated server

Failed to connect to rcon server

Hi Lekeks.

We have had an error appear for several of our server. I'll post an example of it:

[22/03/2021 00:38:45] ERROR | Failed to connect to rcon server at '192.236.161.206:3659' (System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 192.236.161.206:3659
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at SWBF2Admin.Runtime.Rcon.RconClient.Start())
[22/03/2021 00:38:45] ERROR | Failed to start runtime management (No connection could be made because the target machine actively refused it 192.236.161.206:3659)

This error did not used to exist but in the last few months it's appeared on all but three of our servers (we have eight in total). I have tried the suggestions from the previous ticket. Runtime delay is at 3000, the rcon and gameport is the same, the ports are set up fine because this was working before (and the issue happens even with Firewall disabled). I'm at a loss, but it means webadmin is down for all of these servers.

This is the contents of the ServerSettings file for the above server:

/gamename "[BFH] Amsterdam"
/password "XXXX"
/adminpw "XXXX" (censored)
/ip "192.236.161.206"
/gameport 3659
/rconport 3659
/tps 30
/playerlimit 9
/playercount 8
/lan 0
/bandwidth 16384
/voicemode 3
/netregion "EU"
/videostd "NTSC"
/nodroplagjumps
/nowaitlate
/nosplitupdate
/lagversion 0
/heroes 0
/hrunlock 3
/hrunlockvalue 10
/hrplayer 1
/hrteam 1
/hrrespawn 90
/contimelimit 15
/conreinforcements 200
/conaiperteam 0
/ctfscorelimit 3
/ctftimelimit 15
/ctfaiperteam 0
/huntscorelimit 0
/huntimelimit 0
/assscorelimit 0
/assreinforcements 0
/assaiperteam 0
/elitimelimit 0
/eliaiperteam 0
/shownames 1
/teamdamage 1
/awards 0
/autoassignteams 0
/difficulty 1
/spawn 2
/pregametime 0
/kickvotethreshold 0
/teamvotethreshold 0
/aimassist 0
/randomize 0
/autoannounceperiod 1

SWBF2 autokick functionality

Hello there!,

Is there a way to auto-kick for Negative score, and ban certain words for the server?

Back in the day they had those features of SWBF2 Managers, And if not, are you planning to implement them? They would be very very helpful!

Such as this https://imgur.com/a/1HKOr7w

Or could I connect this server to an old manager somehow to do that? And please go into detail if you can on how do that if possible.

Also, is there a way to have "No Force Servers. for Mos Eisley Assault" Map? And please go into detail if you can.

Invalid space map rotation options

Hey all,

Slight bug due to how the code is in maps.htm, GCWAss and CWAss both have the "data-map" attribute of "g_ass". This is wrong because CWAss should have "c_ass" and should also say CW Assault.

Because of this, the invalid maps enter rotation incorrectly.

Issues I've noticed since the update

RCON has worked like a charm since the update until yesterday when I got a threading error. I've attached a picture of the console message below. A window also pops up saying "SWBFAdmin has stopped working".

The server still disappears from the steam server browser sometimes, but it's not crashing because it's still running on the VPS. The error message I get is a pop up window saying "BattlefrontII.exe has stopped working"

The last thing is I can't figure out is why the stats page no longer works for me, but I still need to do some more testing on this one.

Thanks for your continued work!

Server randomly crashes for no reason?

image

I have 4 dedicated servers running, all on different ports, all port forwarded, all on WAN instead of LAN as putting the servers in LAN puts it in an infinite crash loop.

At first, I narrowed it down to me creating the ServerRotation.cfg manually (I put a game mode for a map that doesnt exist, like clone wars on endor for example). I did this because I was using Microsoft Edge, which didn't support drag and drop in the webadmin browser for whatever reason.

So, I did it the legit way in chrome, by dragging and dropping, then just copying that ServerRotation.cfg to the other servers.

All my servers are also running at 30 tps btw.

Interestingly enough, my servers running the Xbox DLC mods seem to be much more stable and rarely crash. Checked the configs though and no difference.

What gives? Any way to make the logs more verbose so I can see what exactly is making them crash?

Server fails to launch d/t "WebAdmin error"

When trying to launch the server from the WebAdmin in my browser, it fails to launch and I get this notification from the interface that opens with SWBF2Admin.exe:
"ERROR | [WEB] WebAdmin error(System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at SWBF2Admin.Gameserver.ServerManager.Start()
at SWBF2Admin.Web.Pages.DashboardPage.HandlePost(HttpListenerContext ctx, WebUser user, String postData)
at SWBF2Admin.Web.Pages.AjaxPage.HandleContext(HttpListenerContext ctx, WebUser user)
at SWBF2Admin.Web.WebServer.HandleContext(HttpListenerContext ctx))"

I've tried (in no particular order) uninstalling and reinstalling everything (The game through GoG Galaxy and the server software from here), I've read and followed the directions in the Readme very carefully, I've tried running the software as an Admin, I've tried using different web browsers, and I've checked my security to make sure that nothing's being blocked. It might be worth noting that I had all of this working earlier today and yesterday with the exact same setup. Everything I've tried produces the exact same error message.

SWBF2 server stucks at "Loading..."

Hi Guys,
I want to set up my own server and for sure I did something wrong due to installing it.
However, maybe someone can help me out here:

When I start the server thorugh the swbf2 admin, battlefront2.exe is found, but the dedicated server does not start. It keeps stucking at "Loading..." Maybe the connection through steam is not working.

When I do some weird stuff, I get the message:

Failed to connect to rcon server at '127.0.0.1:4658' (System.Net.Sockets.SocketException (0x80004005): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 127.0.0.1:4658
bei System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
bei System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
bei System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
bei SWBF2Admin.Runtime.Rcon.RconClient.Start())

It seems like the rcon server is not running. So maybe I did something wrong thorugh the installation process, or I am not sure. Can anyone help me out here?

Thank you!

Steam

So there is no way to run a steam server without using steam? Does that mean if I did install it, I can't simultaneously run a server and play on the server? Also i'm assuming it won't run on old machines such as xp.

Rcon packet timeout happening at any time

Hi guys,
First of all congratulations and thanks for this awesome admin tool. But since the beginning I'm encountering rcon packet timeouts at any random time making web panel informations no longer updated. I mean one day I can start the server and these constant timeouts problem will occur only the evening, maybe the next day I will face the problem just after the server restarted.
To be clearer the server is working pretty fine, but these rcon packet timeouts happen randomly and often needs a server restart to disappear. Maybe if I increase the RconClient timeout constant this will decrease, I dunna know, do you guys have this kinda problem, do you have any solution? Thanks in advance!

Accessing Webadmin from PC on same router/Don't Limit to Local Machine

Hello, I have one PC running the server, and I'm wondering how to access the WebAdmin from the same network I am running on from a separate computer. Or/and Access it from phone if that is also possible.

Currently I have it set as http://localhost:8080/ , which limits to only the computer that I am actually running the SWBF2ADMIN exe.

"You can use either your server's IP-Address or a domain which points to your server.
Use localhost or 127.0.0.1 to limit access to the local machine." (found in core.xml file)

What are ways to make it not limit it to my local machine? Do I have to purchase a Domain?
Can I set it to my direct IP somehow?, so that I can access it from other computers?

Scripts for the Server

Howdy, I created with a friend an Assault Server. But now what I need are some scripts for the server like ,,Disable Force like Choke, Push and co". Is there a website for some SWBF2 scripts or must I create myself a script.

Can't see the server in the games server list

I have the issue that I cannot see the server in the games server list. I have followed the instructions. I have copied the GOG files but cant see the server in Steam and GOG SWBF2. Also I dont know how to write my game directory into the cfg file. I know its opened with editor but in which format do I have to paste my game directory in?

What am I doing wrong? I am a beginner and have no experience in this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.