You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
![]() |
|||||||
---|---|---|---|---|---|---|---|
|
This may prove useful, perhaps to log which function it’s going into and out of, and what internal data it’s thinking.
http://diveintogreasemonkey.org/debug/gm_log.html
I use a function like that in debugging my PHP scripts, but in PHP, I can just kill execution and dump internal information with one simple line. Javascript isn’t so simple… |
||||||
Posted On: 12/08/2008 12:36AM | View FalconFour's Profile | # | ||||||
|
Does it automatically stop playing after 20 wins? |
||||||
Posted On: 12/08/2008 12:39AM | View Inertia's Profile | # | ||||||
|
Supposed to. But it really ends up stopping after maybe 1 or 2. FalconFour edited this message on 12/08/2008 12:46AM |
||||||
Posted On: 12/08/2008 12:46AM | View FalconFour's Profile | # | ||||||
|
I suggest the antifreeze reward for blackjack is removed. |
||||||
Posted On: 12/08/2008 12:48AM | View meeeeeeeeee's Profile | # | ||||||
|
Just crashed again at the initial hand display, with the two errors pasted earlier.
It almost always seems to stop at the hand display, possibly due to delay in loading the images. Do you have it waiting to load, or does it just rapid fire commands? Too lazy to check the code, but that may be the problem… server is responding too slow and the script is crashing when what it’s expecting isn’t right under its nose… |
||||||
Posted On: 12/08/2008 12:49AM | View FalconFour's Profile | # | ||||||
|
read the updated main post. unedited, the script plays to a max of FIVE wins, not the full 20 for antifreeze. Though due to not working it usually doesn’t get there. and it’s just betting 1 flezz too so it’s safe to try. I will not ever change it, since it is my opinion that if you can’t change the values yourself (they are not that hard to find), then you don’t deserve to benefit from it.
Hopefully i can release an updated version that at least plays correctly soon. |
||||||
Posted On: 12/08/2008 1:05AM | View Neona's Profile | # | ||||||
|
FalconFour Posted:
it’s waiting, but i think there is a bug in how it waits, though i haven’t figured it out yet. Also, it would be impossible to really do it too fast, since the method the script uses is to trick the browser into thinking you have actually clicked the links, and you can’t click something that’s not there. But the whole “command is null” thing seems to indicate that. If anyone has any idea what the heck that error is, that would be really helpful, since i don’t even really know where the error is occuring properly. |
||||||
Posted On: 12/08/2008 1:09AM | View Neona's Profile | # | ||||||
|
meeeeeeeeee Posted:
I think it should just be that the minimum bet is level scaled, so you have to bet like ~10% of your flezz to get antifreeze. The problem is more that 10,000 becomes relatively insignificant at higher levels. |
||||||
Posted On: 12/08/2008 1:12AM | View Neona's Profile | # | ||||||
|
Well, yeah, it can only click an item that exists, but it’s not going to wait on it… it’s just going to throw an error and crash out. So if it tries to find and click an element that doesn’t exist…
I think you should add “GM_log(‘Taking choice: ‘+text);” to function takeChoice(text), then keep the error log on top while it runs, see where your error lies. |
||||||
Posted On: 12/08/2008 1:13AM | View FalconFour's Profile | # | ||||||
|
FalconFour Posted:
updated it to log that stuff, among other things. Tweaked some other stuff too, though it’s not working much better yet.
EDIT: actually, since it text searches the choices to figue out which one to “click”, i don’t think that’s where the problem lies Neona edited this message on 12/08/2008 1:55AM |
||||||
Posted On: 12/08/2008 1:51AM | View Neona's Profile | # | ||||||
|
Hm. Well, I’m doing my own sort of debugging, but it’s sort of hard to follow Javascript within a function construct like that. It’s quite hard to keep a function chain running…
Perhaps a main loop, and branching out to functions, would be more suitable? Then again, it’s kinda late in the game to restructure the program… I’ll just keep on debuggan’ away. |
||||||
Posted On: 12/08/2008 2:03AM | View FalconFour's Profile | # | ||||||
|
well, yeah
but javascript happens to lack a normal wait function, so that ends up bieng very difficult. I’ll try to reorder the code logically though.
Right now it’s behaving pretty strangely for me… Neona edited this message on 12/08/2008 2:06AM |
||||||
Posted On: 12/08/2008 2:05AM | View Neona's Profile | # | ||||||
|
Tubmail. |
||||||
Posted On: 12/08/2008 2:07AM | View FalconFour's Profile | # | ||||||
|
The script is hanging at the menu where you choose ‘Blackjack’ for me. |
||||||
Posted On: 12/08/2008 2:21AM | View CaptainDDL's Profile | # | ||||||
|
Haxploitation? |
||||||
Posted On: 12/08/2008 2:34AM | View nevkick's Profile | # | ||||||
|
HOLY ****, NEWS FLASH… THIS IS WRITTEN BY A GIRL.
That is so ****ing hot. =o
And damnit, fix one thing and break another, now it won’t run at all. Working on that… =( |
||||||
Posted On: 12/08/2008 4:36AM | View FalconFour's Profile | # | ||||||
|
nevkick Posted:
Not a security hole, so no. |
||||||
Posted On: 12/08/2008 4:38AM | View Fran's Profile | # | ||||||
|
Neona Posted:
One solution to preventing your script working is to randomize the card names periodically, and just keep a server side translation table. So your script would work, but it would constantly make bad choices.
The only way around that would be to start recognising the images themselves. |
||||||
Posted On: 12/08/2008 6:53AM | View meeeeeeeeee's Profile | # | ||||||
FalconFour Posted:
Nope, I think it just opens up a new tab and shows me the script, maybe it’s because of pop-up blocker? |
|||||||
Posted On: 12/08/2008 8:36AM | View shrtcat's Profile | # | ||||||
Wouldn’t work properly. After the first answer, it would stop doing anything.
I increased both setTimeout in waitforchat to 10x the old amount ( 5000 ). Seems to work reliably now. It just played through a few games flawlessly. Good job! Now make an Incit bot Log in to see images!
I also suggest a cancel bumon.
shrtcat Posted:
Install Greasemonkey first HAARP edited this message on 12/08/2008 11:23AM |
|||||||
Posted On: 12/08/2008 9:58AM | View HAARP's Profile | # | ||||||