Jump to content

Vriff

Members
  • Posts

    292
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Vriff

  1. Looks like starwarsknights.com is down? Anyone know if it's for good?
  2. You'll have SS's sleheyron sometime lol.
  3. Well glad I could help.
  4. Sorry, I was in a rush earlier and made quite a few nasty mistakes in that. This should work when transcribed into perl: If (YOrientation < 0) degrees = 180 - arcsin(YOrientation); If (YOrientation < 0) && If (XOrientation > 0) degrees = 360 + arcsin(YOrientation);
  5. There's a way to do this, It's hard to differentiate between quads sometime. For example.. 30 degrees and 150 degees can't be told apart by their sin values. sin(30) = .5 sin(150) = .5 so we have to examine their cosine values. cos(30) = 0.866 cos(150) = -0.866 Therefore we can tell them apart by their cosine inverse values. arccos(0.866) = 30 arccos( -0.866) = 150 What we can use the sin value for is to differentiate quadrants using a comparison operator. if YOrientation < 0 then the degree is more than 180, if the XOrientation is also less than 0 then the degree is less than 270. Some psuedo code would be like.. float XOrientation; float YOrientation; float degrees; degrees = (arccos(XOrientation) * Pi/180); If (YOrientation < 0) degrees = degrees + 90; If (XOrientation > 0) degrees = degrees + 90; For reference, the unit circle:
  6. What do you need those for? Reading in from a GIT file to see the orientation in degrees? (This will be my last post of the night, I'll pick up from here tomorrow).
  7. How are you storing this number? you should convert say 270 degrees (by means of 270 * pi/180) to a float(or whatever the equivalent is in perl) representing 4.71238898 radians, then execute sin and cos on that float value. pseudocode: user_input_degrees = 205; (example value) float radians = user_input_degrees * (pi/180); x = cos(radians); y = sin (radians);
  8. Okay, got that. How exactly is creature orientation stored in the GIT file? Say, a creature is at a 90 degree angle, how is that represented is what I'm maybe missing or not understanding clearly?
  9. Gotcha, so this is where I am confused. So are you replicating this behavior inside of your program or is your program supposed to set the creature's rotation to a radian to then be read by the game with this behavior?
  10. So what exactly does the game read in to figure the rotation of creatures?
  11. Then 1 radian equals pi of what? 1 radian = 57.29 degrees, 1 π radian = 180 degrees. If your user wants to set a rotation of 180 degrees, then to calculate the sin/cos the radian value perl needs is 3.14.
  12. Maybe it's a typo, but that is wrong. if cos() returns a value <= 0 && >= -1 and sin() returns a value <= 1 && >= 0 then angle >= 90 && <= 180. Likewise, if.. cos() returns a value >= -1 && <= 0 and sin() returns a value <= 0 && >= -1 then angle >= 180 && <= 270. and cos() returns a value >= 0 && <= 1 and sin() returns a value <= -1 && >= 0 then angle >= 270 && <= 360/0. If your facing is 180 degrees. cos should return -1, and likewise sin should return 0. (-1,0) = 180 degrees or pi radians. It seems your understanding of radians may be a little skewed. 1 radian does not equal pi. pi of what? You can't convert a unit into a unitless number. 3.14159265 radians = 180 degrees or one half turn to the left. Note: If you're setting that integer to 180, then you are setting it to 180 radians, not 180 degrees. That is 28 full turns, then a partial turn of .6478898. If your user is wanting to set an orientation of 180 degrees then you should do something along the lines of: int facing = GetFacing(oPC); float radianV = (oPC * (pi/180));
  13. Proxies, VPNs, etc there are a lot of ways around this.
  14. Vriff

    K2R-V

    Several others have started up projects similar to this while you've been away, perhaps it would be worthwhile to pursue a partnership? I know SiC has been going through and not only improving the textures, but also fixing broken spots. Good luck either way though, and I look forward to seeing it finished.
  15. Revan Returns
  16. I love PHPBB and prefer it over IP.board.
  17. Infernixx is literally, and I mean literally the worst poster on the SWTOR forums, but the "theory" (by theory I mean datamined since the game launched) is correct. The next Forged Alliances flashpoint will take place on Rakata Prime/Lehon. Revan is gathering allies, for what? Still unknown.
  18. He was never a raid boss, and I've already explained that in the previous thread. You'll be happy to know, SH, that they're super nerfing Makeb so you'll be able to breeze through it in no time.
  19. The prequels.
  20. and I think you'll see in August that I was right about Revan also! I haven't played TOR more than a couple hours a month since around last Nov, this may interest me enough to come back.
  21. AS of 2.9 it will only be a flashpoint, it may be more in the future, sure. I'm predicting the 4th flashpoint in the series will be Lehon/Rakata Prime/Unknown World. By the way, SH, convinced my post that's locked is correct or do we have to wait till 2.9 releases :3
  22. Manaan Flashpoint pretty much confirmed
  23. http://www.swtor.com/blog/kotor-manaan Things are shaping up.
  24. Hmm, kept just flashing me back to the same page without dling anything, and the kotortool link showed as not found. Maybe it's firefox? If that's no trouble for you, I would appreciate it. Otherwise I'll try it tomorrow on my desktop.
  25. I want to start modding, but I do not know what tools to download. Most of the ones listed on starwarsknights.com are dead links. How should I get started, where can I get these tools?
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.