Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Started modding areas, but have some questions

Page: 1 of 1
 ForceMasterYoda
04-11-2004, 3:15 AM
#1
okay, im new to modding so i have some questions.

1. i am trying to place characters under the creature list but i don't no what XOrientation or YOrientation is. WHat is it and how can i find out what it is?

2. in accordance to placeables, i don't know how to find the bearing of an object.

I need to know these two things. Please Help!!!!!!!
 tk102
04-11-2004, 3:26 AM
#2
Hello,

Someone with more experience in this can correct me if I'm wrong--

I'm used to the terms yaw, pitch, and roll and I believe XOrientation is yaw, that is, rotation around the Z-axis in degrees. Bearing is the same thing. Try values between -180 to +180 in these field and see which way the creature or object ends up facing.
 ForceMasterYoda
04-11-2004, 3:44 AM
#3
thanks, ill try that.
 ForceMasterYoda
04-11-2004, 4:17 AM
#4
argh!! it didn't work, i keep trying to place characters, but when i test them, theyaren't there, i put in the x y and z coordinates, whats up with that?
 Fred Tetra
04-11-2004, 4:31 AM
#5
Originally posted by ForceMasterYoda
okay, im new to modding so i have some questions.

1. i am trying to place characters under the creature list but i don't no what XOrientation or YOrientation is. WHat is it and how can i find out what it is?

2. in accordance to placeables, i don't know how to find the bearing of an object.

I need to know these two things. Please Help!!!!!!!


1) XOrientation and YOrientation are the X and Y components of a unit vector that indicates the X-Y orientation of the object

2) The bearing is expressed in radians, just like in trigonometry. Its value goes from -pi -> 0 -> +pi
 ForceMasterYoda
04-11-2004, 4:40 AM
#6
i still don't know why the things don't place, are the things i am placeing too big and up against a wall to be there?
 shosey
04-11-2004, 4:47 AM
#7
when placing new items and characters make sure your user-defined struct has the same type number as the original file you are modifying.

in my case I found that the creature list struct number is 0x00000004

and the placeable list is 0x00000009

Hope that helps out.

my stuff wasn't placing either until I realized this one little step
 tk102
04-11-2004, 7:03 AM
#8
That's right shosey -- that stumped me for a bit too.

Thanks Fred -- I found that too; when all else fails read the documentation (http://nwn.bioware.com/developers).
 ForceMasterYoda
04-11-2004, 7:45 AM
#9
that worked, *duh* now all the stuff i put there is there. thanks
 Fred Tetra
04-11-2004, 5:47 PM
#10
Just a follow-up on bearings; I don't have my code in front of me, but I can tell you that there are two different uses of bearing, depending on the item type. For the first, "0" is the positive X axis and for the other it is the positive Y axis ("North").

Just thought you'd like to know.
Page: 1 of 1