Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
👌👌👍👍👍
Adjusted target range since after last update Esau dashes for shorter distances.
Removed everything related to displaying Esau health since it's not relevant now.
Also you can enable\disable Anima Sola and regular dash helpers separately from Mod Config Menu now.
From what i tested everything works with Birthright or multiple Esaus(like in Red Redemption challenge).
One thing I noticed is that Esau dash distance is reduced a bit and now he doesn't reach the marker consistently. It is not critical, just annoying.
Also this time I have a solid reason to return to the game so fix should land soon.
My guess is that the game normally spawns Dark Esau with a tag or parent that automatically sets a TargetPosition for them, when playing as Tainted Jacob, but manually spawning Dark Esau through the console or lua won't give him these values.
Just replacing the 'if npc.Variant ~= 0 then' to `if npc.Variant ~= 0 or not npc.TargetPosition then return end` should in theory solve the crashes(?
I disabled this one and the crashes stopped, so I didn't test further, let me keep messing around.
"PostNPCRender" failed: /dark esau helper_2496789708/main.lua:165: attempt to call a nil value (global 'flickerSprite')
Then im gonna need something for tainted lazarus lol
The whole code for main.lua is there. You may notice that I've changed a few things here and there in your original code (namely, intermediate functions to factor code a bit, and global variables to identify tables fields, always safer than repeating a raw string in my opinion).
The idea is straightforward, while Esau is in the StateSuicide state compute a position based on the (Esau, Jacob) vector, and when he leaves this state I go back to your old code. While Esau is in the StateSuicide state, I use the computeEsauEndPosition to find the position at which the marked target will appear and then use your original code to draw the sprite on the ground (game frames are used to make the line change color).
Comments at the top of the pastebin for code explanation and remarks. Also, a small credit in your main.lua would be much appreciated :)
In case you are interested, I changed the mod (locally) a bit so that there is a line that appears for the whole duration of Anima Sola and follows the position of Jacob, flashing gradually more red, faster and faster as the effect of Anima Sola wears off. I used that extensively in Greed(ier) Mode, it makes life so much easier when you don't have to keep an eye on Esau in order to find where he is going to dash if you release Anima Sola early, or just move too far away and Esau ends up offscreen. I can send you the code if you think its worth adding :)
And i'm very avert of changing characters this way, cause i don't want to cheat