News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
November 15, 2018, 06:38:49 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: Equipping Weapon *Visual* to Pet?  (Read 279 times)

Offline Phiengley

  • @ A Stygian Sump
  • Common
  • *
  • Posts: 5
  • Country: 00
    • status bored
    • View Profile
    • A Stygian Sump
  • Mood: mood undecided
Equipping Weapon *Visual* to Pet?
« on: November 08, 2018, 07:35:03 PM »
I've been replaying Torchlight 2 recently with (among others) the Xev's Pets mod enabled. The thing that's bothering me is that the Dark Zealot does not have a weapon.

One of the mod's other pets (and the only one, I've since noticed), the ranged Netherim, has a weapon that is not part of its model by default 'equipped', so I opened it up in the Units Data Editor to try and figure out how to replicate that but... I can't find a reference to the weapon model anywhere? I've also tried looking at Monsters (replicating them didn't work), checking whether the TL1 model has the right attachment points (tags? in TL lingo, which it does), checking the .MESH and other files as .XML etc.

What am I missing here? 🤔
Quote
Self-proclaimed Concept Artist
Check out my work on Tumblr, or ArtStation

Offline Anarch16sync

  • The Ripper
  • Developer
  • Legendary
  • *
  • Posts: 546
  • Country: ar
  • Back on track
    • status study
    • View Profile
  • Mood: mood huh
Re: Equipping Weapon *Visual* to Pet?
« Reply #1 on: November 08, 2018, 10:45:59 PM »
Well, I imaging you're refering to the glaive thrower nethering, those have the glaive attached as a particle in their animation definition. If you check the model folder and open the .animation file with a text editor you can see that in the "Bind" animation the glaive is attached as a particle.

This is one of the ways of adding weapons to monsters and pets, specially when the weapon is not something that has an unit file.

To check this in GUTS you need to add a new monster unit to the layout, then change the monster to the Nethering_glaive in the properties tab, and then hit the icon that looks like a wrench & hammer (View External tool) to open the animation editor.

There are basically 4 ways to add weapons to monsters or pets.
1 - Give them the weapon as equipment. This need that you create a unit file for the weapon.
2 - Give them the weapon as an attached unit. This also need that you create the unit file.
3 - Give them the weapons as an attached particle. This need that you create a particle system using the 3d model of the weapon you want. (I think that you can also use a Unit theme to give them the weapon, but I don't remember that being done)
4 - Attach the weapons model directly to the 3d model with a 3d modeling program.

Offline Phiengley

  • @ A Stygian Sump
  • Common
  • *
  • Posts: 5
  • Country: 00
    • status bored
    • View Profile
    • A Stygian Sump
  • Mood: mood undecided
Re: Equipping Weapon *Visual* to Pet?
« Reply #2 on: November 09, 2018, 06:33:03 AM »
Ah, I've found what you're referring to!

Quote
[ANIMATION]
      <STRING>FILE:netherim_ranged.skeleton
      <STRING>NAME:Bind
      <FLOAT>DURATION:0
      [KEY]
         <STRING>NAME:SPAWNPARTICLE
         <FLOAT>FRAME:0
         <STRING>LAYOUT:media\particles\monsters\netherim\glaive.layout
         <STRING>BONE:tag_lefthand
         [BONEOFFSET]
            <FLOAT>X:0
            <FLOAT>Y:0
            <FLOAT>Z:0
         [/BONEOFFSET]
      [/KEY]

I'm going to assume I can copy this into the Zealot's animation file (and making the necessary changes, ofc)? Thank you!

EDIT: Alright! It worked! Now to find out whether .LAYOUT and .DAT/.BINDAT files are interchangeable as far as it's concerned? 🤔

EDIT 2: Okay I don't know what I'm doing. 😑 Changing the path to some other .LAYOUT file breaks it (or I picked a bad file?) I think I'm fundamentally misunderstanding the file types at work here...?
« Last Edit: November 09, 2018, 09:21:15 AM by Phiengley »
Quote
Self-proclaimed Concept Artist
Check out my work on Tumblr, or ArtStation

Offline Anarch16sync

  • The Ripper
  • Developer
  • Legendary
  • *
  • Posts: 546
  • Country: ar
  • Back on track
    • status study
    • View Profile
  • Mood: mood huh
Re: Equipping Weapon *Visual* to Pet?
« Reply #3 on: November 09, 2018, 11:37:58 AM »

EDIT: Alright! It worked! Now to find out whether .LAYOUT and .DAT/.BINDAT files are interchangeable as far as it's concerned? 🤔

EDIT 2: Okay I don't know what I'm doing. 😑 Changing the path to some other .LAYOUT file breaks it (or I picked a bad file?) I think I'm fundamentally misunderstanding the file types at work here...?

.Layout files are a bit confusing because they are using for a lot of different stuff. Particles, spawners, missiles, UI, Levels, etc (basically everything related to visual effects) are all .layout files but you can't change a Particle layout for a UI layout and hope things work. So you must guide yourself with the folder where they are located, also you can load them in GUTS layout editor to preview them.

Then about .dat files, this are related to units (players, monsters, items, interactable props), spawnclasses, skills, affixes, effects, triggerables, quests, and a lot more. Again you canīt change a Monster unit for a Item unit. There are a lot of things unique to each thing a dat file defines.

then any file that starts with bin, like .binlayout or .bindat this are the binary file of the editable text file. If you're working outside GUTS it's always a good practice to delete this binary files so GUTS parse the text files and convert it again to update the changes you made.

Offline Phiengley

  • @ A Stygian Sump
  • Common
  • *
  • Posts: 5
  • Country: 00
    • status bored
    • View Profile
    • A Stygian Sump
  • Mood: mood undecided
Re: Equipping Weapon *Visual* to Pet?
« Reply #4 on: November 09, 2018, 02:20:11 PM »
I had the bright idea to copy and make changes to the Netherim Glaive particle. I... It's showing up on the model, for sure, but that's... not quite how swords're supposed to work...

As an aside I'd gone ahead and shuffled(that is, renamed) animations around in anticipation of the Zealot having a weapon, using the .XML converter and Notepad, such as renaming the Polearm to simply Attack and Rwand to Special_Cast1 (not sure what tags apply to animations honestly) but the Polearm and Rwand animations are... disabled? in GUTS...

It's all quite confusing

EDIT: Alright, I got it.  And I'd forgotten to update the names in the Zealot.ANIMATION file, maybe that's why?

EDIT 2: Updating the .ANIMATION file did the trick. Thanks for pointing me in the right direction, Anarch!
« Last Edit: November 09, 2018, 02:54:00 PM by Phiengley »
Quote
Self-proclaimed Concept Artist
Check out my work on Tumblr, or ArtStation

Offline Vkoslak

  • Developer
  • Rare
  • *
  • Posts: 153
    • View Profile
Re: Equipping Weapon *Visual* to Pet?
« Reply #5 on: November 10, 2018, 01:53:06 AM »
I was having the same issue with a pet I was working on.

I solved it a different way.

I borrowed the "PETBODY_CUSTOM.DAT" from "human pets" mod by kriss_gjeng,  renamed it to be specific to my pet.

Then in my pet DAT file, I added the new container to my pet, and added equipment.

   [EQUIPMENT]
      <STRING>LEFTHAND:SWORD_SCARLET
      <STRING>RIGHTHAND:SWORD_DEMONBLOOD
   [/EQUIPMENT]
   [INVENTORY]
      <STRING>CONTAINER:PetBody
      <STRING>CONTAINER:FIONNA_CUSTOM
      <STRING>CONTAINER:PLAYER_BAG_ARMS
      <STRING>CONTAINER:PLAYER_BAG_CONSUMABLES
      <STRING>CONTAINER:PLAYER_BAG_SPELLS
      <STRING>CONTAINER:Pointer
   [/INVENTORY]


Worked great!

Offline doudley

  • Cosmic Reality Entanglement Ethereal Probability
  • Rare
  • *
  • Posts: 232
  • Country: 00
  • Its personal...
    • status food
    • View Profile
    • Steam Profile
  • Mood: mood rolleyes
Re: Equipping Weapon *Visual* to Pet?
« Reply #6 on: November 10, 2018, 03:26:37 AM »
Lot of issue are involved when applying weapon usage on starting pets.

Hi, I used to mod intensively around pets (starting pets) and pet summons (minions). I know for sure that giving them equippable weapons will lead to 2 game breaking issue:

  • Equipment Comparison Malfunction - If you happen to add LEFTHAND and/or RIGHTHAND slot into your pet's inventory container, mouse-over at your equipped weapons will now compare the pet's and the player's, and mouse-over at unequipped weapons in your inventory will now compare the pet's instead of the player's equipped weapons.
  • Instant Game Crash - Even if you succeed in giving weapons to your pet, that doesn't mean it's safe already. Now, you will need to think about pet fish or transformation potions. Transforming your pet will give ghost abilities and stats that your new pet will acquire from the previous pet, this include skills and inventory containers. Dropping/Equipping a weapon into a unit/model that cannot wield weapons will immediately crash your game. To prevent this, you will need to make an inventory container that doesn't allow AUTOPLACE for the LEFT/RIGHHAND slots. Then you will need to have a complicated pet inventory layout UI (Pet Panel) that can switch equipment slots automatically and it should detect if the current pet is a weapon wielder or not so that non-weapon wielder pets can still be used properly. Then finally, you have to do a quick EXIT GAME then RESUME, so that the pet's data will be refreshed to your pet's current form.

I think, this is the reason why the OP asked for a "Visual" only weapon wield for the pets and I think the best solution here is what Anarch16sync suggested.

Offline Vkoslak

  • Developer
  • Rare
  • *
  • Posts: 153
    • View Profile
Re: Equipping Weapon *Visual* to Pet?
« Reply #7 on: November 10, 2018, 05:39:54 PM »
Thanks for the heads up!  I hadn't considered switching the pet. I'm still concentrating on getting mine looking right.

Offline Phiengley

  • @ A Stygian Sump
  • Common
  • *
  • Posts: 5
  • Country: 00
    • status bored
    • View Profile
    • A Stygian Sump
  • Mood: mood undecided
Re: Equipping Weapon *Visual* to Pet?
« Reply #8 on: November 13, 2018, 10:22:19 AM »
Yeah all things considered the particle approach seems like the safest option, in regards to interacting with other systems at work...?

Anyway because I'm good at using my time responsibly here's the end result, since while I liked my choice of weapon, the colour scheme didn't match any of the Zealot textures. Doesn't really match TL2's texture style but that was to be expected, I guess. Been a while (since I've textured anything, that is)...
Quote
Self-proclaimed Concept Artist
Check out my work on Tumblr, or ArtStation

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2560
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: Equipping Weapon *Visual* to Pet?
« Reply #9 on: November 13, 2018, 01:39:16 PM »
1. Its Really well done and looks great; i salute you!
2. It isnt that far from the TL graphic style imo

I am excited to try out your pet mod (when its ready of course; no rush :P )



Tags:
 

* Quick Search


* Member Information

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Mod Boards Activity

* Who's Online

  • Dot Guests: 11
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Calendar

November 2018
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

Equipping Weapon *Visual* to Pet? by Phanjam
[November 13, 2018, 01:39:16 PM]


Skills Expansion: Bugs Report & Ideas by Sch123
[November 13, 2018, 09:10:36 AM]


Hello! by Phanjam
[November 10, 2018, 03:57:42 AM]


(Solved)Help Editing Vanilla Class (adding / taking out other vanilla Skills) by Lrv
[November 07, 2018, 05:05:55 PM]


[TL2] Ultimate Respec Lite by doudley
[November 04, 2018, 08:17:27 AM]


Torchlight Frontiers announced by Kva3imoda
[November 03, 2018, 11:10:58 PM]


Fate Items by Phanjam
[November 03, 2018, 11:10:17 PM]


FEP+ by Sch123
[November 02, 2018, 09:03:12 AM]


Pet Variants Mod by Sch123
[November 01, 2018, 03:28:30 AM]


Skills on weapons by Sch123
[October 29, 2018, 11:15:59 AM]


Medea Pet to Class by Vkoslak
[October 26, 2018, 07:41:19 PM]


[Tool] Item Unit file maker Script by Anarch16sync
[October 26, 2018, 04:13:27 PM]


Notepad++ Custom Language File (Syntax Highlight) by Lord Nyriox
[October 26, 2018, 12:08:33 AM]


Mod Package and Publish Error by DragonDawn
[October 24, 2018, 02:31:03 PM]


Looking for Modder to Collaborate on Character Design by Exqzr
[October 23, 2018, 08:15:56 AM]

* Popular Topics