Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » Class Mechanics

 
 
LinkBack Thread Tools
Old 04/08/07, 8:08 PM   #1
Pater
Don Flamenco
 
Tauren Druid
 
Khadgar
Looking for tips/primer on using JRE or other compiler to run combat simulations

Hey - I'm interested in running time-step combat simulations to help me optimize raiding stats of my enh sham. I've seen several examples from other posters of code like this, but I'm not sure about the compiler. Are people just using JRE? If so, I'm not even sure how to open the JRE compiler window on my computer, etc. Does anyone have some intro tips, or links to get started so I can get to coding?


Snippet of code, to give an example of what I'm talking about:
MHSwingcounter = 0;
timer = 10;
while (timer > 0)
{
if (count <1)
{  timer - MHFlurriedSpeed;}
else
{ timer - MHNormalSpeed;}
MHSwingcounter++;
}
return MHSwingCounter;
From [Shaman] Itemizing Enhancement at 70

Offline
Old 04/08/07, 9:00 PM   #2
nihilist
Glass Joe
 
Human Priest
 
Eldre'Thalas
Here's a quick guide:
  1. Download and install Java Standard Edition Developers Kit (JDK, the SE is so you don't end up with the micro or enterprise editions). JRE is the Java Runtime Enviroment, meaning it's what you use to run code, not what you compile it with.

  2. In your Windows PATH system variable place ";Drive:path\to\jdk1.6.0\bin" at the end. Reboot your machine.

  3. Open up your favourite text editor, and write code. You will need to define a class, main method and any other methods you will need to preform your simulation. Save the file with the .java extension.

  4. Open up a command prompt and change to the directory where your file is located. Type "javac <name>.java" to compile and "java <name>" to run.

You can also log your simulation to disk within your code, or simply with "java file > log.txt".

Hope that helps.

Offline
 

Go Back   Elitist Jerks » Public Discussion » Class Mechanics

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Mechanic Primer] - Haste - How it works, and what that means. Anias Class Mechanics 146 04/06/09 10:43 PM
Rogue - Dodge vs. Parry Talents, One Roll Combat Theory, Combat Sword Spec Questions tok3n Class Mechanics 30 04/12/07 1:15 PM
Anub tips for horde? GROGtheNailer The Dung Heap 1 12/22/06 12:17 AM
Combat Sword vs. Combat Daggers Kobal Public Discussion 18 05/26/06 1:02 PM