Post: MW3 Forcehost C#
03-31-2014, 08:12 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
CREDITS TO momo5502 for ForceHost code

Update: 2.50 Compatibility



Download: You must login or register to view this content.
Source Download: You must login or register to view this content.



Okay, a lot of people have told me they don't know how to do this or it's not working for them. This is how this works. You have to make the first numericupdown "0" and the second one the max amount of players you can HOST online. ex. mine is 4.
I put 0 for min amount of players NEEDED to start, and 4 as the max my connection can HOST.

You must login or register to view this content.

Made a tool, feel free to download:

You must login or register to view this content.
(rar) MD5: 52B8B6C60C9A7CE92EBD7FE29B94894A
(.exe) MD5: 76416D090BB6A0F1B2E5DCC0757688A6


old versions:

Working... No bugs:
You must login or register to view this content.
(.rar) MD5: DEAE6091EDF16C59D996B47ADF3219B0


Bug/beta versions.

*HAVE BUGS!*
V1.1: You must login or register to view this content.
(.rar) MD5: FE50D378DBBFC64C478323A995DC6A5B

You must login or register to view this content.
(.rar) MD5: 3A550D2EDA3FD717671A47E1750188E8


Source Download:
You must login or register to view this content.

Pictures:

You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.


CODE:
    void lockIntDvarToValue(uint pointer, byte value)
{
uint _flag = 0x4; // First value is pointer to name ( const char* ), so dvar flag is at 0x4
uint _value = 0xB; // Default value is at 0x11
//Thanks To momo5502
// Get pointer to dvar
byte[] buffer = new byte[4];
GetMemory(pointer, ref buffer);
Array.Reverse(buffer);
uint dvar = BitConverter.ToUInt32(buffer, 0);

// Get current dvar flag
byte[] flag = new byte[2];
GetMemory(dvar + _flag, ref flag);
Array.Reverse(flag);
ushort shortFlag = BitConverter.ToUInt16(flag, 0);

// Check if dvar is already write protected
if ((shortFlag & 0x800) != 0x800)
{
shortFlag |= 0x800;

flag = BitConverter.GetBytes(shortFlag);
Array.Reverse(flag);

// Apply new dvarflag
SetMemory(dvar + _flag, flag);
}

// Apply new value
SetMemory(dvar + _value, new byte[] { value });
}


    void forceHost()
{
lockIntDvarToValue(0x8AEE34, 0x1); // Lock 'party_minplayers' to 1/*change 0x01 to 0x06 for default*/
lockIntDvarToValue(0x8AEE40, 0x12); // Lock 'party_maxplayers' to 18 /*You can change 0x12, to 0x4 for 4 clients, or 6 for 6 clients and so on...*/
//Thanks To momo5502
}

*For MAX Players, this will ONLY work if your connection can handle it. So to check to see how many players you can host go into private match and see:
You must login or register to view this content.



Explained by momo5502:

"Just call it with forceHost();
What it basically does, it sets the dvar party_minplayers to 1, and applies dvar flag 0x800, which enables write protection on it, then the party automaticaly starts. For fun, I also locked party_maxplayers to 18, which forces the game to allow 18 players."

Again, all credits go to momo5502 for helping out on my MW3 ForceHost question thread: You must login or register to view this content.
Also thanks to kiwi_Modz

Proof:[/CENTER]
You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 21 users say thank you to BaSs_HaXoR for this useful post:

One, A Friend, alexcubano, BoatyMcBoatFace, ErasedDev, EliteHackzPS3, Hori_By_Nature, ImSooCool, JamesSwagger, Jannik007, kiwi_modz, koekiemonstarr2, Mango_Knife, Miyata, Mx444, Notorious, RaGE_LoLo69, SC58, Turk_Warrior
04-01-2014, 05:13 AM #11
Originally posted by HaXoR View Post
Just finished a tool. I will post a link along with the source. Smile


Yep. No problem. Smile Im glad i got it, and felt it would be a sweet release.
Also check out the program i made if you like. Smile



Thanks so much man!
04-01-2014, 05:21 AM #12
Originally posted by bailey.smith69 View Post
Thanks so much man!

Yep No problem. Happy
04-01-2014, 05:32 AM #13
Originally posted by HaXoR View Post
Yep No problem. Happy


Sorry, but BaSs, could you maybe help me I have a few errors and I am wondering if you could help me out with them? The errors arnt for the force host but yea? Thanks
04-01-2014, 06:05 AM #14
Originally posted by bailey.smith69 View Post
Sorry, but BaSs, could you maybe help me I have a few errors and I am wondering if you could help me out with them? The errors arnt for the force host but yea? Thanks


Hmmm... Don't know what you mean unless you say it xD
Do you mean a different program?
04-01-2014, 06:31 AM #15
Originally posted by HaXoR View Post
Hmmm... Don't know what you mean unless you say it xD
Do you mean a different program?


Just some errors that I have on C#, I am wondering if you could help me out with them?
04-01-2014, 06:55 AM #16
Originally posted by bailey.smith69 View Post
Just some errors that I have on C#, I am wondering if you could help me out with them?

Sure. Add me on skype. Skype: MichealWeston7
04-01-2014, 08:20 AM #17
Originally posted by HaXoR View Post
Sure. Add me on skype. Skype: MichealWeston7


Im already friends with you, you dont reply. Im UnknownNightmare
04-01-2014, 02:20 PM #18
SC58
Former Staff
Heres the modded Dvars that where used to make auto start force host (super force host)

party_minplayers 1
lobby_partySearchWaitTime 0
party_gameStartTimerLength 1
party_pregameStartTimerLength 12
party_vetoDelayTime 1
party_maxTeamDiff 1000
party_minLobbyTime 0
pt_backoutOnClientPresence 1
partymigrate_timeout 1
pt_pregameStartTimerLength 1
pt_gameStartTimerLength 20
04-01-2014, 08:38 PM #19
Originally posted by bailey.smith69 View Post
Im already friends with you, you dont reply. Im UnknownNightmare

I was asleep. I have been replying to you. xD

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo