#archived-modding-development
1 messages ยท Page 142 of 1
yes, but you can also patch it like a normal property
the quirk with properties is that the orig_ gets prepended before the name of the method
you _could _ use something like this though:
[MonoModRemove] // And pray that it doesn't delete the orig_ methods.
public extern bool orig_x { get; set; }
public bool x {
[MonoModOriginalName("get_orig_x")] get;
[MonoModOriginalName("set_orig_x")] set;
}
@copper nacelle
The MonoModRemove is required to get rid of the wrapping property definition
would doing
[MonoModReplace]
public bool get_x();
[MonoModReplace]
public void set_x(bool y);
be better or worse
which might cause issues with reflection later on
MonoModReplace gets rid of the orig_ methods entirely
o
Hey
My friend got the Universal API and the Gradow & Niko + KDT HPBars
But the HP bars don't appear
So, probably there's either a problem with the mod itself, as I remember it not working and before
modcommon
Did it require Modcommon?
yes
forgoy
forgoy
forgay
four goy
Four gay
YO I STILL NEED TO GET THE LIGHT BRINGER MOD OFF caps
Hi guys where can i download a mod for the latest version.
sorry should have asked in the "modding-help"
{
orig(self);
foreach (FsmState state in self.states)
{
foreach (FsmStateAction action in state.actions)
{
if (action is SetPlayerDataBool setBool && setBool.boolName == "crossroadsInfected")
{
Log(self.FsmName + " " + self.gameObject.name + " " + GameManager.instance.GetSceneNameString());
}
}
}
}```
sean where do i put this 
Initialize of a mod
wait do i have to like directly add that to the assemblycsharp.dll
its in a mod
Hey 753, would you agree that all of 56's mods are better than yours?
only Lightbringer
yeah Lightbringer's my favorite 56 mod
re
btw if not it's ok but I'd still like ur help figuring out why soul tyrant's shit resets.
yeah sure
how do i open a dll file 
I have dnspy installed i think
is that something i need
wait do i open the sln with visual studio?
what
you can either do that using like a modding api
but that doesn't exist on your patch
so you can just add it to the method
yes
how do i open dnspy there's no exe
ok so
you downloaded the repo
and not actual dnspy
download it from here https://github.com/0xd4d/dnSpy/releases
btw it's a zip bomb so make a folder for it before you extract the zip
or it will dump its files all over your downloads folder
wait no zip bombs a different thing
I'm thinking of tar bomb but for zip files
yea
yeah that's why I said zip bombs are a different hting
You need to run it in a mod with a reference to modcommon
Or just mod PlayMaker directly if that's what you're into
well i don't have a mod to use it in
no I meant tar bombs but with a zip file instead of a tar file
also most likely with zip bombs it's probably just 7zip or whatever crashes
from running out of ram
well a zip bomb is just a zip file, then x of those in a zip
then x of those in a zip
then x of those in a zip
for a bunch of times
yeah
but a tar bomb is just when people are dungos when they make their tar files
and they don't tar a subfolder they just tar a bunch of files
so they dump all over wherever you're extracting it
but 7z and rar have protection against that and pretty much always have
it was only antiviruses that crashed pcs
because 420iq good code
gotta check every file in this zip, including zips inside it
also fun fact, tar and zip and all extractions stuff can let you extract files above the level they are at
for virus
by using dots
so
if you extract a tar in ~/Downloads and it has a ../meme.txt meme.txt will appear in ~
unless the extraction tool you use explicitly breaks specs
because .. says go one level up
I know what .. means
and that's what zipslip is, it's a bunch of meme idiot non-security researchers finding something that's intentionally in the spec and claming it's a security problem
like ofc it's a security problem, go take this up with ISO and not a bunch of random library makers
make all your programs zips that extract directly to /usr/bin
it doesn't even seem like a security problem it seems like a format problem
like how is that even defined behaviour
tar/zips are supposed to just be compressed folders
but if you explore it like with 7z
how do you find .. that just sends you out of the zip
tar and zip being able to extract on the same level is ok behavior imo because it lets you bootstrap stuff, but letting them extract one level up was bad design
@tranquil glen
This will probably work idk
Also I think this is the first time I've seen foreach get compiled to a regular for instead of enumerator stuff
I guess because they're arrays
ok whose bad idea was it to make a couple of lost kin's waits random. Intentionally trying to ruin people's muscle memory
If it's between attacks that's fine
Should never have random windup on an attack though
yeah it's on Idle
do i have to go to lost kin for this to work or just run the game?
Go to wings
No just a file in your game folder
fsm.json
do i need to make that like i made the save fsm folder for the fsm mod?
is it ok to add ModHooks.Instance hooks to random gameobjects?
Put it in the fsm viewer
I just get a blank screen
I think the other fsm outputter logs the inner json
You gotta remove the outer stuff { "fsm" : {REAL SHIT} }
nice
Lol
ok but i have no idea what i'm looking at, i see the bool i wanted
is it activating after it finishes giving me the message for wings?
What's funny is there's nothing to look at
What it looks like here is essentially:
if (!crossroadsInfected)
{
crossroadsInfected = true;
visitedCrossroads = true;
}
//Begin state Msg
Idk 56 didn't send a full screenshot
cause it makes sense that it would check if crossroads was already infected from a dreamer or something
Hmm
someone wanna point me in the right direction in where i can grab some information for learning how to mod?
looking at this drive folder with boss rush in it
ah, this mod manager is very helpful, that seems easy enough
boss rush doesn't work on lifeblood
FeelsBadMan
Are KDT and Kein the same person?
both kdt and kein have names that start with k
both mod hk and other games
both made boss rush
both are mean

It's a possibility
I made another alpha of my arcade mod. This time it also includes lost kin. He works best I can test but I'm not a good tester.
(mostly for @copper nacelle tbh )
oh don't worry, I'm never getting the green color
I'm stuck as a white person
But it's better to be a white person than any other ethnicity in most cases
Don't complain about your privilege
Colored people have all the privilege on Discord servers.
I have to sit in the back of the server.
Damn right, stay outta #462199380049395712
Is there a way to get the full line of references leading to a missing reference?
I have a missing reference that makes no sense at all
And I'm getting a missing reference System.IdentityModel for this
I have a quick question about down grading. I cannot get to the steam console its greyed out. Do you guys know what is wrong?
Restart steam
Still greyed out
Dunno then
๐ฆ
@rain cedar I am now getting ```] 1.2.2.1: download_depot 367520 367521 648876203478229944
command not found: 1.2.2.1:
so uhh i have this
Image bar = CanvasUtil.CreateImagePanel(canvas, **Sprite object here** , new CanvasUtil.RectData(new Vector2(500, 50), new Vector2(-680, 810), new Vector2(0.5f, 0), new Vector2(0.5f, 0), new Vector2(0.5f, 0.5f)));
And i dont know what to put for that arguement, tho i did a few prodding by creating new sprites but it kept telling me that that it couldnt convert the object implicitly into a Unity.UI.Image
A sprite
Sprite.Create
and then create a sprite using a rectangle and a texture and a pivot
Oh i did some searching awhile ago and did try to use that
Texture2D texture = new Texture2D(100, 100);
texture.LoadImage(Resource.fg);
Sprite spriteBar = Sprite.Create(texture, new Rect(0, 0, 350, 288), new Vector2(0.5f,));
and placed spriteBar in the args
the rect width and height and x and y represent the portion of the texture you wanna use
so if you wanna use a small segment of the texture for the sprite
which makes sense if you have a sprite sheet on one texture
so different parts of the texture represent different frames of animation
for me I just used the whole texture like so https://github.com/natis1/redwing/blob/master/redwing/redwing_game_objects.cs#L49
and pivot should probably a 0.5f 0.5f vector2
if you ever wanna rotate it
yeah tried some of those, CanvasUtil.CreateImagePanel is still asking for a UI.Sprite arguement
i use Image object so i could use the FillMethod commands
Do what you did before with spriteBar
Except I think you need to do texture.Apply() before making the Sprite
you can just do CanvasUtil.createSprite(Resource.fg, 0, 0, width, height)
Lowercase function names nice
hey
my friend pointed it out - in the HPBars mod (the one made from Gradow, KDT and Niko) the Boss Health (Big Red one) disappears if you hit spikes
So do I understand this right, a 'while' loop continues going as long as the conditions set are true so if you just go 'while true' it'll go forever because true is true?
yes
nothing happens
Ok
if you did
do{
} while ( false )
it'd run once
Huh
Those loops look like shit though
Hey, so we (me and a good friend of mine) have made a Hollow Knight Roulette Bot, it's currently Open-Beta and we're searching for some people who'd like to test it out, catch some bugs (if there are any), give some ideas and stuff.
If you're interested I'd like you to DM me.
more info plox. this tells me nothing
Sure, the Bot randomizes your charm set up, nail upgrades, spells that you can use, generally tries to find a way to play you've never done before.
so.... it's randomizer
^
we have that tho
Do you?
maybe it works differently
does it randomize item pickups?
or does it randomize what you have equipped?
At this point it has only what you have to have equipped.
sounds like currently equipped stuffs
I mean, it's a Discord Bot that randomizes your run.
oh
Charm equips, do you have to be overcharmed, what conditions must be met and stuff.
We're a bit out of ideas so we've decided to make an Open-Beta for people to see, say what they like, dislike, what to change, add and stuff.
kinda like a restriction randomizer
yeah
Yea, my coding skills aren't as high as my friend's, only he could do that.
I've seen DS runs like that
Interested?
nope
It's a fun purpose bot, to discover ways you've never played before.
yeah, but that's kinda like a catch-all term, right?
I mean, every mod does that to some instance
does it tell you to play with a blindfold on?
It doesn't, Mickely.
what restrictions are there currently?
if you add randomizer compatibility, I'm sold
Charms, charm notches (which are a pretty complicated thing right now), nail upgrades, spells (rolls whether can you use some or not).
Not much have been added, really, that's why I'm asking here right now, we need some ideas and stuff.
I still don't get how it would work... Say I roll a restriction that tells me that I need to be overcharmed
but I've literally just started the game
We've obviously thought about this.
It only rolls the charms you could've picked up in certain areas.
Say: It cannot roll a Grimmchild on False Knight.
Only the ones you could've picked up before fighting him.
sounds like a "challenge run generator" for people who can't think of them on their own. I have no interest in this, personally.
hence my suggestion for rando compatibility
yeah, Mick, but for stream gimmicks, people seem to enjoy these
I've seen people do like "every donation gets to add another restriction" or smth
Well, if you're interested I can invite you to a server and you can check it out yourself.
sure
because, as it is, seems like basically anyone in this channel could break the restrictions
because it's very easy to sequence break HK
even nmg
even no glitches
I'll DM you.
and you can't "cheat" out of it
it physically forces you to play the game different
vastly different
yeah
way better than just rando. cuz once you get all win conditions, rando is pretty meh tbh
the end of rando bingo feels way more definitive
whenever I get claw I just reset the run
because there's no point in playing anymore
I really liked doing rando 107% tho
@compact sedge nice

. . .
56 how'd you get the fsm thing to work?
i removed {"fsm": from the start and a } from the end
is that not what i needed to do?
ok thanks
if you still can't get it to work
would it be after i'm supposed to hit the ground rather than when i actually do?
like if i menu drop into it and hit the ground earlier would it still wait until i was supposed to have hit the ground
well the game gets super confused cuz you're supposed to be in the air. so.... maybe?
no
it has 3 waits before that to transition states
does it play the anims after you hit the ground or no
are you trying to get the crossroads infected?
trying to avoid infection
isn't there just a bool for that?
the animations continue and i'm invisible until they finish
yeah ok
while the anims are active crossroads is uninfected
once they finish and you're on the floor it'll set
i'd still test it tho
doing so now
nice
were you waiting out the whole animation before?
idk mick
I haven't really done real runs
one time it was infected one time it wasn't so i just wanted to look into exactly what caused it
gotcha
i suppose i never would have run into that cuz it's always infected by that time in all skills runs from killing a dreamer
probably waited out animation the time it happened cause i wasn't really worried about speed
wtf
i don't see an issue
i can't move either
leaving that room fixed the movement
i didn't have the wall broken
nvm
opening my inventory fucks it
ahh yes i had that issue too
unused sprites
is that gng
but it would do that when you equip the charms
what caused this
broke
great. now i want to do this on purpose
and 4 soul containers
4 soul vessels 
wtf
hacks
gods and glory 1 extra soul vessel confirmed
i didn't give myself anything
what patch are you on
wtf
yeah crossroads very not infected
how many masks do you have
what is that random 98?
it's still happening
essence
uhh
also it's inherent with the modding api
๐ฏ ๐
11
it really screws with things
masks
11 masks
excuse me
seems good
i don't have fragile heart on
Uhhhh
o yeah
i had all charms visible but they turned into debug charms when equipped
you can't equip them what
that's even more odd
my load screens are gone as well
yeah i had that too
this wall is unbroken
i'm in it
also there's a really sick kingsmould thing
is that new

or gng?
the same bug happened with hornet's room
it's like this magic circle
so uhhhhhhh
kingsmould thing?
So it fucked with your save file?
kingsmould shield shows up when you dreamnail it before awakening
pic?
one sec
i'm betting i fucked the playmaker dll
happened after i tried to reinstall the fsm dumper
Interesting how the fourth soul vessel is actually aligned properly with the UI
kingsmould is already fallen over too
Which means it was intentionally put there at some point
nani the fuck
something else
it appears when you try to dnail it without awakened dnail
like veru said
but yours is already slumped over sooooooooooooooo
i can't hit enemies
i have no clue.
Can the enemies hit you?
have u tried not being a hackerman
i can give my playmaker dll if anyone wants to try it
wtf
belfly one shot me
i'm guessing the hp goes down but doesn't show

So no matter how many times you hit enemies they don't die
can't cdash or spell
no i can't hit them
at all
also the entrance to the abyss is just black
But still though that 4th soul vessel placement intrigues me
can't hit levers either
Possibly there was supposed to be a 4th soul vessel at some point but it was cut from the game
Can you interact with anything like npc's
Have you tried spells yet
And all charms are just broken
ones i have equipped still work
Can you unequip them
no
what'd you do leading up to this?
updated fsm dumper
kk. so you just fucked all fsms probably. lol
that's pretty great
They look dead before spawning
really does me a big think
I've seen this before
it's like i have 0 nail damage
Someone got this as a bug some time ago
ok
if anyone wants to meme https://www.reddit.com/r/HollowKnight/comments/909k6c/tas_potential/
lemm dealing drugs
ok
he's just walking into the entrance
lmao
a vengefly is just stuck mid air
won't move
even if i pogo it
gonna see what happens to the dnail room
ok
really makes u think
Quirrel dual Sword user
2 Quirrels during UumuU when?
Uumuu, but a thousand Quirrels
oh look it's disappointment
i wonder what salubra sells
dad?
she sells seashells by the sea shore
actually it's a lake
i sure do love starting a new game
98
seems legit

