SRL Archive - News and General

WoodCutting Competion


SKy Scripter

2007-10-12 00:42:07

WoodCutting Competion
Dead Line : October 20, Before or (GTM) 12 : 00 AM



Description: Competion is going to based on who can make the best WoodCutting function, i want you to make a function that will either find all trees and then wood cut them or find one tree then check it and go to the next..

Rules :
  1. i want this code to be only by you!, you may get help with thoughts or idea's but anything with coding is prohibited.
  2. No PLUGINS, i think this gains an unfair advantage for other people.. Scar only ;)..
  3. Turn everything in on Time.. I May except somthing a little late but it will be graded :p, i dont know how long it will take me to grade it all..
  4. if you give me somthing but change your mind ill most likely not Grade it..

Script will be judged on:
  1. Techinque - The way you use it (X / 25)
  2. Creativity - This could mean how ever it works.. i like this (X / 20)
  3. Speed - Make it as fast as possible :) (X / 25)
  4. Accuracy - I will be grading if you get the mouse right on it every time (x / 25)
  5. Debugging - Make a debug i want to see whats really going on ;)(X / 20)
Total Points = 115;


Prize: Hehe Not Much but i will give you 500k and rep++, its only a function :rolleyes:

Please JOIN!!!! it will be fun :)

Santa_Clause

2007-10-12 01:00:17

Ahh…another competition…interesting. Lorax is going to smash the competition :)

pwnaz0r

2007-10-12 01:19:24

hmmmmm I think I will join. This will be my first competition that i enter at SRL. Sounds like fun :). Lorax better bring is A game :D

Tim0suprem0

2007-10-12 02:19:56

I love these because I get to mooch the procedures :p

I mean learn from them…

pwnaz0r

2007-10-12 02:47:33

From: Tim0suprem0
I love these because I get to mooch the procedures :p

I mean learn from them…


:D. you should try one tim

n3ss3s

2007-10-12 05:12:32

Im in as usual ;)

Ill try to find another kickass0r technique.

rkroxpunk

2007-10-12 05:32:39

Should make a requirement that it must have custom ent finding..

Santa_Clause

2007-10-12 05:33:54

I'm pretty sure he won't need Anti-randoms…?

Secet

2007-10-12 05:35:27

Oh man I wish we had this earlier. :P

n3ss3s

2007-10-12 06:02:21

Okay, I am ready, finds all the trees on the screen succesfully (forgot to take time, Ill edit this…)

Umm I dont kinda understand, what does "check it and go to the next" mean?

EDIT: Aww man, terribly slow! I should be ashamed! Its 234ms! Shit! Meh, quality beats quantity? no. Meh, it finds all the trees though, maybe it gets damn smaller if it would find only one lol..

danrox2004

2007-10-12 10:18:28

I will give it a shot, takes 62 ms to find all the trees :)
Are we allowed to use WizzyPlugin?

JuKKa

2007-10-12 10:59:05

I got a kick ass function :P just have to get it to work.

SKy Scripter

2007-10-12 11:55:23

Glad to see many will join?
You dont need anti-random all im looking for is a tree finder..
and sense wizzyplugin is from SRL you may use it. ;)

The Un-Named

2007-10-12 11:58:41

From: SKy Scripter
Glad to see many will join?
You dont need anti-random all im looking for is a tree finder..
and sense wizzyplugin is from SRL you may use it. ;)


Since, not sense. Oh, and what are you looking for? Who can find the most trees or who can find them the fastest? Any specific parameters?

Special Ed

2007-10-12 12:03:29

Geeeze… Whats with all the competitions? Anyways I'm thinking that this is going to be interesting, I'll try and work something together when I get a chance, gotta finish my PowerFisher First. You guys really need to stop distracting me… :p or I'll never get anything done.

n3ss3s

2007-10-12 12:52:34

Holy Smokes only finding! Yay, Ima gonna faster mine atleast 4 times :D

BenLand100

2007-10-12 13:53:51

From: SKy Scripter
Glad to see many will join?
You dont need anti-random all im looking for is a tree finder..
and sense wizzyplugin is from SRL you may use it. ;)

So, you'll let people use a plugin that was written by someone else, but you say that I can't use the plugin that I'm working on… :duh: If anything, fast array sorting would be the one thing that would seperate the men from the boys in Scar in my opinion. After all, that IS the bulk of object finding, comparing the points ;)

Like I've said before, if everyone had exactly the same advantages and disadvantages in a competition, they would all tie. Part of the learning process involves moving out of Scar for speed sensitive operations, and then into a faster language after you tire of delphi ;) Take my rock finder for instance, it uses my plugin only for the parts that are really generic and need to be fast:


 {*******************************************************************************
procedure FindRocks(var Points: TPointArray; RockType: Integer);
by: BenLand100
Description: Finds rocks in Varrock using HSL
Returns midpoints of rocks found in the Points array
Use the following values for RockType:
0 - Copper
1 - Tin
2 - Iron
3 - Silver
4 - Clay
*******************************************************************************}
procedure FindRocks(var Points: TPointArray; RockType: Integer);
var
Temp: TPointArray;
Len, Count, i, e: Integer;
begin
SetLength(Points,169830);
case RockType of
{Copper} 0: Len:= FindColorsHSLFast(GetClientCanvas.handle,5,5,515,338,Points,169830,28,50,50,5,20,30);
{Tin} 1: Len:= FindColorsHSLFast(GetClientCanvas.handle,5,5,515,338,Points,169830,2,10,50,7,20,30);
{Iron} 2: Len:= FindColorsHSLFast(GetClientCanvas.handle,5,5,515,338,Points,169830,17,50,30,2,20,20);
{Silver} 3: Len:= FindColorsHSLFast(GetClientCanvas.handle,5,5,515,338,Points,169830,43,18,60,5,10,40);
{Clay} 4: Len:= FindColorsHSLFast(GetClientCanvas.handle,5,5,515,338,Points,169830,40,55,70,2,20,20);
end;
Len:= GroupCentersMin(Points,Len,30,10);
SetLength(Temp,1600);
i:= 0;
e:= Len - 1;
{The FindColorsHSLFast in the following section identifies the rock color
that is the lightest color on the rock for Varrock rocks. It could be
adjusted to work for other new rocks by putting in the HSL values for the
rocks of the new area.}
//Simplified Excluding Quicksort Algorithm
while i < Len do
begin
repeat
Count:= FindColorsHSLFast(GetClientCanvas.handle,Points[e].X-15,Points[e].Y-15,Points[e].X+15,Points[e].Y+15,Temp,1600,45,75,40,12,20,20);
e:= e - 1;
Len:= Len - 1;
until ((Count >= 150) and (Count <= 700)) or (e < 0);
Len:= Len + 1;
e:= e + 1;
repeat
Count:= FindColorsHSLFast(GetClientCanvas.handle,Points[i].X-15,Points[i].Y-15,Points[i].X+15,Points[i].Y+15,Temp,1600,45,75,40,12,20,20);
i:= i + 1;
until ((Count < 150) or (Count > 700)) or (i - 1 > e);
i:= i - 1;
if i >= e then break;
Points[i]:= Points[e];
Len:= Len - 1;
end;
SetLength(Temp,0);
SetLength(Points,Len);
end;


Really, GroupCentersMin is like using Wizzup's plugin, just faster, and FindColorsHSLFast is just a faster and more controlable version of FindColorsTolerance with ColorToleranceSpeed(2).

pwnaz0r

2007-10-12 13:57:26

yes but your plugin isnt in SRL and only you have access to it. Thats why its unfair

SKy Scripter

2007-10-12 14:41:24

Sorry, ben wont work on me :p
wizzyplugin is fine… its not like they can put custom funtions in there… those are only functions that should be in SCAR. ;)

pwnaz0r

2007-10-12 14:52:08

Could we be allowed to have like a partner? Spice things up a bit?

n3ss3s

2007-10-12 16:06:18

Is it safe to post couple my functions including my tree finding which I will take part to the competition in SRL New Functions? I doubt anyone would copy it or anything, though it shows pretty good things of WizzyPlugin, my idea could be stolen (seek and destroy ftw)

BenLand100

2007-10-13 01:14:41

From: pwnaz0r
yes but your plugin isnt in SRL and only you have access to it. Thats why its unfair

