Garry's Mod

Garry's Mod

[TTT2] Occultist [ROLE]
47 Comments
|UGA|PatPeter 9 Sep, 2021 @ 11:39pm 
I created a master configuration file for all of the TTT roles in the first 3 pages of the Workshop search: https://gist.github.com/PatPeter/70b1c090d8c8c311d99632dca76ec513
Tim | Mineotopia  [author] 3 Aug, 2020 @ 11:13pm 
No fire damage is included in TTT2 since a while. It isn't available as a separate addon anymore
Nathan22211 3 Aug, 2020 @ 3:20pm 
you might want to add the no fire damage item under required items
Tim | Mineotopia  [author] 24 Apr, 2020 @ 2:11am 
@blackmagicfine
I highly recommend using ulx
blackmagicfine 24 Apr, 2020 @ 12:58am 
My server log is dumping the following:

Unknown command "ttt_occul_enabled"
Unknown command "ttt_occul_pct"
Unknown command "ttt_occul_max"
Unknown command "ttt_occul_random"
Unknown command "ttt_occul_min_players"
Unknown command "ttt_occultist_announce_revival_by_epop"

I'm not sure about the last one, but the first five appear to have a spelling mistake. "occul" should be "occultist".
Kagamine Rin (MinusK) 4 Mar, 2020 @ 6:16pm 
I am happy to report the latest update fixed the problem on my end - the Occultist now respawns from the flames just as he is intended to! (though there was that one time the fire didn't spawn on my corpse and I instead respawned in a completely different location with the fire... that was weird)

Thank you very much for the fast response and fix! I'm really looking forward to playing with this role in a session with my friends soon.

Best regards,
MinusK
Tim | Mineotopia  [author] 4 Mar, 2020 @ 3:49am 
There are. Line 67 and 68
Pythagorion  [author] 4 Mar, 2020 @ 3:27am 
There are no convars that are localized global.
Tim | Mineotopia  [author] 4 Mar, 2020 @ 3:23am 
You should stop localizing your convar values in the global scope. This creates many problems
Pythagorion  [author] 4 Mar, 2020 @ 2:19am 
Yes I tested them. And I checked the Occultist, some moments ago. Everything is working fine for me. But I also have an idea what the problem is. It´s the convar that triggers the inferno, even when the Occultist shall not respawn. I removed that convar. Now everything should work.
Tim | Mineotopia  [author] 4 Mar, 2020 @ 12:06am 
Yeah, there are some strange things with the new convars. I just looked at the code and was a bit confused. I wonder if he teted his last changes
Kagamine Rin (MinusK) 3 Mar, 2020 @ 8:33pm 
So I've encountered a bug when using the Occultist role, and it's a pretty major one - the Occultist will not respawn at all after dying, even when they are killed below 25 HP.

I thought maybe my massive amount of mods had something that conflicted with it, so I limited the amount of mods I was using and tried it again, to no avail.

Here's a list of the mods I was using in the second test in case you attempt to recreate this bug:
TTT2 - Occultist
TTT2 - Weapon Statistics
Randomat 2.0 ULX Menu
ULX
ULib
TTT/2 Utility plugin
TTT2 Animations
TTT2 Round Info
TTT2 ULX Role Info
TTT2 Easy Custom Bindings
TTT2 Glowing Teammates
ULX Commands for TTT2
TTT2 Base

It's a shame that this role isn't working for me, going by the comments it seems like it's working fine for other people. I'm really not sure what could be causing it, and other respawning roles such as the Wrath and Pharaoh don't have this issue. I would appreciate any help in this regard.

Thanks in advance,
MinusK
★ Nighty 28 Feb, 2020 @ 12:39pm 
thanks, will add it back to my server
Tim | Mineotopia  [author] 28 Feb, 2020 @ 12:32pm 
habe mir den Code angeschaut, er hat das etwas unsauber programmiert. Musst die Map wechseln, damit die ConVar Wirkung erzielt
Mundoener 28 Feb, 2020 @ 12:12pm 
ttt_occultist_receive_buff_to_beginning [0/1] (default: 1)
sollte bei deaktivierung das itemicon trotzdem angezeigt werden?
Pythagorion  [author] 28 Feb, 2020 @ 11:03am 
Oh. yeah. On Github and my files this line was empty. But this doesn´t matter anymore. I updated the role some moments ago. The Problem with this was that the convar you named, wasn´t be used. And now it will be used. The Update that did go live moments ago, should fix it.
★ Nighty 28 Feb, 2020 @ 11:03am 
the convar never got created (lua/autorun/sh_occultist_convars.lua) on line 8

--CreateConVar("ttt_occultist_always_spawn_inferno", 1, {FCVAR_ARCHIVE, FCVAR_NOTIFY, FCVAR_REPLICATED})
★ Nighty 28 Feb, 2020 @ 10:57am 
line 145 is not empty its this:
local cv_always_respawn = GetConVar("ttt_occultist_always_spawn_inferno"):GetBool()
Pythagorion  [author] 28 Feb, 2020 @ 10:36am 
If you still experience the bug, you could do 2 things to fix it:
1. clear your cache (it is possible that this bug is clientside)
2. if the error is spammed into the console mutiple times, there must be another above. The first error is the important one.
Pythagorion  [author] 28 Feb, 2020 @ 10:00am 
When did you last see this error? I checked the script and the error points to a line that is blank.
★ Nighty 28 Feb, 2020 @ 9:41am 
woha since your last update the server console is getting spammed with:
[[TTT2]Occultist [ROLE]] lua/terrortown/entities/roles/occultist/shared.lua:145: attempt to index a nil value
1. fn - lua/terrortown/entities/roles/occultist/shared.lua:145
2. unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109
Tim | Mineotopia  [author] 28 Feb, 2020 @ 3:51am 
Du müsstest das item Icon auf nil setzen können zum Ausblenden. Musst du mal probieren, habe das noch nicht versucht.
Mundoener 28 Feb, 2020 @ 1:43am 
Ok wär nice :D
Der Sinn dahinter is der, dass wir wieder ein bisschen das alte ttt feeling haben, innos gegen traitor. Damits aber trotzdem nicht zu lw als „normaler inno“ is, sind die jetz einfach alle survivalists. Das einzige problem dabei war der shinigami, da der dadurch sofort wusste dass er shini is; deswegen wärs jetz mitm okkultist und wrath, da bei denen dann auch innocent zuerst steht, nicht sofort klar was man is xd
Pythagorion  [author] 28 Feb, 2020 @ 1:23am 
Das geht leider nicht, da die Anzeige von dem Item selbst ausgeht. Ich könnte das Item generell über eine Convar konfigurieren lassen, aber ich kann das Item selbst nicht verändern. Heute oder morgen erhält der Occultist eh nochmal ein Update mit einigen Convars, dann baue ich eine solche Convar einfach noch hinzu.
Mundoener 28 Feb, 2020 @ 1:19am 
ah ok macht sinn...kann man da evtl vlt noch das symbol ausblenden? :D dann wärs top xd
Pythagorion  [author] 28 Feb, 2020 @ 1:02am 
@Mundöner. Nein. Der Occultist hat das gesamte Spiel über den No fire Damage Buff. Das verhindert unter anderem, dass der Occultist sich selber Schaden machen kann, um so die Wiederbelebung auf jeden Fall eintreten zu lassen.
Mundoener 28 Feb, 2020 @ 12:57am 
es funktioniert danke dir :) hääte allerdings noch eine frage xd dachte der okkultist is erst nach dem revive fire immun?
Pythagorion  [author] 27 Feb, 2020 @ 10:22am 
Die Shared.lua ist die Hauptdatei der Rolle. Darin steht quasi der gesamte Code, der ausgeführt wird. Nach meinen Tests hatte sich ULib nicht beschwert und wie Tim schon sagte, kann ich mir nicht vorstellen, was das Problem ist. Falls das Problem bestehen bleibt, kannst du uns ja mal den Error hier in den Kommentaren posten, da schauen wir da mal drüber.
Tim | Mineotopia  [author] 27 Feb, 2020 @ 9:43am 
Kann mir nicht vorstellen, dass es mit ulib in die Quere kommt. So lange noch alles funktioniert kannst du solche Meldungen ignorieren
Eric 27 Feb, 2020 @ 8:12am 
Seit dem Update kommt sich das Addon mit ULib in die Quere. Irgendeine Shared.lua. Ist das einfach zu fixen?
Pythagorion  [author] 27 Feb, 2020 @ 6:01am 
@Mundöner die ConVar ist nun hinzugefügt und sollte funktionieren.
Pythagorion  [author] 27 Feb, 2020 @ 4:41am 
alles gut. Das ist nur ein Hook. sollte schon gehen.
Mundoener 27 Feb, 2020 @ 4:36am 
äh ja genau was tim sagt sry fürs missverständnis xd ich probier mich grad selber dran vlt krieg ichs hin
Pythagorion  [author] 27 Feb, 2020 @ 4:24am 
jetzt habe ich es verstanden.
Tim | Mineotopia  [author] 27 Feb, 2020 @ 4:18am 
Ich denke er meint eher, dass die Rolle verdeckt wird. Sodass der Occultist denkt, er sei ein normaler Innocent und erst revealed wird, sobald er unter 100HP fällt
Pythagorion  [author] 27 Feb, 2020 @ 3:46am 
Du meinst eine Nachricht auf dem Monitor, die den Respawn ankündigt?
Mundoener 26 Feb, 2020 @ 4:08pm 
Kann man beim Okkultist auch ein Cvar hinzufügen dass wie beim wrath und shini inno angezeigt wird bevor man respawnt? des würds mit allen drei aktiv bisl spannender machen was man wird^^
Tim | Mineotopia  [author] 15 Jan, 2020 @ 1:42pm 
Capitalization was my downfall so many times when debugging! :D
Cuckoo 15 Jan, 2020 @ 1:31pm 
Capitalization. That was it. That was my downfall.

