Someone have a Windows port of ctrKeyGen.py and MEX.py?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Asia81, Dec 27, 2015.

  1. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,150
    2,567
    Nov 15, 2014
    France
    Albi
    I need them, if someone have, could you share them with me/us?
    Thanks!
     
  2. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Windows port? As in an exe file?
    Python is cross platform, and those are python scripts...
     
  3. Heran Bago

    Heran Bago Where do puyo come from?

    Member
    3,018
    441
    Nov 6, 2005
    United States
    Foggy California
  4. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,150
    2,567
    Nov 15, 2014
    France
    Albi
    Yeah, .exe file.
    I don't care about Python, I'm asking for the windows port, so yeah, in .exe :)

    I already saw ctrkeygen.exe somewhere, but can't remember where.
    And when I try to compil them, I don't have luck...
     
  5. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
  6. Duo8

    Duo8 I don't like video games

    Member
    3,444
    1,144
    Jul 16, 2013
    Is there a reason you can't use Python like a normal person?
    That's probably why it was made in python. So it won't be stuck to one OS.

    Anw if it doesn't use any fancy external lib try looking for some small standalone python interpreter (IIRC I've used one before)
     
    Last edited by Duo8, Dec 27, 2015
    ubergeek77 likes this.
  7. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,150
    2,567
    Nov 15, 2014
    France
    Albi
    "like a normal person" I'm perfectly normal, thanks!
    And if for a reason, I don't want, how do we do (no need to be answered)?

    @Shadowtrance Both work fine, thanks!
    But how did you do them?
    I already tried with py2exe and cxfreeze, but no luck.
     
  8. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    I did it with py2exe and python 2.7.
    Here's my setup.py script.
    Code:
    from distutils.core import setup
    import py2exe
    
    import sys; sys.argv.append('py2exe')
    
    py2exe_options = dict(
                          bundle_files = 1,
                          excludes = ['_ssl',
                                      'pyreadline', 'difflib', 'doctest', 'locale',
                                      'optparse', 'pickle', 'calendar'],
                          dll_excludes = ['msvcr71.dll', 'w9xpopen.exe'],
                          compressed = True,
                          dist_dir = "bin",
                          )
    
    setup(
        console=['MEX.py'], #change the name to script you want to convert.
        options={'py2exe': py2exe_options},
        zipfile = None,
    )
     
    cearp likes this.
  9. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,150
    2,567
    Nov 15, 2014
    France
    Albi
    Ok.
    Thanks again :)
     
  10. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,150
    2,567
    Nov 15, 2014
    France
    Albi
    Sorry to bump the thread, but if someone can help me to get FunkeyCIA.py working in exe...
    I tried the setup gave by @Shadowtrance but no luck :/

    C:\Python27\bin>FK.exe
    Traceback (most recent call last):
    File "FK.py", line 9, in <module>
    File "zipextimporter.pyc", line 82, in load_module
    File "argparse.pyc", line 92, in <module>
    File "zipextimporter.pyc", line 82, in load_module
    File "gettext.pyc", line 49, in <module>
    ImportError: No module named locale
     
  11. yusuo

    yusuo GBAtemp Addict

    Member
    2,613
    966
    Oct 19, 2006
    Surely it would be easier and quicker just to run the Pyrton script then trying to hunt down exes
     
  12. cearp

    cearp the ticket master

    Member
    7,554
    4,819
    May 26, 2008
    Tuvalu
    of course but the OP wants to give these tools to people, it makes it easier if they just work :)
     
  13. Nanquitas

    Nanquitas GBAtemp Addict

    Member
    2,168
    1,856
    Sep 29, 2015
    France
    South of France :)
    Try after deleting the " 'locale', " in the script.
     
  14. Duo8

    Duo8 I don't like video games

    Member
    3,444
    1,144
    Jul 16, 2013
    Wouldn't that break it?
     
  15. Nanquitas

    Nanquitas GBAtemp Addict

    Member
    2,168
    1,856
    Sep 29, 2015
    France
    South of France :)
    If there is no module named locale, not searching for it should solve the issue.

    It's a guess, but he's not risking anything trying it.
     
  16. Duo8

    Duo8 I don't like video games

    Member
    3,444
    1,144
    Jul 16, 2013
    Well that would cause problems if anything try to use locale.

    Another option is to install locale.
     
  17. Nanquitas

    Nanquitas GBAtemp Addict

    Member
    2,168
    1,856
    Sep 29, 2015
    France
    South of France :)
    Ah I don't really know python that's why I gave the first idea I had. :P

    But your solution seems better. ;)