Changing Unit Placement

Post here if you want to help developing something for FAF.

Changing Unit Placement

Postby speed2 » 12 Mar 2015, 13:16

Hello, Ive started using big walls from campaign on my maps by putting them into cliffs, example:

Image

Problem that I have with that is that not every wall can be placed as Id wanted it, some are just floating in air. I also found out why it is. For example this wall:

Image

it cant be placed excatly in the corner cause it would be floating, from what Ive seen it depends where icon of the wall is, in this case its in wrong corner of the wall (it is in bottom right, but should be in bottom left). When walls is spawned at the beginning of the game, the main part (where the icon is and center of it) is in the cliff so its just floating

Image

and this is how game tooks its placement, its off center.

Image

Also hitbox of wall is taken from that place

Image

I already know how to change hitbox (that is what Im gonna do) but my question is how can I move center of the wall so it can be placed in cliff. That will also fix hitboxes with little adjusts to size of it.

I was told that hitboxes can be changed in this window, but I wasnt able to find if any of these lines can change unit placement.

Image

So does everyone know what I need to change to achieve it?
Thanks for help.
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: Changing Unit Placement

Postby The Mak » 12 Mar 2015, 14:58

I have never had any luck changing the hitbox center within the *.bp file. Whatever values I placed never seemed to move it. I always had to load the model into a 3D modeling program and move the hitbox in there.

I have a relevant post over at GPG forums; when the forum is back up I will post a link to it.
User avatar
The Mak
Contributor
 
Posts: 342
Joined: 03 Mar 2012, 21:09
Location: New York, NY, USA
Has liked: 5 times
Been liked: 39 times
FAF User Name: The_Mak

Re: Changing Unit Placement

Postby Sheeo » 12 Mar 2015, 15:19

You would have to modify the mesh to do that.

As for the hitbox, it can be offset using the relevant offset{x,y,z}-values.
Support FAF on patreon: https://www.patreon.com/faf?ty=h

Peek at our continued development on github: https://github.com/FAForever
Sheeo
Councillor - Administrative
 
Posts: 1038
Joined: 17 Dec 2013, 18:57
Has liked: 109 times
Been liked: 233 times
FAF User Name: Sheeo

Re: Changing Unit Placement

Postby lextoc » 12 Mar 2015, 16:21

The walls are pretty and all but I really had the icons when you zoom out :(
I'm watching you!
User avatar
lextoc
Supreme Commander
 
Posts: 1057
Joined: 17 Mar 2013, 18:08
Has liked: 287 times
Been liked: 227 times
FAF User Name: lextoc

Re: Changing Unit Placement

Postby speed2 » 12 Mar 2015, 16:41

lextoc wrote:The walls are pretty and all but I really had the icons when you zoom out :(

Im changing them to normal small wall icon instead of generic civilian building, looks like this:

Before:

Image

After:

Image
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: Changing Unit Placement

Postby speed2 » 13 Mar 2015, 12:53

Sheeo wrote:You would have to modify the mesh to do that.

As for the hitbox, it can be offset using the relevant offset{x,y,z}-values.


What does it take to modify the mesh? Do you know how to do that? And if so, could you do me some little guide how to do it for one so I can do the rest, or am I asking too much? :D
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: Changing Unit Placement

Postby Sheeo » 13 Mar 2015, 13:45

speed2 wrote:
Sheeo wrote:You would have to modify the mesh to do that.

As for the hitbox, it can be offset using the relevant offset{x,y,z}-values.


What does it take to modify the mesh? Do you know how to do that? And if so, could you do me some little guide how to do it for one so I can do the rest, or am I asking too much? :D


It takes modelling software, such as 3ds max/maya, and an importer/exporter from moho's model format for said software.

Personally I have not worked with it, but there are multiple people around in the community that have -- I cannot guide you specifically though :)
Support FAF on patreon: https://www.patreon.com/faf?ty=h

Peek at our continued development on github: https://github.com/FAForever
Sheeo
Councillor - Administrative
 
Posts: 1038
Joined: 17 Dec 2013, 18:57
Has liked: 109 times
Been liked: 233 times
FAF User Name: Sheeo

Re: Changing Unit Placement

Postby speed2 » 13 Mar 2015, 14:06

Oh shit :D I need to find for that someone like this:

User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2


Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest