Elitist Jerks
Register
Blogs
Chat
Forums
New Posts


Go Back   Elitist Jerks > Public Discussion > Class Mechanics

Welcome to Elitist Jerks
If this is your first visit, please be sure to check out the FAQ and the forum rules. Users must register to post and new registrations are subject to a one day "mute" period to get acquainted with the community. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack Thread Tools
Old 04/08/07, 9:08 PM   #1 (permalink)
Don Flamenco
 
Tauren Druid
 
Doomhammer
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
 
User is offline.
Reply With Quote
Old 04/08/07, 10:00 PM   #2 (permalink)
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.
 
User is offline.
Reply With Quote
Reply

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 143 07/20/08 11:58 PM
Rogue - Dodge vs. Parry Talents, One Roll Combat Theory, Combat Sword Spec Questions tok3n Class Mechanics 30 04/12/07 2:15 PM
Anub tips for horde? GROGtheNailer The Dung Heap 1 12/22/06 1:17 AM
Combat Sword vs. Combat Daggers Kobal Public Discussion 18 05/26/06 2:02 PM