News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
August 26, 2019, 09:28:48 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: Custom Charge Bar...  (Read 365 times)

Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Custom Charge Bar...
« on: July 16, 2019, 12:50:40 AM »
I have reached a stalemate. I have not found info anywhere to help me solve my problem. I hate asking for help cause I have always been somewhat autistic in that sense. The question is that I was trying to make my own Charge effects but I can not find how to do it.
I created the layout of the Charge Bar (which is really just a copy of ARBITERCHARGEBAR, I have no skills as a graphic artist), I added the tooltip correctly and the bar works as it should in the game. But it continues to process the effects of ARBITERAVATAR and not mine. To leave doubts I put a time of 5 seconds in my effects (the originals use 12 seconds) and effectively the effects last 12 seconds. So unmistakably, my bar only reads the original effects  :'(
I assumed that the way to link my load effects was to open the Layout and in STATEVALUATOR/Stat 1 Dynamic select my Affix, but the option does not exist...

Offline Anarch16sync

  • The Ripper
  • Developer
  • Legendary
  • *
  • Posts: 559
  • Country: ar
  • Back on track
    • status study
    • View Profile
  • Mood: mood evil

Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Re: Custom Charge Bar...
« Reply #2 on: July 16, 2019, 01:57:33 AM »
Mmmm, ok, going to check. Thanks :)

Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Re: Custom Charge Bar...
« Reply #3 on: July 16, 2019, 02:35:12 AM »
The Friendly Charge bar Passives guide seems interesting but incomplete. It is assumed that the person knows what to do to link the desired effects to the Charge Bar and if a person is reading that is because we have no idea  ::)

So, still the same...

Offline Korzeam

  • Rare
  • *
  • Posts: 169
  • Country: fr
    • status idle
    • View Profile
  • Mood: mood smiley
Re: Custom Charge Bar...
« Reply #4 on: July 16, 2019, 03:37:53 AM »
Hi !
The charge bars are a pain in the ass in Torchlight 2.  ;)

Can you check this first ? (I've used the keyword "Tenebris" but you can replace it by what you want).

Does you human_tenebris_base.dat file contain those 3 items ?

[EFFECT]
      <STRING>NAME:TENEBRIS_TRIGGER_CHARGE_BAR
      <STRING>ACTIVATION:DYNAMIC
      <STRING>DURATION:INSTANT
      <STRING>TYPE:ADD TRIGGERABLE
      <FLOAT>CHANCE:100
[/EFFECT]

[SHOWUI_ALWAYS]
      <STRING>MENU:TENEBRISCHARGEBAR
[/SHOWUI_ALWAYS]

[CHARGE_AFFIXES_TO_WATCH]
      <STRING>AFFIX:TENEBRIS_CHARGE_BAR
[/CHARGE_AFFIXES_TO_WATCH]


For each item you have to create your own version of the ARBITER version.
« Last Edit: July 16, 2019, 03:39:54 AM by Korzeam »

Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Re: Custom Charge Bar...
« Reply #5 on: July 16, 2019, 04:15:06 AM »
Yes...

[CHARGE_AFFIXES_TO_WATCH]
      <STRING>AFFIX:TENEBRISFULL
   [/CHARGE_AFFIXES_TO_WATCH]
   [EFFECT]
      <STRING>NAME:TENEBRISFULL
      <STRING>ACTIVATION:DYNAMIC
      <STRING>DURATION:INSTANT
      <STRING>TYPE:ADD TRIGGERABLE
      <FLOAT>CHANCE:100
   [/EFFECT]

TENEBRISFULL is the Affix to process when the charge bar is full. What happens now is that the bar reaches the maximum, does not process any effect, neither visual nor affix, and it stops working (it does not empty again).

EDIT: I was reviewing what they did with my class in the Essencials mod because I noticed that they added a custom bar, but it was just the image, the effects are the default ARBITERAVATAR, so I'm still blank XD
Checking the Preacher bar I understood that it is totally different and I could not know what the hell they did XD

EDIT2: From the beginning I thought that this is the problem:
[PROPERTIES]
<STRING> DESCRIPTOR: Stat Evaluator
<STRING> NAME: Stat Evaluator
<INTEGER64> ID: 1168563176747136725
<INTEGER64> PARENTID: -1
<STRING> STAT 1 DYNAMIC: ARBITERAVATAR
<STRING> TYPE_: NOT EQUAL
[/ PROPERTIES]

Those lines belong to TENEBRISCHARGEBAR.Layout
As I explained earlier, GUTS does not give the option to change the ARBITERAVATAR for something done by me. Although it is likely that I am an idiot and that it is not necessary to change it.
« Last Edit: July 16, 2019, 04:31:07 AM by Actkqk »

Offline Korzeam

  • Rare
  • *
  • Posts: 169
  • Country: fr
    • status idle
    • View Profile
  • Mood: mood smiley
Re: Custom Charge Bar...
« Reply #6 on: July 16, 2019, 04:46:01 AM »
I don't have the time to make some checks right now, but I believe you have to create your own Chargebar STAT and  handle it in the STAT EVALUATOR of your UI chargebar.
I has also to be handled in your TENEBRISFULL affix, like this :

[EFFECT]
      <STRING>NAME:TENEBRIS_CHARGE_BAR_STAT
      <STRING>ACTIVATION:DYNAMIC
      <STRING>DURATION:12
      <STRING>TYPE:ADD STAT
      <FLOAT>MIN:1
      <FLOAT>MAX:1
      <FLOAT>CHANCE:100
[/EFFECT]

Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Re: Custom Charge Bar...
« Reply #7 on: July 16, 2019, 05:30:54 AM »
Ahahaha, ok ok, I sensed that I was missing something. Thanks so much for the help. I have not tried but just seeing your answer I know it's the right thing to do. Thank you.

Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Re: Custom Charge Bar...
« Reply #8 on: July 16, 2019, 07:00:18 AM »
Well, at least there is some progress. I have achieved that the bar reaches 99.9%... It never reaches completion and after a while of inactivity it returns to zero. I give up for the moment...

Offline Anarch16sync

  • The Ripper
  • Developer
  • Legendary
  • *
  • Posts: 559
  • Country: ar
  • Back on track
    • status study
    • View Profile
  • Mood: mood evil
Re: Custom Charge Bar...
« Reply #9 on: July 16, 2019, 10:04:32 PM »
Ok, I took a look at the embermage charge bar to refresh my mind on how the charge bar works. And I think I have naildown what is the issue here.

And that's is that I see no mention of the actual Triggerable effect.

This part of code on the hum_Tenebris_base.dat:
Code: [Select]
[EFFECT]
      <STRING>NAME:TENEBRISFULL
      <STRING>ACTIVATION:DYNAMIC
      <STRING>DURATION:INSTANT
      <STRING>TYPE:ADD TRIGGERABLE
      <FLOAT>CHANCE:100
[/EFFECT]

points to a triggerable named TENEBRISFULL (and hopefully, to a file named TENEBRISFULL.DAT in the triggerables folder), if you follow the same structure of the Embermage, you triggerable should look like this:
Code: [Select]
[TRIGGERABLEACTION]
<STRING>NAME:TENEBRISFULL
<TRANSLATE>DESCRIPTION:Enter an enlightened state, requiring no mana to cast spells and greatly increasing casting speed
<STRING>GAMEEVENTTYPE:CHARACTER
<STRING>EVENTCREATOR:SELF
<STRING>SUBTYPE:MAXEDCHARGE
<INTEGER>LEVEL:1
<FLOAT>FLOATCONDITION:0
<INTEGER>COOLDOWN:8000
<BOOL>FILTERSELF:true
[TRIGGERSKILL]
<STRING>SKILL:TENEBRISFULLPOWER
[/TRIGGERSKILL]
[/TRIGGERABLEACTION]

Then this triggerable is pointing to a skill that is what is cast when you get full charge, again following the embermage structure your skill should look like this:

Code: [Select]
[SKILL]
<STRING>NAME:TENEBRISFULLPOWER
<TRANSLATE>BASE_DESCRIPTION:Enter an enlightened state
<STRING>ACTIVATION_TYPE:NORMAL
<STRING>TARGET_ALIGNMENT:EVIL
<STRING>TARGET_TYPE:SELF
<FLOAT>TURNRATEOVERRIDE:-1
<BOOL>HIDDEN:true
<BOOL>DONT_STOP_ON_DEATH:true
<BOOL>CAN_BE_SILENCED:false
<INTEGER64>UNIQUE_GUID:-2447319373651713621
[LEVEL1]
[EVENT_START]
[AFFIXES]
<STRING>TARGET:SELF
<STRING>AFFIX:TENEBRISFULL
<STRING>AFFIX:TENEBRISFULL_NO_DISPLAY
[/AFFIXES]
[/EVENT_START]
[/LEVEL1]
[/SKILL]

The affixes TENEBRISFULL and TENIBRISFULL_NO_DISPLAY you have already edited so I won't elaborate on that further, but the affix TENEBRISFULL is the one the set the stat that the charge bar UI is evaluating.

I hope this is helpful, to know more about triggerable you should check:
http://torchmodders.com/wiki/doku.php?id=triggerables

Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Re: Custom Charge Bar...
« Reply #10 on: July 16, 2019, 11:00:21 PM »
Oh I see. Of course, it makes sense, I had never even created the TRIGGERABLES folder. As someone said in the Chat, it is possible to take something like the Embermage as reference and copy files to edit later. But it is very likely that in the same way you will not be successful because there are many things to copy and edit and it is enough that one thing is missing so that nothing works. Being my first attempt at Charge Bar, the internet is useless in this case, there is not a single guide that talks about the subject completely. And it's a shame. At least this helped me to know that the Charge Bar can be something extremely useful, or also something so useless and easy to erase from the game, that I take a whole day without being able to fully understand the mechanics, but I take less than 5 minutes to erase it completely from the game (from my class) without CTD (crash to desktop).

Anyway, tomorrow I will apply what you have taught me. Thank you  :)




