Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 48 Guests
Online:

LATEST FORUM THREADS

»
Call of DutyŽ: WWII
CoD WW2 General
SOF2 Prefabs map
SoFII Mapping
coduo mapping tools
CoDUO Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Make a server side modded server appear as a non-mod server
vijayant.saini123
General Member
Since: Mar 22, 2014
Posts: 2
Last: Mar 23, 2014
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Mar. 22, 2014 12:37 pm
Hello everyone,
I am new to modding and cod4 scripting. But I have successfully created a server side mod. Now when a client connect to the server, an empty "Mymod" folder is made in its mods folder (this tells that nothing was downloaded from the server). But I want the server to appear as a non-mod server and when a client connect to it, it is directly connected without the mod loading screen and without the creation of the "Mymod" folder in the mods folder of the client.

Secondly, I wish to allow clients to continue their public profiles (the one which is made on a normal server) and their custom classes.

Please help me on these topics. Thanks in advance.
Share |
Tremolo4
General Member
Since: Mar 16, 2012
Posts: 7
Last: Mar 26, 2014
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Saturday, Mar. 22, 2014 05:05 pm
As far as I know this is not possible through modding or config variables, but only by reverse engineering or utilizing a packet-altering firewall/proxy. Reverse engineering the server software is actually illegal, but Activision couldn't care less about CoD4 anymore.. Is the server running Linux or Windows?

Anyway I just found out a very dirty solution for both of your problems that should work on both Linux and Windows. I tested it on Linux. You need a Hex-Editor or any other binary-capable Text-Editor.
Now this all only works if you have full access to the server or you can at least replace the server-executable (iw3mp.exe or cod4_lnxded)
These first steps make it so that clients dont create a mod-folder and dont see "Mod: Mymod" on loading:

1. Open the cod4-lnxded or iw3mp.exe of the server with the Hex-Editor.
2. Search for fs_game.
3. Replace every occurence of fs_game (there are 3 occurences) with for example fs_gumm. What you choose doesn't matter but it has to be the same length as fs_game (7 characters). Be very careful not to change anything else and don't change the size of the file (add or remove characters)!
4. Save the file (again: in "binary-mode" if you are on Windows).
5. Also replace fs_game in the command-line parameters for the server with what you chose (fs_gumm).
For example: Change
./cod4_lnxded +set sv_punkbuster 0 +set fs_game "mods/Mymod" +map_rotate
to
./cod4_lnxded +set sv_punkbuster 0 +set fs_gumm "mods/Mymod" +map_rotate

That will mostly solve your first problem. Although the server might only show up in the server browser if filters are set to "Mods: Yes" or "Mods: All". I don't know a solution for that one.

But the clients will still use different stats (level, classes etc) for your server. To change that you only need to change another thing with the Hex-Editor:

6. Search for connectResponse %s
7. Now it's getting a bit more difficult and you definitely NEED a Hex-Editor, not Text-Editor: Go to the Hex-View (numbers) of that line you searched (connectResponse).
8. Replace 20 25 73 with 00 00 00. That means: Replace %s (with a space in front) with three NUL-bytes.


If you don't manage to edit this yourself, I could also upload an edited version of the executable.. although you shouldn't trust a random internet stranger's executable file ;)
Share |
vijayant.saini123
General Member
Since: Mar 22, 2014
Posts: 2
Last: Mar 23, 2014
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Sunday, Mar. 23, 2014 02:02 am
Thanks Tremolo4 for your reply.

I did what you said. The server runs flawlessly and there is no mention of "Mymod" in the client's loading screen. The default stats are also working.

Now the only problem is that the server still shows itself as a modded server in the server browser (when the client checks 'more info' of the server, it show that the server is modded and running "Mymod"). This prevents the server from being listed if the server filters in the server browser are not set correctly.

I wish you could tell me how to make the server appear as non-modded in the client's server browser.

Thanks in advance.

edited on Mar. 23, 2014 02:03 am by vijayant.saini123
Share |
Tremolo4
General Member
Since: Mar 16, 2012
Posts: 7
Last: Mar 26, 2014
[view latest posts]
Level 0
Category: CoD4 Scripting
Posted: Wednesday, Mar. 26, 2014 04:02 pm
Well I don't think that's possible through simple file/string editing... You would have to modify the infoResponse and statusResponse packets sent by the server, e.g by using iptables: change the value of "mod" from "1" to "0".
I'm not entirely sure it's possible with iptables and I don't have a ruleset up my sleeve, sorry ;)

edited on Mar. 26, 2014 04:02 pm by Tremolo4
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»