• 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.

Holograph Emulator BattleBall Talking Fix

Status
Not open for further replies.
Joined
Oct 4, 2008
Messages
1,050
Reaction score
308
Roper - Holograph Emulator BattleBall Talking Fix - RaGEZONE Forums

Battleball Talking Fix

Hey there, A little while ago I was recoding Holograph Emulator vista4life edition and I noticed that there was a small error with Battleball. It appeared that you could not talk in-game, and when you did, it'd disconnect you from the hotel.

I decided to take this snippet from my recode, and release it to the public so that people can have talking working in Non-TDBP Emulators.

How to do it;

  1. Open virtualuser.cs and find:

    #region Chat

  2. Replace cases "@t", "@w", and "@x" with this:

    Code:
    case "@t": // Chat - say
                            case "@w": // Chat - shout
                                {
                                    string Message = currentPacket.Substring(4);
                                    if (_isMuted == false && (Room != null && roomUser != null) || (Room == null && gamePlayer != null))
                                    {
                                        userManager.addChatMessage(_Username, _roomID, Message);
                                        Message = stringManager.filterSwearwords(Message);
                                        if (Message.Substring(0, 1) == ":" && isSpeechCommand(Message.Substring(1))) // Speechcommand invoked!
                                        {
                                            if (roomUser != null)
                                            {
                                                if (roomUser.isTyping)
                                                {
                                                    Room.sendData("Ei" + Encoding.encodeVL64(roomUser.roomUID) + "H");
                                                    roomUser.isTyping = false;
                                                }
                                            }
                                            else
                                                gamePlayer.Game.sendData("FO" + Encoding.encodeVL64(gamePlayer.roomUID) + "I");
                                        }
                                        else
                                        {
                                            if (currentPacket.Substring(1, 1) == "w") // Shout
                                            {
                                                if (gamePlayer == null)
                                                    Room.sendShout(roomUser, Message);
                                                else
                                                    gamePlayer.Game.sendData("Ei" + Encoding.encodeVL64(gamePlayer.roomUID) + "H" + Convert.ToChar(1) + "@Z" + Encoding.encodeVL64(gamePlayer.roomUID) + Message + Convert.ToChar(2));
                                            }
                                            else
                                            {
                                                if (gamePlayer == null)
                                                    Room.sendSaying(roomUser, Message);
                                                else
                                                    gamePlayer.Game.sendData("Ei" + Encoding.encodeVL64(gamePlayer.roomUID) + "H" + Convert.ToChar(1) + "@X" + Encoding.encodeVL64(gamePlayer.roomUID) + Message + Convert.ToChar(2));
                                            }
                                        }
                                    }
                                    break;
                                }
    
                            case "@x": // Chat - whisper
                                {
                                    if (_isMuted == false && Room != null && roomUser != null)
                                    {
                                        string Receiver = currentPacket.Substring(4).Split(' ')[0];
                                        string Message = currentPacket.Substring(Receiver.Length + 5);
                                        userManager.addChatMessage(_Username, _roomID, Message);
    
                                        Message = stringManager.filterSwearwords(Message);
                                        Room.sendWhisper(roomUser, Receiver, Message);
                                        //Out.WriteChat("Whisper", _Username + "-" + Receiver, Message); 
                                    }
                                    break;
                                }
  3. Your done! Now debug your emulator and your ready to go!
Roper - Holograph Emulator BattleBall Talking Fix - RaGEZONE Forums

 
Last edited:
Experienced Elementalist
Joined
May 9, 2010
Messages
251
Reaction score
90
Nice if it works, I can't really rate you since I don't use r26 emulators.
But Good Job if your representing the truth.

(First Post)
 

AWA

Master Summoner
Loyal Member
Joined
Feb 24, 2008
Messages
595
Reaction score
389
Didn't rickymenier release the same fix 1 year ago?
 
Custom Title Activated
Loyal Member
Joined
Oct 21, 2007
Messages
2,098
Reaction score
464
NICE iM tRYING tO gET sNOWSTORM bUT cANT gET tHE pACKETS
 
Junior Spellweaver
Joined
May 11, 2007
Messages
196
Reaction score
1
Yes, Ricky released a year ago the fix.

But still thanks,

Mark
 
Status
Not open for further replies.
Back
Top