The VG Resource

Full Version: Happy Talk Like A Pyro Day!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey guys! I had an idea a few days back of making a small Flash application that allows you to translate regular words into Pyro mumbles, and it's done! You can check it out on my new blog, which I only got round to making now because I needed somewhere to embed this app.
Basically you just type stuff in and it'll result in a bunch of "mmmph"s which you can email/post/PM, then the receiver can just paste it back in and get the original message.

I got the idea on Talk Like A Pirate Day, and together with Dazz's update which I decoded with a binary converter, I thought it'd be awesome to make something like this. Anyway, hope you guys like it!
Mmmmmph-mmmmph mmph-mph mmmmmph m mmmmmph-mmmmph mmmmmph-mmph mph mmmmph-mmph mmmmmph-mmmph mmmph-mmmph mph mmmmmph-mmmmph mmph-mmph mmmmph-mmmph mmmmph-mmph mmmmmph-mmmph m mph mmmmmph-mmph mmmmmph m mmmph-mmph mmph-mmph mmmmph-mmph mmmmph mph m mmmph-mmmph mmmmph-mmmph mmmmph-mmph mph-mph m mmmmph mmmmph-mmmph mmmmph-mmph'mmmmmph-mmmmph m m-mmmmph mph m mmmmmph-mmmmph mmph-mph mmph-mmph mmmmph-mmph mmmph-mmph?
Miles per hour miles per hour miles miles miles per hour miles per hour miles miles per hour miles per hour miles per hour
(09-22-2012, 11:53 AM)Gold Wrote: [ -> ]Mmmmmph-mmmmph mmph-mph mmmmmph m mmmmmph-mmmmph mmmmmph-mmph mph mmmmph-mmph mmmmmph-mmmph mmmph-mmmph mph mmmmmph-mmmmph mmph-mmph mmmmph-mmmph mmmmph-mmph mmmmmph-mmmph m mph mmmmmph-mmph mmmmmph m mmmph-mmph mmph-mmph mmmmph-mmph mmmmph mph m mmmph-mmmph mmmmph-mmmph mmmmph-mmph mph-mph m mmmmph mmmmph-mmmph mmmmph-mmph'mmmmmph-mmmmph m m-mmmmph mph m mmmmmph-mmmmph mmph-mph mmph-mmph mmmmph-mmph mmmph-mmph?

Mmmmmph-mmmmmph mmmmph-mmph mmmmmmph mmmmph-mmmph mmmmmph-mmph mmmmmph-mmmmph mmmmmph-mmmmmph mmmmph-mmph mph mmmmmph-mmmmph mmmmmph mmmph-mmmph m-mmmmph m m-mmmmph mmmmmph mph mmph-mph, m mph mmmmmph-mmmph M mmph-mmph m mmmmmph-mmmph mph mmph-mmph mmmmph m mmmmph-mmmph mmmmph-mmph m mmmmmph-mmmmph mmph-mph mmmmmph m mmph mmmph-mmmph mmmmph-mmmph mph-mph M mmph-mmph m mmmph mph mmmmph-mmph'mmmmmph-mmmmph m mmmmmmph mmph-mmph mmmmph-mmph mmmmph m mph m mmmmmph-mmmph mmmmph-mmmph mmmph-mmmph mmmmmph-mmmmmph mmmmmph-mmmmph mmph-mmph mmmmph-mmmph mmmmph-mmph m mmmmmmph mmmmph-mmmph mmmmmph-mmph m mmmmmph-mmmmph mmph-mph mph mmmmmph-mmmmph.

Just realised how long it actually is though. Right now it's translating per-letter, which is really the only method I could think of. If anybody has a more efficient suggestion feel free to do so.
So Technically it's Pyro Spells This.
Well, quoted from my blog, "You might notice that the Pyro's muffled words will be much longer than the original words. Right now I don't have a good solution for this so let's just say that it's a very talkative Pyro."
Instead of encoding characters, encode syllables Tongue

