Liberty Unleashed
Scripting => Script Help => Topic started by: Njord on July 29, 2012, 05:16:34 pm
-
So I want to get an object from a .IPL file (from single player) and have it in content.xml (LU).
This one is from a .IPL file.
1145, nbbridgerda, -264, 50, 20, 0, 0, 0, 0.100014, -0.100014, -0.707724, 0.707724
How do I place it in content.xml?
<object x="?" y="?" z="?" anglex="?" angley="?" anglez="?" model=? />
-
The model is 1145. The rest is up to you. Where do you need it. Get those coords and add it :)
-
I know the coordinates, I'm stuck with the angles, it seems to be 4 angles values in the .IPL; but there's only 3 in content.xml. So basically the object is there at the correct place but its inclinations are wrong.
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
-
The angles used in the IPL are quaternions. The angles used by LU are vectors. I don't know much else about that.
/me cues for a dev to explain conversion and shiz
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
Well I wanna convert a mod I downloaded for single player which adds a stunt zone. I thought it would be cool to feature it in LU.
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
Well I wanna convert a mod I downloaded for single player which adds a stunt zone. I thought it would be cool to feature it in LU.
Custom objects aren't possible in LU yet, if you are trying to add them from your game's mods...however they will be in 0.1.1.0.
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
Well I wanna convert a mod I downloaded for single player which adds a stunt zone. I thought it would be cool to feature it in LU.
Custom objects aren't possible in LU yet, if you are trying to add them from your game's mods...however they will be in 0.1.1.0.
But this mod uses the default objects, not custom ones.
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
Well I wanna convert a mod I downloaded for single player which adds a stunt zone. I thought it would be cool to feature it in LU.
Custom objects aren't possible in LU yet, if you are trying to add them from your game's mods...however they will be in 0.1.1.0.
But this mod uses the default objects, not custom ones.
You said you were using a mod, though. D:
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
Well I wanna convert a mod I downloaded for single player which adds a stunt zone. I thought it would be cool to feature it in LU.
Custom objects aren't possible in LU yet, if you are trying to add them from your game's mods...however they will be in 0.1.1.0.
But this mod uses the default objects, not custom ones.
You said you were using a mod, though. D:
Yes I am, but it only changes object placement, it doesn't add custom objects.
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
Well I wanna convert a mod I downloaded for single player which adds a stunt zone. I thought it would be cool to feature it in LU.
Custom objects aren't possible in LU yet, if you are trying to add them from your game's mods...however they will be in 0.1.1.0.
But this mod uses the default objects, not custom ones.
You said you were using a mod, though. D:
Yes I am, but it only changes object placement, it doesn't add custom objects.
In that case you would just need to replicate the location of the objects then. I see your confusion now.
Does the file explain what each number is used for? IIRC, some of them are coordinates, but they may be in a different format.
Edit: Although this is in code format, hopefully the math method can give you an example to work from:
http://answers.unity3d.com/questions/22883/can-i-get-a-normalised-vector3-from-a-quaternion.html (http://answers.unity3d.com/questions/22883/can-i-get-a-normalised-vector3-from-a-quaternion.html)
-
Why do you want to use the same coordinates and angles as in the IPL? That just places the same object on the exact same place. So they will either be on the right place and you wont see any difference or they will bugg out like shit.
Question is, What do you wanna do with with the object?
Well I wanna convert a mod I downloaded for single player which adds a stunt zone. I thought it would be cool to feature it in LU.
Custom objects aren't possible in LU yet, if you are trying to add them from your game's mods...however they will be in 0.1.1.0.
But this mod uses the default objects, not custom ones.
You said you were using a mod, though. D:
Yes I am, but it only changes object placement, it doesn't add custom objects.
In that case you would just need to replicate the location of the objects then. I see your confusion now.
Does the file explain what each number is used for? IIRC, some of them are coordinates, but they may be in a different format.
Edit: Although this is in code format, hopefully the math method can give you an example to work from:
[url]http://answers.unity3d.com/questions/22883/can-i-get-a-normalised-vector3-from-a-quaternion.html[/url] ([url]http://answers.unity3d.com/questions/22883/can-i-get-a-normalised-vector3-from-a-quaternion.html[/url])
Nah, the file doesn't explain it, and I can't work that codes out either. :P
-
try to use map editor that shows positions and angles of objects
-
try to use map editor that shows positions and angles of objects
Does it have a converter?
-
converter for what?
And you will need IDs of objects to create them
-
I think he means something that converts the map editor's coordinates to that of what LU understands.
-
I've been trying to figure out a way to do this, but the rotations LU uses are weird.
I'll have a dev look into it and let you know the outcome.