• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Increasing Quest Player Limit ( Full Guide ) + ( Source edits )

Status
Not open for further replies.
Currently Stoned !
Joined
Dec 6, 2011
Messages
879
Reaction score
108
Simple guide to increase quest players without having bugs/crashes.
Here i'll increase quest players to 8. you can change values as you want.

1)Source Edits :

Open MMatchGlobal.h (Located in CSCommon)

Find :
Code:
#define STAGE_QUEST_MAX_PLAYER			4

Change to :
Code:
#define STAGE_QUEST_MAX_PLAYER			8



MMatchDBMgr.h:

Find :
Code:
const int nMasterCID, const int nPlayer1, const int nPlayer2, const int nPlayer3,

Replace with :
Code:
const int nMasterCID, const int nPlayer1, const int nPlayer2, const int nPlayer3,const int nPlayer4, const int nPlayer5, const int nPlayer6, const int nPlayer7,


MMatchDBMgr.cpp:

Find :
Code:
const int nMasterCID, const int nPlayer1, const int nPlayer2, const int nPlayer3,

Replace with :
Code:
const int nMasterCID, const int nPlayer1, const int nPlayer2, const int nPlayer3,const int nPlayer4, const int nPlayer5, const int nPlayer6, const int nPlayer7,


2) XML Edit :

Decompile "system.mrs" and Open "GameeTypeCfg.xml" in Notepad.

Edit :
Code:
<GAMETYPE id="7">	<!-- GAMETYPE_QUEST -->
		<ROUNDS    round="1"	str="---" default="true" />
		<LIMITTIME sec="99999"	str="STR:GAMETYPECFG_LIMITTIME_INFINITE" />
		<MAXPLAYERS player="4"  str="4" default="true" />
	</GAMETYPE>

To:
Code:
<GAMETYPE id="7">	<!-- GAMETYPE_QUEST -->
		<ROUNDS    round="1"	str="---" default="true" />
		<LIMITTIME sec="99999"	str="STR:GAMETYPECFG_LIMITTIME_INFINITE" />
		[COLOR="#FF0000"]<MAXPLAYERS player="8"  str="8" default="true" />[/COLOR]
	</GAMETYPE>


3) Database Changes :

Right click on "dbo.QuestGameLog " and click "Modify" (MSSQL05) / "Design" (MSSQL08)

Add these columns :
Code:
Player4	int	Checked
Player5	int	Checked
Player6	int	Checked
Player7	int	Checked



Now Go "Store Procedures" and Find "dbo.spInsertQuestGameLog" . click modify.
and replace whole thing.

USE [GunzDB]
GO
/****** Object: StoredProcedure [dbo].[spInsertQuestGameLog] Script Date: 02/13/2013 21:45:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Äù½ºÆ® °ÔÀÓ ·Î±× Á¤º¸ ÀúÀå ÇÁ·Î½ÃÁ®.
ALTER PROC [dbo].[spInsertQuestGameLog]
@GameName varchar(64)
, @Master int
, @Player1 int
, @Player2 int
, @Player3 int
, @Player4 int
, @Player5 int
, @Player6 int
, @Player7 int
, @TotalQItemCount smallint
, @ScenarioID smallint
, @GamePlayTime tinyint
AS
SET NOCOUNT ON

BEGIN TRAN
INSERT INTO QuestGameLog(GameName, Master, Player1, Player2, Player3, TotalQItemCount, ScenarioID, StartTime, EndTime, Player4, Player5, Player6, Player7 )
VALUES (@GameName, @Master, @Player1, @Player2, @Player3, @TotalQItemCount, @ScenarioID, DATEADD(n, -(@GamePlayTime), GETDATE()), GETDATE() , @Player4, @Player5, @Player6, @Player7)
IF 0 <> @@ERROR BEGIN -- ¿©±â Ãß°¡.
ROLLBACK TRAN
RETURN
END

SELECT @@IDENTITY AS 'ORDERQGLID'
COMMIT TRAN


Credits :
Wizkidje : Source edits
Vusion : Spawns
Enjoy!

If i miss something , please feel free to correct it. Thank you!
 
Last edited:
Junior Spellweaver
Joined
Dec 22, 2012
Messages
171
Reaction score
9
, @Master int
, @Player1 int
, @Player2 int
, @Player3 int
, @Player4 int
, @Player5 int
, @Player6 int
, @Player7 int
need to add
, @Player8 int ?
 
Currently Stoned !
Joined
Dec 6, 2011
Messages
879
Reaction score
108
, @Master int
, @Player1 int
, @Player2 int
, @Player3 int
, @Player4 int
, @Player5 int
, @Player6 int
, @Player7 int
need to add
, @Player8 int ?

No.. check first @Master is 1st player .. so your player count goes -1.
 
Praise the Sun!
Loyal Member
Joined
Dec 4, 2007
Messages
2,502
Reaction score
986
The database edit is useless without modifying the source (CSCommon > MMatchDBMgr::InsertQuestGameLog).
 
Hi, I'm Omar!
Loyal Member
Joined
Jan 6, 2011
Messages
1,345
Reaction score
646
Don't you need to add extra spawn points ?
 
Banned
Banned
Joined
Jun 26, 2012
Messages
254
Reaction score
10
trying to install this code but throws me this error code is to increase the capacity of players in Quest mode.

Source\MAsyncDBJob.cpp(442) : error C2146: syntax error : missing ')' before identifier 'm_nTotalRewardQItemCount'
Source\MAsyncDBJob.cpp(442) : error C2660: 'MMatchDBMgr::InsertQuestGameLog' : function does not take 11 arguments
Source\MAsyncDBJob.cpp(444) : error C2059: syntax error : ')'
Source\MAsyncDBJob.cpp(445) : error C2143: syntax error : missing ';' before '{'
 
Status
Not open for further replies.
Back
Top