This is a free-to-use, free-to-copy program to be used by anyone who wants to create an element. You no longer need to know Lua or the complex API usually used to create elements.
To run it, just extract everything from the .zip (preferably into your Powder Toy folder), then run whichever executable suits your operating system. (If you don't know, use the _x86 version to be safe). When you're finished with your element, press Ctrl-S or click File/Save and select a file name/location, just as you would in Microsoft Word, etc.
INCLUDES:
Lua Element Tool:
Used for creating a Lua script that can in turn create an element.
Graphics Function Helper (now integrated into the main program, activated by Ctrl-F):
Used to create a simple template for a graphics function, with just the return
value.
TPT Transparency Setter:
Can be used to make Powder Toy (or any other window) semi- or fully-transparent. Works similar to
Transparent Windows, but you don't need a free trial or anything.
Get the most current version here.
A github repo containing the most current (beta) version can be found here.
The Github release is here. (This is going to be out of date)
The source is included in the package (that's LuaElement.au3), in case you wish to modify it. If you have written a mod of it but don’t want to or are unable to compile it, I will be perfectly willing to do it for you. (That will now almost certainly be the case, as the code used for sending the bug report email is not released for security reasons)
You can find the full version history here, and I will add more versions to that folder as I go along.
Suggestions are very welcome! Just put them in the comments on this thread, and they will be implemented if possible.
Todo:
Changelog:
(If the first number in the latest version is higher than your version, you should definitely update - it's either an important bugfix, new important feature or important change)
Enjoy!
If anyone wants to contribute to the development of this project, I would be very happy to add you. Just comment here, PM me, or do it on Github.
Nice. What language did you use?
I am actually working an Element Creator just to try out the BlackBerry 10 language, I plan on making it for Android as well.
I thought of making a Windows version, but as soon as I tried to make a button in C++ I said: "Nope..."
I used AutoIt. It is often used for making viruses, and it is highly compressed, so it is often used for viruses. Don't worry, it's perfectly safe.
I know, I used it. It's safe.
The elements it makes are broken though. Here's an example of what it makes:
elements.property(elements.AU3FGEN_PT_BOOM, 'Name', 'BOOM')
elements.property(elements.AU3FGEN_PT_111111, 'Description', '111111')
elements.property(elements.AU3FGEN_PT_0xD60833, 'Color', '0xD60833')
elements.property(elements.AU3FGEN_PT_11, 'Menusection', '11')
elements.property(elements.AU3FGEN_PT_34, 'Gravity', '34')
elements.property(elements.AU3FGEN_PT_43, 'Flammable', '43')
elements.property(elements.AU3FGEN_PT_4, 'Explosive', '4')
elements.property(elements.AU3FGEN_PT_657, 'Loss', '657')
elements.property(elements.AU3FGEN_PT_37563, 'AirLoss', '37563')
elements.property(elements.AU3FGEN_PT_367345, 'AirDrag', '367345')
elements.property(elements.AU3FGEN_PT_3745, 'Advection', '3745')
elements.property(elements.AU3FGEN_PT_54376, 'Weight', '54376')
elements.property(elements.AU3FGEN_PT_-1, 'Diffusion', '-1')
...The heck even happened there?
That will be fixed in the next version (hopefully released later today). Thanks!
EDIT: Already released, the new version is quite good!
EDIT: New layout of thread! Woo-hoo!
I don't know, could you post the code it made?
elements.property(elements.AU3FGEN_PT_GUM, 'Name', 'GUM')
elements.property(elements.AU3FGEN_PT_GUM, 'Description', 'gooey stuff')
elements.property(elements.AU3FGEN_PT_GUM, 'Color', '0xFFCFEB')
elements.property(elements.AU3FGEN_PT_GUM, 'Menusection', '11')
elements.property(elements.AU3FGEN_PT_GUM, 'Gravity', '1')
elements.property(elements.AU3FGEN_PT_GUM, 'Flammable', '0')
elements.property(elements.AU3FGEN_PT_GUM, 'Explosive', '0')
elements.property(elements.AU3FGEN_PT_GUM, 'Loss', '0')
elements.property(elements.AU3FGEN_PT_GUM, 'AirLoss', '1')
elements.property(elements.AU3FGEN_PT_GUM, 'AirDrag', '0')
elements.property(elements.AU3FGEN_PT_GUM, 'Advection', '1')
elements.property(elements.AU3FGEN_PT_GUM, 'Weight', '25')
elements.property(elements.AU3FGEN_PT_GUM, 'Diffusion', '0')
local g = function(i, x, y, s, n)
--Update Function
end
tpt.element_func(g, tpt.element('GUM'))
local g = function(i, r, g, b)
--Graphics Function
end
tpt.graphics_func(g, tpt.element('GUM'))
I figured out though that the program isn't writing the declaration
(from what I seen would be similar to this local element1 = elements.allocate("AU3FGEN", "GUM")
although,when I add that and fix "Menusection" to say "MenuSection" it loads and can be used, though it doesn't show in the menu...