MultiOgar icon indicating copy to clipboard operation
MultiOgar copied to clipboard

HELP

Open dinhduynhat opened this issue 9 years ago • 16 comments

i cannot connect with http://nbk.io/ :) i need SERVER : MultiOgar 1.2.18

dinhduynhat avatar Aug 11 '16 06:08 dinhduynhat

The only thing that doesn't seem to be working is the zoom, map border, and the mini map (with scramble mode 2). Everything else works just fine with the latest version.

image

chuushi avatar Aug 11 '16 07:08 chuushi

Just tested, it works. Check if you're using latest MultiOgar version, because 1.2.18 is very old and outdated.

some offtopic: this site using agarplus mod, it has some bugs and shows fake fps. For example here is code which make fake fps:

myApp.isShowFPS && (_0x9d30x8 = getFPS(), 50 >= _0x9d30x8 ? _0x9d30x8 += 8 : 45 >= _0x9d30x8 ? _0x9d30x8 += 10 : 40 >= _0x9d30x8 && (_0x9d30x8 += 15), _0x9d30xc.push('FPS: ' + _0x9d30x8));

Pay attention to this code:

 50 >= _0x9d30x8 ? _0x9d30x8 += 8 : 45 >= _0x9d30x8 ? _0x9d30x8 += 10 : 40 >= _0x9d30x8 && (_0x9d30x8 += 15)

it makes fake fps value. Here is what is going on here actually:

   fps = getFPS();
   if (fps <= 50) fps += 8;
   else if (fps <= 45) fps += 10;
   else if (fps <= 40) fps += 15;

But getFPS also returns incorrect value, because it's measured incorrectly.

This is reason why it shows FPS value higher than maximum display refresh rate and requestAnimationFrame call frequency. I was confused when I seen it for the first time, so I spent some time to investigate what's going on here

Also it shows leaderboard with html elements - it's incredible slow. But graphics design of agarplus is nice

Barbosik avatar Aug 11 '16 07:08 Barbosik

@SimonOrJ it mean Chat + Minimap + URL SKIN not action

dinhduynhat avatar Aug 11 '16 12:08 dinhduynhat

@Barbosik :)) look at me do not know anything. jahahahah

dinhduynhat avatar Aug 11 '16 12:08 dinhduynhat

agarplus uses it's own specific skins and specific custom second server for minimap and chat. It doesn't works with normal ogario

Barbosik avatar Aug 11 '16 13:08 Barbosik

yah :)) why nbk.io + senpai-agar.online :P i want like that :) and you have Facebook ? give me the link ^^ and... are you have VPS ?

dinhduynhat avatar Aug 11 '16 13:08 dinhduynhat

I run on my web server, the Chat + Minichat operating normally, but I run the server on the Chat + minimap nbk.io inactive

dinhduynhat avatar Aug 11 '16 13:08 dinhduynhat

In order to support normal chat in agarplus, you can just add something like this to message handler:

                case 99:    // chat
                    var flags = v_4f.getUint8(vb, !0);
                    vb += 1;
                    var r = v_4f.getUint8(vb, !0);
                    vb += 1;
                    var g = v_4f.getUint8(vb, !0);
                    vb += 1;
                    var b = v_4f.getUint8(vb, !0);
                    vb += 1;
                    var name = readStringZero();
                    var text = readStringZero();
                    if (flags & 0x80)
                        chatRoom.showChatServer(text);
                    else
                        chatRoom.showChatPlayer(name, text);
                    break;

and this to chatRoom:

        this.popupChat = function(name, message) {
            var vh = escapeHtml(name);
            var vd = escapeHtml(message);
            this.popup({
                heading: '<span class="toast_sender">' + vh + ': </span>',
                text: '<span class="toast_chatmsg">' + vd + '</span>',
                showHideTransition: 'fade',
                bgColor: 'rgba(10, 10, 10, 0.8)',
                allowToastClose: !1,
                hideAfter: 15E3,
                stack: 10
            })
        };

        this.showChatServer = function(message) {
            var vh = $('<div/>');
            var ve = $("<span class='system'/>").text(message);
            vh.append(ve);
            $('#chatroom').append(vh);
            this.scrollDown()
        }

        this.showChatPlayer = function(name, message) {
            var vh = $('<div/>');
            var ve = $("<span class='sender'>").text(name + ' : ');
            var vd = $("<span class='msg'>").text(message);
            vh.append(ve);
            vh.append(vd);
            $('#chatroom')['append'](vh);
            this.scrollDown();
            this.popupChat(name, message)
        };

        this.sendMessage = function(message) {
            message = message.trim();
            if (message) {
                if (!(Date.now() - vb < 2E3 && message.length < 50)) {
                    if (myApp.sendChatMessage) {
                        myApp.sendChatMessage(message);
                    }
                    this.lastMsg = message;
                    vb = Date.now()
                }
            }
        };

this to websocket connected:

    myApp.sendChatMessage = sendChatPacket;

and this:

        function sendChatPacket(text) {
            if (!text) return;
            var msg = new DataView(new ArrayBuffer(2 + text.length * 2 + 2));
            var index = 0;
            msg.setUint8(index, 99, !0);
            index += 1;
            msg.setUint8(index, 0, !0);
            index += 1;
            for (var i = 0; i < text.length; i++) {
                msg.setUint16(index, text.charCodeAt(i), !0);
                index += 2;
            };
            msg.setUint16(index, 0, !0);
            index += 2;
            sendPacket(msg);
        }

I renamed some functions, such as sendPacket, so you need to find how it named in your version.

Barbosik avatar Aug 11 '16 16:08 Barbosik

look at me not knowing what to paste it in any place

dinhduynhat avatar Aug 12 '16 06:08 dinhduynhat

@SimonOrJ i am having troule alos ill hisallowme to use server as in /help

plazo123 avatar Jun 22 '17 22:06 plazo123

@plazo123 Please open another issue and explain your situation.

Also, you may want to check out Megabyte's fork.

chuushi avatar Jun 23 '17 13:06 chuushi

@SimonOrJ i do use it i mata coder says this is t for your some own code so i went beack to find

i meen is http://warlist.tk/ dont suport /s#hel this command list any command like minion /minionb in the chat like /login so will this code do that ?

plazo123 avatar Jun 23 '17 20:06 plazo123

@SimonOrJ why is your server down i use to love it it was self feed and 70x70 map right

plazo123 avatar Jun 23 '17 20:06 plazo123

That wasn't my server, and I'm unable to help you with minions and login. My instant merge server went down seven months ago due to Agario's breaking update and decay in interest.

Please do open another issue.

chuushi avatar Jun 26 '17 05:06 chuushi

ok do you have discord @SimonOrJ

plazo123 avatar Jun 26 '17 20:06 plazo123

@mafiakb

plazo123 avatar Jul 04 '17 09:07 plazo123