And this is a new save
yes
Check the black egg
Is this New Game+ mod
black egg is normal
How dare it
really makes u think
caught in the middle of making it
56 what dif u do
So it just loads everything at once 
you know.... i always thought it was a tape
now i see it's a slip of paper with his glasses
that's not how this works
But now the question is, can it be corrupted even more 
wtf
what'd you do
that looks like the old version of fungal wastes!
good question
Could it be the shroom guy?
i think it just kept the color scheme of sewers
nice mask shard circle
Also that shade
just like how you are dead but aren't dead
zombie state
soul totem stays active
inb4 zombie hovers are a thing
shrodinger's knight
even though i can't hit it
Have you tried any boss fights?
can't hit them
Do they even activate
can't activate gruz cuz can't hit
haven't tried fk
wtf
can't even talk to salubra
she just laughs
lol
on the other save she just said i bought everything
re
enemies are kinda working
now
they weren't before
they target me
can you use spells?
no
can't use spells, superdash
dnail
spell control is fsm
so is superdash
i'd assume dnail too
If you can't hit anything you're pretty much stuck in the crossroads though
i wonder though
But that's cheaaatiiin
if you are in the spring, does the fourth soul vessel fill up?
try using debug to increase nail dmg
ok
new summon charm
he's taking my seat

