Programming CC4Wifi

Discussion in 'Technical Projects' started by Antar, Jan 30, 2012.

  1. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    [​IMG]

    It's Challenge Cup. For Wi-Fi.

    The best simulator metagame, now available for DS!


    Basically, CC4Wifi is a program that generates six random .pkm files that obey Challenge Cup rules (random items/moves/natures/IVs/EVs/etc., at least one "attacking" move per set, level balance) that can easily be imported into Pokesav. NOTE: DOES NOT WORK WITH POKEGEN (works with Pokegen as of v1.3)

    For those of you who've never played Challenge Cup before, the link above is a good reference, but basically, it's like Pokedex Roulette, except EVERYTHING is randomly generated, not just the list of pokemon.

    CC4Wifi is written in Python and should be available for all operating systems.

    As of v2.0, CC4Wifi includes the new movesets and formes introduced in Pokemon Black 2 and White 2. It will continue to work with the original games, but be careful with Kyurem/Kami Trio formes.

    Download Links:
    • Windows (DOES NOT REQUIRE PYTHON!)
    • Mac
    • Linux (should also be compatible with BSD, presumably)


    Other Links:
  2. Lady Salamence

    Lady Salamence is a three-dimensional retard.
    is a Forum Moderator Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnus

    Joined:
    Aug 4, 2010
    Messages:
    3,473
    This is seriously cool.

    too bad i dont wifi
  3. whitefag

    whitefag

    Joined:
    Jul 1, 2010
    Messages:
    46
    Hmm, why don't you incorporate it with fake GTS server?
    It was researched long ago, here's on of implementations ...but it's on PHP with comments in Russian, so it's only as good as a reference.

    Also to avoid updating the scripts each time something new gets released, you can use veekun's dex (or rather a subset of its sqlite db). As I can see right now you use data from PS, PO and some hardcoded stuff.
  4. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    I talked a little bit with OmegaDonut and Kaphotics about something similar last night. They were actually talking about a fake tournament server, which would be awesome. In any case, I'm open to the idea.

    The only thing that should ever need updating is "learnsets.txt," and I figure it's not a huge deal if Mewtwo doesn't get access new signature move, since it's so unlikely that it would be selected anyway. Keep in mind that I don't worry about moveset "legality"--illegal move combos / move-ability combos are par for the course, as--I believe--they are in the PO implementation. I figure I'll update it once in a blue moon.
  5. Sucker4Jess

    Sucker4Jess

    Joined:
    Jul 7, 2009
    Messages:
    22
    BADASS MANG!
  6. amps n ohms

    amps n ohms

    Joined:
    Jun 3, 2011
    Messages:
    1
    Amazing. Just saw your PMP upload and it's the greatest thing ever.
  7. Battlepower777

    Battlepower777

    Joined:
    Nov 8, 2011
    Messages:
    2
    How do you do this, like i WinRar it but then idk what to do and what to click
  8. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    There's a handy README file that gives detailed instructions. But yeah. Basically, you click it, it generates the six files in a folder marked "CC" on your desktop, and you import them into Pokesav. Alas, it doesn't work with Pokegen. Not sure why.
  9. MikeDecIsHere

    MikeDecIsHere Congregation of the Classiest
    is a Forum Moderator Alumnusis a Smogon Media Contributor Alumnusis a Battle Server Moderator Alumnus
    Mentor

    Joined:
    Sep 28, 2010
    Messages:
    2,320
    commented in the PMP vid, but this once again is amazing work man
  10. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    This shit now works with Pokegen. Rejoice.
  11. max10201

    max10201

    Joined:
    May 2, 2009
    Messages:
    1
    Wonderfully done! But is there a reason the generated files can't be uploaded to pokecheck?
  12. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    Well, they're designed to fail hack checks (namely, the movesets aren't necessarily legal, what with unreleased DW abilities and all. Plus, the PID is all wrong). Other than that? No idea.
  13. daoze555

    daoze555

    Joined:
    Aug 14, 2011
    Messages:
    4
    How do i use this?
  14. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    Read the README. All the instructions are there. If you need help procuring/using Pokesav/Pokegen, you'll have to ask somewhere else.
  15. Husky

    Husky

    Joined:
    Mar 19, 2010
    Messages:
    344
    Ok, I know how to do this cuz I read the readme file but there's a problem with this:
    When I run CC4wifi, it creates a CC folder but it stays empty (no files have been created). What have I done wrong and how can I fix this problem?
  16. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    I fixed the issue. Try re-downloading it.
  17. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    v1.4 is now released. DW abilities are now allowed!

    With this update, if you're having a CC4Wifi battle with someone, it would *probably* be a good idea to make sure you're both using the same version.
  18. boratlikebali

    boratlikebali

    Joined:
    Oct 21, 2011
    Messages:
    2
    Awesome! I have succesfully generated a team but I do have trouble finding people who want to battle in Challenge Cup =(....

    PS: Anyone here want to battle?
  19. fluffyisaboss

    fluffyisaboss

    Joined:
    Jan 22, 2012
    Messages:
    1
    im confused idk how to use this i downloaded it and i have pokegen and i just get text and idk what it means its about pokemon but i dont know what to do and how to do whatever this CC program does
  20. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    Open the README file in wordpad or word, not notepad (which will open by default if you just double-click it). The directions are in there.
  21. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    CC4Wifi has been updated for BW2!

    I also finally redid that README so it'll look okay in Notepad.
  22. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,846
    Updated to v2.1 with some minor learnset fixes (basically, I'm using the most recent version of PS' learnset file).

    P.S. Anyone want to battle? Send me a PM.

Users Viewing Thread (Users: 0, Guests: 0)