So, if I use an algorithm that isn't public, I shouldn't be allowed to compete because what I can do is 'unfair' for the rest of you?
From: SKy Scripter
Sorry, ben wont work on me :p
wizzyplugin is fine… its not like they can put custom funtions in there… those are only functions that should be in SCAR. ;)

So, since FindColorsHSLFast is in scar, just slower and not as flexible, and GroupCentersMin is in wizzyplugin, just slower, I can't use my plugin? What difference does it make whether its in SRL or not, you specifically said THEY have to write the code, am I correct?

This is the same nonsense you all give for anything that is new or good; you call it blasphemy and shun it away.

Santa_Clause

2007-10-13 01:21:58

It's called a God damn SRL function…and you're only allowed to use anything from SRL…end of story!

:p

Special Ed

2007-10-13 02:21:37

Ben they just want to try to equal out the playing field. You can only use what you can program in SCAR or what SRL already has made. I don't care either way, but I'm just saying, thats what they're trying to get at.

Plus you'd rape to much if you could use you own plugins :P

BenLand100

2007-10-13 16:15:55

From: Santa_Clause
It's called a God damn SRL function…and you're only allowed to use anything from SRL…end of story!

:p

LOL! So wizzup sticks his plugin into the SRL distro and that makes it legal in this competition. What you all are missing is that plugins only let you do things FASTER which is one of the graded points of this competition. So, either no plugins at all, or plugins, you choose. It surprises me that your bias would be so large as to help yourselves by limiting others in a competition. Whats wrong with plugins? Anyone can make one, since gcc is free, and it can make scar plugins, you all just don't know how. By that logic, since everyone doesn't know about HSL (or TPointArrays for that matter), you shouldn't allow that to be used either.

n3ss3s

2007-10-13 16:20:05

Ben has a point there, though we all know that his plugin combined with his procs finds the objects so fast that our monitors go to flames.

So wizzup sticks his plugin into the SRL distro and that makes it legal in this competition.
Haha, that sounds like "If wizzy sticks his plugin, they cant complain if I will" :D :D :D

*cough* I wouldnt get offended if you would stick it to SRL xD *cough*

Sumilion

2007-10-13 17:06:15

I would have to agree with Ben …

Just because some people know how to use plugins doesnt mean it can't be used. It's not his fault that others dont know how to.

Killerdou

2007-10-13 17:08:12

its like saying, we are going to fight against each other, but if you have more muscles you cant use um XD

Wizzup?

2007-10-13 17:12:20

Just stick to his rules, you did that with Starblaster's rules too?
If you don't like them, then don't enter…

R0b0t1

2007-10-13 17:40:28

I will join… But I won't try hard.

Sometimes perfection is in simplicity.

BenLand100

2007-10-13 20:15:52

From: Wizzup?
Just stick to his rules, you did that with Starblaster's rules too?
If you don't like them, then don't enter…

Thats the thing, I don't want to enter in the first place, but Sky is being a [insert offensive word here] about it and calling me a sissy for not entering, so I bash his rules :f:

pwnaz0r

2007-10-13 20:19:11

From: Sumilion
I would have to agree with Ben …

Just because some people know how to use plugins doesnt mean it can't be used. It's not his fault that others dont know how to.


If he lets every one use it, I say feel free.

R0b0t1

2007-10-13 21:59:30

And if he gives me the source, he can have my soul. (JK, I felt my sould leaving me for a second…)

SKy Scripter

2007-10-14 05:06:34

Ben, i see no point really…
Everyone here has got access to wizzyplugin..
not everyone here can make a plugin…

Also the reason i set up this challenge is to see who can make the fastest tree finder, without there own PERSONAL plugins.. Duah! :p.

Ben is sad cause he cant make one without a plugin XD

Killerdou

2007-10-14 05:25:44

well everyone here can use my plugin aswell…

SKy Scripter

2007-10-14 05:36:56

Well, you may make a plugin… but only if it covers ones people all ready have access too.
for example :

FindColorstolerance();
you may make a function like this..

ben, i see no function that uses all HSL in SCAR or a wizzyplugin..

the reason i did this is because i see, that it would be nice to make your own color/tpoint searcher thingy :p

