News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
December 12, 2017, 01:56:24 PM
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 684 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: 2283
  • 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: 2283
  • 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: 16
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

* Calendar

December 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
31

No calendar events were found.

* Recent Topics

[QUESTION] New models of NPCs by Phanjam
[Today at 12:55:58 PM]


the Skills Map creating process by Phanjam
[December 11, 2017, 04:14:18 PM]


Skills Expansion: Bugs Report & Ideas by Sch123
[December 10, 2017, 11:14:45 PM]


FEP+ by Viz
[December 10, 2017, 03:22:38 PM]


"Skills Masteries" Classless Concept by Phanjam
[December 10, 2017, 10:19:07 AM]


UA and Torchfun Combination by Zayn Malik
[December 05, 2017, 01:15:54 PM]


Alchemist Gameplay Feedback by Zayn Malik
[December 04, 2017, 04:53:50 PM]


Character Stats by lolesch
[December 04, 2017, 03:22:13 PM]


Variant Classes Mod Information by Viz
[November 28, 2017, 02:48:18 AM]


Tag Fix by Zayn Malik
[November 17, 2017, 08:12:25 PM]


Another Tag/Hash Tool by Phanjam
[November 17, 2017, 01:05:02 PM]


Torchlight 2 Tag Fixer - TL2TagFixer by Chthon by Chthon
[November 17, 2017, 12:17:36 PM]


Variant Classes Bug Reports by Viz
[November 12, 2017, 04:51:43 AM]


How many treasure can I add after defeating boss? by Zayn Malik
[November 07, 2017, 01:39:11 AM]


Anything you'd like to see changed or added her on TM? by Zayn Malik
[October 30, 2017, 02:15:17 PM]

* Popular Topics