News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
September 21, 2017, 10:28:11 AM
collapse

*
Information

Please contribute to our


Sign up for a forum account at the Front Page. | Remember to Tag your posts.
Having problems logging in to the forums? Go the front page, log out and back in again.

Author Topic: How to change the scale of a weapon in GUTS  (Read 472 times)

Offline RnF

  • Developer
  • Rare
  • *
  • Posts: 234
  • Country: us
    • status idle
    • View Profile
  • Mood: mood smiley
How to change the scale of a weapon in GUTS
« on: April 06, 2017, 12:33:17 AM »
I know this subject has come up a few times over the years.  Not sure I have seen a GUTS solution before so here it is.  This solution does not change the actual mesh file, I believe you would need 3D software for that.  It just creates a .layout file that will override the mesh file of the weapon.


Steps to increase the scale of a specific weapon in GUTS

1. Open Item Editor within GUTS - Find the item/weapon you want to scale

2. At the top left of the item editor, Click on the Magnifying Glass (Mesh Viewer)

3. Under the Properties area (right hand side) find the "Mutators" Options and change Scale X, Scale Y and Scale Z to what you want to resize

4. Save the file to your mod folder. This will create a .layout file that can be attached to the weapon that will replace the mesh file with the resized version.

5. Attach the new .layout file to the item in the Item Editor under the "Attached Layout" area with the media file path... ie MEDIA/MODELS/WEAPONS/AXES/AXE02.LAYOUT

6. Save the weapon. And you are done!

Screen shot of re-sized weapon done in this manner
https://www.screencast.com/t/RReSncqoYleJ
« Last Edit: April 06, 2017, 05:40:05 AM by RnF »

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2200
  • Country: ph
  • previous avatar was too serious lol!
    • status ready
    • View Profile
  • Mood: mood angel
Re: How to change the scale of a weapon in GUTS
« Reply #1 on: April 06, 2017, 01:27:35 AM »
Thanks so much again RnF (I saw this post of your's over on forums.runicgames too ;) )!

So in effect, the .layout uses the mesh as a particle? That is so so cool!



Offline RnF

  • Developer
  • Rare
  • *
  • Posts: 234
  • Country: us
    • status idle
    • View Profile
  • Mood: mood smiley
Re: How to change the scale of a weapon in GUTS
« Reply #2 on: April 06, 2017, 01:59:53 AM »
Thanks so much again RnF (I saw this post of your's over on forums.runicgames too ;) )!

So in effect, the .layout uses the mesh as a particle? That is so so cool!

It is exactly like that!  I will elaborate tomorrow when I have more time.
It doesn't seem to quite be like that.  If I remove the resource files, the weapon is invisible.  With an attached particle, the particle would show up. 

This appears to only work if the weapon is being scaled to be larger, I am trying to scale the weapon down, and it wont scale any smaller than the original mesh file. 


Creating a particle instead actually might be the way to go, I will play around with both and see what I can come up with.
« Last Edit: April 06, 2017, 03:53:21 AM by RnF »

Offline TwinkleToes

  • Developer
  • Unique
  • *
  • Posts: 483
  • Country: 00
    • status idle
    • View Profile
  • Mood: mood smiley
Re: How to change the scale of a weapon in GUTS
« Reply #3 on: April 06, 2017, 02:18:40 AM »
you can do it very simply through the unit editor lol
it has a weapon scale and even a shield scale option


Offline RnF

  • Developer
  • Rare
  • *
  • Posts: 234
  • Country: us
    • status idle
    • View Profile
  • Mood: mood smiley
Re: How to change the scale of a weapon in GUTS
« Reply #4 on: April 06, 2017, 03:13:53 AM »
you can do it very simply through the unit editor lol
it has a weapon scale and even a shield scale option

Are you referring to the Unit Player Editor?  That would scale every weapon.  As far as I can tell, those scale options do not exist in the Item Editor to scale one specific item.

If you use

<FLOAT>WEAPON_SCALE

or

<FLOAT>SCALE

The item will scale properly when it is on the ground, but the moment you equip it, it goes back to the original size.



Offline TwinkleToes

  • Developer
  • Unique
  • *
  • Posts: 483
  • Country: 00
    • status idle
    • View Profile
  • Mood: mood smiley
Re: How to change the scale of a weapon in GUTS
« Reply #5 on: April 06, 2017, 04:08:34 AM »
yea its in the unit editor
Spoiler
it will make anything that unit is holding scale up, so its not as flexible as editing the actual weapon itself.

Offline RnF

  • Developer
  • Rare
  • *
  • Posts: 234
  • Country: us
    • status idle
    • View Profile
  • Mood: mood smiley
Re: How to change the scale of a weapon in GUTS
« Reply #6 on: April 06, 2017, 05:43:24 AM »
yea its in the unit editor
Spoiler
it will make anything that unit is holding scale up, so its not as flexible as editing the actual weapon itself.

I wasn't very clear on what I was referring too,  I was hoping it was that easy.  Would have saved me a lot of work!

Offline TwinkleToes

  • Developer
  • Unique
  • *
  • Posts: 483
  • Country: 00
    • status idle
    • View Profile
  • Mood: mood smiley
Re: How to change the scale of a weapon in GUTS
« Reply #7 on: April 06, 2017, 06:56:57 AM »
yea, your trying to make the actual weapon bigger not what the unit holds bigger lol
but the easiest method to have big weapons is through the unit editor,

the particle method will probably work
or you could give the weapon a unit theme instead

Offline doudley

  • Cosmic Reality Entanglement Ethereal Probability
  • Rare
  • *
  • Posts: 142
  • Country: 00
  • Its personal...
    • status food
    • View Profile
    • Steam Profile
  • Mood: mood rolleyes
Re: How to change the scale of a weapon in GUTS
« Reply #8 on: April 06, 2017, 08:53:44 AM »
Steps to increase the scale of a specific weapon in GUTS
Would this technique be able to adjust the hit range of the modified weapon based on its size?

Btw, great tut! Adding visual aides would be perfect for those who happen to just stroll by our forums. ;)

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2200
  • Country: ph
  • previous avatar was too serious lol!
    • status ready
    • View Profile
  • Mood: mood angel
Re: How to change the scale of a weapon in GUTS
« Reply #9 on: April 06, 2017, 10:42:20 AM »
Would this technique be able to adjust the hit range of the modified weapon based on its size?

I think a weapon's hit range is set through its base unit.DAT file.

From BASE_2HAXE.DAT
<FLOAT>RANGE:0.8

From BASE_AXE.DAT
<FLOAT>RANGE:0.6

So, unfortunately, scaling a weapon via any method wouldn't increase its base range value :(

But if the damage was from a skill you can make the damage shape any range you want  :o ! hhmmm, I am now thinking...

Dual Wielding 2-Handers Skill!

A real skill, not just making big 1-hander units using 2-hander meshes!



Offline RnF

  • Developer
  • Rare
  • *
  • Posts: 234
  • Country: us
    • status idle
    • View Profile
  • Mood: mood smiley
Re: How to change the scale of a weapon in GUTS
« Reply #10 on: April 06, 2017, 02:08:36 PM »
Steps to increase the scale of a specific weapon in GUTS
Would this technique be able to adjust the hit range of the modified weapon based on its size?

Btw, great tut! Adding visual aides would be perfect for those who happen to just stroll by our forums. ;)

