Author Topic: Help with object placement  (Read 5366 times)

Njord

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
  • God of the seas, wind and fire
    • View Profile
Help with object placement
« on: July 29, 2012, 06: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.
Code: [Select]
1145, nbbridgerda, -264, 50, 20, 0, 0, 0, 0.100014, -0.100014, -0.707724, 0.707724
How do I place it in content.xml?
Code: [Select]
<object x="?" y="?" z="?" anglex="?" angley="?" anglez="?" model=? />
« Last Edit: July 29, 2012, 09:07:22 pm by Njord »
Read up, it's way more important

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Help with object placement
« Reply #1 on: July 29, 2012, 09:53:06 pm »
The model is 1145. The rest is up to you. Where do you need it. Get those coords and add it :)

Njord

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
  • God of the seas, wind and fire
    • View Profile
Re: Help with object placement
« Reply #2 on: July 29, 2012, 10:26:31 pm »
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.
Read up, it's way more important

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Help with object placement
« Reply #3 on: July 30, 2012, 04:18:40 pm »
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?

stormeus

  • No-Lifer
  • Developer
  • Full Member
  • *****
  • Posts: 112
  • Karma: +13/-2
    • View Profile
Re: Help with object placement
« Reply #4 on: July 31, 2012, 09:28:50 pm »
The angles used in the IPL are quaternions. The angles used by LU are vectors. I don't know much else about that.

* stormeus cues for a dev to explain conversion and shiz
Quote
Morphine says:
    them LU devs ranting about how LU doesn't have client pickups
    while us VC:MPers don't have client anything
    ;_;

Stormeus Argo says:
    we have client crashes though
    ohohohohoho

Morphine says:
    LU DOESN'T HAVE THAT

Stormeus Argo says:
    LU - 0
    VC:MP - 1

Njord

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
  • God of the seas, wind and fire
    • View Profile
Re: Help with object placement
« Reply #5 on: August 03, 2012, 07:02:08 pm »
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.
Read up, it's way more important

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Help with object placement
« Reply #6 on: August 03, 2012, 09:27:24 pm »
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.

Njord

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
  • God of the seas, wind and fire
    • View Profile
Re: Help with object placement
« Reply #7 on: August 04, 2012, 12:20:13 am »
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.
Read up, it's way more important

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Help with object placement
« Reply #8 on: August 04, 2012, 01:12:41 am »
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:

Njord

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
  • God of the seas, wind and fire
    • View Profile
Re: Help with object placement
« Reply #9 on: August 04, 2012, 02:09:47 am »
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.
Read up, it's way more important

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Help with object placement
« Reply #10 on: August 04, 2012, 02:16:56 am »
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
« Last Edit: August 04, 2012, 02:22:12 am by SugarD »

Njord

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
  • God of the seas, wind and fire
    • View Profile
Re: Help with object placement
« Reply #11 on: August 04, 2012, 02:47:27 am »
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

Nah, the file doesn't explain it, and I can't work that codes out either. :P
« Last Edit: August 04, 2012, 03:11:17 am by Njord »
Read up, it's way more important

Hatser

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-2
  • Create it by yourself. You're not dumm.
    • View Profile
Re: Help with object placement
« Reply #12 on: August 30, 2012, 11:50:32 am »
try to use map editor that shows positions and angles of objects

Njord

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
  • God of the seas, wind and fire
    • View Profile
Re: Help with object placement
« Reply #13 on: August 30, 2012, 08:06:08 pm »
try to use map editor that shows positions and angles of objects
Does it have a converter?
Read up, it's way more important

Hatser

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-2
  • Create it by yourself. You're not dumm.
    • View Profile
Re: Help with object placement
« Reply #14 on: August 31, 2012, 02:49:48 am »
converter for what?

And you will need IDs of objects to create them

 

© Liberty Unleashed Team.