Page 1 of 2 12 LastLast
Results 1 to 25 of 30

Thread: Reflection or color?

  1. #1
    Join Date
    Feb 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Reflection or color?

    So I discovered villavu about three weeks ago and Ive been using simba with YoHojo's p.m.s and DOOMS vwm with great results. I've tested about a dozen scripts, and I found that only the aforementioned two suited my needs. Therefore, I've decided that I want to learn how to scipt. Not only will I be able to tailor the script to my liking, but I get to give back to the community that's helped my rs endeavors enormously.

    However, before I start I'd like a couple base questions answered. (Not sure if they are in the faq section, because faq does not work for me atm.). Firstly, how long does the script learning process take on average? Obviously, mileage does vary, but how long after learning did (you) pump out your first script? Secondly, should I learn/use color or reflection. I understand the premise of ''color'' but I have no idea wtf reflection is or how it works. Thirdly, what guide do you recommend I follow? I've loads of 'em, most f which have 5 stars.

    Thanks,
    Dogma

  2. #2
    Join Date
    May 2006
    Location
    Australia
    Posts
    370
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    1. Can take a few weeks to many months. Depends how inclined you are towards logic, and how much effort you put in. I made my first script within about 2 weeks of finding scar. It was simple but it worked.
    2. Really depends. In this community, color is preferred as it isn't as easily broken - but it is quite a bit more difficult to use. With reflection it is very easy to write a script which will run for hours. I'd suggest to use them both together.
    3. The best way to learn is to modify the scripts of others, but definitely read a guide too. Look for a guide that gives examples the whole way through.

    Really great to see new people keen to learn!
    ------
    Strong Holder
    Kill Goblins and Zombies in (ex) bot free zones. Loot & Bank. Stable: 1.2b

  3. #3
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Reflection:
    - Easy to learn
    - Easy to script with
    - Reliable, doesn't need so much failsafes

    Color:
    - Takes longer to learn
    - Harder to script reliable code
    - Usually isn't that accurate, unless used correctly

    Personal thoughts:
    - I always prefer color, just because in reflection, hooks need to be updated (they get updated pretty fast, but still), and its just too simple, takes away the challenge.
    - Reflection is more effective then color, thought color can reach the same level as reflection.
    There used to be something meaningful here.

  4. #4
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Iamadam View Post
    1. blah.
    2....I'd suggest to use them both together...
    3. stuff.

    Really great to see new people keen to learn!
    You should check out my LandScorcher script if you'd like an example on how to use Reflection and color together for finding trees, it's a smart combination of how I did it.

  5. #5
    Join Date
    Feb 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the prompt replies! Seems like I have some ''homework'' to do on the subject. So far I think I'm going to start with reflection and work my way ''up'' to color. Be on the lookout for my Varrock clay softener

  6. #6
    Join Date
    Feb 2011
    Location
    Earth
    Posts
    1,784
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Firstly, how long does the script learning process take on average?
    The learning process does vary greatly, as Iamadam stated. I am new to scripting myself and learned enough to create a stable multi-tree woodcutter after around a month of learning and experimenting with scripts. From what I have seen, one can never stop learning how to optimize and increase the efficiency of a script.


    Secondly, should I learn/use color or reflection. I understand the premise of ''color'' but I have no idea wtf reflection is or how it works.
    I would suggest that you learn both, and use one as a failsafe. Reflection is a type of style that uses information collected from S.M.A.R.T. for use in scripting(correct me if this isn't accurate). The reason that most of the community prefers color scripts is that without color, Runescape would not exist, and since Reflection can become broken at any time color is more stable. Reflection is easier to script with once you learn how, so I suggest reading beginner's tutorials in the Reflection section, as well as in Tutorials For Beginners.


    Thirdly, what guide do you recommend I follow? I've loads of 'em, most f which have 5 stars.
    Each guide has a different focus, so using as many as possible is probably the best idea. To begin with I would check Here for very basic information, Here for the Basic of scripting with Runescape, and Here to learn about Colors


    We're always glad to see someone eager to learn how to script to give back

    Currently: Working on Defending&Attacking in my Castle-Wars Script
    Project Rebuild: 90M/170M

  7. #7
    Join Date
    Feb 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    One more quick question. Is it a different procedure for scripting with scar or simba? Can what's learned in a scar tutorial be applied for simba too?

  8. #8
    Join Date
    May 2006
    Location
    Australia
    Posts
    370
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dogma View Post
    One more quick question. Is it a different procedure for scripting with scar or simba? Can what's learned in a scar tutorial be applied for simba too?
    A few tiny differences, but pretty much the same. They both use pascal script.
    ------
    Strong Holder
    Kill Goblins and Zombies in (ex) bot free zones. Loot & Bank. Stable: 1.2b

  9. #9
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    I think 90% of using the two will be the same, but IMO I think Simba is all-around simpler to learn and work with, that's what I've been using to learn to script, I'm very new myself.

  10. #10
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    It depends what you're looking for. If you want to challenge yourself, learn to think critically, and problem solve, then learn color. If you just want to write working scripts fast, then learn reflection. You can still learn to think critically and problem solve with reflection, just on a lesser scale.

    For some Simba basics, you can visit my tutorial. I recommend going through it regardless of whether you learn reflection or color, it will help you with both.

  11. #11
    Join Date
    Feb 2011
    Location
    Earth
    Posts
    1,784
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    It depends what you're looking for. If you want to challenge yourself, learn to think critically, and problem solve, then learn color. If you just want to write working scripts fast, then learn reflection. You can still learn to think critically and problem solve with reflection, just on a lesser scale.

    For some Simba basics, you can visit my tutorial. I recommend going through it regardless of whether you learn reflection or color, it will help you with both.
    Haha, thats actually the same tutorial I started out with, and recommended for him up above

    Currently: Working on Defending&Attacking in my Castle-Wars Script
    Project Rebuild: 90M/170M

  12. #12
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by PatDuffy View Post
    Haha, thats actually the same tutorial I started out with, and recommended for him up above
    Good to know people are using it and yeah I didn't bother to read everyone else's responses.

  13. #13
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Reflection and color are similar in some ways. They both can be used well. They both can be used poorly. Everything in RS has an ID and an appearance, which can be changed at jagex's will; reflection and color can each only see one of those two attributes.

  14. #14
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not to mention if reflection goes down, all your work is worthless until it's back online..

    It's been unavailable in this community for years at a time before.

  15. #15
    Join Date
    May 2006
    Location
    Australia
    Posts
    370
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Not to mention if reflection goes down, all your work is worthless until it's back online..

    It's been unavailable in this community for years at a time before.
    [shameless plug]...but now that there's an open updater being worked on it won't happen again... and everyone who knows java should help out (see link in my sig)[/shameless plug]
    ------
    Strong Holder
    Kill Goblins and Zombies in (ex) bot free zones. Loot & Bank. Stable: 1.2b

  16. #16
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Iamadam View Post
    [shameless plug]...but now that there's an open updater being worked on it won't happen again... and everyone who knows java should help out (see link in my sig)[/shameless plug]
    That's great and everything but what you don't know is it's more than just hooks that go into reflection.

    The information you get is in raw form and has to put into algorithms in order for it to be usable.

    Take TileToMS for example. It was 18 months from the time of reflection dying because of RuneTek5 to when it started working again.

  17. #17
    Join Date
    May 2006
    Location
    Australia
    Posts
    370
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    That's great and everything but what you don't know is it's more than just hooks that go into reflection.

    The information you get is in raw form and has to put into algorithms in order for it to be usable.

    Take TileToMS for example. It was 18 months from the time of reflection dying because of RuneTek5 to when it started working again.
    I know, it was more of a shameless plug :P But it really isn't that hard to figure things like TileToMS out. Its just that someone needs to actually do it.
    ------
    Strong Holder
    Kill Goblins and Zombies in (ex) bot free zones. Loot & Bank. Stable: 1.2b

  18. #18
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    It is great when you combine them to make a hybrid script. I have made a powercutter that uses colour for finding the trees and uses reflection to check if the player is animating or moving.

    It works really really well
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  19. #19
    Join Date
    Feb 2008
    Posts
    748
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    That's great and everything but what you don't know is it's more than just hooks that go into reflection.

    The information you get is in raw form and has to put into algorithms in order for it to be usable.

    Take TileToMS for example. It was 18 months from the time of reflection dying because of RuneTek5 to when it started working again.
    Probably because no one actually looks at how the client works? Obviously identifying stuff is hard, no doubt about it. But a lot of people nowadays don't know what they're hooking, just that they're hooking "something" (which is usually based on what other people have hooked), leading to such complications. Then when their updaters break, they depend on other people to supply the new correct hooks so that they can update their updater because they can't identify the correct hooks/fields themselves. Using what someone else has done is fine, but its when that person stops doing it that it becomes a giant issue because the people left can't actually re-find fields. Suddenly, their loads of updaters becomes useless from lack of maintenance. With that said, I do not know the specifics of finding every hook either, but I know enough that I can manually repair several/most hooks without relying on others.

  20. #20
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Iamadam View Post
    I know, it was more of a shameless plug :P But it really isn't that hard to figure things like TileToMS out. Its just that someone needs to actually do it.
    Well it takes more than just people who know java, or people that know a lot of math and/or the pascal script side, it takes people that know both and dedicate time to doing it. Major updates have killed reflection for long periods of time in this community, long enough to kill all scripts that were using it.

    If you make a script in color, you can really rely on it working through any major update with negligible adjustments that you can do yourself.

    The pros of color far outweigh the cons when compared to reflection, but it's not a two sided coin. There's a plan and method suitable to many different needs.

    If you are looking to make a reliable Legends guild yew cutter or a quest runner and especially in a short period of time than reflection may your best bet because it will allow you to reliably get it done fast.

    If you are looking into supporting a script in the long run it's in your best interest to write it in color because you will be able to support it longer, this is especially important for large year long projects or payscripts.

    If it's a simple script than it's best you just write it in color and have it stable and reliable with out having to rely on anything like reflection.

    The most recommended thing for all scripts though is a hybrid system in which the script can run with soley color or soley reflection at any time or both. Anyone perusing in becoming a legend or pushing the bounds of challenge and innovation will consider a fully hybrid system in which reflection or color can be nulled out of a script with defines at any given time in order to allow the script to instantly adjust for any unexpected updates, and for maximum reliability and longevity both during the script run and over the course of the script's public life and appeal.

    It's a common misconception that color and reflection is some black and white story when in fact its as complex and dynamic as anything.

  21. #21
    Join Date
    Feb 2008
    Posts
    748
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    I agree with Icefire. Things like ground items are probably better done in reflection. Large scale world walkers are also probably better done in reflection. NPC finding should be done in both (so a RS update related to NPCs can't kill the script and reflection can be used to locate NPCs off the screen).

  22. #22
    Join Date
    May 2006
    Location
    Australia
    Posts
    370
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Agree. ^
    Although world walking can be done in color thanks to SPS.

    And I agree with icefire on using both color and reflection. Not relying on one or the other ensures a script will last for a long time.
    ------
    Strong Holder
    Kill Goblins and Zombies in (ex) bot free zones. Loot & Bank. Stable: 1.2b

  23. #23
    Join Date
    Feb 2008
    Posts
    748
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Iamadam View Post
    Agree. ^
    Although world walking can be done in color thanks to SPS.

    And I agree with icefire on using both color and reflection. Not relying on one or the other ensures a script will last for a long time.
    By large-scale, I meant like doors, ladders, stairs, shortcuts, etc. I'd imagine that it'd be significantly harder with color.

  24. #24
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by pyroryan View Post
    By large-scale, I meant like doors, ladders, stairs, shortcuts, etc. I'd imagine that it'd be significantly harder with color.
    Color can generate the same results as far as my knowledge serves me.

    Take this as an example, you script runs you through a building with a door that can be closed. Reflection will detect the closed door id and tell the script to open it. Color can detect if the door's color patterns are in within a certain area on the MS, if they're in another area (where they'd appear if the door was closed) then the script could throw the same flag to open the door and continue. (This is assuming your camera set to a certain angle, if not then this wouldn't work)

  25. #25
    Join Date
    Feb 2008
    Posts
    748
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Color can generate the same results as far as my knowledge serves me.

    Take this as an example, you script runs you through a building with a door that can be closed. Reflection will detect the closed door id and tell the script to open it. Color can detect if the door's color patterns are in within a certain area on the MS, if they're in another area (where they'd appear if the door was closed) then the script could throw the same flag to open the door and continue. (This is assuming your camera set to a certain angle, if not then this wouldn't work)
    Except theres probably hundreds of different doors, each with a different color.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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