Page 1 of 1

SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 4:41 am
by VSZM
I have been playing SWBF2 online since the very beginning. In the past few years I have been learning computer science, and familiarized a few programming languages.

I would like to look into some of the source codes of the SWBF2 server files if anyone would have them.

Does anyone know if anyone have the source files ?

I would like to investigate the origins of some known bugs like:
-Spawnbug
-Darktrooper cooldown bug
-etc


Any help is welcome.

Re: SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 2:52 pm
by LRKfm946
I don't know if the source code is availible. I do know, however, that the clan VA has already made patches for those bugs as well as many others including the boot bug and server hang crashing. They did have these patches on a server called [RAPTOR] Gaming but it didn't get much activity so it was taken down. The only reason you haven't seen these patches elsewhere is because SWGO refuses to accept them and put them on their servers (stupidest decision ever).

Note: The dark trooper glitch isn't server related, it's a bug in the game exe that affects all units: if you roll or jump, shot delay is cancelled out. It affects every weapon, but the arc caster is the only one with a shot delay long enough to have a noticable effect.
EDIT: The patch, however, is server sided. If the server exe is patched, players won't be able to DTG on the server.

Re: SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 3:07 pm
by VSZM
LRKfm946 wrote:I don't know if the source code is availible. I do know, however, that the clan VA has already made patches for those bugs as well as many others including the boot bug and server hang crashing. They did have these patches on a server called [RAPTOR] Gaming but it didn't get much activity so it was taken down. The only reason you haven't seen these patches elsewhere is because SWGO refuses to accept them and put them on their servers (stupidest decision ever).

Note: The dark trooper glitch isn't server related, it's a bug in the game exe that affects all units: if you roll or jump, shot delay is cancelled out. It affects every weapon, but the arc caster is the only one with a shot delay long enough to have a noticable effect.

Well on a normal game the server should have authority about whether a shot can be fired or not. So the client sends the shoot request (as a DT) and the server checks if the weapon is on cooldown or not. This is how normal multiplayer games work. So basically with more server side authority these cooldown based bugs could be eradicated. This is why I ask for the server side code.

Anyways can you point me to the patched server you mentioned? I would also like to know what they changed. Did they modify the exe files, or only lvl files?

Re: SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 3:25 pm
by LRKfm946
Looks like I edited my first post after you saw it:
LRKfm946 wrote:\The patch, however, is server sided. If the server exe is patched, players won't be able to DTG on the server.
My bad :?

If you want, add me on xfire and I can refer you to my friend from VA, he'll answer all your questions.

Re: SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 6:26 pm
by Marth8880
VSZM wrote:Well on a normal game the server should have authority about whether a shot can be fired or not. So the client sends the shoot request (as a DT) and the server checks if the weapon is on cooldown or not. This is how normal multiplayer games work. So basically with more server side authority these cooldown based bugs could be eradicated. This is why I ask for the server side code.

Anyways can you point me to the patched server you mentioned? I would also like to know what they changed. Did they modify the exe files, or only lvl files?
It sounds like they used the unofficial 1.4 patch found here: http://www.gamershell.com/download_15375.shtml

Regardless, the ShotDelay bug is a hard-coded bug, which pretty much means that fixing it is illegal since it would require modifying the game's executable. Unless you obtain permission to modify the game's executable like the developers of the unofficial 1.4 patch did, you'll be breaking the mod tools' end-user license agreement and, in effect, the law.

Re: SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 6:29 pm
by Teancum
Marth8880 wrote:Regardless, the ShotDelay bug is a hard-coded bug, which pretty much means that fixing it is illegal since it would require modifying the game's executable. Unless you obtain permission to modify the game's executable like the developers of the unofficial 1.4 patch did, you'll be breaking the mod tools' end-user license agreement and, in effect, the law.
... that being said, the game is long past its expiration date with developers and publishers.

Re: SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 6:52 pm
by VSZM
Teancum wrote:
Marth8880 wrote:Regardless, the ShotDelay bug is a hard-coded bug, which pretty much means that fixing it is illegal since it would require modifying the game's executable. Unless you obtain permission to modify the game's executable like the developers of the unofficial 1.4 patch did, you'll be breaking the mod tools' end-user license agreement and, in effect, the law.
... that being said, the game is long past its expiration date with developers and publishers.
ID Software has published source codes of almost all of their old games like Quake, Doom, etc.

I always wondered, is there ANY reason why other publishers are not doing this?

EDIT
Marth8880 wrote:
VSZM wrote:Well on a normal game the server should have authority about whether a shot can be fired or not. So the client sends the shoot request (as a DT) and the server checks if the weapon is on cooldown or not. This is how normal multiplayer games work. So basically with more server side authority these cooldown based bugs could be eradicated. This is why I ask for the server side code.

Anyways can you point me to the patched server you mentioned? I would also like to know what they changed. Did they modify the exe files, or only lvl files?
It sounds like they used the unofficial 1.4 patch found here: http://www.gamershell.com/download_15375.shtml

Regardless, the ShotDelay bug is a hard-coded bug, which pretty much means that fixing it is illegal since it would require modifying the game's executable. Unless you obtain permission to modify the game's executable like the developers of the unofficial 1.4 patch did, you'll be breaking the mod tools' end-user license agreement and, in effect, the law.
Thank you for clarifying on the legal aspects of modding, I was not sure about this part.

