Campaign hoth on dedicated server
Moderator: Moderators
-
Zeяo
- Private Recruit
- Posts: 16
- Joined: Wed Jun 04, 2014 11:14 am
- Projects :: Bypassing 64 player limit swbf2
Campaign hoth on dedicated server
Hey I was wondering how I can add the campaign hoth map to a dedicated server? I know the code is: hot1g_c but the dedicated server files do not recognize it. Where is it stored in the main game files?
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Campaign hoth on dedicated server
All stock mission scripts are stored in GameData\data\_lvl_pc\mission.lvl, but even then, I'm almost positive the stock campaigns do not work in online matches, nor does the Black Bag Ops Server Manager read the "c" mode ID (it only seems to read con, 1flag, ctf, eli, a.ss, and hunt).
-
Twilight_Warrior
- Droid Pilot Assassin

- Posts: 2002
- Joined: Sat Nov 15, 2008 1:57 pm
- xbox live or psn: ScorchRaserik
Re: Campaign hoth on dedicated server
The stock campaigns do work in online matches, but they're preset to auto-assign so the first player to join the server will be Reps/Imps and the next will be the enemy. They're also relatively unstable and may crash more frequently than the normal stock maps.
However, you are right in that the server manager doesn't recognize them. You have to manually add them to the list using ingame admin commands after the server is running. Boot up the server, hop in the game, log in as an admin, and type "/admin /addmap hot1g_c".
However, you are right in that the server manager doesn't recognize them. You have to manually add them to the list using ingame admin commands after the server is running. Boot up the server, hop in the game, log in as an admin, and type "/admin /addmap hot1g_c".
-
Zeяo
- Private Recruit
- Posts: 16
- Joined: Wed Jun 04, 2014 11:14 am
- Projects :: Bypassing 64 player limit swbf2
Re: Campaign hoth on dedicated server
Yes I tried, but the campaign files aren't in the dedicated server files I think because I tried to add it with /admin /addmap hot1g_c and when I tried to run "!runnext" it didn't do anything but when I did "!nextmap it showed hot1g_c so it doesn't recognize the map but it only saves the name "hot1g_c"Twilight_Warrior wrote:The stock campaigns do work in online matches, but they're preset to auto-assign so the first player to join the server will be Reps/Imps and the next will be the enemy. They're also relatively unstable and may crash more frequently than the normal stock maps.
However, you are right in that the server manager doesn't recognize them. You have to manually add them to the list using ingame admin commands after the server is running. Boot up the server, hop in the game, log in as an admin, and type "/admin /addmap hot1g_c".
-
Twilight_Warrior
- Droid Pilot Assassin

- Posts: 2002
- Joined: Sat Nov 15, 2008 1:57 pm
- xbox live or psn: ScorchRaserik
Re: Campaign hoth on dedicated server
Alright, so I tried it without using the !commands, only the /admin commands.
1) /admin /login <pass>
2) /admin /addmap hot1g_c
3) /admin /nextmap hot1g_c
4) /admin /endgame
And I got the map to load client-side. It started to load the map and then played the campaign intro video, but then when it actually got to the map it said "contacting host..." Minimized it, and the server just said it was "Loading..."
So, you're likely right, it doesn't recognize the map as being in the files. Sorry. Gotta run a normal, non-dedicated server to play campaigns online. I do know THAT can be done, from personal experience.
1) /admin /login <pass>
2) /admin /addmap hot1g_c
3) /admin /nextmap hot1g_c
4) /admin /endgame
And I got the map to load client-side. It started to load the map and then played the campaign intro video, but then when it actually got to the map it said "contacting host..." Minimized it, and the server just said it was "Loading..."
So, you're likely right, it doesn't recognize the map as being in the files. Sorry. Gotta run a normal, non-dedicated server to play campaigns online. I do know THAT can be done, from personal experience.
-
Zeяo
- Private Recruit
- Posts: 16
- Joined: Wed Jun 04, 2014 11:14 am
- Projects :: Bypassing 64 player limit swbf2
Re: Campaign hoth on dedicated server
Twilight_Warrior wrote:Alright, so I tried it without using the !commands, only the /admin commands.
1) /admin /login <pass>
2) /admin /addmap hot1g_c
3) /admin /nextmap hot1g_c
4) /admin /endgame
And I got the map to load client-side. It started to load the map and then played the campaign intro video, but then when it actually got to the map it said "contacting host..." Minimized it, and the server just said it was "Loading..."
So, you're likely right, it doesn't recognize the map as being in the files. Sorry. Gotta run a normal, non-dedicated server to play campaigns online. I do know THAT can be done, from personal experience.
And if I place the level files from the original game into the dedicated server files, would that work?
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Campaign hoth on dedicated server
I tried the same on my server. You just can watch the movie but when you should be able to spawn as rep or imp you only can see one white sentence. But if you host an own server with creating one it defenitly should work.
-
Zeяo
- Private Recruit
- Posts: 16
- Joined: Wed Jun 04, 2014 11:14 am
- Projects :: Bypassing 64 player limit swbf2
Re: Campaign hoth on dedicated server
You mean it should work on a listen server right? A server hosted on a client pcthelegend wrote:I tried the same on my server. You just can watch the movie but when you should be able to spawn as rep or imp you only can see one white sentence. But if you host an own server with creating one it defenitly should work.
-
Twilight_Warrior
- Droid Pilot Assassin

