Ask A Simple Question, Get A Simple Answer - PS! Edition (please read before posting a thread)

hey, for some reason i can't log into the downloaded version of pokemon showdown or the web version. i tried changing my password twice already and it's been a few days
 
Hi, i have a server just for me and my friends, and we're making some fakemon.
I tried to add these fakemon but they dont appear in teambuilding listing, but if I use !data on them, it works. Can someone help me? :/

1537978798512.png


1537978819337.png
 
Hi, i have a server just for me and my friends, and we're making some fakemon.
I tried to add these fakemon but they dont appear in teambuilding listing, but if I use !data on them, it works. Can someone help me? :/

View attachment 137678

View attachment 137679
The teambuilder doesn't depend on the server so you can't edit it with only the server files, I'd say you need to set up a custom client but don't know if that's actually feasible to modify the teambuilder that way, since I have never tried.
 
The teambuilder doesn't depend on the server so you can't edit it with only the server files, I'd say you need to set up a custom client but don't know if that's actually feasible to modify the teambuilder that way, since I have never tried.
I made a custom Metagame (named Fakemon Factory) for these fakemon im trying to add, and the teambuilder reads it.
1537989942318.png


The teambuilder doesnt get the pokemon list from the server?
 

Pikachuun

the entire waruda machine
is a Pre-Contributor
The teambuilder doesnt get the pokemon list from the server?
correct. formats are handled through the server, while the teambuilder itself (for the most part) is handled with the client.
you can still use the mons in said format via import/exporting them in, but they won't display properly (probably as broken images)
 

HoeenHero

The Misspelled Hero!
is a Battle Server Administratoris a Community Leaderis a Programmer
Community Leader
well, i wonder Why some specific IDs are not available, it shows disabled. anybody knows it?
There are multiple reasons for an account being disabled: Inactvity, the account is comprimised, the owner requested the name be disabled, or the name is considered inappropriate.
 
My friend and I have been doing a CageLocke and we haven't played in a while so we forget who we gave TMs and items to and we would like to see if there is a way to look back at our battle history to see the fights we have done. Is this possible? Unfortunately we delete our teams afterwards since it is a one time battle for them so that won't be of use.
 

HoeenHero

The Misspelled Hero!
is a Battle Server Administratoris a Community Leaderis a Programmer
Community Leader
My friend and I have been doing a CageLocke and we haven't played in a while so we forget who we gave TMs and items to and we would like to see if there is a way to look back at our battle history to see the fights we have done. Is this possible? Unfortunately we delete our teams afterwards since it is a one time battle for them so that won't be of use.
Unless you saved replays no. If there are replays check https://replay.pokemonshowdown.com/ for them
 

HoeenHero

The Misspelled Hero!
is a Battle Server Administratoris a Community Leaderis a Programmer
Community Leader
hello there I am new to the site trying to join the site rooms, but to talk it is saying my account needs to be a week old, how do I check
Click on your name in the userlist, a box should show up with your username, avatar, and rooms. Click on your name in the box to go to your user page. It will look something like this https://pokemonshowdown.com/users/hoeenhero. On your user page, it should have the date you registered, add a week to that to know what day you should gain autoconfirmed status. Please note that autoconfirmed (AC) status is given at exactly 1 week after you registered (down to the second), so if you registered at 8:00 PM, you will be AC a week later at 8:00 PM, no sooner. You also must win a ladder battle to be autoconfirmed. A ladder battle is any battle found by clicking the "Battle!" button to find a battle except "Unrated Random Battle". A win in any format will work.
 

HoeenHero

The Misspelled Hero!
is a Battle Server Administratoris a Community Leaderis a Programmer
Community Leader
Hello, I have been part of some Pet Mods and looking to make some of my own moves or abilities. Is there a thread or possible site that will teach me to code for Pokemon Showdown?
You can try looking at the server source code. https://github.com/Zarel/Pokemon-Showdown

The Super Staff Bros Brawl mod also does this so that specifically may be a good area to look https://github.com/Zarel/Pokemon-Showdown/tree/master/mods/ssb
Kind of a long story, but is it possible to run a headless instance of Showdown locally?
See this issue https://github.com/Zarel/Pokemon-Showdown-Client/issues/1148
 
Back with another question, or more of a problem. Also not sure if this counts as a simple question, if there's somewhere better to post this just let me know.

I'm trying to access Showdown via a websocket connection in Python; I can establish the connection and get the initial response just fine, but after that the server refuses to respond to me. This is what I have so far:
Python:
def on_message(ws, msg):
    print(msg)
    if msg[:10] == '|challstr|':
        challstr = msg[10:]
        login(challstr, ws)

def on_open(ws):
    print('### opened ###')

def login(challstr, ws):
    resp = requests.post('https://play.pokemonshowdown.com/action.php',
                         data={'act': 'login',
                               'name': creds['name'],
                               'pass': creds['password'],
                               'challstr': challstr})
    data = json.loads(resp.text[1:])
    assertion = data['assertion']
    ws.send('/trn ' + creds['name'] + ',0,' + assertion)


client = websocket.WebSocketApp('ws://sim.smogon.com:8000/showdown/websocket',
                                on_message=on_message)
client.on_open = on_open
client.run_forever()
And the output is as such:
### opened ###
|updateuser|Guest 6879553|0|102
|formats|,1|{FORMATS HERE}
|queryresponse|rooms|null
|challstr|4|{CHALLENGE STRING HERE}
When I make the login request and send the '/trn' message manually it succeeds in logging in and sends back some message, but as you can see with this program I don't get back anything other than the initial messages sent when you establish a connection. Even if I send '/help' or another request it never responds. Can anybody more familiar with the Showdown api and/or websockets than me see what's going wrong here?
 
Last edited:

Quite Quiet

sleep life away
is a Tournament Directoris a member of the Site Staffis a Super Moderatoris a Community Contributoris a Tiering Contributoris a Contributor to Smogonis a Smogon Media Contributoris a Battle Server Moderator
Articles Co-Leader
Back with another question, or more of a problem. Also not sure if this counts as a simple question, if there's somewhere better to post this just let me know.

I'm trying to access Showdown via a websocket connection in Python; I can establish the connection and get the initial response just fine, but after that the server refuses to respond to me. This is what I have so far:
Python:
def on_message(ws, msg):
    print(msg)
    if msg[:10] == '|challstr|':
        challstr = msg[10:]
        login(challstr, ws)

def on_open(ws):
    print('### opened ###')

def login(challstr, ws):
    resp = requests.post('https://play.pokemonshowdown.com/action.php',
                         data={'act': 'login',
                               'name': creds['name'],
                               'pass': creds['password'],
                               'challstr': challstr})
    data = json.loads(resp.text[1:])
    assertion = data['assertion']
    ws.send('/trn ' + creds['name'] + ',0,' + assertion)


client = websocket.WebSocketApp('ws://sim.smogon.com:8000/showdown/websocket',
                                on_message=on_message)
client.on_open = on_open
client.run_forever()
And the output is as such:
Code:
### opened ###
|updateuser|Guest 6879553|0|102
|formats|,1|{FORMATS HERE}
|queryresponse|rooms|null
|challstr|4|{CHALLENGE STRING HERE}
When I make the login request and send the '/trn' message manually it succeeds in logging in and sends back some message, but as you can see with this program I don't get back anything other than the initial messages sent when you establish a connection. Even if I send '/help' or another request it never responds. Can anybody more familiar with the Showdown api and/or websockets than me see what's going wrong here?
You're missing a part of the challstr for your POST-request. The challstr contain two parts, the actual challstr and a challstrid. In your example this challstrid is 4. A correct POST-request looks something like:
Python:
        payload = { 'act':'login',
                    'name': username,
                    'pass': password,
                    'challengekeyid': challengekeyid,  # 4 in your example above
                    'challenge': challenge             # As you've already done
                    }
        r = requests.post('http://play.pokemonshowdown.com/action.php', data=payload)
        assertion = json.loads(r.text[1:])['assertion']
        send('|/trn {},0,{}'.format(username, assertion))
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top