I would have had 'Match Case' enabled, while searching for and quickly replacing all occurrences of "occultist" with "diabolist"; since I (foolishly) trusted myself to remember to do a second search once I was done, for any occurrences of "OCCULTIST" that should become "DIABOLIST" instead.

Thanks Tim, you're an absolute treasure.
Cuckoo 15 Jan, 2020 @ 1:13pm 
... Crap.



Well, well... I know for a fact that I Ctrl+F'd my way throughout this .lua file, replacing every instance of 'Occultist' with 'Diabolist'...

... And yet, despite ( langs = { English = "Diabolist" } ); you're absolutely right, you're spot-on.

I had, indeed, managed to somehow miss one remaining occurrence: Class.AddClass("Occultist",

Next chance I have, I'll update, check in-game, and report back to confirm that my "bug" is now fixed. To think I spooked the everloving shit out of myself over this...
Tim | Mineotopia  [author] 9 Jan, 2020 @ 2:22pm 
Ahh. I'm fairly sure about the cause of the bug: the language file. Is the internal name of your class still "occultist"?
Cuckoo 9 Jan, 2020 @ 1:52pm 
Let me tell you, I was the only one on that Discord server who has a fleeting familiarity with luascript; and I spent that entire round staring at my role in the bottom-left, and babbling to everyone about how there should be no conceivable way for me to adjust a Class's name in my add-on, and in doing so, unwittingly change the name that is displayed for a Role in someone else's add-on, that happens to possess the same name that class formally did.

My jimmies are a distant memory. My soul shall never become unrustled. Hopefully, this will fix itself organically... But didn't it just have to happen to happen to a Role and a Class that are (now) named 'Occultist' and 'Diabolist', respectively?
Cuckoo 9 Jan, 2020 @ 1:48pm 
@Pythagorion
This isn't a formal bug report or nothin'. I'm home from work, I'm tired, so I'll look closer this phenomenon properly some other time. But I thought you'd be interested to hear about it anyway.

Me and my folks played some TTT(2[c]) for the first while, in quite a while, a couple of days ago. Not enough of the regulars were around for a real game, so I disabled winning, and those who were interested in being there were mucking around with new additions, and getting familiar with TTTc, while I showered everyone with credits and revives.

I was shooketh to my very core when I happened to receive the Occultist role at the start of one round. I don't know how this can have occurred- I'm certainly no luascript savant, but I'm fairly sure there is no reasonable explanation.

Somehow, in renaming my 'Occultist' class to 'Diabolist', I have managed to also relabel the Occultist role. In the bottom-right of my screen, if my role should be Occultist, it says my role is Diabolist.
ルネ | Lune 5 Jan, 2020 @ 1:24pm 
Amazing addition to the innocent teams arsenal! Thank you for the implementation of this role!
Cuckoo 5 Jan, 2020 @ 4:27am 
@Pythagorion There's no need to be sorry in the slightest- in the last few minutes, I've already renamed my 'Occultist' to 'Diabolist'. While I was there, I even spotted and fixed a filepath mistake that I hadn't noticed until now.

If anything, 'Diabolist' is more appropriate for the class, since one of their main gimmicks is that they receive LeBroomer's 'Demonic Possession (Passive)' perk.
Pythagorion  [author] 5 Jan, 2020 @ 4:09am 
@Cuckoo thanks for the kind word. This is indeed bittersweet. Sorry for this bad coincidence.
Cuckoo 5 Jan, 2020 @ 3:18am 
Glorious, good work, happy times. I'm very pleased to find that a Phoenix-type role has made its way to TTT2.

I have to admit, this is ever-so-slightly bittersweet for me... I'd already prepared both a working 'Phoenix' TTTC class for our server, and a separate custom class that just happens to share the same name as this role, an 'Occultist'. We haven't even had the chance to try either of these classes out in play yet...

No biggie, of course. Obviously, I'll just come up with a different name for my 'Occultist' class, and my 'Phoenix' class can remain as it is. There's no harm at all having a reviver class on our server alongside a reviver role.

Once again; lovely work with the Occultist, they sound fascinating. Can't wait to take them for a spin.