Adjusting unit size/dimensions

Everything about mods can be found here.

Moderator: Morax

Adjusting unit size/dimensions

Postby stardust » 07 Aug 2019, 00:33

I know I asked it somewhere on here, but can't find the precise post. So quick and easy, for those savvy with a unit's BP files, because monkeying in the code is dangerously frustrating atm Thought I knew it but nothing I do is having an effect:

What segment of code controls the physical size and footprint of a unit?
User avatar
stardust
Avatar-of-War
 
Posts: 56
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Adjusting unit size/dimensions

Postby Uveso » 07 Aug 2019, 01:33

Unit (model) size:
Code: Select all
UniformScale = 1.00,

Unit hit box:
Code: Select all
SizeX = 7.5,
SizeY = 3.0,
SizeZ = 28,

Build grid box:
Code: Select all
SkirtSizeX = 8,
SkirtSizeZ = 32,
SkirtOffsetX = -2.5,
SkirtOffsetZ = -15,

Unit select markers:
Code: Select all
SelectionSizeX = 4.0,
SelectionSizeZ = 19.0,
SelectionThickness = 0.20,
User avatar
Uveso
Supreme Commander
 
Posts: 1600
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 60 times
Been liked: 253 times
FAF User Name: Uveso

Re: Adjusting unit size/dimensions

Postby DDDX » 07 Aug 2019, 21:31

be careful with UniformScale, setting just 1.3 will give you a 30% increase in size, which is actually pretty massive. It only gives you a visual result.
other stuff serves either to increase the collision box of the unit (if you leave it as is, the enemy will shoot at the unit but miss every shot that does not match the unit's previous size) or for visual purposes. Mess with the numbers and you will quickly learn what does what.

A rule is - if you have increased the mesh size by 30%, you should increase the sizeX,Y and Z by the same 30%, and the other values...well, it really depends on the unit itself.
Check out my 2 maps: "Survival_Mayhem&BO_3d_v1" "Survival_Mayhem&BO_3d_RPG"
as well as my mod: "Survival Mayhem&BO balance"
-- let me know of any bugs or issues regarding those 3.
DDDX
Avatar-of-War
 
Posts: 154
Joined: 21 Mar 2016, 16:13
Has liked: 18 times
Been liked: 13 times
FAF User Name: DDDX

Re: Adjusting unit size/dimensions

Postby stardust » 08 Aug 2019, 04:48

Perfect, thanks guys!
User avatar
stardust
Avatar-of-War
 
Posts: 56
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Adjusting unit size/dimensions

Postby stardust » 10 Aug 2019, 16:21

An update.

I am trying to reduce the size of the Conquest dreadnought for the UEF so it is not quite so much larger than the Summit battleship. Pic attached; I've reduced its uniformScale 30% and adjusted the other values accordingly but the size has not changed at all. Could there be a file somewhere else that is overriding that?
Attachments
shipscale.png
shipscale.png (4.87 MiB) Viewed 459 times
User avatar
stardust
Avatar-of-War
 
Posts: 56
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Adjusting unit size/dimensions

Postby Uveso » 10 Aug 2019, 17:10

UniformScale is the right value.

You can change it alone and the unitmodel will change the size.

If not, look at the game.log and search for errors or post us the full unit blueprint and we take a look.
User avatar
Uveso
Supreme Commander
 
Posts: 1600
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 60 times
Been liked: 253 times
FAF User Name: Uveso

Re: Adjusting unit size/dimensions

Postby DDDX » 13 Aug 2019, 11:18

You should not be editing other people's mods!!!! If you do, your games will always desync with everyone else.
If you want to change it, make your own mod and hook the file so that the dread uses your values while the original mod values remain unchanged.

Besides, a dreadnought should be larger than a battleship. It is, after all, far more powerful.
Check out my 2 maps: "Survival_Mayhem&BO_3d_v1" "Survival_Mayhem&BO_3d_RPG"
as well as my mod: "Survival Mayhem&BO balance"
-- let me know of any bugs or issues regarding those 3.
DDDX
Avatar-of-War
 
Posts: 154
Joined: 21 Mar 2016, 16:13
Has liked: 18 times
Been liked: 13 times
FAF User Name: DDDX


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest