View unanswered posts | View active topics It is currently Thu Jan 02, 2025 6:50 pm



Reply to topic  [ 10 posts ] 
 Cortex Command Mod Making Tools [project in development] 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post 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 258 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.


Last edited by Roast Veg on Sun Oct 24, 2010 5:46 pm, edited 1 time in total.



Wed Oct 20, 2010 7:26 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Cortex Command Mod Making Tools [project in development]
Processing is a Java IDE.


Sun Oct 24, 2010 2:18 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Cortex Command Mod Making Tools [project in development]
Good point that, better put it in the OP.


Sun Oct 24, 2010 5:45 pm
Profile

Joined: Tue Dec 21, 2010 9:42 pm
Posts: 1
Reply with quote
Post 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?


Tue Dec 21, 2010 9:49 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post 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.


Tue Dec 21, 2010 11:46 pm
Profile
User avatar

Joined: Thu Jul 08, 2010 10:24 pm
Posts: 185
Location: Big Applesauce
Reply with quote
Post Re: Cortex Command Mod Making Tools [project in development]
How can you use this?


Wed Dec 22, 2010 3:19 am
Profile
User avatar

Joined: Fri Aug 22, 2008 6:08 pm
Posts: 170
Reply with quote
Post 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.


Wed Dec 22, 2010 2:36 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post 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.


Wed Dec 22, 2010 2:39 pm
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post 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.


Fri Dec 24, 2010 6:37 pm
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post 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.


Fri Dec 24, 2010 6:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.059s | 14 Queries | GZIP : Off ]