SRL Archive - The Bashing Club / BBQ Pit

S1n...


footballjds

2012-07-08 20:44:07



no s1n

lets teach s1n?

NKN

2012-07-08 20:53:04

wut

I don't get it.

Sin

2012-07-08 20:55:57

So nobody understands my trolling? :/
You'd understand what it was about Fb, if you were in the skype group ;)

Nebula

2012-07-08 20:58:38

Why another thread like this? Some people just don't understand that each time RandomRange is used, a new number is created.

Don't like it? WRITE A FUCKING TUTORIAL

NKN

2012-07-08 20:58:49

I was in Skype group, and I don't understand, wut

kevin33

2012-07-08 21:00:06

Just stop with the stupid useless stuff. Its truly annoying.

Sin

2012-07-08 21:00:14

@Riwu, what it actually should be:


r := RandomRange(93,97);
repeat
wait(1337);
until(HPPercent > r);

Now what it does is it declares the variable before going into the loop.

eska

2012-07-08 21:05:17

Cool post. Would read again.

uz3

2012-07-08 23:02:48

No, it is not well deserved s1n. Instead of publicly humiliating someone he could have just pmed him what was wrong with his code. Completely wrong and terrible.

mormonman

2012-07-08 23:36:54

From: Shay
@Riwu, what it actually should be:


r := RandomRange(93,97);
repeat
wait(1337);
until(HPPercent > r);

Now what it does is it declares the variable before going into the loop.


Use random waits in the loop as-well…

Kyle Undefined

2012-07-08 23:40:44

I think the public flame was not needed, to be honest.

NKN

2012-07-08 23:48:30

Maybe he was just pointing out flaws in a dramatic way, practicing for acting class?

iBlank

2012-07-09 01:11:06

From: Kyle Undefined
I think the public flame was not needed, to be honest.


Personally, I agree with this. If someone has taken the time to write a script then he/she has earned the respect to not to be publicly flamed and hopefully the respect to taught by those who are more knowledgeable. If this was someone's first script and they were publicly insulted then I can easily see them turning away from the community.

riwu

2012-07-09 06:08:33

Hmm how did a scripting mistake turn into a huge debate XD
That TimeFromMark was used as a final failsafe, 99% of the time it will break out of the loop because of the other 2 conditions (u dont take 40sec to heal with ss), so i just add it in a rush (to make sure nth can really go wrong) and didn't put much thought into it.

If the wait is long enough (eg 5sec) the random would have an effect (for now it would probably loop out b/w 42-44sec if the other 2 conditions are false), though assigning the random value before the loop would be more appropriate. (i dont understand the part about it being infinite though? MarkTime isnt in the loop)

Not a big deal to spot a minor mistake in a script i guess, (i've made another mistake previously, of missing out a () which had even much greater impact than this) just posting it on my thread would do ;)

Anyway thanks everyone for pointing it out :)

Joe

2012-07-09 08:02:37


FINALLY!
Somebody uses S1n's REAL NAME!!!

Sir R. M8gic1an

2012-07-09 08:48:09

Truly, the bigger idiot here is Fjds…

so what if it creates a new number at every loop? You are still counting from the same initial time mark.

Check your code before you make a fool out of yourself next time….

~RM

LemonHaze

2012-07-09 08:52:30

From: uz3
no, it is not well deserved s1n. Instead of publicly humiliating someone he could have just pmed him what was wrong with his code. Completely wrong and terrible.


^ ^

Abu

2012-07-09 10:02:24

From: Sir R. M8gic1an
Truly, the bigger idiot here is Fjds…

so what if it creates a new number at every loop? You are still counting from the same initial time mark.


Hate to disagree you but it was Shay who made the comment about it being an infinite loop which is what Fjds was trying to show.

Still no need to start a thread though I guess.

Sir R. M8gic1an

2012-07-09 10:14:28

From: abu_jwka
Hate to disagree you but it was Shay who made the comment about it being an infinite loop which is what Fjds was trying to show.

Still no need to start a thread though I guess.


Glad it is so, I was a bit confused in the messy post….

anyway, @jds, a random number will always be a random number. And my apologies I should've never called you an idiot. I haven't been around for a while and I feared you had crossed to the dark side.

~RM

footballjds

2012-07-09 10:38:57

