Hello There, Guest! Login Register


Error on 90% of my scripts now.
#1
Scripts that i have made that worked fine previously are now getting the following error.

[Image: dt84yWW.png]


Any ideas what this could be?

Also does this with 100% of the scripts that come with the bot.
 
Reply
#2
Some people doesn't know the thing that you cannot help by someone if you do not tell all the information about your script, most basically we need your script to be able to help you guys. That's it.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#3
redskhie Some people doesn't know the thing that you cannot help by someone if you do not tell all the information about your script, most basically we need your script to be able to help you guys. That's it.


It's not the script, as i wrote in my post the scripts worked fine yesterday.

But here is a script that comes with the bot that is giving me the error.

This is some code.-- Copyright © 2016 Silv3r <silv3r@openmailbox.org>
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.

name = "Attack + Health EV: Ilex Forest (near Azalea)"
author = "Silv3r"
description = [[This script will train the first pokémon of your team.
It will only attack pokémon giving attack or health EV.
It will also try to capture shinies by throwing pokéballs.
Start anywhere between Azalea and Ilex Forest.]]

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Azalea" then
            moveToMap("Azalea Town")
        elseif getMapName() == "Azalea Town" then
            moveToMap("Ilex Forest Stop House")
        elseif getMapName() == "Ilex Forest Stop House" then
            moveToMap("Ilex Forest")
        elseif getMapName() == "Ilex Forest" then
            moveNearExit("Ilex Forest Stop House")
        end
    else
        if getMapName() == "Ilex Forest" then
            moveToMap("Ilex Forest Stop House")
        elseif getMapName() == "Ilex Forest Stop House" then
            moveToMap("Azalea Town")
        elseif getMapName() == "Azalea Town" then
            moveToMap("Pokecenter Azalea")
        elseif getMapName() == "Pokecenter Azalea" then
            usePokecenter()
        end
    end
end

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        end
    end
    if getActivePokemonNumber() == 1 and
        (isOpponentEffortValue("Attack") or isOpponentEffortValue("Health")) then
        return attack() or run() or sendUsablePokemon() or sendAnyPokemon()
    else
        return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
    end
end
 
Reply
#4
It is ALWAYS the script itself that stopping the bot. Try this and change this on battle script:

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny()  ) then
        return useItem("Ultra Ball") or useItem("Pokeball") or useItem("Great Ball") or sendUsablePokemon()
    end
    
    if isWildBattle() and isOpponentEffortValue("ATTACK") then
            return attack() or sendUsablePokemon()  
    end
    if isWildBattle() and isOpponentEffortValue("HP") then
            return attack() or sendUsablePokemon()  
    end

    return run() or sendAnyPokemon()
    
end

or

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny()  ) then
        return useItem("Ultra Ball") or useItem("Pokeball") or useItem("Great Ball") or sendUsablePokemon()
    end
    
    if isWildBattle() and ( isOpponentEffortValue("ATTACK") or isOpponentEffortValue("HP") )then
            return attack() or sendUsablePokemon()  
    end
    
    return run() or sendAnyPokemon()
    
end


and better use BBCode when posting script.
God Karp Trainer loading... *splash*splash Huh

 
Reply
#5
redskhie It is ALWAYS the script itself that stopping the bot. Try this and change this on battle script:

function onBattleAction()
    if isWildBattle() and ( isOpponentShiny()  ) then
        return useItem("Ultra Ball") or useItem("Pokeball") or useItem("Great Ball") or sendUsablePokemon()
    end
    
    if isWildBattle() and isOpponentEffortValue("ATTACK") then
            return attack() or sendUsablePokemon()  
    end
    if isWildBattle() and isOpponentEffortValue("HP") then
            return attack() or sendUsablePokemon()  
    end

    return run() or sendAnyPokemon()
    
end


and better use BBCode when posting script.

Tried putting that into my script, still doesn't work.
None of my scripts work now.

As for "It's allways the script"

Kinda weird that 20+ scripts i made that worked yesterday 100% would suddenly stop working.
And the scripts from Gold&Silver don't work for me either.
 
Reply
#6
x0r9 Scripts that i have made that worked fine previously are now getting the following error.

[Image: dt84yWW.png]


Any ideas what this could be?

Also does this with 90% of the scripts that come with the bot.

The bot might find it hard sometimes to determine the EV of a wild pokemon, only returning a "null" value which stops the bot.

My guess is trying:

name = "Attack + Health EV: Ilex Forest (near Azalea)"
author = "Silv3r"
description = [[This script will train the first pokémon of your team.
It will only attack pokémon giving attack or health EV.
It will also try to capture shinies by throwing pokéballs.
Start anywhere between Azalea and Ilex Forest.]]

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Azalea" then
            moveToMap("Azalea Town")
        elseif getMapName() == "Azalea Town" then
            moveToMap("Ilex Forest Stop House")
        elseif getMapName() == "Ilex Forest Stop House" then
            moveToMap("Ilex Forest")
        elseif getMapName() == "Ilex Forest" then
            moveNearExit("Ilex Forest Stop House")
        end
    elseif getMapName() == "Ilex Forest" then
        moveToMap("Ilex Forest Stop House")
    elseif getMapName() == "Ilex Forest Stop House" then
        moveToMap("Azalea Town")
    elseif getMapName() == "Azalea Town" then
        moveToMap("Pokecenter Azalea")
    elseif getMapName() == "Pokecenter Azalea" then
        usePokecenter()
    end
end

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        end
    end
    if getActivePokemonNumber() == 1 and isOpponentEffortValue() ~= nil (isOpponentEffortValue("Attack") or isOpponentEffortValue("Health")) then
        return attack() or run() or sendUsablePokemon() or sendAnyPokemon()
    else
        return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
    end
end

Let me know if this works Wink
 
Reply
#7
Emuuung
x0r9 Scripts that i have made that worked fine previously are now getting the following error.

http://i.imgur.com/dt84yWW.png


Any ideas what this could be?

Also does this with 90% of the scripts that come with the bot.

The bot might find it hard sometimes to determine the EV of a wild pokemon, only returning a "null" value which stops the bot.

My guess is trying:

name = "Attack + Health EV: Ilex Forest (near Azalea)"
author = "Silv3r"
description = [[This script will train the first pokémon of your team.
It will only attack pokémon giving attack or health EV.
It will also try to capture shinies by throwing pokéballs.
Start anywhere between Azalea and Ilex Forest.]]

function onPathAction()
    if isPokemonUsable(1) then
        if getMapName() == "Pokecenter Azalea" then
            moveToMap("Azalea Town")
        elseif getMapName() == "Azalea Town" then
            moveToMap("Ilex Forest Stop House")
        elseif getMapName() == "Ilex Forest Stop House" then
            moveToMap("Ilex Forest")
        elseif getMapName() == "Ilex Forest" then
            moveNearExit("Ilex Forest Stop House")
        end
    elseif getMapName() == "Ilex Forest" then
        moveToMap("Ilex Forest Stop House")
    elseif getMapName() == "Ilex Forest Stop House" then
        moveToMap("Azalea Town")
    elseif getMapName() == "Azalea Town" then
        moveToMap("Pokecenter Azalea")
    elseif getMapName() == "Pokecenter Azalea" then
        usePokecenter()
    end
end

function onBattleAction()
    if isWildBattle() and isOpponentShiny() then
        if useItem("Ultra Ball") or useItem("Great Ball") or useItem("Pokeball") then
            return
        end
    end
    if getActivePokemonNumber() == 1 and isOpponentEffortValue() ~= nil (isOpponentEffortValue("Attack") or isOpponentEffortValue("Health")) then
        return attack() or run() or sendUsablePokemon() or sendAnyPokemon()
    else
        return run() or attack() or sendUsablePokemon() or sendAnyPokemon()
    end
end

Let me know if this works Wink

Tryed running it, same error.
 
Reply
#8
x0r9 As for "It's allways the script"

Kinda weird that 20+ scripts i made that worked yesterday 100% would suddenly stop working.
And the scripts from Gold&Silver don't work for me either.

Emuuung's script has an error.
if getActivePokemonNumber() == 1 and isOpponentEffortValue() ~= nil (isOpponentEffortValue("Attack") or isOpponentEffortValue("Health")) then
the 'and' is missing between nil and (isOpp..

try to do a script which returns the Effort Value.
like
if getActivePokemonNumber() == 1 then
log("ATK->"..isOpponentEffortValue("ATTACK").." HP -> "..isOpponentEffortValue("HEALTH"))
return run()
end

Also, if it comes 'from the bot', you surely missing something.
Try to re-download the bot and netframework.
Nobody have this problem, so it cames from your bot or your scripts. Not from the bot.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#9
Someone
x0r9 As for "It's allways the script"

Kinda weird that 20+ scripts i made that worked yesterday 100% would suddenly stop working.
And the scripts from Gold&Silver don't work for me either.

Emuuung's script has an error.
if getActivePokemonNumber() == 1 and isOpponentEffortValue() ~= nil (isOpponentEffortValue("Attack") or isOpponentEffortValue("Health")) then
the 'and' is missing between nil and (isOpp..

try to do a script which returns the Effort Value.
like
if getActivePokemonNumber() == 1 then
log("ATK->"..isOpponentEffortValue("ATTACK").." HP -> "..isOpponentEffortValue("HEALTH"))
return run()
end

Also, if it comes 'from the bot', you surely missing something.
Try to re-download the bot and netframework.
Nobody have this problem, so it cames from your bot or your scripts. Not from the bot.

https://proshine-bot.com/viewtopic.php?id=916


https://proshine-bot.com/viewtopic.php?id=902
 
Reply
#10
Don't missunderstand 'No action executed' and your problem please.
Don't try to proof it comes from the bot, because it is not.
If you don't trust us, then download the source code.

I'm pretty sure you didn't even tried what i said before.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#11
I did, and i got the same error.
I would have closed the thread if it worked.

I trust the bot, i just want you to explain to me how over 20 scripts that i used the day before this error that worked perfectly fine can stop working, scripts don't just edit them selfes to stop working.

Downloaded vb/net
[Image: Cpb07bB.png]
Redownloaded bot.
Edited the script with your line of code.
Same error.

I appreciate you trying to help but yeah nothing seems to be fixing it.
 
Reply
#12
The error seems to come from isOpponentEffortValue() for sure.
Post the issue on Github and see what Silv3r or g0ld answer you.
I think it's the best thing to do, because you are 3 that have this error, but everyone else haven't any problems.
So, you 3 probably have something that make the bot bugs.
I do NOT publish script and don't accept script requests.
I just help people do their own scripts.
 
Reply
#13
Someone The error seems to come from isOpponentEffortValue() for sure.
Post the issue on Github and see what Silv3r or g0ld answer you.
I think it's the best thing to do, because you are 3 that have this error, but everyone else haven't any problems.
So, you 3 probably have something that make the bot bugs.

Cool thank you for your advice and your time.
 
Reply
#14
The bug is still unidentified. To help fixing it, contribute to the following ticket.
 
Reply
#15
Error is fixed now.

redskhie It is ALWAYS the script itself that stopping the bot. Try this and change this on battle script:

Someone Don't try to proof it comes from the bot, because it is not.


Turns out it was the bot.
scald move is missing from PROProtocol/moveManager.cs.
Causing any pokemon who knew scald to cause this error.
Smile
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)