(BTW you have linked a Battlefield 2 mod, not a Battlefront 2 one)

Double posting is against the RULES; please EDIT your post instead -Staff

Re: SWBF2 deep server sider modding

Posted: Sun Apr 13, 2014 7:03 pm
by Marth8880
VSZM wrote:(BTW you have linked a Battlefield 2 mod, not a Battlefront 2 one)
LOL, whoops. Huh, can't seem to find the SWBF2 one. :runaway:

Re: SWBF2 deep server sider modding

Posted: Mon Apr 14, 2014 3:14 am
by LRKfm946
I just found a simple .lvl mod alternative to modifying the exe for DTG. Change these lines in com_weap_inf_arccaster:

Code: Select all

HeatRecoverRate         = "0.9"
HeatThreshold           = "0.2"
HeatPerShot           	= "2.0"    //this line must be added, it's not already in the odf

ShotDelay 		= "0.0"
This can be done for any weapon that doesn't already overheat, you just have to tweak the overheat values to match the original shot delay. But I can't think of any weapon that already overheats and has a shot delay long enough to be affected by the glitch.

Re: SWBF2 deep server sider modding

Posted: Wed Jun 04, 2014 11:16 am
by Zeяo
LRKfm946 wrote:I just found a simple .lvl mod alternative to modifying the exe for DTG. Change these lines in com_weap_inf_arccaster:

Code: Select all

HeatRecoverRate         = "0.9"
HeatThreshold           = "0.2"
HeatPerShot           	= "2.0"    //this line must be added, it's not already in the odf

ShotDelay 		= "0.0"
This can be done for any weapon that doesn't already overheat, you just have to tweak the overheat values to match the original shot delay. But I can't think of any weapon that already overheats and has a shot delay long enough to be affected by the glitch.
Hey I was wondering if you could tell me where I can find the server hang fix. My server has this around every 3 hours :O

Re: SWBF2 deep server sider modding

Posted: Wed Jun 04, 2014 6:28 pm
by LRKfm946
Zeяo wrote:Hey I was wondering if you could tell me where I can find the server hang fix. My server has this around every 3 hours :O
As far as I know, there is no working fix for this issue. Someone told me that the server hang is caused by people wall glitching, etc. They said it's because when the round ends, people are outside map coordinates or something, and the server doesn't like it because they're not where they're supposed to be. But I highly doubt this is actually true because SWGO servers have had server hang issues ALL the time, even before they got overrun by glitchers in the past few weeks.

Regardless, server hang is a very annoying issue, and I'd love for it to be fixed, but there are so many things that could be causing it that it'll be hard to figure out what actually is. VA has done a lot of research on stuff like this and they've even patched other things like the spawn bug and boot bug, but I don't think they've been able to patch server hang yet.

Re: SWBF2 deep server sider modding

Posted: Thu Jun 05, 2014 9:47 am
by Zeяo
LRKfm946 wrote:
Zeяo wrote:Hey I was wondering if you could tell me where I can find the server hang fix. My server has this around every 3 hours :O
As far as I know, there is no working fix for this issue. Someone told me that the server hang is caused by people wall glitching, etc. They said it's because when the round ends, people are outside map coordinates or something, and the server doesn't like it because they're not where they're supposed to be. But I highly doubt this is actually true because SWGO servers have had server hang issues ALL the time, even before they got overrun by glitchers in the past few weeks.

Regardless, server hang is a very annoying issue, and I'd love for it to be fixed, but there are so many things that could be causing it that it'll be hard to figure out what actually is. VA has done a lot of research on stuff like this and they've even patched other things like the spawn bug and boot bug, but I don't think they've been able to patch server hang yet.
Okay thanks for your reply, do they have a forum or something like that? Because I would like that boot bug and spawn bug patch :D

Re: SWBF2 deep server sider modding

Posted: Thu Jun 05, 2014 1:53 pm
by LRKfm946
Zeяo wrote:Okay thanks for your reply, do they have a forum or something like that? Because I would like that boot bug and spawn bug patch :D
No, but you could ask a VA member if you can use them for your server. Shoot me a PM about it.

Re: SWBF2 deep server sider modding

Posted: Sat Jun 07, 2014 4:29 pm
by Zeяo
LRKfm946 wrote:
Zeяo wrote:Okay thanks for your reply, do they have a forum or something like that? Because I would like that boot bug and spawn bug patch :D
No, but you could ask a VA member if you can use them for your server. Shoot me a PM about it.
I tried but it says that I can't do that yet

Re: SWBF2 deep server sider modding

Posted: Sun Jun 08, 2014 4:50 pm
by LRKfm946
Zeяo wrote:I tried but it says that I can't do that yet
Add me on Xfire, Origin, or Steam (whichever one you have): kfm946

Re: SWBF2 deep server sider modding

Posted: Mon Jun 09, 2014 6:44 am
by Zeяo
LRKfm946 wrote:
Zeяo wrote:I tried but it says that I can't do that yet
Add me on Xfire, Origin, or Steam (whichever one you have): kfm946
Okay I added you on steam