Smogon Community

Smogon Community (http://www.smogon.com/forums/index.php)
-   Projects (http://www.smogon.com/forums/forumdisplay.php?f=107)
-   -   (Programming) sim2pkm (http://www.smogon.com/forums/showthread.php?t=3476470)

Antar Dec 24th, 2012 12:14:40 PM

sim2pkm
 
http://i46.tinypic.com/mv4xeh.jpg

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:

aim Dec 24th, 2012 3:30:44 PM

OMG ty bro so much - Joey

Sol64 Dec 24th, 2012 3:38:48 PM

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?

Antar Dec 24th, 2012 4:15:49 PM

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.

d.hgss Dec 24th, 2012 4:18:42 PM

genius!

NixHex Dec 24th, 2012 4:35:37 PM

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

Antar Dec 24th, 2012 4:37:56 PM

Quote:

Originally Posted by Fat NixHex (Post 4514471)
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!

el fizz Dec 24th, 2012 5:59:32 PM

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>

BlakBlastoise Dec 24th, 2012 9:11:05 PM

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

Antar Dec 24th, 2012 9:45:06 PM

Quote:

Originally Posted by Fat BlakBlastoise (Post 4514685)
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.

Chimpakt Dec 24th, 2012 9:51:58 PM

not bad :]

MikeDecIsHere Dec 25th, 2012 3:55:19 PM

I love how all the youtubers are posting here.

GOod shit antar

AceStarThe3rd Dec 25th, 2012 9:01:10 PM

Wonderful!

Lunanight Dec 26th, 2012 9:37:17 AM

Awesome program is awesome :)

MakaiMai Dec 26th, 2012 11:53:16 AM

Just when I thought you couldn't get more awesome. :D

Exclamation! Dec 26th, 2012 12:18:39 PM

Quote:

Originally Posted by Fat BlakBlastoise (Post 4514685)
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.

dbzmariogeno Dec 26th, 2012 4:57:33 PM

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

Lol whatever, thanks Antar.

Kaphotics Dec 27th, 2012 7:32:54 PM

Quote:

Originally Posted by Fat Antar (Post 4514706)
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.

Antar Dec 27th, 2012 8:32:34 PM

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 (Post 4517666)
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.

Organization Member XIV Dec 28th, 2012 7:16:13 AM

All the Youtubers are posting here because you all use this stuff and no one else does XD.

Exclamation! Dec 28th, 2012 7:53:34 AM

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!

WreckDra Dec 29th, 2012 2:20:39 AM

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 Dec 29th, 2012 3:04:53 AM

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.

Antar Dec 29th, 2012 8:39:49 AM

Quote:

Originally Posted by Fat WreckDra (Post 4519025)
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.

WreckDra Dec 30th, 2012 2:09:06 PM

Thank you very much sir
this program is probably the best thing since sliced bread


All times are GMT -4. The time now is 10:48:37 PM.

This forum runs vBulletin (with many modifications!) © 2000-2013, Jelsoft Enterprises Ltd.