Sure, that takes more work and a vast lookup table with various common character constellations buuut hey Big Grin
That's what I mean, to do that it'd take a virtually infinite table of syllables. Even if I did do it I can't have much variation, and some syllables would have to be extremely long, so you'd get long sentences anyway.
randomly generate mphs per word maybe?
M-mmph mmph-mph mmmmph-mmmph mph, m mmph-mmph mmmmph-mmph m mmmmmph-mmmmph mmph-mph mmmmmph m mmmmmph-mmph mph mmph-mmph mmmmph-mmph, m mmph-mmph mmmmph-mmph m mmmmmph-mmmmph mmph-mph mmmmmph m mmmmmph-mmph mph mmph-mmph mmmmph-mmph, m mmph-mmph mmmmph-mmph m mmmmmph-mmmmph mmph-mph mmmmmph m mmmmmph-mmph mph mmph-mmph mmmmph-mmph

Mmph-mmph m m-mmph mph mmmph-mmmph mmmph-mmph m mmph-mmph mmmmph-mmph m mmmmmph-mmmmph mmph-mph mmmmmph m mmmmmph-mmph mph mmph-mmph mmmmph-mmph
(09-23-2012, 01:52 AM)Gold Wrote: [ -> ]randomly generate mphs per word maybe?

This is surely possible, easy even, but translating back would then be impossible. But if nobody cares about translating back and just wants to sound like a Pyro, I could make a one-way version.
(09-23-2012, 04:10 AM)puggsoy Wrote: [ -> ]
(09-23-2012, 01:52 AM)Gold Wrote: [ -> ]randomly generate mphs per word maybe?

This is surely possible, easy even, but translating back would then be impossible. But if nobody cares about translating back and just wants to sound like a Pyro, I could make a one-way version.

Oh... yeah. I didn't even think that far about it. :/
Yeah the more I think about this, the stronger the developing headache in my head gets. Any sort of 'clever' idea I think up in my head quickly works out to be quite dumb due to basic math.

Sucks that gzip actually produces a LONGER output if the string is too short, otherwise it would've been perfect. Huffman coding might give you some space savings but the question is; does ActionScript even have a usable Huffman algo in it's libraries?
I had a fun time looking for one implemented in PHP when working on a Skulltag server status script (before noticing it was right under my nose I guess ┬ŽD)
Well AS3 by itself is pretty weak in terms of encoding, but there may be an external library with Huffman encoding (isn't that used for JPG or something?).

Would it allow me to store all the data in 3 characters though? I don't want anything more than Ms, Ps and Hs.
Mmph-mmph'mmmmph-mph M mmmmmph-mmmmph mmmmph-mmmph mmmmph-mph M mph-mph mmmmmph-mmmmmph m-mmmmph mmmph mmmmph-mmmph mmmmmph-mmmmph, m mmmmmph-mmmmph mmph-mph mmmmmph M mmmph mmph-mph mmph-mmph mmmmmph mmmmmmph m mmmmph-mmmph mmmmmmph m mmmmmph-mmmmph mmph-mph mmmmmph M mph-mph mmmmph-mmmph m-mph mmmmmph mmmmmph-mmph mmmmph-mmph mmmmph-mmmph mmmmmph-mmph mmmmmph-mmmph, m mph mmmmph-mmph mmmmph M mmph-mmph m m-mmph mmph-mmph mmmph-mmmph mmmph-mmmph m mmph mmmmmph m m-mmph mph mmph-mmph mmmmmph-mmmmph mmph-mmph mmmmph-mmph mph-mph m mmmmmmph mmmmph-mmmph mmmmmph-mmph m m-mmmmph mmmmph-mmmph mmmmmph-mmmmmph m mmph-mmph mmmmph-mmph m mmmmph-mph m-mmmmph M mmmmph mmmmmph mmmmmph-mmmph mmmmmph mmmmmph-mmph mmmmmph-mmmmph M mmmmmmph mmmmph-mmmph mmmmmph-mmph mmmmmph-mmmmph mmmmmph-mmph mmmmmph mmmmmph-mmmph mmmmmph-mmmph m mmmmph-mmmph mmmmph-mmph M mmmmmph-mmph mmmmph-mmmph mmmmmph-mmmmmph mmmmmph-mmmmph mmmmmph m mphmmmmph mphmmmmph.
Pages: 1 2