After years of research (I'm serious) I finally got all the tools to do awesome stuff. So before I do complex things (with SR) and because it seems to be requested a lot, I did a PG upload mixer. Here is a video of how it works:
I first show the copy/paste tool is empty. Then I create a simple scene and get the save code. Then I create a new scene and mix the save code into the new scene via the copy/paste tool. It is currently in Beta version, so there might still be problems. I tested it with Firefox 3.6.? and 4.0b7. Please report back if it works for you and what version youre using. So without further ado, here is the extension.
Post by QwertyuiopThePie on Nov 16, 2010 21:50:09 GMT
Now that is just plain awesome. Should I a-sticky this thread?
Also, that video is set to private.
Using Firefox 3.6.12, I can't seem to access uploads. The java applet doesn't appear on the page. Also, Mix doesn't seem to work: When I try it the new code seems to appear for a second, then it vanishes and the current screen reappears. Maybe I'm using it wrong.
I would prefer to get some feedback before it gets stickied. Also I think I will integrate this with the other stuff I have done for PG (the forum code-linker and the dan-ball upload linkifier). Also you can post some suggestions for further addons. Like I could create a library, so you can store upload codes like in the SR Save extension. Think about having a menu were you can select different uploads and mix them into your current game.
Also I'm not sure how future proof this thing is. It uses quite a lot of black magic to get its job done that very well might break with future versions of PG. The more feedback I get, the more motivated I am to work on this thing...
I have the options menu on the SR extension and all I can tell you ... it wasn't fun to make it. With this, I hope the addons-builder SDK gives me better possibilities to create an options menu, but the SDK is not finished yet...
Encryption has already been suggested in the link-addon thread. What exactly do you want, a possibility to post an encrypted code that you can load but not upload or mix?
So I updated the extension with a preliminary version of the library. *edit*The library works with what is in the code field. So If you want to save your game, hit get and then save*/edit* Also there is a serious bugfix in this version. With the old version, every upload probably would be done under my username! Please test it and if someone thinks this is useful, please report back the following: 1) If and what you find useful 2) You tried it and it worked 3) What you tried, just toying around or productive use 4) Please also test it with laser and other elements that only appear for one frame with uploads. 5) With the new version: Does the library stay over Browser restarts or even browser crashes?
Also I'd like to know, if you think a save encryption is useful and if you would use it. Remember, encrypted saves will only work if someone has this extension installed and are useless to users without it.
And many thanks to you qwerty, you are basically the only one who constantly gives me feedback to the stuff I do!
There are a few more features I can think of that are possible:
change the framerate, so you can see elements reacting in slow motion
Increase the dot limit (a little buggy, but if you know the limits, it works)
keyboard shortcuts (e.g. map the keys to elements, shift+key to right mouse button)
Create a new save system that also stores wind and element properties
The list is sorted in increasing amounts of coding work for me. The first two are quite easy, for the shortcuts I actually need someone to think of a nice mapping and the save system needs quite a bit of thought and coding. Anyone interested?
It's a shame I have to disable it to view uploads.
You have? Thats should be classified as a bug...
By the way, please reinstall the addon to discover the two easy features: The "Max Particle" button changes the game to allow 120k particles! You have to switch to "Dot M" for it to work. I did some bugfixing and it shouldn't crash the game in any way. If you manage to do so, please report. I disabled uploading and the game reverts to 40k particles if you load something or reset the game. Saving and loading shouldn't work either... The ChangeFPS button does what it says. Standard FPS is 50, it will probably not go over 60
So I started to implement the third feature on my list: Keyboard control. I just think they are to convenient to not be implemented. Right now there are two implemented: If you hold Shift, your left mouse button element (lmb) will be switched to clear, your right mb element to erase. If you release Shift, your old elements are restored. If you hold Caps Lock, your lmb will be changed to Scale. With those two you can select two elements, zoom in, move around with Caps lock and erase stuff with shift. I think that is very convenient. Anyone with more suggestions?
I don't know any PG or system wide keyboard shortcuts that listen on shift or capslock + Mouseclick. Is it just me, or does Ctrl switch the mousebuttons in PG? Alt +mouse click is reserved on my computer to move windows around. Thats why I chose Shift & Capslock... I'll see if I can use CapsLock+mousewheel to zoom in/out.
And about the bug, I have a basic idea about what causes it, but didn't look into it much further. Firebug (Firefox debugging tool) doesn't work for the Firefox I'm using for developing this extension (FF4.0 nightly), that slows down development a lot in this case. The Firefox Betas can be downloaded from www.mozilla.com/firefox/beta/.
And Yonder, thanks for the feedback. Nice to hear it works for you, because I can only install the extension in a weired way... (would be too technical to describe it further, but really thanks for testing). Oh and with "everything", do you mean also uploads? Because I changed something lately, so they work sometimes...
Thanks everyone for the feedback. Its what motivates me to continue. And thanks a lot for the shortcuts. I never knew they were documented somewhere. So if Ctrl+ click is a PG shortcut, then I can perhaps replace it. Or does someone really need that? Apple users perhaps with their "useful" one button mouse? Do Apple users use Firefox?
But do they need Ctrl for PG? I don't really know, but don't they have a special key for the other mouse button? (Or was it Ctrl does RMB and the other key replaces Ctrl?) I disabled Ctrl now and wait till someone moans about it.
By the way, as qwerty noticed, I changed the wheel to one with 8 blades. Do you want me to keep it? Do you have ideas for a different one? Perhaps I will post some examples later...