Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • gordy9596: similar to this [link]
      Today at 05:58:11 PM
    • gordy9596: I'm looking for someone, who would like to make a 2006 remake like this?
      Today at 05:57:41 PM
    • gordy9596: Hi
      Today at 05:57:12 PM
    • `Discardedx2`: k
      Today at 03:47:14 AM
    • Travas: the 'ol welfare bear
      December 09, 2017, 11:51:16 PM
    • Travas: ah, grizzly
      December 09, 2017, 11:51:10 PM
    • Cole1497: im bout to pack me a can of grizzly and go ham on a bitch
      December 09, 2017, 11:14:20 PM
    • wailsalih: It's my day off I'm just smoke and pk please any staff look at my ip ban situation please
      December 09, 2017, 12:24:37 PM
    • wailsalih: Anyone staff here?
      December 09, 2017, 10:11:30 AM
    • wailsalih: I got banned one year ago cause I did something dumb pkags banned me he's still holding the grudge can someone help?
      December 09, 2017, 10:02:50 AM
    • juhta6: oi. where's the download link for rs2 317 client
      December 09, 2017, 08:15:45 AM
    • Striker Fox2: Yes Welcome
      December 09, 2017, 07:50:13 AM
    • Amcora: Welcome soulcist
      December 09, 2017, 06:50:08 AM
    • Daveite: Is there anyway to download this
      December 08, 2017, 08:53:47 PM
    • Daveite: I'm looking for a the runescape chicken model
      December 08, 2017, 08:53:28 PM
    • Daveite: I have a noob question
      December 08, 2017, 08:53:02 PM
    • Daveite: Hey guys
      December 08, 2017, 08:52:53 PM
    • DeathsChaos9: *sigh*
      December 08, 2017, 04:21:46 PM
    • ToiletPoper: Is there any way to make the client bigger?
      December 08, 2017, 09:46:58 AM
    • jme: ask mopman for free moparscape stuff [link]
      December 06, 2017, 05:34:34 PM

    Author Topic: Today I learned! - Share your newfound knowledge  (Read 13525 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #280 on: November 04, 2014, 06:22:33 AM »
    TIL (thanks to Method) how transparency in animations works

    RS2Ad banner

    OfflineRyley

    • Member
    • ****
    • *
    • Posts: 7,315
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #281 on: November 04, 2014, 02:16:22 PM »
    Why do you still have the anti-color bot randomizations on?
    RS2Ad banner

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #282 on: November 04, 2014, 02:40:36 PM »
    Why do you still have the anti-color bot randomizations on?

    It's my refactoring project so I've made no edits.
    RS2Ad banner

    OfflineRyley

    • Member
    • ****
    • *
    • Posts: 7,315
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #283 on: November 04, 2014, 02:44:26 PM »
    Your mini-map looks wank.

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #284 on: November 04, 2014, 03:02:38 PM »
    Your mini-map looks wank.

    I know, but I'm not making any edits to the client/

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #285 on: November 11, 2014, 06:09:46 PM »
    TIL teleporting a player is easy and PI's way of handling it is obnoxious (We already knew that part though).

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #286 on: November 11, 2014, 06:21:10 PM »


    TIL how to draw interfaces in the pre-beta client

    Anyone know what's up with that face?

    « Last Edit: November 11, 2014, 06:33:17 PM by Ambokile »

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #287 on: November 11, 2014, 06:33:53 PM »
    http://i.imgur.com/JMAIVbk.png

    TIL how to draw interfaces in the pre-beta client

    Anyone know what's up with that face?
    The sprite id for prayer (I assume) is the same as the sprite for the friends list icon, apparently...

    OfflineLimits

    • Member
    • ****
    • Posts: 2,190
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #288 on: November 11, 2014, 06:35:09 PM »

    TIL how to draw interfaces in the pre-beta client

    Anyone know what's up with that face?



    is that the one I 'released'?

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #289 on: November 11, 2014, 06:47:04 PM »
    The sprite id for prayer (I assume) is the same as the sprite for the friends list icon, apparently...

    It's not the prayer icon, look two rows above it :P

    is that the one I 'released'?

    Nope, I got it from Rune-Server I think (it may be the same client, though)






    OfflineLimits

    • Member
    • ****
    • Posts: 2,190
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #290 on: November 11, 2014, 06:48:23 PM »
    The sprite id for prayer (I assume) is the same as the sprite for the friends list icon, apparently...

    It's not the prayer icon, look two rows above it :P

    is that the one I 'released'?

    Nope, I got it from Rune-Server I think (it may be the same client, though)


    I'm pretty sure the tab interfaces have been done before.

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #291 on: November 11, 2014, 07:07:59 PM »
    The sprite id for prayer (I assume) is the same as the sprite for the friends list icon, apparently...

    It's not the prayer icon, look two rows above it :P
    Prayer, Runecrafting. Same shit. You got my point regardless.

    OfflineT. Gang

    • First Time Poster
    • *
    • Posts: 4
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #292 on: November 12, 2014, 04:24:43 AM »
    Today(Well yesterday, but shh) I learnt how to add timers in the correct spaces and get it too work. :) So now my thieving, along with other skills, are no longer majorly bugged.

    A nooby thing to learn, but we all start from the bottom.

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #293 on: November 12, 2014, 06:50:04 PM »
    TIL how to write player updating for the first time





    Also, sk8r, you were correct:




    TIL how to render maps in 194


    OfflineSnow_

    • Member
    • ***
    • Posts: 161
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #294 on: November 18, 2014, 06:09:36 AM »
    TIL about Java 8's awesome forEach statements.

    For example, following code:
    Code: [Select]
    ArrayList<Bullet> bullets = new ArrayList<>();
    ArrayList<Player> players = getPlayers();
    for (Player player : players) {
        for (Bullet bullet : player.getBullets())
            bullets.add(bullet);
    }
    for (Player player : players) {
        for (Bullet bullet : bullets) {
            if (bullet.hitPlayer(player))
                playerHit(player, bullet);
        }
    }
    could be written like this:
    Code: [Select]
    players.forEach((player) ->
            player.getBullets().forEach(bullets::add)
    );
    players.forEach((player) ->
        bullets.forEach((bullet) -> {
            if (bullet.hitPlayer(player)) playerHit(player, bullet);
        }));
    }

    Another example:
    Code: [Select]
    for (Player player : getPlayers())
        player.update();
    to:
    Code: [Select]
    getPlayers().forEach(Player::update);

    OfflineRyley

    • Member
    • ****
    • *
    • Posts: 7,315
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #295 on: November 18, 2014, 07:15:24 AM »
    Code: Java
    1. players.forEach((player)->
    2.     bullets.forEach((bullet)->{
    3.         if(bullet.hitPlayer(player)) playerHit(player, bullet);
    4.     }));
    5. }


    ->

    Code: Java
    1. players.forEach(player ->{
    2.     bullets.stream().filter(bullet -> bullet.hitPlayer(player)).forEach(bullet -> playerHit(player, bullet));
    3. }

    OfflineSnow_

    • Member
    • ***
    • Posts: 161
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #296 on: November 18, 2014, 07:33:42 AM »
    Code: Java
    1. players.forEach((player)->
    2.     bullets.forEach((bullet)->{
    3.         if(bullet.hitPlayer(player)) playerHit(player, bullet);
    4.     }));
    5. }


    ->

    Code: Java
    1. players.forEach(player ->{
    2.     bullets.stream().filter(bullet -> bullet.hitPlayer(player)).forEach(bullet -> playerHit(player, bullet));
    3. }


    Thanks!

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #297 on: November 18, 2014, 08:00:48 AM »
    Code: Java
    1. players.forEach((player)->
    2.     bullets.forEach((bullet)->{
    3.         if(bullet.hitPlayer(player)) playerHit(player, bullet);
    4.     }));
    5. }


    ->

    Code: Java
    1. players.forEach(player ->{
    2.     bullets.stream().filter(bullet -> bullet.hitPlayer(player)).forEach(bullet -> playerHit(player, bullet));
    3. }

    Could that not become:
    Code: Java
    1. players.forEach(player ->{
    2.     bullets.stream().filter(Bullet::hitPlayer(player)).forEach(bullet -> playerHit(player, bullet));
    3. }

    OfflineRyley

    • Member
    • ****
    • *
    • Posts: 7,315
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #298 on: November 18, 2014, 08:43:07 AM »
    No, you cannot use method referencing that way.

    OfflineAmbokile

    • Member
    • ****
    • Posts: 3,009
    • Thanks: +0/-0
      • View Profile
    Re: Today I learned! - Share your newfound knowledge
    « Reply #299 on: November 18, 2014, 07:52:09 PM »
    TIL how to convert the 317 client to allow for birds eye view vertical rotation



    Still a bit funny with rotation (it doesn't rotate around the player exactly, but around the corner of their tile I believe) but other than that it's nearly done and I'll release it as a snippet

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal