News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
May 23, 2019, 06:39:23 AM
collapse

Author Topic: [TL2] Ultimate Respec Lite  (Read 9654 times)

Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
[TL2] Ultimate Respec Lite
« on: June 22, 2018, 02:22:45 AM »
Ultimate Respec Lite

"Ultimate Respec", an extension of the "FreeSpec" mod by @Chthon, is currently the most popular TL2 respec mod on the Steam Workshop.  Adding positive stat-allocation buttons—in addition to the negative ones provided by FreeSpec—it addresses the significant issue of "hundred-click syndrome" brought on by large numbers of unused stat-points.  As far as Stat-respec mods go, it is, indeed, the "ultimate". 

Problems and Solutions
That being said, "Ultimate Respec" suffers from the same problem that plagued "FreeSpec"—namely its lack of support for custom classes.  This is because both "FreeSpec" and "Ultimate Respec" set the minimum value for each Stat to the starting values for the player's current class—a process which requires a complicated static registry to implement. 

However, this restriction is oriented more towards immersive consistency than mechanical necessity.  Potion based respec mods like "Respec/Restat Potions" work just fine without checking whether a player is below his or her "starting stats"—which indicates to me that starting Stats are more or less arbitrary. 

And so I decided to remove that unecessary code.  Following the class-adding instructions provided in the official FreeSpec thread, I created a set of class-triggers linked to the generic "Player" unit-type (which both vanilla and modded classes inherit).  For these triggers, I set all Stats to a minimum value of 5 (instead of 10 or 15).  Then I removed all class-specific files and triggers from the mod—leaving only the "generic" Stat respec triggers in place. 

After a quick test with both a vanilla Embermage character, and my own custom "Emberdrake" class, I can confirm that this simplified version of the "Ultimate Respec" mod correctly works on both modded and vanilla classes. 

Try it out at the link below! 


Download link (RGF):
https://www.runicgamesfansite.com/mod_downloads/npcs-tl2/download-1526-ultimate-respec-lite.html

Download link (Steam Workshop): 
https://steamcommunity.com/sharedfiles/filedetails/?id=1421956260 

Source repository (Github): 
https://github.com/LordNyriox/Ultimate-Respec-Lite


« Last Edit: July 29, 2018, 09:40:21 PM by Lord Nyriox »

Offline Sch123

  • 🎮 & 💡
  • Legendary
  • *
  • Posts: 848
  • Country: 00
    • status game
    • View Profile
  • Mood: mood cheesy
Re: [TL2] Ultimate Respec Lite
« Reply #1 on: June 22, 2018, 06:21:19 AM »
Hi @Lord Nyriox

So far so good, there is no problem.

I've done a quick test on some existing classes, like in the Mod Variant [archer], Tl1CP [vanquisher], FEP [mongol archer], Vanilla class, Synergies [warlock]. All class can respect skill & status without any problems. ;)

Asking for permission:

By the way, is this free to use for merge with other mod?
« Last Edit: June 22, 2018, 06:33:32 AM by Sch123 »

Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: [TL2] Ultimate Respec Lite
« Reply #2 on: June 22, 2018, 04:12:16 PM »
I've done a quick test on some existing classes, like in the Mod Variant [archer], Tl1CP [vanquisher], FEP [mongol archer], Vanilla class, Synergies [warlock]. All class can respect skill & status without any problems. ;)

That is wonderful to hear! 

I did not personally test it with more than a couple of classes (one vanilla and one custom), so hearing that it works with the more popular class-packs is great confirmation.  :} 

Asking for permission:

By the way, is this free to use for merge with other mod?

Unless otherwise stated, the answer is "Yes" for all my mods. 

I would appreciate credit for any work you copy from one of my mods, but I do not require it.  ;} 
« Last Edit: June 22, 2018, 11:35:21 PM by Lord Nyriox »

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2652
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: [TL2] Ultimate Respec Lite
« Reply #3 on: June 22, 2018, 05:41:14 PM »
downloaded and will now be a main staple in my mods load-out!

Do u plan to put this on RGF and steam workshop too? (i urge you too :) )

Elegant work!  Thanks so much for doing this :thumbsup: :thumbsup:



Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: [TL2] Ultimate Respec Lite
« Reply #4 on: June 22, 2018, 11:34:25 PM »
Do u plan to put this on RGF and steam workshop too?

Thanks for the reminder, @Phanjam!  ;} 

I just posted this mod on RGF.  You can find it at this link

EDIT:  Thanks to @Phanjam, the mod is also on the Steam Workshop!  You can find it at this link


