Data Realms Fan Forums http://45.55.195.193/ |
|
Cortex Command Mod Making Tools [project in development] http://45.55.195.193/viewtopic.php?f=1&t=19992 |
Page 1 of 1 |
Author: | Roast Veg [ Wed Oct 20, 2010 7:26 pm ] |
Post subject: | Cortex Command Mod Making Tools [project in development] |
This is going to be a series of open-source modding tools made by the forum community. Currently consists of a poorly made OP, and a half built processing document. Doing well so far. More to come, I'm sure. As for programing languages I use, VB.net or Processing Java IDE. Tool 1: Leg Wireframe Generator - requested by Lizard "A tool that creates a series of .bmp files with ready drawn wireframes on them, to sprite over. Inputs are: upper leg length, lower leg length, number of frames." <-- This is what I aim to achieve for now. I am struggling to build some user input scenarios and have yet to code the frame output as of yet. Basic code is there, but could use some help rounding the whole thing off. Source code is as follows: 1. Processing: Code: //These are the main variables State is the roatation angle. int upper = 30; int lower = 30; int State = 45; //Everything else you should leave alone unless you know what you're doing. int Xlength = upper + lower + 1; int Yheight; float px, py; void setup() { if (upper >= lower) { Yheight = upper; } else { Yheight = lower; } size(Xlength, Yheight); noFill(); } void draw() { background(255, 0, 255); if (State == 0) { ellipse(0, height, upper * 2, upper * 2); stroke(0); line (0, height - 1, upper, height - 1); line (upper, height - 1, upper + lower, height - 1); stroke(255, 0, 0); } if (State >= 1) { ellipse(0, height, upper * 2, upper * 2); px = cos(radians(0 - State))*upper; py = height + sin(radians(0 - State))*upper; stroke(0); line (0, height -1, px, py); line (px, py, upper + (lower*State/90), height -1); stroke(255, 0, 0); } } 2.Exported Java: Attachment:
File comment: Will not work without processing. Uploaded due to added functionality in raw Java. WFM.txt [1.46 KiB] Downloaded 259 times Rules - to avoid mishaps Any code improvements you suggest must be clearly highlighted. Any tools you have completed or are part way through can be submitted and will be posted here. All programming languages are accepted, but if there is no-one to help you, you should probably switch. Once an application is finished, it shall be uploaded here as a .jar, .exe or some other form of widely usable application. From that moment on the code will be removed and must be requested via PM. No tool has to have a screenshot, but it always helps. Anything in coding stage will have its name in this orange. Fully completed work will remain white. If all goes well, this project should make the whole modding process easier. Go for it. |
Author: | CaveCricket48 [ Sun Oct 24, 2010 2:18 am ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
Processing is a Java IDE. |
Author: | Roast Veg [ Sun Oct 24, 2010 5:45 pm ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
Good point that, better put it in the OP. |
Author: | richy19 [ Tue Dec 21, 2010 9:49 pm ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
I really dont get this, cant you upload the project folder in a zip or something? |
Author: | Roast Veg [ Tue Dec 21, 2010 11:46 pm ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
No, because that would be pointless. All the code you can see there is all the code needed to run this particular program, provided you have the IDE. |
Author: | Mingebag7 [ Wed Dec 22, 2010 3:19 am ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
How can you use this? |
Author: | kiberkiller [ Wed Dec 22, 2010 2:36 pm ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
Roast, It probably would be better if you compile the code because most of us here probably doesn't know how. |
Author: | Roast Veg [ Wed Dec 22, 2010 2:39 pm ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
Not until I get some UI going, because right now it will always do exactly the same thing when you run it. |
Author: | zalo [ Fri Dec 24, 2010 6:37 pm ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
3 things. You should make the lines thicker, remove the circle, and make the angle of the leg mouse controlled. You can do the mouse control by doing something like State = (mouseX/width)*90 or something. Your mouse doesn't show up with a prntscrn or whatever method you're going to use to capture the image, so it's okay. |
Author: | Roast Veg [ Fri Dec 24, 2010 6:50 pm ] |
Post subject: | Re: Cortex Command Mod Making Tools [project in development] |
Thanks for the tips, zalo. I'm a little rusty now, but I'll see if I can get that in there sometime. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |