Go Back   Smogon Community > Contributions & Corrections > Projects
Register FAQ Social Groups Calendar Search Today's Posts Mark Forums Read

Reply
Categories: HTML, Programming, Other
 
Thread Tools
Old Dec 24th, 2012, 12:14:40 PM   #1
Antar*
That's Dr. Antar to you
is a Battle Server Administratoris a Super Moderatoris a Programmeris a Community Contributor
 
Antar's Avatar
 
Super Moderator
Join Date: Feb 2010
Posts: 2,050
DC Metro Area
Default sim2pkm



sim2pkm is a project that grew out of Challenge Cup for Wi-Fi, but while sim2pkm makes CC4Wifi obsolete, it's a far more ambitious--and, I hope, useful--application.

sim2pkm will take any plaintext or json-format team export from the teambuilders for Pokemon Online or Pokemon Showdown and make them into pkm files for easy importing into Pokegen (or Pokesav if you're not doing BW2 stuff). While these pkm files are NOT designed to pass hack checks (and thus are unlikely to be usable for Nintendo events, random matchups or the GBU competition), the program does do some rudimentary "legality checking," meaning, for example, that an Entei that knows Extremespeed will be forced to be shiny, to have no nickname and will be put in a Cherish Ball.

Unlike CC4Wifi, sim2pkm comes with an easy-to-use graphical interface and should be simple enough for anyone to use.

For those of you who love random battles, the sim2pkm interface includes links to web scripts that generate either Challenge Cup or PS-style "randbats" teams.

sim2pkm is written in Python and should be usable on all modern desktop operating systems.

Download links:
Other links:
__________________
Codes and Hacks I Use
PBR FC: 4898-8739-8815 (See here)
Black FC: 4040 5386 0128 / White 2 FC: 4771 3664 7215
My Narrated PBR & Gen V Battles
My Trade Thread
Convert any sim team to pkms
Pokemetrics: A Blog

Last edited by Antar; Dec 24th, 2012 at 4:44:29 PM.
Antar is offline   Reply With Quote
Old Dec 24th, 2012, 3:30:44 PM   #2
aim
 
aim's Avatar
 
Join Date: Jun 2010
Posts: 70
Default

OMG ty bro so much - Joey
aim is offline   Reply With Quote
Old Dec 24th, 2012, 3:38:48 PM   #3
Sol64
 
Sol64's Avatar
 
Join Date: Apr 2009
Posts: 266
London, UK
Default

Seems useful if you don't like having to copy everything over and back (especially for lazy bones).

Will this have auto updates like Pokegen?
__________________
France VGC '12 Nationals Top 32 - Knocked out before finalists lounge
Gamerbase Pokemon Tournament London #4 Finalist
VGC12 B/W2 Unova Dex Arcandorus RMT thread
Sol64 is offline   Reply With Quote
Old Dec 24th, 2012, 4:15:49 PM   #4
Antar*
That's Dr. Antar to you
is a Battle Server Administratoris a Super Moderatoris a Programmeris a Community Contributor
 
Antar's Avatar
 
Super Moderator
Join Date: Feb 2010
Posts: 2,050
DC Metro Area
Default

No auto-updates, sorry.

SPEAKING OF, I recommend re-downloading if you already downloaded it: there was a pretty big bug in v1.1 regarding formes.
__________________
Codes and Hacks I Use
PBR FC: 4898-8739-8815 (See here)
Black FC: 4040 5386 0128 / White 2 FC: 4771 3664 7215
My Narrated PBR & Gen V Battles
My Trade Thread
Convert any sim team to pkms
Pokemetrics: A Blog
Antar is offline   Reply With Quote
Old Dec 24th, 2012, 4:18:42 PM   #5
d.hgss
 
d.hgss's Avatar
 
Join Date: Oct 2010
Posts: 47
Uruguay
Default

genius!
d.hgss is offline   Reply With Quote
Old Dec 24th, 2012, 4:35:37 PM   #6
NixHex
Nets many surprise KOs.
is a Forum Moderatoris a Community Contributoris a Contributor to Smogonis a Battle Server Moderator
 
NixHex's Avatar
 
Moderator
Join Date: Oct 2009
Posts: 2,100
Carve your niche.
Default

Antar, you should note that since they aren't designed to pass hack checks, these Pokemon will not even be GBU legal either.
__________________

Quote:
Originally Posted by Fat Melee Mewtwo View Post
If RBY Cloyster didn't have Clamp hax, would you stick your dick in that?
NixHex is online now   Reply With Quote
Old Dec 24th, 2012, 4:37:56 PM   #7
Antar*
That's Dr. Antar to you
is a Battle Server Administratoris a Super Moderatoris a Programmeris a Community Contributor
 
Antar's Avatar
 
Super Moderator
Join Date: Feb 2010
Posts: 2,050
DC Metro Area
Default

Quote:
Originally Posted by Fat NixHex View Post
Antar, you should note that since they aren't designed to pass hack checks, these Pokemon will not even be GBU legal either.
So noted!
Antar is offline   Reply With Quote
Old Dec 24th, 2012, 5:59:32 PM   #8
el fizz
 
el fizz's Avatar
 
Join Date: Dec 2008
Posts: 333
Default

THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! THE BEST! </grohl>
__________________
I battle mainly on Wi-Fi
http://www.youtube.com/user/FizzyStardust
retired trader :: Kamehameha Kafe
I use legal hacks in battle.
Abra's Asylum
el fizz is offline   Reply With Quote
Old Dec 24th, 2012, 9:11:05 PM   #9
BlakBlastoise
 
BlakBlastoise's Avatar
 
Join Date: Dec 2007
Posts: 3,191
Bakersfield, CA
Default

I'm just posting in this thread to show off how many more posts i have than all the other youtube people

but this program looks legit. Only thing better than this would be to make a thing that converts battle logs into vs recorder matches. now that would be pwr ful
__________________
.

Last edited by BlakBlastoise; Dec 24th, 2012 at 9:30:44 PM.
BlakBlastoise is online now   Reply With Quote
Old Dec 24th, 2012, 9:45:06 PM   #10
Antar*
That's Dr. Antar to you
is a Battle Server Administratoris a Super Moderatoris a Programmeris a Community Contributor
 
Antar's Avatar
 
Super Moderator
Join Date: Feb 2010
Posts: 2,050
DC Metro Area
Default

Quote:
Originally Posted by Fat BlakBlastoise View Post
Only thing better than this would be to make a thing that converts battle logs into vs recorder matches. now that would be pwr ful
I've been trying on and off to get Zarel/bmelts and Xfr/Bond697/Kaphotics into a room together to make this happen.

Btw, just released another version (sorry) that fixes some compatibility issues with PO.
__________________
Codes and Hacks I Use
PBR FC: 4898-8739-8815 (See here)
Black FC: 4040 5386 0128 / White 2 FC: 4771 3664 7215
My Narrated PBR & Gen V Battles
My Trade Thread
Convert any sim team to pkms
Pokemetrics: A Blog
Antar is offline   Reply With Quote
Old Dec 24th, 2012, 9:51:58 PM   #11
Chimpakt
is a Pre-Contributor
 
Chimpakt's Avatar
 
Join Date: Oct 2006
Posts: 1,295
Cole World!
Default

not bad :]
__________________
My youtube channel [Pokemon Narrations, Let's Plays]
VM me for OU/UU rates.
wish i could change my username to chimpact :[
Chimpakt is offline   Reply With Quote
Old Dec 25th, 2012, 3:55:19 PM   #12
MikeDecIsHere
Laying the Groundwork for the Pound Work
is a Battle Server Moderatoris a Forum Moderator Alumnusis a Smogon Media Contributor Alumnus
 
MikeDecIsHere's Avatar
 
Join Date: Sep 2010
Posts: 1,837
Staten Island
Default

I love how all the youtubers are posting here.

GOod shit antar
__________________
MikeDecIsHere is offline   Reply With Quote
Old Dec 25th, 2012, 9:01:10 PM   #13
AceStarThe3rd
 
AceStarThe3rd's Avatar
 
Join Date: Mar 2012
Posts: 3
California
Default

Wonderful!
AceStarThe3rd is offline   Reply With Quote
Old Dec 26th, 2012, 9:37:17 AM   #14
Lunanight
 
Lunanight's Avatar
 
Join Date: Apr 2010
Posts: 79
Default

Awesome program is awesome :)
__________________
My Black 2 Friend Code: 3182 4705 4976
My Youtube channel: http://www.youtube.com/user/Luna874

Should you need to contact me for a Gen V battle, or just to talk, just PM here on Smogon. If I couldn't get it, send a PM to me on Youtube (Luna874) which is my most actively viewed inbox. Or try sending me a PM on Serebii Forums (I am Lunanight there).
Lunanight is offline   Reply With Quote
Old Dec 26th, 2012, 11:53:16 AM   #15
MakaiMai
 
MakaiMai's Avatar
 
Join Date: Mar 2012
Posts: 30
Default

Just when I thought you couldn't get more awesome. :D
__________________
Skype: meta_kirby
MakaiMai is offline   Reply With Quote
Old Dec 26th, 2012, 12:18:39 PM   #16
Exclamation!
 
Exclamation!'s Avatar
 
Join Date: Dec 2010
Posts: 197
Default

Quote:
Originally Posted by Fat BlakBlastoise View Post
Only thing better than this would be to make a thing that converts battle logs into vs recorder matches. now that would be pwr ful
This, THIS would be the best thing ever. I'd be forever gratefull for this.
Exclamation! is offline   Reply With Quote
Old Dec 26th, 2012, 4:57:33 PM   #17
dbzmariogeno
 
dbzmariogeno's Avatar
 
Join Date: Mar 2012
Posts: 44
US
Default

I downloaded CC4Wifi a few days ago then I see "makes CC4Wifi obsolete"

Lol whatever, thanks Antar.
__________________
Check out my youtube! http://www.youtube.com/user/dbzmariogeno

VM/PM for an Ubers rate

My main tier is Ubers, that means I see multiple Charizards daily, remember kids, only you can prevent Charizards in Ubers. (BW2 FC 1335 5579 0051)
dbzmariogeno is offline   Reply With Quote
Old Dec 27th, 2012, 7:32:54 PM   #18
Kaphotics
Remodeling Kitchens
is a Pokémon Researcheris a Contributor to Smogon
 
Kaphotics's Avatar
 
Join Date: Apr 2009
Posts: 758
Berkeley, CA
Default

Quote:
Originally Posted by Fat Antar View Post
I've been trying on and off to get Zarel/bmelts and Xfr/Bond697/Kaphotics into a room together to make this happen.
It wouldn't be too hard to make replays (and upload them); we've done that many months ago.

If the Replay -> Video were to happen, all that would need to be done is just overwrite a previously existing a WiFi battle video file with a proper team / player name, the battle instructions (move choice & target) and the Battle RNG Seed. The game essentially carries out the battle again with pre-defined choices. There's a small concern with uploading: they only let you store a certain amount of battle videos per player. At Pokecheck we don't do submitting, only fetching. (because submitting tons of videos is fishy)

I know there's other customizations that can be done like using a different trainer sprite, background, and music.

Good place to start on 'structure' of videos is here. Even though it's from B/W times it's still the same.
Kaphotics is offline   Reply With Quote
Old Dec 27th, 2012, 8:32:34 PM   #19
Antar*
That's Dr. Antar to you
is a Battle Server Administratoris a Super Moderatoris a Programmeris a Community Contributor
 
Antar's Avatar
 
Super Moderator
Join Date: Feb 2010
Posts: 2,050
DC Metro Area
Default

It's the replay -> battle vid direction that I think most of us are interested in (the convenience of battling on a simulator married to the quality of a DS battle video).

Quote:
Originally Posted by Fat Kaphotics View Post
all that would need to be done is just overwrite a previously existing a WiFi battle video file with a proper team / player name, the battle instructions (move choice & target) and the Battle RNG Seed. The game essentially carries out the battle again with pre-defined choices.
This, as I understand it, is the reason we don't have this today: basically, the simulator would have to written in such a way as to reproduce exactly the same instructions, based on the same seed.

So basically, Pokemon Showdown would have to run the reverse-engineered battle engine that you guys are working on with the Vs. Player. We'd need to marry the two projects, and I'm guessing that's not an easy task.
__________________
Codes and Hacks I Use
PBR FC: 4898-8739-8815 (See here)
Black FC: 4040 5386 0128 / White 2 FC: 4771 3664 7215
My Narrated PBR & Gen V Battles
My Trade Thread
Convert any sim team to pkms
Pokemetrics: A Blog
Antar is offline   Reply With Quote
Old Dec 28th, 2012, 7:16:13 AM   #20
Organization Member XIV
 
Organization Member XIV's Avatar
 
Join Date: Oct 2012
Posts: 610
With Xerneas, in the Garden of Eden
Default

All the Youtubers are posting here because you all use this stuff and no one else does XD.
__________________
Bearkiller on PS and IRC. May also go by the name of Grima on IRC. I play League of Legends, so there's that. Also free Genesect plz. My LP.
Organization Member XIV is offline   Reply With Quote
Old Dec 28th, 2012, 7:53:34 AM   #21
Exclamation!
 
Exclamation!'s Avatar
 
Join Date: Dec 2010
Posts: 197
Default

Regardless of whether or not we would be able to convert battle logs into VS Recorder matches, having the sim run the exact same RNG as the cartridges would be something really, really neat to have. Even tough that crits/misses/whatever happen with the same frequency they would on the DS, the fact that they don't do so exactly when they would on the DS kind of bothers me, tbh.

As Antar said, I think that most people would have no interest in uploading the matches to the Nintendo servers, but would just like to be able to record the actual playback as a video file. At least that's what I would like to do. Does the replay video really have to conform to the RNG if people don't plan on uploading it to the Nintendo servers? Correct me if I'm wrong, but the video you linked doesn't even follow the game mechanics, right?

Btw, sorry for not thanking you for the program, Antar. I got so excited with the possibility of turning PS logs into VS recorder matches that I forgot. Thank you very much for your work!
Exclamation! is offline   Reply With Quote
Old Dec 29th, 2012, 2:20:39 AM   #22
WreckDra
 
WreckDra's Avatar
 
Join Date: Mar 2012
Posts: 5
Spokane WA USA
Default

Found this error when converting. This is what Terminal said:File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1410, in __call__
File "gui.py", line 51, in doTheThing
pokes.append(sim2pkm.sim2poke(entry))
File "/Users/russellschreiner/Downloads/sim2pkm-mac/sim2pkm/sim2pkm.py", line 286, in sim2poke
if species[0] not in string.lowercase + string.uppercase:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 26: ordinal not in range(128)

I am using the OSX version BTW but i am not quite sure what this means.
I bet it is nothing a little Antar Magic won't fix though :]
WreckDra is offline   Reply With Quote
Old Dec 29th, 2012, 3:04:53 AM   #23
WreckDra
 
WreckDra's Avatar
 
Join Date: Mar 2012
Posts: 5
Spokane WA USA
Default

And now the script is telling terminal to quit whenever i open sim2pkm
i am beginning to wonder if the convert and quit command is still in effect for some reason.
WreckDra is offline   Reply With Quote
Old Dec 29th, 2012, 8:39:49 AM   #24
Antar*
That's Dr. Antar to you
is a Battle Server Administratoris a Super Moderatoris a Programmeris a Community Contributor
 
Antar's Avatar
 
Super Moderator
Join Date: Feb 2010
Posts: 2,050
DC Metro Area
Default

Quote:
Originally Posted by Fat WreckDra View Post
File "/Users/russellschreiner/Downloads/sim2pkm-mac/sim2pkm/sim2pkm.py", line 286, in sim2poke
if species[0] not in string.lowercase + string.uppercase:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xaa in position 26: ordinal not in range(128)
Macs are weird--on neither Linux nor Windows do the pastes somehow incorporate these non-ascii characters. Anyway, I fixed it. Delete the old version and install the new version at your earliest convenience.

And yeah, if sim2pkm throws an error like that, you have to close it before reopening and trying again.
__________________
Codes and Hacks I Use
PBR FC: 4898-8739-8815 (See here)
Black FC: 4040 5386 0128 / White 2 FC: 4771 3664 7215
My Narrated PBR & Gen V Battles
My Trade Thread
Convert any sim team to pkms
Pokemetrics: A Blog
Antar is offline   Reply With Quote
Old Dec 30th, 2012, 2:09:06 PM   #25
WreckDra
 
WreckDra's Avatar
 
Join Date: Mar 2012
Posts: 5
Spokane WA USA
Default

Thank you very much sir
this program is probably the best thing since sliced bread
WreckDra is offline   Reply With Quote
Reply Smogon Community > Contributions & Corrections > Projects

« Previous Thread | Next Thread »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 2:51:18 PM.