« Last Edit: July 04, 2018, 08:04:51 PM by Lord Nyriox »

Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: [TL2] Ultimate Respec Lite
« Reply #5 on: July 04, 2018, 08:08:20 PM »
The Steam version of this mod now has 92 subscribers, and the RGF version now has 42 downloads under its belt! 

I am frankly amazed how popular this mod has become. 

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2652
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: [TL2] Ultimate Respec Lite
« Reply #6 on: July 05, 2018, 01:52:13 PM »
It addresses what i think is a widespread issue, and does it well to boot ;)



Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: [TL2] Ultimate Respec Lite
« Reply #7 on: July 29, 2018, 05:35:58 PM »
Help Request

The edits I have already made to the "Ultimate Respec" mod for this project, are pretty minimal. 

Since the original mod was essentially just an expanded form of @Chthon's "FreeSpec" mod, I was able to get away with simply replacing its "<Class_Name>" UnitType checks with a single set of generic "Player" UnitType checks, with the minimum value for each main Attribute set to "5". 

I have, however, received reports of gradually increasing lag when players leave the Respec window open for a while. 

Since I changed the code to affect all players indiscriminately (regardless of class), some of the existing Logic is likely redundant (which might contribute to the lag somehow).  Unfortunately, I am not familiar enough with the Logic system to be able to easily tell what is actually safe to remove. 

Could someone please examine the code of my "Ultimate Respec Lite" mod, and point out where I can simplify things? 

Thank you for your consideration.  :} 


For convenience, I have attached the source directory of the mod in question

« Last Edit: December 22, 2018, 10:48:01 PM by Lord Nyriox »

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2652
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: [TL2] Ultimate Respec Lite
« Reply #8 on: July 29, 2018, 10:56:34 PM »
Cant commit timing but will have a look-see and let u know if i find anything ;)



Offline doudley

  • Cosmic Reality Entanglement Ethereal Probability
  • Rare
  • *
  • Posts: 247
  • Country: 00
  • Its personal...
    • status food
    • View Profile
    • Steam Profile
  • Mood: mood rolleyes
Re: [TL2] Ultimate Respec Lite
« Reply #9 on: July 30, 2018, 02:10:34 AM »
I could try and bug check the logic system but not sure when I'll be able to get access with GUTS again, hopefully this weekend. Maybe a screen capture of the logic/s would help us figure out what's going on.

Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: [TL2] Ultimate Respec Lite
« Reply #10 on: July 30, 2018, 03:46:32 PM »
Maybe a screen capture of the logic/s would help us figure out what's going on.

Thanks, @doudley.

There is also an "aura" component (attached to the Respec NPCs), and a Skill component (regulated by StatWatchers). 

As I understand it, those two components do most of the actual leg-work in this mod—the Logic simply regulates their activation.   


Honestly, I wish @Chthon was still around so I could pick his brains on the technical side of FreeSpec.  That would save us all a whole lot of trouble.  :\
« Last Edit: July 30, 2018, 04:47:39 PM by Lord Nyriox »

Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: [TL2] Ultimate Respec Lite
« Reply #11 on: July 30, 2018, 04:40:10 PM »
Frankly, there are enough changes that I am hoping to (eventually) make, that I am almost considering a total rewrite of the mod. 

  • Target 1:  As I have already stated, reduce the Logic's dependency on outside components.  The Aura/Skill setup is resource-heavy, and a simpler method would be preferred (if one can be found). 
  • Target 2:  Add a "Remove All" button for each Attribute (Logic should be <"Current Value" –5 = "New Value">), and a "Reset All Stats" button that does the same for all four Attributes. 
  • Target 3:  Add a separate Tab to allow resetting individual Skills (probably adapted from @doudley's "Express Respec" mod). 
  • Target 4:  Add a system to allow purchasing additional Stat-points and Skill-points. 
« Last Edit: July 30, 2018, 04:47:07 PM by Lord Nyriox »

Offline doudley

  • Cosmic Reality Entanglement Ethereal Probability
  • Rare
  • *
  • Posts: 247
  • Country: 00
  • Its personal...
    • status food
    • View Profile
    • Steam Profile
  • Mood: mood rolleyes
Re: [TL2] Ultimate Respec Lite
« Reply #12 on: August 06, 2018, 08:52:36 AM »
Maybe a screen capture of the logic/s would help us figure out what's going on.

Thanks, @doudley.

There is also an "aura" component (attached to the Respec NPCs), and a Skill component (regulated by StatWatchers). 

As I understand it, those two components do most of the actual leg-work in this mod—the Logic simply regulates their activation.   


Honestly, I wish @Chthon was still around so I could pick his brains on the technical side of FreeSpec.  That would save us all a whole lot of trouble.  :\

I recently updated Variant Classes mod (Steam). Maybe now I could take a look at your mod. I won't have an access to GUTS right now, only on Sundays, but if I can have a view of the "media" folder/unpacked files of your mod, maybe I won't need to look at 'em in GUTS.

Share me a link, if its okay with you.

Offline Lord Nyriox

  • Moderator
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: [TL2] Ultimate Respec Lite
« Reply #13 on: August 06, 2018, 04:58:25 PM »
I won't have an access to GUTS right now, only on Sundays, but if I can have a view of the "media" folder/unpacked files of your mod, maybe I won't need to look at 'em in GUTS.


I will not have access to GUTS for at least another week, if not longer.  :\

I attached the source files for the mod to my original "Help Request" post.  I linked it here for convenience.

[LINK REMOVED]
« Last Edit: December 22, 2018, 10:47:28 PM by Lord Nyriox »

Offline doudley

  • Cosmic Reality Entanglement Ethereal Probability
  • Rare
  • *
  • Posts: 247
  • Country: 00
  • Its personal...
    • status food
    • View Profile
    • Steam Profile
  • Mood: mood rolleyes
Re: [TL2] Ultimate Respec Lite
« Reply #14 on: August 07, 2018, 08:52:38 AM »
@Lord Nyriox
Thanks for the link!

Try this code:
Code: [Select]
[SKILL]
<STRING>NAME:Respec_Aura
<TRANSLATE>DISPLAYNAME:Respec Aura
<TRANSLATE>BASE_DESCRIPTION:Enables stat respec
<STRING>ACTIVATION_TYPE:PASSIVE
<STRING>TARGET_ALIGNMENT:GOOD
<STRING>TARGET_TYPE:SELF
<FLOAT>RANDOMRANGE:0
<FLOAT>TURNRATEOVERRIDE:-1
<BOOL>CAN_BE_SILENCED:0
<INTEGER64>UNIQUE_GUID:4921236809504979266
[LEVEL1]
<FLOAT>RANDOMRANGE:0
[EVENT_START]
<STRING>FILE:media/skills/monsters/questunits/respec_aura.layout
<BOOL>FOLLOWS:1
<BOOL>NOSTEALEFFECTS:0
<BOOL>STATSHIDDEN:1
<BOOL>CAN_CLONE:0
[AFFIXES]
<STRING>TARGET:FRIEND
<STRING>TARGETTYPE:PLAYER
<STRING>AFFIX:RESPEC_GENERIC
[/AFFIXES]
[/EVENT_START]
[EVENT_END]
<BOOL>CAN_CLONE:0
[AFFIXESREMOVE]
<STRING>AFFIX:RESPEC_GENERIC
[/AFFIXESREMOVE]
[/EVENT_END]
[/LEVEL1]
[/SKILL]

@Aherin
I think the lagging issue here is similar with Potion of Insight mod earliest lag issue, regarding skill being executed endlessly.
« Last Edit: August 07, 2018, 09:08:20 AM by doudley »

Tags: respec mod npc gui tweak 
 

* Quick Search


* Member Information

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

* Mod Boards Activity

* Who's Online

  • Dot Guests: 3
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Calendar

May 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

Darkened TL2 UI (Re-texture Mod) by Phanjam
[May 21, 2019, 02:29:35 PM]


FEP+ April 2019 Update by Phanjam
[May 19, 2019, 10:34:51 PM]


Skills Expansion: Bugs Report & Ideas by Sch123
[May 16, 2019, 10:54:27 AM]


Charge Domination % by TwinkleToes
[May 11, 2019, 04:33:57 AM]


[Help Request] Putting Custom Dungeons Into Vanilla Zones by Phanjam
[May 09, 2019, 02:19:19 AM]


Triggerable Weapons by Phanjam
[April 29, 2019, 11:15:57 AM]


Need Help: Getting Translation into game by steffire3
[April 25, 2019, 10:23:02 PM]


Destroyer Rebalance by Phanjam
[April 15, 2019, 06:10:08 AM]


FEP+ by LeavingUndad
[April 14, 2019, 06:47:25 PM]


Knowledge-basing For Level & Quest Making by Phanjam
[April 13, 2019, 01:51:42 PM]


Pet Variants Mod by Phanjam
[April 11, 2019, 02:53:00 PM]


[IDEA] Maika's Quest (children's mod) by Phanjam
[April 11, 2019, 09:33:41 AM]


Need Help: Template File List by steffire3
[April 10, 2019, 07:21:54 PM]


Deathknight class by Phanjam
[April 10, 2019, 12:47:27 AM]


TL1CP Update 4 - A new baseline (I hope) by Anarch16sync
[April 09, 2019, 03:25:53 PM]

* Popular Topics