Jump to content

willaien

Member
  • Posts

    65
  • Joined

  • Last visited

Posts posted by willaien

  1. By the way, website overhaul on the way soonish.

    http://dl.dropbox.com/u/17115146/interface.png

    The new 'testing' website is not done, just showing you kind of what it will look like. About 90% complete importing current features for 5th gen, haven't started on any other features yet.

    This represents a complete website overhaul from PHP/Apache/MySQL to ASP.net/IIS/SQL.

    After I'm done implementing all current website features, I will redirect users to the new server and begin implementing new features in my backlog.

  2. This is a great tool. Only issue I'm having is when trying to select both Ho-oh and Rayquaza using the Black/White selector the page displays this above the custom stats box

    Warning: file_get_contents(../gamestats2.gs/syachi2ds/web/worldexchange/pkm/rayquaza.pkm) [function.file-get-contents]: failed to open stream: No such file or directory in /home/eshryock/public_html/pokegts.us/pkmbw.php on line 368

    Warning: unpack() [function.unpack]: Type v: not enough input, need 2, have 0 in /home/eshryock/public_html/pokegts.us/pkmbw.php on line 369

    Warning: unpack() [function.unpack]: Type V: not enough input, need 4, have 0 in /home/eshryock/public_html/pokegts.us/pkmbw.php on line 370

    I have only seen it happen with these two pokemon. Anyone got any ideas?

    Give it a try now with Rayquaza.

  3. I've been tinkering with the idea of allowing users to leverage my website in use with their programs. The idea being that it would allow developers more options of platforms to develop on - for example, mobile phones would be able to use a GTS emulator. Or make a program that generates pokemon and sends them to the server to be sent to a user. Or use it on your own site as a distribution platform. What do you guys think?

    This is a sample spec of what it would look like:

    GETs and POSTs would be supported by all variables, with POST overriding any GET for the same variable.
    List of Commands:
    Commands - Lists the following commands.
    ListPokemon - Returns a list of pokemon handled by the server, in CSV format.
    ListPokemonXML - Same as above, but XML
    SelectPokemon - Requires the following variables: FileName (retrieved above), FriendCode OR IP. Optional variables: anything modifiable. Request without variables for a list.
    DownloadPokemon - Requires the following variables: FileName (retrieved above).
    UploadPokemon - Requires the following variables: Data (POST or GET, pkm file, unencrypted. If GET, use BASE64), FriendCode OR IP.
    MoveList - Returns a /r/n delimited list of moves used by the server. If you specify a move that doesn't exist, or isn't exactly as I have it on this list, the user gets an error.
    ItemList - Same as above, but items.
    
    
    Note: All commands need the variable Gen=4 or Gen=5, except for 'Commands'.
    
    Example format:
    http://www.pokegts.us/api.php?SelectPokemon=Ditto.pkm&IP=127.0.0.1&Ver=4
    
    Would select the Pokemon Ditto, as retrieved from a ListPokemon command, and let the server know that you're on Gen 4 (ie, HG/SS/D/P/Pt).
    

  4. Okay, I'm afraid nothing works, except logging in into the GTS server.

    The INFO.ASP of my server returns the good values now, but i always have the "disconnected" error "13274".

    You can try by yourself, server is 178.32.110.176.

    HGSS/dppt works well, but not B/W.

    You can see your PID and the pokemon you are waiting on the page http://178.32.110.176/infobw.php

    The .pkm used is here : http://178.32.110.176/syachi2ds/web/pkm/chikorita.pkm (right click + save)

    Can somebody tell me what's wrong ?

    Thank in advance.

    PS : thanks Willaien, I found the problem. I stripped the trailing "=", but saw we must not.

    Doesn't look like you're actually sending data whenever someone requests result.asp...

    I did a query and just got back \x05 \x00 and the hash. Is this intentional?

  5. I just tried your distro, was good for uploading 1 pokemon

    Now when I go back to the page again I get this error at the top

    Warning: copy(../gamestats2.gs/syachi2ds/web/worldexchange/upload/.pkm) [function.copy]: failed to open stream: No such file or directory in /home/eshryock/public_html/pokegts.us/distribute.php on line 10
    
    Warning: file_get_contents(../gamestats2.gs/syachi2ds/web/worldexchange/upload/.pkm) [function.file-get-contents]: failed to open stream: No such file or directory in /home/eshryock/public_html/pokegts.us/distribute.php on line 12
    
    Warning: unpack() [function.unpack]: Type v: not enough input, need 2, have 0 in /home/eshryock/public_html/pokegts.us/distribute.php on line 13

    am i doing something wrong?

    how do I upload another pokemon...

    Sounds like you're visiting http://pokegts.us/distribute.php ... I will add a redirect later for users that visit it by accident. The /distribute.php is for the links passed to end users. To upload, you use http://pokegts.us/distro.php

    Been using the distro method with great success.

    Yesterday however I was getting Error code 13274 once I am in the GTS.

    When I upload a B/W *.pkm file, does it have to be 136 or 220 bytes?

    TIA.

    Need a bit more information. What's the distribute hash you were given? (eg. distribute.php?hash=) The link will work fine.

  6. Just one thing :

    In the Wiki page of the GTS Protocol, in the "Data" section, its written, for the footer :

    Also, I tried to do that in PHP, but the game always disconnected. By the way, I did not obtain the correct footer for \x01\x00 return. I figured out that the response have to be encoded with CLASSIC base64, not urlsafe. That way, I got everything to work.

    ...if someone can confirm that in other languages, it's not the urlsafe base64_encode one, or correct in the wiki that wrong part, it would be kind.

    Here's some sample code for 5th gen.

    http://pastebin.com/J8AiuENV

×
×
  • Create New...