Thread: Astraeus

Page 2 of 14 FirstFirst 123412 ... LastLast
Results 11 to 20 of 134
  1. #11  
    Registered Member
    Stanaveli's Avatar
    Join Date
    Aug 2014
    Posts
    1,490
    Thanks given
    184
    Thanks received
    653
    Rep Power
    1338
    Quote Originally Posted by Mgt Madness View Post
    Do your best!

    Hopefully it's really super easy to add content to it when it comes to adding anything!
    Something like that exists already.
    Keep your head up.



    Reply With Quote  
     

  2. #12  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Some of this is documented, other parts have no documentation.

    Use naming conventions.
    Code:
    private static Map<Integer, MobDrop[]> MOB_DROPS = new HashMap<>();
    Also, the player class is already a mess and there's no content (afaik). You should implement a scripting system (java or otherwise)

    You should just have a process method in the mob for it's local processing, not for all mob processing
    Code:
    public static void process() {
    		for (final Mob mob : World.getMobs()) {
    
    			if (mob == null) {
    				continue;
    			}
    
    			if (!mob.isRegistered()) {
    				continue;
    			}
    			
    			Mobs.resetFacingDirection(mob);
    
    			if (!mob.isDead()) {
    				mob.resetEntityInteraction();
    			}
    
    			Mobs.handleRandomWalk(mob);
    		}
    	}
    What is the "Players" class, it looks like a bunch of random code thrown into a class that has nothing to do with any of it.

    I could post more examples but you get the point. It looks like you're copying and pasting a lot of poorly written code into this, you really shouldn't. There are some good things in here, others are not so good, and others are terrible. Finish the framework before you start throwing content into it.

    You should consider this a learning project and scrap it after that, there are some good things in here and I hope to see more of them in future releases.
    Reply With Quote  
     

  3. #13  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    - UPDATE

    February 1, 2016

    • Finally fixed the walking issue. (Running and walking now works)
    • Player saving/loading finished (I'm using json right now now, but might explore my options and check out YAML)
    • Fixed walking into other regions.
    • NPC Updating fully functional
    • Fixed mobs that don't move from randomly walking.
    • Starting working on switching client compatibility to RS2 317 Refactored


    RS2 317 Refactored Client 474 Data (I'll post how to convert to various clients soon)




    I'll post some media soon appending various npc update masks to show it works.

    I'm going to separate player details from a players container. This is so incase something were to corrupt player details file, a player wont lose all their items because their container file will be fine; and vice-versa.

    I know I'm missing a few attributes like IP, and some other useful information I'll be adding those. This is just temporarily.

    Code:
    {
      "username": "test123",
      "password": "test123",
      "rights": "PLAYER",
      "location": {
        "x": 3161,
        "y": 3493,
        "height": 0
      },
      "newPlayer": false,
      "autoRetaliate": false,
      "enableSound": true,
      "enableMusic": true,
      "debugMode": false,
      "appearance": {
        "gender": "MALE",
        "head": 0,
        "jaw": 10,
        "torso": 18,
        "arms": 26,
        "hands": 33,
        "legs": 36,
        "feet": 42,
        "appearanceColor": {
          "hairColor": 7,
          "torsoColor": 8,
          "legsColor": 9,
          "feetColor": 5,
          "skinColor": 0
        }
      },
      "friendList": [],
      "ignoreList": []
    }
    Here's a quick image, sorry I don't have a GIF my camtasia license ran out



    I'll push the commit and soon as I fix the loading regions.

    Quote Originally Posted by Mikey` View Post
    Some of this is documented, other parts have no documentation.

    Use naming conventions.
    Code:
    private static Map<Integer, MobDrop[]> MOB_DROPS = new HashMap<>();
    Also, the player class is already a mess and there's no content (afaik). You should implement a scripting system (java or otherwise)

    You should just have a process method in the mob for it's local processing, not for all mob processing
    Code:
    public static void process() {
    		for (final Mob mob : World.getMobs()) {
    
    			if (mob == null) {
    				continue;
    			}
    
    			if (!mob.isRegistered()) {
    				continue;
    			}
    			
    			Mobs.resetFacingDirection(mob);
    
    			if (!mob.isDead()) {
    				mob.resetEntityInteraction();
    			}
    
    			Mobs.handleRandomWalk(mob);
    		}
    	}
    What is the "Players" class, it looks like a bunch of random code thrown into a class that has nothing to do with any of it.

    I could post more examples but you get the point. It looks like you're copying and pasting a lot of poorly written code into this, you really shouldn't. There are some good things in here, others are not so good, and others are terrible. Finish the framework before you start throwing content into it.

    You should consider this a learning project and scrap it after that, there are some good things in here and I hope to see more of them in future releases.
    I'm already aware of that, no worries. This is the base of Battle-OS, so that's why there's a lot of unused content, and variables. I'll be cleaning it all up shortly.
    Attached image
    Reply With Quote  
     

  4. #14  
    Registered Member
    Michael P's Avatar
    Join Date
    Dec 2013
    Posts
    1,264
    Thanks given
    499
    Thanks received
    321
    Rep Power
    674
    Why are you working on a nio framework and a netty framework?
    Reply With Quote  
     

  5. #15  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    Quote Originally Posted by Michael P View Post
    Why are you working on a nio framework and a netty framework?
    The NIO one not so much anymore, I was working on that project to learn more about the NIO libraries. This project is a side-project so I can get better at concurrency, learn more about Netty/Networking, utilize scripting languages and to develop better programming skills in general. Rather than to delete the project I thought I would share and hopefully it will be useful to someone out there.
    Attached image
    Reply With Quote  
     

  6. #16  
    Extreme Donator Astraeus Market Banned



    Join Date
    Aug 2011
    Age
    28
    Posts
    3,589
    Thanks given
    1,402
    Thanks received
    1,620
    Rep Power
    5000
    goodluck with this lad

    Attached image

    Attached image
    Discord: Roy#2382

    Reply With Quote  
     

  7. Thankful user:


  8. #17  
    Registered Member
    Michael P's Avatar
    Join Date
    Dec 2013
    Posts
    1,264
    Thanks given
    499
    Thanks received
    321
    Rep Power
    674
    Quote Originally Posted by SeVen View Post
    The NIO one not so much anymore, I was working on that project to learn more about the NIO libraries. This project is a side-project so I can get better at concurrency, learn more about Netty/Networking, utilize scripting languages and to develop better programming skills in general. Rather than to delete the project I thought I would share and hopefully it will be useful to someone out there.
    Ah, alright.
    Reply With Quote  
     

  9. #18  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    I converted a previous snippet of mine that held 2,362 npcs into my newer format. I lost some npcs because the current definitions only holds ids up to revision #317.

    http://www.rune-server.org/runescape...on-format.html

    So now, I spawned 1,995 npcs in the game world and no lag.

    Code:
    Feb 01, 2016 2:48:20 PM main.astraeus.utility.startup.MobSpawnLoader <init>
    INFO: Loaded: 1995 mob spawns.


    NPC Facing works as well.

    Code:
      {
        "id": 494,
        "x": 3096,
        "y": 3492,
        "height": 0,
        "randomWalk": false,
        "facing": "NORTH"
      },
      {
        "id": 495,
        "x": 3098,
        "y": 3492,
        "height": 0,
        "randomWalk": false,
        "facing": "NORTH"
      },
    NPCs can face..

    • NORTH
    • EAST
    • SOUTH
    • WEST


    Gonna have to add clipping soon to fix the npcs walking into objects though.
    Attached image
    Reply With Quote  
     

  10. #19  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,819
    Thanks received
    1,767
    Rep Power
    2438
    looks good, use sharex to record gifs & upload instantly
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  11. Thankful user:


  12. #20  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    Quote Originally Posted by Tyluur View Post
    looks good, use sharex to record gifs & upload instantly
    Ah thanks man, I'll check it out.

    - UPDATE
    Showing chat works (flag-based player update)


    Multi-player support


    Attached image
    Reply With Quote  
     

  13. Thankful user:


Page 2 of 14 FirstFirst 123412 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Free's Astraeus Project - Importing
    By DonkeyDollers in forum Help
    Replies: 4
    Last Post: 08-21-2016, 07:52 AM
  2. Astraeus Netty 4.0 Framework I
    By CrazyPanda in forum Downloads
    Replies: 24
    Last Post: 06-03-2016, 02:04 PM
  3. Astraeus Npc Spawn Tool
    By CrazyPanda in forum Tools
    Replies: 3
    Last Post: 05-23-2016, 07:31 PM
  4. Replies: 43
    Last Post: 01-29-2016, 11:14 PM
  5. Astraeus - based on Hyperion
    By Jamili in forum Projects
    Replies: 8
    Last Post: 04-18-2012, 05:01 PM
Tags for this Thread

View Tag Cloud

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