Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

CTF problem

Newbie Spellweaver
Joined
Apr 26, 2011
Messages
77
Reaction score
4
Hi , i am still learning C++ so i hope you can help me with this !!
well i worked on adding CTF game mode released by secretsofthepast on gunz source ... flags appear , score board and all stuff but game ends upon starting it immediately , is it something to do with game time ?!





how can i fix that ?
 
Junior Spellweaver
Joined
Nov 7, 2009
Messages
111
Reaction score
16
add this

Channelrule.xml

<!--
GAMETYPE_DEATHMATCH_SOLO = 0
GAMETYPE_DEATHMATCH_TEAM = 1
GAMETYPE_GLADIATOR_SOLO = 2
GAMETYPE_GLADIATOR_TEAM = 3
GAMETYPE_ASSASSINATE = 4
GAMETYPE_TRAINING = 5
GAMETYPE_SURVIVAL = 6
GAMETYPE_QUEST = 7
GAMETYPE_BERSERKER = 8
GAMETYPE_DEATHMATCH_TEAM2 = 9
GAMETYPE_DEATHMATCH_DUEL = 10
GAMETYPE_QUEST_CHALLENGE = 12
GAMETYPE_CAPTURE_THE_FLAG = 12
-->

gametypecfg.xml

<GAMETYPE id="12"> <!-- GAMETYPE_CAPTURE_THE_FLAG -->
<ROUNDS round="10" str="10" />
<ROUNDS round="20" str="20" />
<ROUNDS round="30" str="30" />
<ROUNDS round="50" str="50" />
<ROUNDS round="70" str="70" default="true" />
<ROUNDS round="100" str="100" />
<LIMITTIME sec="99999" str="STR:GAMETYPECFG_LIMITTIME_INFINITE" />
<LIMITTIME sec="10" str="STR:GAMETYPECFG_LIMITTIME_10MIN" />
<LIMITTIME sec="20" str="STR:GAMETYPECFG_LIMITTIME_20MIN" />
<LIMITTIME sec="30" str="STR:GAMETYPECFG_LIMITTIME_30MIN" />
<LIMITTIME sec="40" str="STR:GAMETYPECFG_LIMITTIME_40MIN" default="true" />
<LIMITTIME sec="50" str="STR:GAMETYPECFG_LIMITTIME_50MIN" />
<LIMITTIME sec="60" str="STR:GAMETYPECFG_LIMITTIME_60MIN" />
<MAXPLAYERS player="4" str="4" />
<MAXPLAYERS player="8" str="8" default="true" />
<MAXPLAYERS player="12" str="12" />
<MAXPLAYERS player="16" str="16" />
</GAMETYPE>

if the error builds again insists MatchServer.exe (Source)
paste in their respective
 
Upvote 0
Newbie Spellweaver
Joined
Apr 26, 2011
Messages
77
Reaction score
4
add this

Channelrule.xml



gametypecfg.xml



if the error builds again insists MatchServer.exe (Source)
paste in their respective
thanks but this didnot fix it , i already had the xmls ... i guess it is a matchserver thing .. i will be looking for it
 
Upvote 0
Junior Spellweaver
Joined
Nov 7, 2009
Messages
111
Reaction score
16
thanks but this didnot fix it , i already had the xmls ... i guess it is a matchserver thing .. i will be looking for it


BUILD YOUR MatchServer (YOUR SOURCE)
 
Upvote 0
Currently Stoned !
Joined
Dec 6, 2011
Messages
879
Reaction score
108
You should check rules / coding of game rules.. in MMatchRuleDeathmatch.cpp or ZRuleDeathmatch.cpp
 
Upvote 0
Joined
Jul 9, 2009
Messages
716
Reaction score
324
checked , all fine .. although with winmerge .. files identical to ctf .cpp
I got this problem from along time, I think i fixed it when i edited this file gametypecfg.xml
<GAMETYPE id="13"> <!-- GAMETYPE_CTF -->
<ROUNDS round="10" str="10" default="true" />
<ROUNDS round="20" str="20" />
<ROUNDS round="30" str="30" />
<ROUNDS round="50" str="50" />
<ROUNDS round="70" str="70" />
<ROUNDS round="100" str="100" />
<LIMITTIME sec="99999" str="STR:GAMETYPECFG_LIMITTIME_INFINITE" default="true" />
<LIMITTIME sec="10" str="STR:GAMETYPECFG_LIMITTIME_10MIN" />
<LIMITTIME sec="20" str="STR:GAMETYPECFG_LIMITTIME_20MIN" />
<LIMITTIME sec="30" str="STR:GAMETYPECFG_LIMITTIME_30MIN" />
<LIMITTIME sec="40" str="STR:GAMETYPECFG_LIMITTIME_40MIN" />
<LIMITTIME sec="50" str="STR:GAMETYPECFG_LIMITTIME_50MIN" />
<LIMITTIME sec="60" str="STR:GAMETYPECFG_LIMITTIME_60MIN" />
<MAXPLAYERS player="4" str="4" default="true" />
<MAXPLAYERS player="8" str="8" />
<MAXPLAYERS player="12" str="12" />
<MAXPLAYERS player="16" str="16" />
</GAMETYPE>
Use mine just change the GAMETYPE ID to your's.
 
Upvote 0
Back
Top