the parameters must be the same…


SplitTPA(P, 20);

into

SplitmyTPA(P, 20);

Killerdou

2007-10-14 05:41:46

so if i'd remove my accuracy parameters it would be alright(i never actually use um anyways XD)

Tim0suprem0

2007-10-14 11:43:40

From: Sumilion
I would have to agree with Ben …

Just because some people know how to use plugins doesnt mean it can't be used. It's not his fault that others dont know how to.


Also if anything, it gives them the incentive to learn because they get their butts kicked by people who do know how to use plugins.

BenLand100

2007-10-14 16:03:57

From: SKy Scripter
Ben, i see no point really…
Everyone here has got access to wizzyplugin..
not everyone here can make a plugin…

Also the reason i set up this challenge is to see who can make the fastest tree finder, without there own PERSONAL plugins.. Duah! :p.

Ben is sad cause he cant make one without a plugin XD

See, thats the bs I'm talking about, why waste my time writing something in scar that I would rewrite in a plugin if i ever used it?
From: SKy Scripter
Well, you may make a plugin… but only if it covers ones people all ready have access too.
for example :

FindColorstolerance();
you may make a function like this..

ben, i see no function that uses all HSL in SCAR or a wizzyplugin..

the reason i did this is because i see, that it would be nice to make your own color/tpoint searcher thingy :p

Sky, before you blabber anymore, read about ColorToleranceSpeed and SetColorspeed2Modifiers. It's not my fault you are not well informed, Freddy wasn't sure about their usage either, so don't blame me for knowing more that you do.

EDIT: In retrospect, I bet you don't even know what HSL is XD

So, if you want people to make their own, make them write their own entirely. I understand that the only reason you won't let me use a plugin is cause I won't give you the source to my last one. Its ok, I understand that you couldn't do it by yourself even if you tried :)

R0b0t1

2007-10-14 16:10:25

OK, this is starting to turn into flame… Where did I put my gasoline?

SKy Scripter

2007-10-14 16:35:13

Ben you can join if you want i dont care.. but if its in this much concern to you. you may go start your own competion. please show some respect.
i made it clear no plugins, then i said fine plugins but only if its to improve SCAR's or SRL.

BenLand100

2007-10-14 16:39:55

From: SKy Scripter
Ben you can join if you want i dont care.. but if its in this much concern to you. you may go start your own competion. please show some respect.
i made it clear no plugins, then i said fine plugins but only if its to improve SCAR's or SRL.

I didn't want to join in the first place, but you've been pestering me on MSN about not wanting to cause I can't do it without a plugin, which I've told you was complete bs. So, you brought looking foolish for not thinking Scar can do HSL on yourself :) My main problem is that you say no plugins, its a stupid rule :p

Talk about respect, and I've been here longer than you too:
10/12/2007  1:02:14 AM  skyler  Ben Land  lmfao, i never saw the HSL color searcher 
10/12/2007 1:03:52 AM skyler Ben Land Benny be bop!
10/12/2007 1:04:41 AM skyler Ben Land Can you beat me ^^, im going to make a function too
10/14/2007 5:14:36 AM skyler Ben Land you little baby lmfao
10/14/2007 5:14:36 AM skyler Ben Land Your not 1337 to make your own script, WITHOUT a plugin

In other words, if you don't want me to annoy you, don't try to drag me into your competition :)

SKy Scripter

2007-10-14 18:08:38

LOL, sorry i was a little hyped out, but ben its only because you were posting stuff that was getting a little out of control.. i said no plugins and you couldnt accept that lmfao.

bullzeye95

2007-10-14 18:13:49

Methinks Ben can't make a script with just SCAR.

Smartzkid

2007-10-14 18:18:03

Methinks Ben knows how much faster you can do things with plugins.

SKy Scripter

2007-10-14 18:36:17

Methinks, im the only one here grading it..

BenLand100

2007-10-14 18:50:01

From: SKy Scripter
LOL, sorry i was a little hyped out, but ben its only because you were posting stuff that was getting a little out of control.. i said no plugins and you couldnt accept that lmfao.

Methinks those first three msn messages were before I posted :sasmokin: Want to rethink your excuse?

SKy Scripter