- Posts: 2002
- Joined: Sat Nov 15, 2008 1:57 pm
- xbox live or psn: ScorchRaserik
Re: Campaign hoth on dedicated server
You could try it. I'm 90% certain, though, that they're the exact same files, vanilla. I bet they're there, the server manager probably just doesn't have the capability to "see" those missions (as in, it wasn't programmed to look for/add them to the list).Zeяo wrote:Twilight_Warrior wrote:Alright, so I tried it without using the !commands, only the /admin commands.
1) /admin /login <pass>
2) /admin /addmap hot1g_c
3) /admin /nextmap hot1g_c
4) /admin /endgame
And I got the map to load client-side. It started to load the map and then played the campaign intro video, but then when it actually got to the map it said "contacting host..." Minimized it, and the server just said it was "Loading..."
So, you're likely right, it doesn't recognize the map as being in the files. Sorry. Gotta run a normal, non-dedicated server to play campaigns online. I do know THAT can be done, from personal experience.
And if I place the level files from the original game into the dedicated server files, would that work?
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: Campaign hoth on dedicated server
Pardon me for bumping an old topic but it has not been a month since the last person replied. I have messed with this a while and I got good progress at running the Rise of Empire levels on the Black Bag Ops server manager.
You should first you know how to re-create a custom mission.lvl using the asset/stock scripts - You can learn how at this site.
I will explain anyway, first go to Bf2 mod tools Assets\Scripts and copy all of the 3 letter folders. Paste them inside
Data_*** \ common \ scripts - where your Data_*** scripts are located.
Inside data_*** \ common , edit the mission.req so it looks like this:
- admins edit this post to hide the list of map codes
Next inside data_*** \ common \ scripts
Go to each folder , example COR and open cor1c_c.lua
This is where it becomes important. on each campaign lua script, remove these codes! some scripts will have more than 1 of these codes:
these are the 2 codes you need to remove from each _c.lua - they prevent the battlefrontii.exe from loading those levels in the server manager.
When you have done that, run the visualmunge inside data_***\ build
When visualmunge ends, go to data_*** \ lvl_pc - your mission.lvl is created and contains all the regular maps + the edited campaign lua scripts.
Put this file in your server's mission file location and replace.
When your server starts, (need 1 basic map to launch from) you can then go in game and use the admin login commands and run a campaign level /admin /changemap cor1c_c
How ever I said earlier not all levels work, and I also got a handful amount of bugs I can't fix regarding those levels.
Here is the list of problems I put together, and explains which levels work and don't
Bugs:
No jumping - you cannot jump - cannot fix this , pretty odd.
Players cannot enter vehicles - the space maps that work become useless hangar traps
The amount of ai bots cannot be controlled from server options
Geonosis training level - this level works until you are asked to "change to the engineer class"
- the engineer is not added to the CP - objectives becomes stuck
Players cannot fly - can't jump to fly anyway
Some times certain teams will look friendly but will be enemy - and you can still kill them
example: fel1c_c: Acklay appeared as blue but were red and could be killed
The last thing you need to know is that I have done various things to my campaign scripts to make levels work or that killed other levels , note that your outcomes may change from mine but what I gathered here is 80% accurate regarding which levels work without issues.
EDIT: I forgot an important part:
you MUST skip the game movies or the server times you out and will disconnect you.
You should first you know how to re-create a custom mission.lvl using the asset/stock scripts - You can learn how at this site.
I will explain anyway, first go to Bf2 mod tools Assets\Scripts and copy all of the 3 letter folders. Paste them inside
Data_*** \ common \ scripts - where your Data_*** scripts are located.
Inside data_*** \ common , edit the mission.req so it looks like this:
Hidden/Spoiler:
Next inside data_*** \ common \ scripts
Go to each folder , example COR and open cor1c_c.lua
This is where it becomes important. on each campaign lua script, remove these codes! some scripts will have more than 1 of these codes:
Code: Select all
SetMissionEndMovie("ingame.mvs", "cormon02")
ScriptCB_PlayInGameMovie("ingame.mvs","cormon01")When you have done that, run the visualmunge inside data_***\ build
When visualmunge ends, go to data_*** \ lvl_pc - your mission.lvl is created and contains all the regular maps + the edited campaign lua scripts.
Put this file in your server's mission file location and replace.
When your server starts, (need 1 basic map to launch from) you can then go in game and use the admin login commands and run a campaign level /admin /changemap cor1c_c
How ever I said earlier not all levels work, and I also got a handful amount of bugs I can't fix regarding those levels.
Here is the list of problems I put together, and explains which levels work and don't
Hidden/Spoiler:
No jumping - you cannot jump - cannot fix this , pretty odd.
Players cannot enter vehicles - the space maps that work become useless hangar traps
The amount of ai bots cannot be controlled from server options
Geonosis training level - this level works until you are asked to "change to the engineer class"
- the engineer is not added to the CP - objectives becomes stuck
Players cannot fly - can't jump to fly anyway
Some times certain teams will look friendly but will be enemy - and you can still kill them
example: fel1c_c: Acklay appeared as blue but were red and could be killed
The last thing you need to know is that I have done various things to my campaign scripts to make levels work or that killed other levels , note that your outcomes may change from mine but what I gathered here is 80% accurate regarding which levels work without issues.
EDIT: I forgot an important part:
you MUST skip the game movies or the server times you out and will disconnect you.
-
Zeяo
- Private Recruit
- Posts: 16
- Joined: Wed Jun 04, 2014 11:14 am
- Projects :: Bypassing 64 player limit swbf2