reddit has no fucking clue m8

"no frame-perfect tricks"
that there is someone who's only ever watched a TAS like once
^
and has a very limited knowledge and experience with speedruns at all
well he's saying he doesn't know if this game has frame perfect tricks in it
which means he hasn't watched a run or knows anything about it
and implying that TASes exist for the sole purpose of making frame-perfect tricks consistent
๐ข
tru
roar at her till she dies
no cdash
storage the dialogue
hornet machine broke
walk past her 
FTL Hornet
ITS OVER 5000
is this shitmodst 2
literally yes
Holy shit
I'm not convinced
seems like a nightmare to debug if it was human written
like "whoops we accidentally added some parends so the logic was slightly wrong"
what is that?
Bad
Where did you find this?
Even I, someone who doesn't understand code at all am terrified of something that looks like that
It's in Salt and Sanctuary
well given those devs possibly written by a human
but I bet the original code had each condition on a separate line
so it could be actually read
So much of the game just works through assumptions about other things
Like if you try to add a class with full equips the game crashes
Because it was just assumed that would never happen and you get an out of bounds exception when it tries to equip the starting consumables
Jus recode the game so that doesn't happen Sean 
I realize you're joking but that's what I'm actually doing
Using Mono.Cecil to patch functions at the IL level
Tbh, i don't think i've sent more than probably 1 message here and it was probably a meme. So hi i guess.
Oh shit. Didn't remember that.
This is super niche but in case anyone else was wondering how the when keyword worked with fallthrough here you go
neat
Man all day I was wondering about that
You really gonna come in here and talk shit?
You don't even make mods
I'll fuck you up
I love internet fist fights
I came in here and asked questions until people did stuff for me, isn't that what modders do anyway? 

how to hide and unhide the debug page while gaming
F1?
but my debug mod aint showing everything like the charms and other stuff
:begone:
:thot:
guys, it's been months since I stopped playing with mods. I'm wondering, what are new mods or is there any super recommended mod I should try?
I've done everything in the game, multiple times, I used to play the boss rush mod long time ago
wait 33 days
boss rush was never updated for lifeblood :(
mod installer? Imma check it out right now
My nephew got a nintendo switch, and i gave him hollow knight, so I've been playing with him lately. This game is so amazing
I can't wait for gods and glory
gng never
this probably has been asked multiple times, so I apologized. I installed the mantis god mod, so I have two questions. How do I know if it successfully installed?, and two, what mod should i get in order to teleport to the mantis lords and do the fight againt?
again*
well if you used the installer it should appear in the top left
when you launch the game
that or any other mod
and uh you can just refight the mantises by reentering the room even if you already did it on your save
so probably debugmod to move around quicker
dreamgate tm
mostly gradow
i meant like a normal dream gate
real line of code
} while(r != 15 && r != 27 && r != 45 && r != 88 && r != 89 && r != 95 && r != 114 && r != 116 && r != 132 && r != 156 && r != 157 && r != 172 && r != 173 && r != 189 && r != 207 && r != 225 && r != 242 && r != 253 && r != 254 && r != 261 && r != 263 && r != 270 && r != 274 && r != 304 && r != 306 && r != 311 && r != 321 && r != 343 && r != 356 && r != 357 && r != 399 && r != 408 && r != 409 && r != 410 && r != 424 && r != 442 && r != 444 && r != 451 && r != 461 && r != 483 && r != 502 && r != 503 && r != 510 && r != 521 && r != 523 && r != 615 && r != 617 && r != 630 && r != 636 && r != 639 && r != 684 && r != 700 && r != 706 && !(r >= 76 && r <= 78) && !(r >= 119 && r <= 126) && !(r >= 278 && r <= 280) && !(r >= 282 && r <= 285) && !(r >= 294 && r <= 295) && !(r >= 335 && r <= 338) && !(r >= 477 && r <= 479) && !(r >= 495 && r <= 497) && !(r >= 659 && r <= 661) && !(r >= 710 && r <= 712));
delete this
don't write code that requries this
aaaaaaaaaa
this is pain
and the way I'd fix it is NOT generating random numbers that are bad numbers
how tho
huh why do they need random numbers like htis
I presume the projectile list is preset and they have no control over it?
yeah
ok cuz if they did they could do a couple things like adding a var on the projectile itself they check against, or putting all the bad projectiles at the end
or splitting the bad and good projectiles into different lists
num149
wttf
why do you need 149 local variables
tbh i hate this function as a whole
for anything
there aren't even 149
really clear what these local vars mean too
just look at it
is this a gungeon mod?
no it's a terraria mod
hmm
well they are static so them being public or private is just dev preference
the problem comes from public non-static methods
tbh public / private doesn't really matter for personal projects
only really matters when someone else is going to interface with your class and might set a var or run a method they shouldn't 
only if you trust yourself
i'd just use reflection to bypass my own private stuff
so theres no reason to try and stop myself 
although you know what reflection has no solution for afaik
private classes
in lists
and or dicts
for me it's this. I could use reflection to bypass my own shit, but me writing it as private is me telling future me not to do that
past me doesn't know future mes problems
but for real celeste has this private class called TerrainType
I can instantiate the class
I can set its vars
I can pass it to functions
I can run its methods
I can create a dict of <char, TerrainType>
I can add stuff to the dict
try and overwrite another classes dict with mine can't cast ๐
does anyone have an old version of dnspy
or an older version than most recent at least
they have older releases on their github page no
aaaa
omg they delete their old tags too
jerks
so you don't even know when the last stable version was
screw you 0x people
what do you want
old dnspy
how old ๐ค
uh they were using 4.6 as long as they've been around
try this commit @copper nacelle 276c1291a124fcd0bf94fb578da50a4e5ce8740b
nice hardcoded paths
i redownloaded it and it still didn't work
re
oh wait
submodules
fuck
didn't clone recursively
btw no idea how to get the submodules that are built for that specific commit
or maybe nugit does it for you
idk
idk if git did it for me or what
it still targets 4.7 meme
even though the commit right after it said it was the one that switched the target to 4.7
wtf
no
and open the project file it generates in rider
ur wrong rider's search is great
ur wrong dnspy's search is even better
wow even better
wait
i think i have a dnspy from before 2018
feelsbadman
gonna dnspy dnspy
truly woke
that might work
but i have one
from 11/27/17
it was on my other drive

