jweigelt / swbf2admin

Star Wars Battlefront II (2005) server management application
GNU General Public License v3.0
49 stars 18 forks source link

Adding modded maps with custom sides and gamemodes #67

Open Shiz0id opened 3 months ago

Shiz0id commented 3 months ago

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

Shiz0id commented 3 months ago

I can set the map and gamemode id's now but there's no way for me to use the custom sides letter X, the app only allows stock side letters

Shiz0id commented 3 months ago

After some thinking an easy way to hack allowing this would be letting you edit the launch args before launching BF2.exe, that way if I know my map data is CN3x_Seige for example I could manually enter that.

Alpha5k commented 3 months ago

The easiest way to add custom maps directly into the rotation is just to edit ServerRotation.cfg in the settings folder. This file is read by the game on launch as well as parsed by WebAdmin. Just add /addmap CN3x_Seige to the end of the file.

You can also edit maps.html and maps.js and add whatever custom modes and eras you want.