Duel Tournament / Duel Match spawn fix for Vusions re-release

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    config Duel Tournament / Duel Match spawn fix for Vusions re-release

    Prob not the best but it fixes everyone spawning :)

    replace init round with this code in ZMatch.cpp

    Code:
    void ZMatch::InitRound()
    {
    	// ½Ã°£À» 0À¸·Î
    	ZGetGame()->InitRound();
    
    	InitCharactersPosition();
    	InitCharactersProperties();
    
    	// ¿ùµå¾ÆÀÌÅÛ ÃʱâÈ­
    	ZGetWorldItemManager()->Reset();
    
    	// ¸Ç óÀ½ °ÔÀӽà ½ºÆù½ÃŲ´Ù.
    	rvector pos = ZGetGame()->m_pMyCharacter->GetPosition();
    	rvector dir = ZGetGame()->m_pMyCharacter->m_DirectionLower;
    
    	m_nRoundKills = 0;
    
    	bool isObserver = false;
    
    	if (ZGetGame()->GetSpawnRequested() == false) {
    		if (GetMatchType() == MMATCH_GAMETYPE_DUEL)
    		{
    			isObserver = true;
    			for (ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.begin();
    				itor != ZGetGame()->m_CharacterManager.end(); ++itor)
    			{
    				isObserver = false;
    				ZCharacter* pCharacter = (*itor).second;
    				pCharacter->ForceDie();
    				pCharacter->SetVisible(false);
    			}
    		}
    		else if(GetMatchType() == MMATCH_GAMETYPE_DUELTOURNAMENT){
    			isObserver = true;
    			for (ZCharacterManager::iterator itor = ZGetGame()->m_CharacterManager.begin();
    				itor != ZGetGame()->m_CharacterManager.end(); ++itor)
    			{
    				isObserver = false;
    				ZCharacter* pCharacter = (*itor).second;
    				pCharacter->ForceDie();
    				pCharacter->SetVisible(false);
    			}
    		}
    		else
    		{
    			isObserver = false;
    			ZPostRequestSpawn(ZGetMyUID(), pos, dir);
    			ZGetGame()->SetSpawnRequested(true);
    		}
    	}
    
    //	m_nRoundKills = 0;
    
    	// AdminHide ó¸®
    	MMatchObjCache* pObjCache = ZGetGameClient()->FindObjCache(ZGetMyUID());
    	if (pObjCache && pObjCache->CheckFlag(MTD_PlayerFlags_AdminHide)) {
    		ZGetGameInterface()->GetCombatInterface()->SetObserverMode(true);
    	} else {
    		// ¿ÉÁ®¹ö ¸ðµå¿´À¸¸é ÇØÁ¦.
    		if (!isObserver)
    			ZGetGame()->ReleaseObserver();
    		else
    		{
    			ZGetGameInterface()->GetCombatInterface()->SetObserverMode(true);
    			ZGetGame()->ReserveObserver();
    			ZGetGame()->m_pMyCharacter->ForceDie();
    
    		}
    	}
    	memset(m_nTeamKillCount, 0, sizeof(m_nTeamKillCount));
    }

    Like if this helped ya :D


  2. #2
    Account Upgraded | Title Enabled! Taxic is offline
    MemberRank
    Nov 2011 Join Date
    The NetherlandsLocation
    203Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    i really need this :)

  3. #3
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    I dont understand, what was the problem in the first place? it was a complete rip from the actual game and in ijji they do not have this "Problem", and i guess i don't either?

  4. #4
    Apprentice lidorz10 is offline
    MemberRank
    Jan 2009 Join Date
    19Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    working for some 1?

  5. #5
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Vusion's release has a bug in it which made people spawn twice and it would make players stay perm in the game in DT and they would be floating all over the map...This also had a similar issue in Duel Match where people would spawn twice and be able to throw grenades/shoot people and hurt them before the round started.


    This fixes it.

  6. #6
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Well, blame Attila D:. Anyway, you didn't fix it, you just changed it to Observer mode which ruins it :C.

  7. #7
    Account Upgraded | Title Enabled! ThunderZ is offline
    MemberRank
    Oct 2011 Join Date
    396Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Doesn't ruin it lol works sexy :)

  8. #8
    Member Aviatorr is offline
    MemberRank
    Aug 2011 Join Date
    72Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Find the problem in the source its self. It should be a simple error if they're wasn't an issue with the original source.

  9. #9
    Account Upgraded | Title Enabled! ForceGFX is offline
    MemberRank
    Jan 2012 Join Date
    The NetherlandsLocation
    412Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Why are you guys come with negative comments?
    Be happy he is releasing this. People really get mad of this problem and he posted the full fix as a release. You guys should blame him he is a good guy

  10. #10
    Enthusiast HagaKure is offline
    MemberRank
    Jan 2012 Join Date
    Dubber LandLocation
    41Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Nice Release ThunderZ! Good Job!

  11. #11
    Die() Secured is offline
    MemberRank
    Sep 2011 Join Date
    /home/SDev/Location
    555Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Never had that problem, though I don't use his src.

  12. #12
    Apprentice Contradict is offline
    MemberRank
    Jan 2012 Join Date
    11Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    >Change default configuration setting to USA_Release_publish
    >Go to StdaFx.h
    >Add Duel Tournament prepocessor definition or remove the #ifdef/endif around it
    >Go to Settings -> C/C++ -> Prepocessor -> Remove LOCALE_NHNUSA or whatever
    >Replace with LOCALE_US (or just comment out the NHNUSA functions and leave LOCALE_NHNUSA)
    >Remove GameGuard and _USING_CRX from their as well
    >?????
    >Profit!

    Seriously. The source is fine, it depends on the configuration you build it in. No fatal bugs, no errors, works like a charm and MultiLanguage works (AFAIR). Should I just release my work and whip up a few tutorials for you guys? This is seriously becoming sad.

  13. #13
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    The respawn would work if it was like ZApplication crap was ZLauncher_Mode_debug.
    ZApplication::GetInstance()->GetLaunchMode() == ZApplication::ZLAUNCH_MODE_DEBUG

  14. #14
    Account Upgraded | Title Enabled! ForceGFX is offline
    MemberRank
    Jan 2012 Join Date
    The NetherlandsLocation
    412Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    Quote Originally Posted by Contradict View Post
    >Change default configuration setting to USA_Release_publish
    >Go to StdaFx.h
    >Add Duel Tournament prepocessor definition or remove the #ifdef/endif around it
    >Go to Settings -> C/C++ -> Prepocessor -> Remove LOCALE_NHNUSA or whatever
    >Replace with LOCALE_US (or just comment out the NHNUSA functions and leave LOCALE_NHNUSA)
    >Remove GameGuard and _USING_CRX from their as well
    >?????
    >Profit!

    Seriously. The source is fine, it depends on the configuration you build it in. No fatal bugs, no errors, works like a charm and MultiLanguage works (AFAIR). Should I just release my work and whip up a few tutorials for you guys? This is seriously becoming sad.
    Ok, so we do already have the fix aren't we? This is working fine. With the things thunderz posted.

  15. #15
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: Duel Tournament / Duel Match spawn fix for Vusions re-release

    It wouldn't be a need for a fix if you didn't work with the original source.



Page 1 of 2 12 LastLast

Advertisement