From: Sir R. M8gic1an
Truly, the bigger idiot here is Fjds…

so what if it creates a new number at every loop? You are still counting from the same initial time mark.

Check your code before you make a fool out of yourself next time….

~RM


what's with the hate bro?

those screenies were from a locked thread in which i was displaying some programming flaws another scripter made. S1n's comments were wrong, whether that was intentional or not i do not know.

unless the dark side has weed and cookies…
From: Sir R. M8gic1an

anyway, @jds, a random number will always be a random number. And my apologies I should've never called you an idiot. I haven't been around for a while and I feared you had crossed to the dark side.

~RM


I'm aware that a random number will always be random, but if you're generating a random number between say 0 and 10 every couple milliseconds you're going to break out of the loop at not so random of a time…

Abu

2012-07-09 10:43:52

From: footballjds

unless the dark side has weed and cookies…


Ooohh, sorry bro, just cookies.

footballjds

2012-07-09 10:53:02

From: abu_jwka
Ooohh, sorry bro, just cookies.


damn… well i guess i could always bring weed to the dark side and eat the cookies?

Abu

2012-07-09 10:53:36

From: footballjds
damn… well i guess i could always bring weed to the dark side and eat the cookies?


Meh, if you bring enough :D

Sir R. M8gic1an

2012-07-09 11:38:31

Honestly I don't really care, I don't find it to be a flaw at all.

Comes down to do you throw the dice once, or do you throw it everytime you're deciding whether to break out of the loop? And it'll be between 42 and 52s always….

Calling it a major flaw is just wrong. Might be faster if you just throw the dice once, but meh.

~RM

footballjds

2012-07-09 11:48:44

From: Sir R. M8gic1an
Honestly I don't really care, I don't find it to be a flaw at all.

Comes down to do you throw the dice once, or do you throw it everytime you're deciding whether to break out of the loop? And it'll be between 42 and 52s always….

Calling it a major flaw is just wrong. Might be faster if you just throw the dice once, but meh.

~RM


if you throw the dice too fast and you have a min and max range it will break out closer to the min EVERY time. This was the second example. look at the other one in that thread that was closed.

Sin

2012-07-09 11:57:10


My life's flashing before my eyes, I feel like I should abandon my Membership because of this one person T_T


/sarcasm

footballjds

2012-07-09 13:23:35

From: Shay

My life's flashing before my eyes, I feel like I should abandon my Membership because of this one person T_T


/sarcasm


take heart s1n, I've got even more colorful balls and comments :D


Sin

2012-07-09 13:27:20

Haters gon' hate :p

Frement

2012-07-09 13:49:35

I'm a bit lost, who made these "mistakes"?

EDIT: I did read through both threads.

footballjds

2012-07-09 14:00:12

From: Frement
I'm a bit lost, who made these "mistakes"?

EDIT: I did read through both threads.


haha, yeah, i did make it hard to follow. So please de-rep me for that ;)

Basically i was running riwu's script and wondering why it was acting certain ways… I looked at his loops(there's a lot of them), the logic in his loops is a bit amiss…
just a fun thread :D

Joe

2012-07-09 14:05:23

From: footballjds
damn… well i guess i could always bring weed to the dark side and eat the cookies?


When you have the munchies! Great idea.. I'll come to the dark side and bring some too? Dark side fest, anyone?

footballjds

2012-07-09 14:12:50

From: Joe
When you have the munchies! Great idea.. I'll come to the dark side and bring some too? Dark side fest, anyone?


Sounds good man :D

EDIT:
ALL THE COLORS :D


Joe

2012-07-09 14:45:55

From: footballjds
Sounds good man :D

EDIT:
ALL THE COLORS :D



Your welcome for green… and the weed

footballjds

2012-07-09 15:15:10

From: Joe
Your welcome for green… and the weed


i thought the green was the weed? :confused:

Joe

2012-07-09 15:22:34

From: footballjds
i thought the green was the weed? :confused:


Double trade?
Whatever, if it's green it can be smoked

Abu

2012-07-09 15:32:31

From: Joe

Whatever, if it's green it can be smoked



Interesting…

riwu

2012-07-10 08:32:44

From: footballjds
if you throw the dice too fast and you have a min and max range it will break out closer to the min EVERY time. This was the second example. look at the other one in that thread that was closed.