Who needs the damn Charge Bar? -_-
« Last Edit: July 16, 2019, 11:06:54 PM by Actkqk »

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2702
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: Custom Charge Bar...
« Reply #11 on: July 17, 2019, 05:39:35 PM »



Offline Actkqk

  • Common
  • *
  • Posts: 19
    • View Profile
Re: Custom Charge Bar...
« Reply #12 on: July 18, 2019, 07:17:08 AM »
Ahaha this is incredible. I had everything ready. I tried to post the update on Steam... and I can't, at least not in the normal way. Error, and error and error and error. I searched for information and nothing. I waited a while thinking that it could be a momentary Steam problem. Nothing, so trying things I tried something that once in the past I had to do. Delete and republish... And it worked. But the Mod is hidden and I can't change the visibility to Public. So I looked for more information and I realized that steam was transformed into a real crap?... Only my friends can see my mods, I'm not authorized to make it public, aaahahahaha. Well, that would be everything. I can upload this thing to moddb for example but the steam version went to hell. And with this my return to the mods is finished...

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2702
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: Custom Charge Bar...
« Reply #13 on: July 19, 2019, 07:22:31 AM »
im so sorry to hear that @Actkqk  :( i also posted in discord that you can use torchlightfansite.com which is the former runigamesfansite.com a.k.a. RGF hosting mods since TL1 back in 2009 and still very active (more than 1,200 mods and 2.3M downloads) to this day.



Tags:
 

* Quick Search


* Member Information

 
 
Welcome, Guest. Please login or register.

* Mod Boards Activity

* Who's Online

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

There aren't any users online.

* Calendar

August 2019
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

FEP+ April 2019 Update by Sch123
[August 24, 2019, 09:40:03 AM]


Learning Quest Making by Phanjam
[August 21, 2019, 02:46:04 AM]


Fionna model needs some skills! by Kva3imoda
[August 14, 2019, 04:41:53 AM]


Floaty Torchlight Cube by Vkoslak
[August 04, 2019, 05:11:09 AM]


[IDEA] Dungeon Run by Phanjam
[August 04, 2019, 12:26:45 AM]


[MODEL] Syl the Sage 2.0 by Kva3imoda
[August 01, 2019, 09:36:57 PM]


Hacker / Trickster Class Mod by Sch123
[July 26, 2019, 03:23:22 PM]


Variant Classes Mod Information by Actkqk
[July 21, 2019, 08:27:17 AM]


Custom Charge Bar... by Phanjam
[July 19, 2019, 07:22:31 AM]


Heya folks! by steffire3
[July 15, 2019, 07:07:58 PM]


Tenebris class, I need to know... by Phanjam
[July 14, 2019, 03:28:27 AM]


Would like to complete the Wiki Lore by steffire3
[July 13, 2019, 03:35:54 AM]


Skills Expansion: Rebalanced Native Skills by lemon 'nade
[July 08, 2019, 03:33:01 PM]


Hosting for 2019 by Kva3imoda
[July 07, 2019, 11:01:48 AM]


Need Help: a problem in GUTS by Sch123
[July 03, 2019, 08:27:13 AM]

* Popular Topics