[PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

Page 3 of 3 FirstFirst 123
Results 51 to 72 of 72
  1. #51
    Elite Member steffchef is offline
    Member +Rank
    May 2011 Join Date
    Munich, GermanyLocation
    176Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by Dominic View Post
    Where exactly are these checks located?
    The rooms of a popular list are sorted and managed by org.stevewinfield.suja.idk.game.navigator.NavigatorList, that is executed by org.stevewinfield.suja.idk.game.navigator.tasks.SortNavigatorTask every 2 seconds.

    In Phoenix (and later Butterfly versions as well I think) all rooms are sorted on every single request which is quite inefficient in my opinion.

    Cheers,
    Steve Winfield

  2. #52
    j’aime ma famille dominic is offline
    Grand MasterRank
    Aug 2012 Join Date
    ~/Location
    611Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by steffchef View Post
    The rooms of a popular list are sorted and managed by org.stevewinfield.suja.idk.game.navigator.NavigatorList, that is executed by org.stevewinfield.suja.idk.game.navigator.tasks.SortNavigatorTask every 2 seconds.

    In Phoenix (and later Butterfly versions as well I think) all rooms are sorted on every single request which is quite inefficient in my opinion.

    Cheers,
    Steve Winfield
    But where are the rooms being removed from the popular rooms list?

  3. #53
    Elite Member steffchef is offline
    Member +Rank
    May 2011 Join Date
    Munich, GermanyLocation
    176Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by Dominic View Post
    But where are the rooms being removed from the popular rooms list?
    As I said: org.stevewinfield.suja.idk.game.navigator.NavigatorList

    Code:
    if (this.size == 50 && this.lowestPlayers < playersTotal) {
        this.lowestPlayers = playersTotal;
        this.rooms.remove(this.lowestRoom); // SEE HERE
        this.lowestRoom = room;
        this.writerUpdateNeeded = true;
        this.rooms.add(room);
    }
    Cheers,
    Steve Winfield
    Last edited by steffchef; 05-01-16 at 09:25 AM.

  4. #54
    Sorcerer Supreme EvilCoder is offline
    Member +Rank
    Jul 2009 Join Date
    /home/mvdworpLocation
    334Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by ovflowd View Post
    For Bot (public void kick(final boolean soft) {)
    if (this.isBot() && !this.isPet()) {

    For Pet(public void takePet() {)

    Are you a developer or what?
    if (this.isBot() && this.isPet()) {


    @EvilCoder idk how this emulator is coded, but if Every PET is a PetBot, so i think you doesn't need to check if the Pet is also a Bot, because he is.

    So best approach:

    Code:
    public void takePet() {
            if (this.isPet()) {
            this.room.removeBotFromRoom(this);
            }
        }
    
    public void kick(final boolean soft) {
            if (this.isBot()) {
                    this.room.removeBotFromRoom(this);
                    return;
            }
    This is a bit confusing...

    1. I already replied with what you just said in your message.
    2. There are 2 type of bots, where you can also have the "Help Guide Bot" in your room and should be kicked upon leaving the room but not the pets.
    3. If you have read the source you can see that "this.room.removeBotFromRoom(this);" will instantly put the roombot on room_id = -1. Meaning that it will leave the room, if you do that for the pet, you need to put them in your room everytime you enter the room.

  5. #55
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Make an onKick() method in an interface and have users, pets & bots interface that or extend from some kind of base class. Then the implementation can be done differently for each type.

  6. #56
    Elite Member steffchef is offline
    Member +Rank
    May 2011 Join Date
    Munich, GermanyLocation
    176Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by The General View Post
    Make an onKick() method in an interface and have users, pets & bots interface that or extend from some kind of base class. Then the implementation can be done differently for each type.
    It would be even better to split it all up and to improve the abstraction by structuring it like..
    RoomObject (removable) > RoomFloorObject > RoomEntity (kickable)

    RoomPlayer extends RoomEntity

    RoomBot extends RoomEntity
    RoomPet extends RoomBot

    I would have done it differently if I had known better in the beginning.

    Cheers,
    Steve Winfield

  7. #57
    git bisect -m ovflowd is offline
    Grand MasterRank
    Sep 2011 Join Date
    2,191Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by EvilCoder View Post
    This is a bit confusing...

    1. I already replied with what you just said in your message.
    2. There are 2 type of bots, where you can also have the "Help Guide Bot" in your room and should be kicked upon leaving the room but not the pets.
    3. If you have read the source you can see that "this.room.removeBotFromRoom(this);" will instantly put the roombot on room_id = -1. Meaning that it will leave the room, if you do that for the pet, you need to put them in your room everytime you enter the room.
    Oh Exactly. But the Guide Bot must be automatically kicked out after he explanning all the things. And not after the room unloads, or user kick him (optional), or unload commands..

    I'm wrong?

  8. #58
    Sorcerer Supreme EvilCoder is offline
    Member +Rank
    Jul 2009 Join Date
    /home/mvdworpLocation
    334Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Such a shame, after running it for a week, stuff starting to crash. With nobody online.

    Code:
    [New I/O worker #11] ERROR - Failed to handle packet
    java.lang.NullPointerException
            at org.stevewinfield.suja.idk.network.sessions.Session.tryAuthenticate(Session.java:253)
            at org.stevewinfield.suja.idk.communication.handshake.readers.AuthenticatePlayerReader.parse(AuthenticatePlayerReader.java:47)
            at org.stevewinfield.suja.idk.communication.MessageHandler.handleMessage(MessageHandler.java:451)
            at org.stevewinfield.suja.idk.network.codec.NetworkDecoder.decode(NetworkDecoder.java:47)
            at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
            at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
            at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
            at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
            at org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
            at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
            at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
            at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
            at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
            at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
            at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
            at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
            at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
            at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
            at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)

  9. #59
    Newbie ppntn is offline
    MemberRank
    Jan 2016 Join Date
    LondonLocation
    12Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by EvilCoder View Post
    Such a shame, after running it for a week, stuff starting to crash. With nobody online.

    Code:
    [New I/O worker #11] ERROR - Failed to handle packet
    java.lang.NullPointerException
            at org.stevewinfield.suja.idk.network.sessions.Session.tryAuthenticate(Session.java:253)
            at org.stevewinfield.suja.idk.communication.handshake.readers.AuthenticatePlayerReader.parse(AuthenticatePlayerReader.java:47)
            at org.stevewinfield.suja.idk.communication.MessageHandler.handleMessage(MessageHandler.java:451)
            at org.stevewinfield.suja.idk.network.codec.NetworkDecoder.decode(NetworkDecoder.java:47)
            at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425)
            at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
            at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
            at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
            at org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
            at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
            at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
            at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
            at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
            at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
            at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
            at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
            at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
            at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
            at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
    I'm assuming it wasn't able to fetch the players table properly. You should check if the auth_token is null when trying to sign in.
    Under if (row.next()) {
    Add "System.out.println(row.getInt("id"));" to test what's nulling out. :]

  10. #60
    Newbie JHD is offline
    MemberRank
    Jan 2016 Join Date
    2Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Will this emulator still get updates?
    The concept with the plugins looks very interesting. Never saw that on a emulator before.

    I'm thinking to use this for my future project. For myself I would edit it, but updates from the developer itself would be very cool.

  11. #61
    git bisect -m ovflowd is offline
    Grand MasterRank
    Sep 2011 Join Date
    2,191Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quackster "paused" the development, since he is busy. But i think he will continue it.

  12. #62
    Elite Member steffchef is offline
    Member +Rank
    May 2011 Join Date
    Munich, GermanyLocation
    176Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by ovflowd View Post
    Quackster "paused" the development, since he is busy. But i think he will continue it.
    What a shame!

    Cheers,
    Steve Winfield

  13. #63
    Elite Member wesley66101 is offline
    Member +Rank
    Oct 2013 Join Date
    105Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by steffchef View Post
    What a shame!

    Cheers,
    Steve Winfield
    You can continue the development?

  14. #64
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,486Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by ovflowd View Post
    Quackster "paused" the development, since he is busy. But i think he will continue it.
    I was talking about my own development. Not IDK project.

  15. #65
    Grand Master PR0 is offline
    Grand MasterRank
    Mar 2007 Join Date
    1,206Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Does battle banzai work on this?

  16. #66
    Elite Member steffchef is offline
    Member +Rank
    May 2011 Join Date
    Munich, GermanyLocation
    176Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by PR0 View Post
    Does battle banzai work on this?
    Yep.
    https://www.youtube.com/watch?v=WRUBzX4K_-g (2014 video)

    Cheers,
    Steve Winfield

  17. #67
    Newbie NegiNoYami is offline
    MemberRank
    Sep 2014 Join Date
    1Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Hello, thanks to you for this emu, I want to launch a server on a linux vps so I chose your java emulator, but I'm a little newbie in habbo retro server, what cms could I use with your emulator? Those I found and tried don't seems compatible with it

    (Sorry for my english)

  18. #68
    Member Kyle Betts is offline
    MemberRank
    Jan 2016 Join Date
    Summoner's RiftLocation
    70Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Any mirrors?

  19. #69
    Member Sonay is offline
    MemberRank
    Feb 2016 Join Date
    GermanyLocation
    93Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by Kyle Betts View Post
    Any mirrors?
    https://retrofiles.net/view/2

  20. #70
    Member Kyle Betts is offline
    MemberRank
    Jan 2016 Join Date
    Summoner's RiftLocation
    70Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by Sonay View Post
    Thank you m8, but this is the https://forum.ragezone.com/f353/pre-...lator-1033300/
    You can check files and are from 2014

  21. #71
    Newbie fraahk is offline
    MemberRank
    Apr 2020 Join Date
    4Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Quote Originally Posted by Kyle Betts View Post
    Thank you m8, but this is the https://forum.ragezone.com/f353/pre-...lator-1033300/
    You can check files and are from 2014
    https://www.mediafire.com/file/s4t5l...17-15.rar/file

  22. #72
    Elite Member Kylon is offline
    Member +Rank
    Dec 2015 Join Date
    Berlin, GermanyLocation
    112Posts

    Re: [PRE-SHUFFLE] IDK Java Emulator v2 [SCRATCH]

    Here is the official repository of IDK: https://github.com/StefanNemeth/IDK-Server-Java



Page 3 of 3 FirstFirst 123

Advertisement