Consider that the wait is 0.33sec, and the intended randomness is 10sec, which means that there is a total of 3x10=30 possible trials. This works out to be a binomial distribution probability function, where X~B(30, 1/30).
This means that the script will break out any time after 42sec, with increasing probability to break out as every cycle passes. (i.e. to break out after 5sec, the first no. it generate must be >42, then the 2nd no. must be >42.3, and so on..), which means that while the chance of it breaking out only near/at 52 sec is very rare, it is still very much possible to break out only after 45sec. Like i said previously, the randomness would not been significantly changed if the wait is >2-3sec. (according to ur other thread, u put the wait as 50 which would imply even lower chance but thats not the case for my loops).

If u look at other parts of my scripts, i did a lot of TimeFromMark(t)>RandomRange in other contexts which won't affect the randomness at all. In fact, there is one part
if (BgsCasted < RandomRange(3,5)) then
in which i am fully aware that the chance of it casting 5 times is lower than that of casting 3/4 times, which is intentionally done for efficiency (added randomness, yet most of the time it does the optimal no. of casts–3). So in that particular loop for soulsplit, i was probably too indulged of the use of similar randomness that i did not considered that the intended randomness will be reduced.

Also as i'd said the TimeFromMark was only added as a last failsafe and will not be activated most of the time.
As for the HpPercent, there is already inherent randomness in hp regenerated as u dont hit the same dmg all the time. eg. if u have 90% hp and u hit a 500, u would bypass any sort of randomness and exit immediately (with 100% hp). Also the original randomness intended is only 4%, which means that the impact on it would be even less significant. (i've previously set it with greater range, starting from 80+%, but increased it after some complains of death due to soulsplit turning off at 80%).

As for the script 'was acting certain ways', can u explain what is abnormal with it? The fact that it always turn ss off at 90+%? (i've explained above why the random range is so small, but if u feel uncomfortable u can always change it to 80%, and fix the diminishing probability loop)

tldr: basically, the impact of the error is that the randomness for deactivating soulsplit is slightly reduced (the inherent randomness would outweight the intended randomness of 4% most of the time anyway), and there is several other randomness throughout the script and hence ur chance of getting ban due to this error is negligible.
There is no infinite loops, or any sort of major problems, and even if there is, i dont think there is a need to create 2 threads (ferociously). Would u murder a guy who uses MoveMouse (mousekey aside) and ClickMouse in his official RS script? :p

And for the record, i did not derep anyone for these 2 threads, after all u are just trying to help (all be it a little exaggerated :p).

The biggest failure in life is not to make mistakes, but to deny them and not taking them as opportunities for enduring learning. For whoever exalts himself will be humbled, and whoever humbles himself will be exalted. (Matthew 23:12)

footballjds

2012-07-10 10:51:45

not gonna lie, i just scrolled for 20 mins^^ and didn't read :P

Sin

2012-07-10 10:53:11

Being brutally honest here, I think public flame pushes people to succeed.
In my school we have a mark sheet with everyone's marks and it's a shame to get a bad mark to show to your friends. So its cool like that.

Daniel

2012-07-10 11:58:30

From: footballjds
not gonna lie, i just scrolled for 20 mins^^ and didn't read :P


Grow up.

footballjds

2012-07-10 12:19:09

From: Daniel
Grow up.


working on it, but it's at a consistent rate with everyone else… ;)

Sin

2012-07-10 12:34:47


But yea, I think the point of this thread has been made, close?

Joe

2012-07-10 12:56:46

From: Shay
Being brutally honest here, I think public flame pushes people to succeed.
In my school we have a mark sheet with everyone's marks and it's a shame to get a bad mark to show to your friends. So its cool like that.


Are the bad marks or the good marks at the top…

EDIT:
@Abu: where's your grinder? I shall teach you in my ways..

noidea

2012-07-11 18:28:41

From: Shay
Being brutally honest here, I think public flame pushes people to succeed.
In my school we have a mark sheet with everyone's marks and it's a shame to get a bad mark to show to your friends. So its cool like that.


Being brutally honest here, I think you're wrong. It degrades people. People tend to do better with positive reinforcement.

Gu3st...

2012-07-11 18:30:08

From: noidea
Being brutally honest here, I think you're wrong. It degrades people. People tend to do better with positive reinforcement.
This, Now stop with the rule breaking