Thread: [Devo/ Delta} Player Bug Fix

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 [Devo/ Delta} Player Bug Fix 
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    Post Or I Remove


    Explanation/Purpose: Save your Players from being reset
    Difficulty: Pure 0
    Classes Added/Modified: PlayerHandler.java
    Tested On: Devo 7.0 and delta
    Bugs/Problems: public void Removeplayer saves the game at the wrong time
    Tutorial:

    FIND:
    Public void removeplayer

    Replace that Whole Method With this
    Code:
        public void removePlayer(Player plr) {
            if (plr == null)
                return;
            if (plr.Privatechat != 2) { // PM System
                for (int i = 1; i < maxPlayers; i++) {
                    if ((players[i] == null) || (players[i].isActive == false)
                            || (players[i].playerName == null))
                        continue;
                    players[i].pmupdate(plr.playerId, 0);
                }
            }
            // anything can be done here like unlinking this player structure from
            // any of the other existing structures
            plr.destruct();
        }
    What we did was:

    Took out the saving of the player after being destructed
    This doesnt mean the player wont be saved.. just means player wont save after being destructed

    Places to add the delta saveGame is the places that call on the remove player method

    ENJOY

    Credits: 100% me


    after this hits 1000 views and 50 posts ill add more bug fixes =]
    Reply With Quote  
     

  2. #2  
    hmu

    Jakey's Avatar
    Join Date
    Sep 2007
    Age
    31
    Posts
    6,489
    Thanks given
    109
    Thanks received
    277
    Rep Power
    1218
    Nice work ryan.
    to contact me, PM me on rune-server.
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    Thank you Jake =]
    Reply With Quote  
     

  4. #4  
    Donator Decimation's Avatar
    Join Date
    Dec 2007
    Posts
    225
    Thanks given
    54
    Thanks received
    31
    Rep Power
    61
    HELL YEAAHHAHAHA!
    Thanks ryan, you noob
    Rep++
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    Thanks for + feedback
    Reply With Quote  
     

  6. #6  
    Registered Member
    Mojave's Avatar
    Join Date
    Jul 2008
    Posts
    751
    Thanks given
    1
    Thanks received
    39
    Rep Power
    134
    Thanks for this ryan.
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Mar 2008
    Posts
    1,945
    Thanks given
    118
    Thanks received
    201
    Rep Power
    2104
    Yup any time
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Jan 2009
    Posts
    274
    Thanks given
    0
    Thanks received
    2
    Rep Power
    97
    Thanks a lot for this.
    +Rep
    Reply With Quote  
     

  9. #9  
    Registered Member
    Klorox's Avatar
    Join Date
    Sep 2007
    Posts
    1,090
    Thanks given
    2
    Thanks received
    11
    Rep Power
    700
    Thanks +rep
    Reply With Quote  
     

  10. #10  
    Ben
    Guest
    More of a snippet, since it is just one code block.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •