[RELEASE] Massive Format Information

This forum is for main questions (format files, STB / STL and so on).

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Forum rules
Client Editing is a delicate subject. osRose and osiRose will not support or use any Client Editing tool or results as a standard. So you are free to experiment, test, and develop there on Client Editing, but at your own risk :)

Re: [RELEASE] Massive Format Information

Postby ExJam on Sun May 11, 2008 12:26 pm

Drakia wrote:And MaTTx, is there a reason you're laughing at me?


Because he thinks he is better than everyone else, i don't see him contributing in any way to the community, all i have seen from him is insults towards people who need help.
ExJam
Pomic
Pomic
 
Posts: 140
Joined: Sun Jan 27, 2008 12:14 pm

Re: [RELEASE] Massive Format Information

Postby Drakia on Sun May 11, 2008 12:29 pm

Well, seeing as how I was making random guesses at how to get a proper angle out of a random floating point number, I think I did pretty well in guessing what I did, since most NPCs seem to be pointing in the right direction. Are you sure that that is the function they use? Cause I can't seem to make it work :/
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: [RELEASE] Massive Format Information

Postby MaTTx on Sun May 11, 2008 12:29 pm

~
Last edited by MaTTx on Sun May 11, 2008 3:35 pm, edited 3 times in total.
MaTTx
Jelly Bean
Jelly Bean
 
Posts: 19
Joined: Thu Feb 21, 2008 2:23 pm

Re: [RELEASE] Massive Format Information

Postby ExJam on Sun May 11, 2008 12:32 pm

Drakia wrote:Well, seeing as how I was making random guesses at how to get a proper angle out of a random floating point number, I think I did pretty well in guessing what I did, since most NPCs seem to be pointing in the right direction. Are you sure that that is the function they use? Cause I can't seem to make it work :/


Yes, if you are attempting to find the value sent in the npc spawn packet,
NpcQuaterToRot(quaternion_w, quaternion_x, quaternion_y, quaternion_z);

MaTTx wrote:
ExJam wrote: i don't see him contributing in any way to the community

Why would I?


Because that is what this forum is for, to share information and to help others, not to insult them.
ExJam
Pomic
Pomic
 
Posts: 140
Joined: Sun Jan 27, 2008 12:14 pm

Re: [RELEASE] Massive Format Information

Postby Drakia on Sun May 11, 2008 12:34 pm

What I'm trying to find is the value to put into the list_npcs table based on what is in the IFO file. Essentially I'm making a script to auto-populate the list_npcs table.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: [RELEASE] Massive Format Information

Postby ExJam on Sun May 11, 2008 12:38 pm

Drakia wrote:What I'm trying to find is the value to put into the list_npcs table based on what is in the IFO file. Essentially I'm making a script to auto-populate the list_npcs table.


Well i am not familiar with osrose, but if that value is what gets sent in the packet, then my code is 100% correct, i have used it in my server which loads directly from the IFO files, and the official server uses the same code.
ExJam
Pomic
Pomic
 
Posts: 140
Joined: Sun Jan 27, 2008 12:14 pm

Re: [RELEASE] Massive Format Information

Postby Brett19 on Sun May 11, 2008 1:58 pm

I'd like to point out that more then likely, the only reason matt isn't helping, but rather insulting everyone is that he is jealous that you have more knowledge about the formats then him, or at least, have got it working and he hasn't yet. Also, nice try trying to make yourself sound more knowledgeable then us by saying some formats are wrong, that is 100% false, I have an application that compares our format files against all files inside of the rose folder, and it detects discrepancies on 1% of files, mainly because QSD and AIP files are missing opcodes. Nice try though.

Cheers, Brett
Brett19
Smoulie
Smoulie
 
Posts: 59
Joined: Sun Dec 30, 2007 2:38 am
Location: Canada

Re: [RELEASE] Massive Format Information

Postby Drakia on Sun May 11, 2008 2:16 pm

I'm still having no luck with that function, here's a quick C++ prog I threw together to test it.

#include <iostream>
#include <cmath>
using namespace std;

  1. float NpcQuaterToRot(float qw, float qx, float qy, float qz){
  2.     float qw2 = qw*qw;
  3.     float qx2 = qx*qx;
  4.     float qy2 = qy*qy;
  5.     float qz2 = qz*qz;
  6.     float yaw = atan2(qw*qz + qx*qy, qy2-qx2-qz2+qw2);
  7.     return yaw * 57.29578f;
  8. }
  9.  
  10. int main() {
  11.   float w = 0;
  12.   float x = 0;
  13.   float y = 0.6087613;
  14.   float z = -0.7933534;
  15.   float Dir = NpcQuaterToRot(w, x, y, z);
  16.   cout << "Dir: " << Dir << endl;
  17. }


The NPC is 1255, [Sikuku Warrior] Yak. The output I get is

The only numbers I get are 180 and 0. I'm using the IFO Editor by Arnold to get the w/x/y/z from the IFO files.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: [RELEASE] Massive Format Information

Postby Brett19 on Sun May 11, 2008 2:19 pm

MaTTx wrote:I'm sorry everyone, the truth is that I really don't know that much about ROSE and just use this forum to try and expand my e-penis. I apologize for being such a dick.

MaTTx


Thanks for admitting it.
Brett19
Smoulie
Smoulie
 
Posts: 59
Joined: Sun Dec 30, 2007 2:38 am
Location: Canada

Re: [RELEASE] Massive Format Information

Postby MaTTx on Sun May 11, 2008 3:26 pm

~
MaTTx
Jelly Bean
Jelly Bean
 
Posts: 19
Joined: Thu Feb 21, 2008 2:23 pm

PreviousNext

Return to Client Editing Question Zone

Who is online

Users browsing this forum: No registered users and 5 guests