This would not change the range of the item, that is done like Phanjam said, but it is pretty easy to set via the item editor.  If it's a bow, rifle or some other ranged item, the range would have to be changed in the Particle Missile since it has a set range that will override the weapons.

I will see what I can do about that tutorial.  Still exploring a few things, but it will get done.

Offline doudley

  • Cosmic Reality Entanglement Ethereal Probability
  • Rare
  • *
  • Posts: 142
  • Country: 00
  • Its personal...
    • status food
    • View Profile
    • Steam Profile
  • Mood: mood rolleyes
Re: How to change the scale of a weapon in GUTS
« Reply #11 on: April 06, 2017, 05:58:49 PM »
Thank you for the explanation. :)

I asked because, I used to hack games and sometimes by changing the size of a model doesn't make the hit range/radius gets changed along with it. And sometimes you can grasp on a single parameter that will enable you to change both the size of the model and its hit radius.

Tags:
 

* Quick Search


* Member Information

 
 
Welcome, Guest. Please login or register.

* Mod Boards Activity

* Who's Online

  • Dot Guests: 7
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

* Calendar

September 2017
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 [21] 22 23
24 25 26 27 28 29 30

No calendar events were found.

* Recent Topics

Some Bugs Report and Request Idea by Sch123
[September 18, 2017, 01:07:29 PM]


Triggerable annoyance by Viz
[September 18, 2017, 02:38:39 AM]


TIDBI.RU Build Calcularor Support For Custom Classes by Phanjam
[September 17, 2017, 10:37:37 PM]


Skills Expansion: Bugs Report & Ideas by Sch123
[September 16, 2017, 05:18:25 PM]


Anything you'd like to see changed or added her on TM? by Phanjam
[September 16, 2017, 03:41:32 AM]


Quick Skill Group question by Phanjam
[September 16, 2017, 03:18:17 AM]


Attribute / player stats question by Phanjam
[September 14, 2017, 10:03:56 AM]


Character Stats by lolesch
[September 14, 2017, 02:30:40 AM]


Wardrobe Mod Progress, Issues, Updates by Phanjam
[September 13, 2017, 11:13:30 AM]


Merge Requests: Exclusive to doudley's mods by Sch123
[September 13, 2017, 06:34:41 AM]


Character Progression Concept by Phanjam
[September 10, 2017, 10:57:08 AM]


1st Class Creation - Lightbringer by Rhythmier
[September 09, 2017, 01:40:31 AM]


Vast Improvement Project by Phanjam
[September 08, 2017, 11:27:03 PM]


hard code? add/edit Effects by Phanjam
[September 08, 2017, 11:25:13 PM]


MORE GIBS! by Phanjam
[September 08, 2017, 01:19:42 PM]

* Popular Topics