HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Help with Pvp.... again...

View previous topic View next topic Go down 
AuthorMessage
Icea

avatar

Game username : Icea
Server : Blazing Wolves (Co-Owner), Tales of Luzaris (Moderator) Canis Lupus (Mapmaker)
Female Posts : 195
Join date : 2015-02-09
Age : 15
Location : Canada

PostSubject: Help with Pvp.... again...   Sun Oct 25, 2015 6:25 pm

Before you say "didn't you already make a thread?" i need to clear this up:

i made a new thread to avoid bumping and necro-threading my old thread

anyways onto the topic

I decided to try adding in PvP again, all the builds failed, even when i pressed "ctrl + Z" to reset the file's original coding and re-coded it.

here is what the coding looks like in MagixNetworkManager.cpp:

Code:
   if (mDef->getMapName(mWorld->getWorldName()) == "The Arena") {
      tUnit->setAlliance(ALLIANCE_ENEMY);
   }
   else {
      tUnit->setAlliance(ALLIANCE_FRIEND);
   }
   tUnit->setAlliance(ALLIANCE_FRIEND);
   tUnit->isFriend = mDef->isInFriendList(tUser);
   tUnit->isBlocked = mDef->isInBlockedList(tUser);

im pretty sure i did something wrong...

While i wait for a reply i'll go search up how to fix this problem
Back to top Go down
Claire
Very Helpful
Very Helpful
avatar

Game username : SoftMoon | MissDiealot
Server : Vaellerios (admin) | Lair of the Wolf (admin)
Female Posts : 328
Join date : 2015-03-03
Age : 16

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 6:34 pm

It needs to be written like this:
Code:
      if (mDef->getMapName(mWorld->getWorldName()) == "The Arena")
      {
   tUnit->setAlliance(ALLIANCE_ENEMY);
   }
      else
   {
      tUnit->setAlliance(ALLIANCE_FRIEND);
   }
      tUnit->isFriend = mDef->isInFriendList(tUser);
      tUnit->isBlocked = mDef->isInBlockedList(tUser);

Try it out, worked for me.
Back to top Go down
http://missdiealot.deviantart.com/
Icea

avatar

Game username : Icea
Server : Blazing Wolves (Co-Owner), Tales of Luzaris (Moderator) Canis Lupus (Mapmaker)
Female Posts : 195
Join date : 2015-02-09
Age : 15
Location : Canada

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 6:42 pm

Darn, i tried it and it still failed:

Code:
   if (mDef->getMapName(mWorld->getWorldName()) == "The Arena")
   {
      tUnit->setAlliance(ALLIANCE_ENEMY);
   }
   else
   {
      tUnit->setAlliance(ALLIANCE_FRIEND);
   }
   tUnit->isFriend = mDef->isInFriendList(tUser);
   tUnit->isBlocked = mDef->isInBlockedList(tUser);
Back to top Go down
Witacha
3D Modeler
3D Modeler
avatar

Game username : Witacha
Server : Land Of The Wolves(Owner)
Female Posts : 1203
Join date : 2012-06-15
Age : 18
Location : France

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 6:51 pm

Did you checked if it wasn't coming from anything else than this code?
Back to top Go down
http://witacha-asukata.deviantart.com/
Icea

avatar

Game username : Icea
Server : Blazing Wolves (Co-Owner), Tales of Luzaris (Moderator) Canis Lupus (Mapmaker)
Female Posts : 195
Join date : 2015-02-09
Age : 15
Location : Canada

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 6:58 pm

Well, the only things i added were codes that i knew that would work, and MagixNetworkManager.cpp is the only thing causing the problem and the only thing i edited was the alliance friend thing.... what do i have to check?
Back to top Go down
Claire
Very Helpful
Very Helpful
avatar

Game username : SoftMoon | MissDiealot
Server : Vaellerios (admin) | Lair of the Wolf (admin)
Female Posts : 328
Join date : 2015-03-03
Age : 16

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 7:10 pm

Look at your build log and look for errors
Back to top Go down
http://missdiealot.deviantart.com/
Icea

avatar

Game username : Icea
Server : Blazing Wolves (Co-Owner), Tales of Luzaris (Moderator) Canis Lupus (Mapmaker)
Female Posts : 195
Join date : 2015-02-09
Age : 15
Location : Canada

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 7:18 pm

from what I've read, it keeps repeating echo copy and it says something about "Echo mkdir" and it does not look relevant to my PvP code at all.

anyone know what it means?

(im sooooo confuseddddd >.>)

EDIT: i found the problem possibly

i had removed the body selector, the only thing i forgot to remove was GMAXBODIES in my source... i have a new source now and i'll compile that and see how it works
Back to top Go down
Nefadozone

avatar

Game username : Nefadozone
Server : Fucko McShitpo
Male Posts : 176
Join date : 2011-11-11
Age : 23
Location : Satan's Asshole

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 8:44 pm

Could you copy/paste the part of your build log that's failing please?
Back to top Go down
http://wildmidnight.boards.net/
Icea

avatar

Game username : Icea
Server : Blazing Wolves (Co-Owner), Tales of Luzaris (Moderator) Canis Lupus (Mapmaker)
Female Posts : 195
Join date : 2015-02-09
Age : 15
Location : Canada

PostSubject: Re: Help with Pvp.... again...   Sun Oct 25, 2015 8:46 pm

Nevermind i got it to work! the GMAXBODIES in my compile indeed was the problem!

Thanks for the Help Softie, Nefadozone and Witacha!

--SOLVED, PLEASE LOCK--
Back to top Go down
Sponsored content




PostSubject: Re: Help with Pvp.... again...   

Back to top Go down
 
Help with Pvp.... again...
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support :: Solved Support Issues-
Jump to: