Torchmodders
Mod Projects => Mod Showcase => Topic started by: Stef on October 05, 2015, 02:34:04 pm
-
(http://i.imgur.com/Sp8EofE.png)
Steam Download : http://steamcommunity.com/sharedfiles/filedetails/?id=529811365
This mod will is based on an old Pokemon Pet mod I made back in Torchlight 1
(Video of a dude playing the old TL1 version) https://www.youtube.com/watch?v=SwlfdK8iLdA
I've gotten better with modeling programs and texturing since then (:
I was suggested by a steam user named Anarch16Sync to check out this forum to help enhance my Torchlight 2 modding since this is my first mod. I'm glance threw some of the post here to see if I can figure out how to add passive spells to these Pokemon, I don't want to annoy anyone if there's an obvious answer lol. still may have a few questions though. Thanks ahead of time!
-----------------------------------
Pokemon Pets Mod: Adds New Pokemon Starter Pets into Torchlight2
- My first TL2 mod, be gentle <3 :)
- Only Arcanine at the moment, more soon.
- Figuring out Skills, Auras, Passives, Spells, etc.
- Want to make a vendor that sales Poke' Balls
Thanks for trying it out, more soon, please give me feedback ^_^
-
Now for the questions :-X
- What skills are pets able to use in there .Dat file? I've figured out quickly skills don't work the same as they did in TL1, or they are just slightly different and I'm over thinking it? For sample I gave Arcanine this skill from the Basilisk, but it only triggers every once in awhile.
[SKILL]
<STRING>NAME:BASILISKFIREBREATH
<INTEGER>LEVEL_REQUIRED:-1
<INTEGER>CHANCE:100
[/SKILL]
So in short I'm wondering if there's a way to basically have pets use skills already in game, and how do I know which ones will actually work for pets consistently?
-
Well, actually your set up for the skill in the pet is right, with 100 chance cast it should alwasy cast it. But, that skill has a cooldown of 6000 ms, 6 seconds.
So Arcanaine can only cast it every 6 seconds, to check this you should look in the skill editor for the BASILISKFIREBREATH skill.
The pets can usually use all the skills a normal monster can use, but you should check the skill requirements (weapons, special animations or other things), and the best way to handle this is to copy the skill you want, edit it a bit for the pet (lower damage, lower cooldown, or whatever you need), and give the pet the new skill you create, this also avoids the issue if other mod edited that skill.
Edit: Also, Welcome to Torchmodders, nice to have you around :D
Edit2: Corrected my error in the time :-[
-
Well, actually your set up for the skill in the pet is right, with 100 chance cast it should alwasy cast it. But, that skill has a cooldown of 6000 ms, 1 minute.
So Arcanaine can only cast it every 1 minute...
OOOOOHHH , damnit I knew it was something simple xD
check the skill requirements (weapons, special animations or other things), and the best way to handle this is to copy the skill you want, edit it a bit for the pet (lower damage, lower cooldown, or whatever you need), and give the pet the new skill you create, this also avoids the issue if other mod edited that skill.
Good idea, I'll make a new skill files
Edit: Also, Welcome to Torchmodders, nice to have you around :D
Thank you so much Anarch16sync <3
-
Hi Stef welcome to Torchmodders! I think your mod is great :) !
We're always willing to help, just be patient bcos sometimes everyone is busy with RL. Also look through our wiki for tutorials - i know thers one in there about auras ;)
-
Hi Stef welcome to Torchmodders! I think your mod is great :) !
We're always willing to help, just be patient bcos sometimes everyone is busy with RL. Also look through our wiki for tutorials - i know thers one in there about auras ;)
Thank you, I'll check that out too :)
-
Uh... 6000ms is 6sec. Did you mean 60000ms?
-
Uh... 6000ms is 6sec. Did you mean 60000ms?
:o I totally screw that one, yeah it's actually 6 seconds...
-
All good Anarch16sync (:
I'm still having a hard time trying to get it to trigger off normal skills though :-[ It seems like it want to do it but then it stops half way, like it's about to warmup/sneeze a fireball but it stops xD
https://www.youtube.com/watch?v=WBOfTLiC4ZU&feature=youtu.be
This happens with every skill it seems
Here's the code-lingo
The "Pet.DAT"
[UNIT]
<STRING>BASEFILE:media/units/monsters/petbase.dat
<STRING>UNITTYPE:STARTING PET
<STRING>NAME:TL2_ACRCANINE
<TRANSLATE>DISPLAYNAME:Arcanine
<STRING>RESOURCEDIRECTORY:media\models\Pets\TL2_ACRCANINE
<STRING>MESHFILE:TL2_ACRCANINE
<STRING>ICON:TL2_ACRCANINEicon
<STRING>ICONLIT:TL2_ACRCANINEiconhover
<STRING>ICONSELECTED:TL2_ACRCANINEiconselected
<STRING>ARMOR_GRAPH:Armor_Minion_byLevel
<STRING>DAMAGE_GRAPH:Damage_Minion_byLevel
<STRING>HEALTH_GRAPH:Health_Minion_byLevel
<FLOAT>ATTACK_RANGE:3
<BOOL>NO_UNARMED_ATTACKS:true
<FLOAT>MINHP:165
<FLOAT>MAXHP:165
<INTEGER>ARMOR_PHYSICAL:100
<INTEGER>ARMOR:100
<INTEGER>ARMOR_FIRE:300
<INTEGER>ARMOR_ICE:30
<INTEGER>ARMOR_ELECTRIC:75
<INTEGER>ARMOR_POISON:75
<STRING>AITYPE:NORMAL
<INTEGER>MINDAMAGE:63
<INTEGER>MAXDAMAGE:83
<FLOAT>SIGHT_RADIUS:30
<FLOAT>WALKINGSPEED:1.3
<FLOAT>RUNNINGSPEED:6.2
<FLOAT>ATTACKSPEED:100
<FLOAT>REACH_BONUS:2
<INTEGER>RARITY:0
<FLOAT>SCALE:0.2
<BOOL>CANMATCHSPEED:true
<STRING>STRIKE_SOUND:DogBite
<STRING>IDLE_SOUND:PETWOLFIDLE
<STRING>ROAR_SOUND:PETWOLFATTACK
<STRING>MISS_SOUND:Miss
<STRING>STEP_SOUND:FootstepDog
<STRING>PARTICLE_GETHIT:media/particles/monsters/player/hit.layout
<BOOL>INVINCIBLE:true
<STRING>UNIT_GUID:-2801343070877719951
<FLOAT>DAMAGE_REACT_RADIUS:20
<STRING>PARTICLE_TELEPORT:MEDIA/PARTICLES/EVENTS/PLAYERTELEPORT.LAYOUT
<STRING>PARTICLE_DESUMMON:MEDIA/PARTICLES/EVENTS/PLAYERTRANSFORM.LAYOUT
<FLOAT>RUN_ANIM_MULT:0.1
<FLOAT>WALK_ANIM_MULT:0.1
<STRING>INJURE_SOUND:PETWOLFGETHIT
<STRING>DAMAGETYPE:FIRE
<INTEGER>DAMAGE_FIRE:100
<FLOAT>TURN_RATE:5
[TEXTURE_OVERRIDE_LIST]
<STRING>TEXTURE:media/models/pets/ARCANINE/Slycan_Arcanine.DDS
[/TEXTURE_OVERRIDE_LIST]
[UNITTHEMES]
<STRING>THEME:ARCBURNING
[/UNITTHEMES]
[SKILL]
<STRING>NAME:ARCFIREBALL6
<INTEGER>LEVEL:-1
<INTEGER>CHANCE:100
[/SKILL]
[/UNIT]
The "Skill.Dat"
[SKILL]
<STRING>NAME:ARCFIREBALL6
<STRING>SKILL_TYPE:OFFENSIVE
<STRING>ACTIVATION_TYPE:NORMAL
<STRING>TARGET_ALIGNMENT:EVIL
<FLOAT>RANGE:10
<FLOAT>MANACOST:13
<INTEGER>COOLDOWNMS:5000
<FLOAT>TURNRATEOVERRIDE:-1
<INTEGER>MONSTERCOOLDOWNMS:7000
<INTEGER>CHANCE:100
<INTEGER64>UNIQUE_GUID:7711096694329512448
[LEVEL1]
[EVENT_START]
<STRING>FILE:media/skills/shared/fireball/fireballwarmup.layout
<BOOL>ATTACHES:true
[/EVENT_START]
[EVENT_TRIGGER]
<STRING>FILE:media/skills/shared/fireball/fireball.layout
[AFFIXES]
<INTEGER>AFFIXLEVEL:8
<STRING>AFFIX:SPELL_FIREBALL
[/AFFIXES]
[/EVENT_TRIGGER]
[/LEVEL1]
[/SKILL]
Thanks ahead of time ^^'' I'm not sure what I'm doing wrong.
-
I'm not sure if this will solve it, but it's something you might try...
I did not find any <STRING>ANIMATION: line in your skill's .DAT file. I think that's needed by the skill.
Also, depending on what animation you choose, better make sure your pet model can perform that animation (based on its .ANIMATION file).
EDIT:
you might also try reducing the MANACOST to 1, just in case it's caused by your pet running out of mana(?)
-
TY Phanjam , but saddly it still didn't work. I gave it Attack1 from the animation list and it still tries to trigger but no fire balls :-[
(Made sure the animation worked too by taking away the skill from the pet.dat file, it used the attack animation like normal)
Maybe something is wrong with my .animation file? Could I be missing some floats/strings?
[ANIMATIONS]
[ANIMATION]
<STRING>FILE:attack1.skeleton
<STRING>NAME:Attack1
<FLOAT>DURATION:1
[/ANIMATION]
[ANIMATION]
<STRING>FILE:fidget1.skeleton
<STRING>NAME:Fidget1
<FLOAT>DURATION:3.6
[/ANIMATION]
[ANIMATION]
<STRING>FILE:hit.skeleton
<STRING>NAME:Hit
<FLOAT>DURATION:1
[/ANIMATION]
[ANIMATION]
<STRING>FILE:idle.skeleton
<STRING>NAME:Idle
<FLOAT>DURATION:5
[/ANIMATION]
[ANIMATION]
<STRING>FILE:TL2_ACRCANINE.skeleton
<STRING>NAME:Bind
<FLOAT>DURATION:1
[/ANIMATION]
[ANIMATION]
<STRING>FILE:run.skeleton
<STRING>NAME:Run
<FLOAT>DURATION:1
[/ANIMATION]
[ANIMATION]
<STRING>FILE:walk.skeleton
<STRING>NAME:Walk
<FLOAT>DURATION:1
[/ANIMATION]
[/ANIMATIONS]
New Pet DAT
[SKILL]
<STRING>NAME:ARCFIREBALL6
<STRING>SKILL_TYPE:OFFENSIVE
<STRING>ACTIVATION_TYPE:NORMAL
<STRING>TARGET_ALIGNMENT:EVIL
<STRING>ANIMATION:Attack1
<FLOAT>RANGE:10
.....Etc etc.
Thank you again, I'm starting to think it might be something to do with the model itself TwT
-
Sorry for the double post but I saw your edit and tried making the mana 1 aswell, no dice x_x
-
Well, your guess is right Stef, the issue is with your animation file, the attack animation doesn't have a "HIT" trigger, without this your pet can't cast anything.
Take a look at the animation file from the wolf pet, and you're going to see that it has a lot of triggers per animation, mostly sound effects. But the essencial one is "HIT" in the attack and cast animations.
-
Well, your guess is right Stef, the issue is with your animation file, the attack animation doesn't have a "HIT" trigger, without this your pet can't cast anything.
Take a look at the animation file from the wolf pet, and you're going to see that it has a lot of triggers per animation, mostly sound effects. But the essencial one is "HIT" in the attack and cast animations.
:D It works now! Thanks so much! ( This is what I get for deleting lines before knowing what they do >.< .. sorry)
Gunna do an update to give him some fire spells, then rig another Pokemon soon <3
-
UPDATE -
- Added new/slightly improved texture to try and make it the torchlight theme more (wip)
- 3 new fire skills (Flame Orb, Flame Darts, and Flame Breath)
(http://i.imgur.com/UNs8gv0.png)
-
Oooh that is NICE! Make some more! ;D