[Server Scripting] CC turned into Hackmons CC unintendedly

Discussion in 'Server and Client Scripting' started by Alipio, Jul 18, 2015.

  1. Alipio

    Alipio -Sab-

    Joined:
    Apr 3, 2015
    Messages:
    11
    Likes Received:
    3
    PO Trainer Name:
    -Sab-
    Hi,

    I'm Alipio and I've got a
    problem when I installed Hackmons on a server.

    I've installed the following tiers:

    - Hackmons Challenge Cup.
    - All Gen Hackmons.
    - ORAS Hackmons
    - ORAS Balanced Hackmons.
    - Anything Goes.

    All the details are presented below


    <category name="All Gens" displayOrder="0">
    <category name="Fun Tiers" displayOrder="0">
    <tier banMode="ban" tableName="tier_hackmonschallengecup" pokemons="" subgen="0" maxLevel="100" gen="0" clauses="Challenge Cup" numberOfRestricted="1" allowIllegal="true" banParent="" mode="0" abilities="" name="Hackmons Challenge Cup" minGen="-1" numberOfPokemons="6" items="" restrictedPokemons="" displayOrder="20" moves=""/>

    <tier banMode="ban" tableName="tier_allgenhackmons" pokemons="" subgen="0" maxLevel="100" gen="0" clauses="Self-KO Clause" numberOfRestricted="1" allowIllegal="true" banParent="" mode="0" abilities="" name="All Gen Hackmons" minGen="-1" numberOfPokemons="6" items="" restrictedPokemons="" displayOrder="30" moves=""/>

    <category name="ORAS" displayOrder="8">
    <tier banMode="ban" mode="0" name="ORAS Hackmons" numberOfRestricted="1" banParent="" allowIllegal="true" abilities="" clauses="Self-KO Clause,Team Preview" subgen="1" pokemons="" maxLevel="100" tableName="tier_orashackmons" displayOrder="1" gen="6" items="" numberOfPokemons="6" restrictedPokemons="" minGen="-1" moves=""/>

    <tier banMode="ban" mode="0" name="ORAS Balanced Hackmons" numberOfRestricted="1" banParent="" allowIllegal="true" abilities="Arena Trap, Huge Power, Parental Bond, Pure Power, Shadow Tag, Wonder Guard" clauses="Self-KO Clause,Team Preview" subgen="1" pokemons="" maxLevel="100" tableName="tier_orasbalancedhackmons" displayOrder="2" gen="6" items="" numberOfPokemons="6" restrictedPokemons="" minGen="-1" moves="Assist, Chatter, Double Team, Fissure, Guillotine, Horn Drill, Minimize, Sheer Cold, Swagger"/>

    <tier banMode="ban" mode="0" name="Anything Goes" numberOfRestricted="1" banParent="" allowIllegal="false" abilities="" subgen="1" pokemons="" maxLevel="100" tableName="tier_anythinggoes" displayOrder="3" gen="6" items="" numberOfPokemons="6" restrictedPokemons="" minGen="-1" moves=""/>

    </category>


    Then I typed allowIllegal="false" in the previous tiers.

    And that's all.

    But a weird thing happened when I challenged someone with the Challenge Cup Clause checked, our battle became Hackmons Challenge Cup.
    On the following pics, U'll see it.





    The same thing happens when we press the find battle option while being on Challenge Cup Tier.

    Hope you can help me,
     
  2. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    I'm no proper user with handling tiers but. But I think you need to make a separate tier list. I think by default your server running Hackmons Challenge Cup. You need another but with Challenge Cup with allowIllegal=false, tableName="tier_challengecup".
     
  3. Alipio

    Alipio -Sab-

    Joined:
    Apr 3, 2015
    Messages:
    11
    Likes Received:
    3
    PO Trainer Name:
    -Sab-
    Categories are sorted by:

    All Gens -> Fun Tiers -> [Challenge Cup, Hackmons Challenge Cup, Inverted Challenge Cup, etc]
    ORAS -> [ORAS Hackmons, ORAS Balanced Hackmons, ORAS OU, etc]

    [​IMG]


    I just tried erasing tiers, problem persists.

    Then I create a new category: HACKMONS, but the problem... persists.
    [​IMG]


    By the way, all the tiers have
    allowIllegal="false".

    So do I, but how can I change it?
     
  4. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    Well, I can't think of anything else except try using /updatetiers command. It's owner level with main PO scripts by the way.
     
  5. Alipio

    Alipio -Sab-

    Joined:
    Apr 3, 2015
    Messages:
    11
    Likes Received:
    3
    PO Trainer Name:
    -Sab-
    I tried creating a command: /acttiers.

    if (cmd_Msj.toLowerCase() == "acttiers")
    {
    ScriptBot.sendAll("Actualizaremos nuestras Tiers en unos minutos...", Canal);
    sys.reloadTiers(); ScriptBot.sendMessage(ID, "Se han actualizado las Tiers! Aquí la nueva lista: ", Canal);
    var temp = sys.getTierList(); sys.sendHtmlAll(temp);
    return 1;

    }


    I used PO function: sys.reloadTiers();

    But.. the problem persists.

    The problem is caused by the challenge cup clause... so there's a way to reset it? or maybe change it by scripting?
     
  6. Alipio

    Alipio -Sab-

    Joined:
    Apr 3, 2015
    Messages:
    11
    Likes Received:
    3
    PO Trainer Name:
    -Sab-
    I tried reinstalling PO, but the problem persists.
    So I go to other servers that had installed Hackmons, and I noticed that they have v2.6.0.

    So It must be a bug with PO v2.6.1.