2007-10-14 19:26:54

lol, i remember you were showing of your mining procedure..

we were talking about this competion i asked you to join you said no, not inless i can use my plugins.. then i kept saying just use SCAR.


(11:00 PM) skyler : just use SCAR XD
(11:00 PM) skyler: you think somone so 1337 would mannage to use SCAR but eh. i guess i was wrong
(11:00 PM) Ben Land: naw
(11:00 PM) skyler: tsk tsk
(11:01 PM) Ben Land: lawl, have you seen my mining procedure
(11:01 PM) skyler: yeah pretty lame eh?
(11:02 PM) skyler: lmfao, i never saw the HSL color searcher
(11:03 PM) skyler: Benny be bop!
(11:04 PM) skyler: Can you beat me , im going to make a function too


that was like the first day too. i was jk.. then i asked if you could beat me because the deal you made out of not using plugins..

then later today.
(2:39 PM) skyler: what happen to you?
(2:40 PM) Ben Land: You keep pestering me about your woodcutting competition, so i descided to make you look foolish


I Dont Care Anymore, really join or not " I DO NOT CARE ".
Stop saying that i want you to join, Cause i really dont care anymore .

Lol, why you make "things" such a Big deal?
your going on and on cause you cant play by the rules.
Such a waste of life.

Edit : this will be, my last post concerning your "needs".

Santa_Clause

2007-10-14 19:33:22

Ben might ban you :p

Ben, just play without a plugin…we'll see who really is the BEST scripter…

Tim0suprem0

2007-10-14 23:14:11

Wawaweewah this got intense!


From: Santa_Clause
Ben might ban you :p

Ben, just play without a plugin…we'll see who really is the BEST scripter…


I agree with Santy, Ben if you really feel that Sky's teasing was a threat to how much you own all of us, then just prove to him that you kick ass regardless of the conditions.

Tbh I think this is being taken a litttttle too seriously, but that is coming from someone who hasn't entered one of these :p so take my opinion lightly.

Santa_Clause

2007-10-15 04:45:12

SKy's rules are quite fair in my opinion.

We all know one thing, everyone at this forum that is an SRL Member knows how to script in SCAR/SRL.

Now, if Ben wants to have a C++ or whatever language competition, then he should go to a forum where everyone knows the language. Sound fair?

P.S - If you ban me then make sure all your windows are shut at night :p

n3ss3s

2007-10-15 08:28:24

we'll see who really is the BEST scripter…



Didnt I win the competition already? :p Na Jk/Jk

But seriously, why is there any argument on this "no plugins", it is SKy's competition, we play by SKy's rules, SKy said no plugins, why is there a question "why no plugins"?

Isnt it clear that SKy made a competition where he wants only SCAR / SRL to be used??

Geesh…

Methinks this is getting to offtopicbs…

Sumilion

2007-10-15 15:38:56

Ugh … did it had to come this far that an admin has to be stopped ?

BenLand100, please stop filling this entire thread with your plugin crisis, even though I agree with you. The rules are simple, let it go now.

Please continue this thread appropiately everyone.

SKy Scripter

2007-10-16 00:50:21

me and ben are at peace, so nobody talk about it anymore. ;)
Btw, sorry ben..

ok, who is still in the competion?
i know of one person for sure. (he already turned it in) :)
btw, its 20.msc faster then what you said it was. you must have a slow computer or somthing XD


also im leaving wednesday and ill be back sunday XD, so sorry if you have any questions around then.. i may extend the dead line because of this but i think i made it clear enough.
:D. Good Luck

if you have any questions better ask now XD

n3ss3s

2007-10-17 07:26:40

Im in, and Im about ready too.

Though how important the speed is?

Because Im currently ~220 and I know how to make it ~70, but the accuracy wouldnt be anything so sexy as atm?

And am I allowed to send 2 versions?

SKy Scripter

2007-10-17 08:53:56

send two i dont care. ill only correct the first one i see XD.

I think being more accurate is important. *TIP*

n3ss3s

2007-10-17 08:59:52

So, do I lose points if

My search would take ~200ms but 110% accurate?

SKy Scripter

2007-10-17 09:22:22

well, not much.. thats good in my book. because you dont have a plugin.