[assembly: TargetFramework(".NETFramework,Version=v4.6.2", FrameworkDisplayName = ".NET Framework 4.6.2")]
might work idk
for example archive.org says this is version 3.0.2: 6ed77d4
yeah but downloads tm
no offense but fuck this guy
someone posted a link to an old version, he edited that link out
here's that link since github lets you view unedited comments
0009:err:module:fixup_imports_ilonly mscoree.dll not found, IL-only binary L"dnSpy.exe" cannot be loaded
agony
i've had this error for like an hour
finna give up
System.IO.FileNotFoundException: Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
i ran it in some starcraft wine instance i had

almost worked
Have you tried making it work?
no
good idea
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not resolve type with token 01000587
ree
so close but so far
ok i just copied random dlls related to it
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not set up parent class, due to: Could not load type of field 'System.Windows.Application:_appMimeType' (24) due to: Could not resolve type with token 0100001c assembly:WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 type:MS.Internal.SecurityCriticalDataForSet`1 member:<none> assembly:Z:\home\home\Downloads\dnspy_3.0.2\PresentationFramework.dll type:Application member:<none>
idk if this is progress or not
the answer is not i just got back to my old error
not sure if you guys need this or not but I wrote a program to view the fsm files visually like this
reads directly from assets files
give link
give soul
soul when
whatever this is
yeah sorry its wpf
what files should I use as input?
level files or resources.assets
yes
the graph is a bit derpy because I couldn't find a library to handle it so it's kinda homemade
I love you
the square brackets are byte sizes
new modding era has begun (?)
i crashed it
i think double clicking select crashes it ๐
it does
weird assetstools bug
can you open multiple files at once
yes please
tabs or something?
one list + search would be godly
tabs, ye
tbf an interface somewhat similar to unity studio would be godlike
ah gotcha
ffs
you have the exact opposite what i had