#archived-modding-development

1 messages Ā· Page 502 of 1

copper nacelle
#

that was already there

#

from what i remember

#

nvm

#

the first thing was

#

the second thing wasn't

worn eagle
#

the void's been fixed but the audio still fades out

ornate rivet
#

good, looks like it's going to be in beta for a while

copper nacelle
#

incredible

#

still an improvement

worn eagle
#

ye, tc's actually listening to feedback now so we need to throw all our grievances at them

copper nacelle
#

remove the extra .5s per transition

#

😤

worn eagle
#

fury dreamgate and lifeblood glitches still exist pepogrub

copper nacelle
#

goodbye

#

meme

#

literally what

#

racist

worn eagle
#

did hornet used to always die upside down if you kill her during her air dash?

#

or just sometimes

copper nacelle
#

not sure

#

i know it happened at least sometimes

ornate rivet
#

I dont think it was all the time

copper nacelle
#

freedom

ornate rivet
#

what does net4 have that 3.5 doesnt

copper nacelle
ornate rivet
#

rip

copper nacelle
#

tuples by default

#

a bunch of nice methods

unborn flicker
#

plinq

copper nacelle
#

actual library support

#

plinq is nice yeah

#

enum.tryparse

#

etc

ornate rivet
#

parallel linq?

unborn flicker
#

yeah

ornate rivet
#

ok that's cool

copper nacelle
#

they changed inputs?

#

input is under inputlegacy

#

why

worn eagle
#

does flukenest do more damage

#

takes 7 spells to kill a 600 hp watcher knight

copper nacelle
#

unless there are more of them idts

#

i should have debug soonish

#

provided the api build doesn't hate me

#

omegamaggotprime

copper nacelle
#

me when i

#

the output log is not updated

#

i am going to kill myself

fair rampart
#

oh dam thats tough as hell

copper nacelle
#

Oh that's fucking fantastic

#

omfg

#

They killed dynamic methods

charred topaz
#

well that means my object pool system is going to break šŸ¤¦ā€ā™‚ļø

worn eagle
#

Are there any bugs y'all would like reported before I submit my own report

copper nacelle
#

re-enable output_log 😤

#

idk nothing i've got besides screenshake being larger

#

about to break every mod ama

worn eagle
#

pv still doesn't take damage from flukenest but idrc

copper nacelle
#

bless ade

#

oh that reminds me

#

we have dynamic now ig

worn eagle
#

is gruz mother getting stuck in a corner important enough to report lol

copper nacelle
#

i think that always happened

leaden hedge
#

yeah

#

always does

worn eagle
#

ik, just considering adding it to the list since tc's listening now

#

so I shouldn't report anything that was already in 1432?

copper nacelle
#

idk you do you

#

oh yeah the mods not loading is because valuetuple is part of .net 4 now so i'm not merging it into assembly-csharp

#

which is where it's expected to be

#

thus death

worn eagle
#

is output_log.txt not changed to Player.log

copper nacelle
#

ah it is

#

ty

#

suffering

worn eagle
#

why would they need this, hmmmm

#

well, maybe it was just added later in tk2d since it was supported up until 2018.4

prime urchin
#

I did not expect to be playing games and then come back to a HK update of all things

#

so 2020 version of Unity along with .NET 4 (thank god)?

jolly oriole
#

damn, i wake up and see that there's a new hk beta

#

time to make a branch for all my mods in anticipation for 64bit 2020 hk

nimble lake
#

:modders:

somber cliff
#

wait, theres a hk update ?

leaden hedge
#

beta

#

1.5.58.numbers

somber cliff
#

okay.

jolly oriole
potent dirge
#

I remember finding how to get the list of which levelN file was which scene, but I do not remember how or where. Any pointers? ax2uHmm

#

lfg pins? ax2uHappy

jolly oriole
#

either

  • use nesraks hkworldedit, has such a list
    or
  • UnityEngine.SceneManagement.SceneManager has methods to get all ids and their respective names i think
    or that apparently
copper nacelle
#

mine was just uabe

#

it's in like resources.assets or something and you dump the one called global game managers

tawny onyx
#

Oh NOOOO

jolly oriole
#

rip the guys from pale court

ornate rivet
#

no

#

no

#

FUCk

#

FUCKKKKKKKKKKKK

copper nacelle
#

local man dies

#

you can probably rip from cp and still output in 2020

jolly oriole
#

unless members got added to scripts that should work perfectly fine

ornate rivet
#

we'll see

#

hopefully it never leaves beta

vocal spire
#

F

jolly oriole
#

or better: make the things from scratch, so you don't have 100 MB assetbundles

tawny onyx
#

it seems tc add two new level?(level 499,500

ornate rivet
#

what are they

jolly oriole
#

wait what

copper nacelle
vocal spire
#

I am very confused

jolly oriole
#

i'd like to look, but work doesn't allow me to

tawny onyx
#

does they exists in 1432?

jolly oriole
#

no

ornate rivet
copper nacelle
#

I was about to do something

tawny onyx
#

i want to find out what they are

copper nacelle
#

Ruined

#

I can get the scene name in like 2

tawny onyx
#

but i can't extract any asset

jolly oriole
#

2 what, bananas? apples?

ornate rivet
#

2 years

copper nacelle
#

til sfgrenade is a shitty english teacher

vocal spire
#

Oh there’s an update

#

WHAT

jolly oriole
#

bruh

copper nacelle
#

my man is about 10 hours delayed

vocal spire
#

Hey I just woke up less than an hour ago

copper nacelle
#

me when uabe does not support 2020

#

genocide

vocal spire
#

Anyways pale court ruined

tawny onyx
#

is there any way to extract the unity 2020?

jolly oriole
#

try dnspy modding a class to log names using methods in UnityEngine.SceneManagement.SceneManager, like current modding api uses for preloading

copper nacelle
#

I'm just gonna do it in code

#

I have an api built

vocal spire
#

I assume hk is now in 2020?

jolly oriole
#

then use that

#

yes

#

2020.2.2

vocal spire
#

:(

#

Now I need to get another ver of unity

jolly oriole
#

and .net framework 4 afaik

copper nacelle
#

yeah

vocal spire
#

Evil

abstract viper
#

can someone explain what the scenes are exactly?

copper nacelle
#

you mean amazing

vocal spire
#

No

copper nacelle
#

generally every room is a scene

vocal spire
#

No I don’t want to install new stuff

copper nacelle
#

bitch

#

.net 3.5 is so fucking old

vocal spire
#

:(

#

Ok fine

jolly oriole
#

oh wow, just realized, we now can use nearly newest unity docs (default is still 2019.4 for some reason)

copper nacelle
#

it fucking threw

#

amazing

#

it is just getsceneat(499) yeah?

jolly oriole
#

should be

#

SceneUtility.GetScenePathByBuildIndex(499)

copper nacelle
#

buildindex

jolly oriole
#

tf is sceneutility

abstract viper
#

jesus that is a cursed emote

copper nacelle
#

you mean beautiful

vocal spire
#

Beautiful

copper nacelle
#

who?

jolly oriole
copper nacelle
#

it is time to debug

#

feelspkman

#

you think the unlock wastes is for ab?

vocal spire
#

Hmmmmmm

jolly oriole
#

i think so, already present in 1432 though

copper nacelle
#

i forgot

#

everything is broken

jolly oriole
#

poggers

copper nacelle
#

i assume it's like a cutscene

#

I could just directly load the scene

vocal spire
#

F

copper nacelle
#

what

#

oh

#

it being broken

tawny onyx
#

sad

jolly oriole
copper nacelle
#

maybe

#

idk i haven't used that

#

abyss_scenery

#

in 499

#

ok

#

this is 499

ornate rivet
#

huh

copper nacelle
#

is this not the one you randomly get

ornate rivet
#

yea

copper nacelle
#

it yeeted me

ornate rivet
#

but doesnt it already exist

copper nacelle
#

so toxic

#

yeah

#

idk

ornate rivet
#

what about 500

jolly oriole
#

weird, should be one of the scenes in the 498 package (current patch)

copper nacelle
#

500 is just the cutscene

#

both of which already existed

vocal spire
#

Huh

tawny onyx
jolly oriole
#

now to check if the already existing ones still are the same zotewheeze

ornate rivet
#

^

vocal spire
#

Could the order of scenes have switched

copper nacelle
#

yeah i'm about to log them all

vocal spire
#

Nice

ornate rivet
#

fuck I hope not

jolly oriole
vocal spire
#

Pale court’s already ruined, it can’t possibly be ruined more

copper nacelle
#

i remember when the game didn't take 20 seconds to load

vocal spire
#

šŸ¤” ?

copper nacelle
#

does not feel okay man

weak lodge
#

you mean before you took out the loading

vocal spire
#

Does preloading still work

ornate rivet
#

I thought this update would at least make the game faster

jolly oriole
copper nacelle
#

I mean it does but it kills DynamicMethods

#

which means we get to use the cecil version

#

which is very much not as fast

#

to instantiate

jolly jungle
#

You all seem to be in pain

ornate rivet
#

intentionally? maybe we can ask them to fix it

jolly jungle
#

What's going on?

jolly oriole
vocal spire
#

Hk beta update

jolly jungle
#

Oh, it broke stuff?

vocal spire
#

hint: it’s in unity 2020

copper nacelle
#

they left in 2 testing scenes

jolly oriole
#

poggers

vocal spire
#

Pog

jolly jungle
vocal spire
#

Assetbundling die

ornate rivet
#

that's not bad

copper nacelle
#

420: (_test_cocoon_2) and 422 (_test_cocoon_1)

vocal spire
#

Well that’s underwhelming

jolly oriole
#

prob still worth to look at what was tested

copper nacelle
#

Yeah I'm loading it

jolly jungle
ornate rivet
#

inb4 it's to test the lifeblood glitch lol

jolly jungle
#

lifeblood glitch?

vocal spire
#

lol

jolly oriole
#

maybe lol

ornate rivet
#

sigh

vocal spire
#

Did they know about it

jolly jungle
#

Why would they not

jolly oriole
copper nacelle
#

amazing

vocal spire
ornate rivet
#

deep lore

jolly oriole
#

well, i don't know what i expected

vocal spire
#

Underwhelming

#

0/10 would not do again

ornate rivet
copper nacelle
#

connected to this room

vocal spire
ornate rivet
#

just like the abs rad glitch

vocal spire
#

Ah so they’re like the rest of us

ornate rivet
#

no one wants to fix glitches

vocal spire
#

Yeah

copper nacelle
#

do these normally fall off

#

the caps of the cocoons

jolly oriole
#

i think so

#

but that's a detail i don't usually look at

vocal spire
#

There’s lore somewhere, maybe it’s an inactive go

copper nacelle
#

here's the lore

#

i am lifeblood rich

jolly oriole
#

56 for silksong!!!!?!?!??!!

ornate rivet
#

yea they always fell

copper nacelle
#

the more you know

#

neat

#

I'm gonna have to thread the preloading reflection now

#

It's so bad

jolly oriole
#

prob just forgot to tick the boxes off when building for the beta

ornate rivet
#

imagine pale court's speed, it already takes 25 seconds

copper nacelle
#

that is why it is going to be threaded

jolly oriole
#

the preloading reflection

copper nacelle
#

what

jolly jungle
copper nacelle
#

i'm right

#

it pre-generates the dynamic methods to get fields using reflection because the game has like a metric fuck load of them

#

and by default it doesn't even cache fieldinfos

#

which is really slow

#

and that would be made worse with the prepatcher which swaps all pd access to that for the purpose of mods being made easier

#

so we do it beforehand

jolly oriole
#

saleh, did you mean the GO preloading?

ornate rivet
#

no

jolly oriole
#

afaik no

copper nacelle
#

wait

ornate rivet
#

send

copper nacelle
#

this is busted as fuck

#

for runs

vocal spire
#

Wow

copper nacelle
#

it's free inv drops

jolly jungle
#

Aight good luck all of you

vocal spire
#

Let’s a go

ornate rivet
#

is it unintentional

vocal spire
#

Nah totally intentional

#

But actually it seems fun

ornate rivet
#

where are you seeing it

vocal spire
#

Why has there been no mod made for that

jolly jungle
#

Wait what

#

Hold up

jolly oriole
jolly jungle
#

Is this in the new beta? No mods or anything?

vocal spire
jolly oriole
#

idk, maybe you're blind or something

vocal spire
#

New beta

jolly jungle
#

That's, ah
Not how it should be?

#

I think

copper nacelle
#

it's time to delete the evidence

#

otherwise they'll kill it

vocal spire
#

Oh yeah

ornate rivet
#

send me the video at least

vocal spire
#

Same

ornate rivet
#

I see

#

now delete

copper nacelle
#

ok

#

just that good

tawny onyx
#

oh,wtf 56 just deleted

copper nacelle
#

sh

vocal spire
#

Shhhhhhhhh

jolly oriole
#

watch me send a screencap of that to tc

copper nacelle
#

please i am begging you

vocal spire
#

Please

#

Grenade don’t do this

jolly oriole
#

first person to actually beg me for something, maybe i'll forget it

vocal spire
#

Cool

copper nacelle
#

nvm

#

it was the api

#

ruined

vocal spire
#

F

jolly oriole
#

damn you 56 for spreading misinformation

copper nacelle
#

listen

#

the api shouldn't break that

#

reasonable assumption

#

i thought it was at least

#

feelsbadman

tawny onyx
#

56 is no a real man, now he is hk

jolly oriole
vocal spire
#

How does it break that

jolly oriole
#

unless tc adjusted their fsms regarding dnail

copper nacelle
#

I have no fucking clue

vocal spire
#

Maybe it’s actually a glitch and the api does something that triggers it

copper nacelle
#

i have found the problem

jolly oriole
#

holy shit

copper nacelle
#

i think the reflection is broken

#

this would be significantly easier if i could actually build the api

ornate rivet
#

wtf

copper nacelle
#

really great

jolly oriole
#

maybe try a barebones prepatcher / nearly nothing mono project and build the api with that

copper nacelle
#

so much effort

#

it's just the repacking which dies

#

which is a great opportunity to get rid of it

#

i hate it

jolly oriole
#

you could --verbose to see what exactly dies though

copper nacelle
#

that's true

#

ilmerge dies too

#

except it stack overflows

vocal spire
#

Huh reflection die

jolly oriole
#

i'll try to help with the api thing once i'm home and at my pc (so in ~1h)

vocal spire
#

Could I help

jolly oriole
#

if you can clone the modding api repo, yes

copper nacelle
#

honestly with this being a breaking change anyways i'd be very happy to keep them split

jolly oriole
#

of course

copper nacelle
#

better build times better dnspy less bloated assembly

jolly oriole
#

why didn't ms add json.net in .net 4 but only .net 5, 3 & 3.1?

vocal spire
#

F

copper nacelle
#

i mean it's a big api

jolly oriole
#

ig

vocal spire
#

Steam has decided to commit die

copper nacelle
#

i wish i was steam

vocal spire
#

šŸ¤”

copper nacelle
#

i'm right

vocal spire
#

Whatever you say....

ornate rivet
copper nacelle
#

terrible

potent dirge
ornate rivet
#

nah it was two lifeblood test rooms

#

what if they just wanted a rounded number of levels :)

potent dirge
#

Nah, I read above, the test rooms are silksong confirmed crakieSip

ornate rivet
#

of course

jolly oriole
#

am at pc, can start modding (well, at least after i download the update lol)

#

is this one, right?

ornate rivet
#

yea

jolly oriole
#

poggers

#

oh yeah, had to load a backup of my saves because the hallownet test sadly fucked them up

worn eagle
#

fuck

jolly oriole
#

even more sad, apparently i deleted all save backups (the automatically created ones) before or during

#

well, who would've guessed, hkfsmview crashed when trying to open scene list

limber storm
#

Does anybody have the text file with all of the initial HeroController values? The message where I first saw it seems to have been deleted

jolly oriole
#

oops

limber storm
#

Thank you!

jolly oriole
#

why are we using ilrepack 2.1.0-beta1 if 2.0.18 is technically newer?

copper nacelle
#

because it looked newer in version number easy

#

pretty sure 2018 doesn't work either

jolly oriole
#

yep

#

though i don't know how to get past the cheatmanager start ane

copper nacelle
#

ILMerge worked the first 2 times for me

#

then it shit itself

#

No idea why

jolly oriole
#

i feel like the monomodded api shouldn't be only 3.8 MB

#

i just read the help wrong

#

now 15 looks more like it

#

this sure is something

vocal spire
#

hmmmmmmm

#

does the project need to be in net 4 now?

#

visual studio like to freeze

jolly oriole
# copper nacelle i think the reflection is broken

i guess the reflection really is broken

PlatformNotSupportedException: Operation is not supported on this platform.
  at Modding.ReflectionHelper.CreateGetFieldDelegate[TType,TField] (System.Reflection.FieldInfo fi) [0x00029] in <cae828cd382a414f9718739d8bd0ae94>:0 
  at Modding.ReflectionHelper.GetGetter[TType,TField] (System.Reflection.FieldInfo fi) [0x00046] in <cae828cd382a414f9718739d8bd0ae94>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <2b3a3162be434770b7a4fac8b896e90c>:0 
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0004b] in <2b3a3162be434770b7a4fac8b896e90c>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <2b3a3162be434770b7a4fac8b896e90c>:0 
  at Modding.ReflectionHelper.CacheFields[T] () [0x000c2] in <cae828cd382a414f9718739d8bd0ae94>:0 
  at Modding.ReflectionHelper.PreloadCommonTypes () [0x00020] in <cae828cd382a414f9718739d8bd0ae94>:0 
  at OnScreenDebugInfo.Awake () [0x0001e] in <cae828cd382a414f9718739d8bd0ae94>:0 
vocal spire
#

huh

#

time to rewrite reflection helper!

copper nacelle
#

oh I already fixed the exception

vocal spire
#

lol

jolly oriole
#

poggers

copper nacelle
#

DynamicMethodDefinition

#

However that seems to not work correctly

#

Didn't really get a huge chance to look into why because my api stopped building right after

jolly oriole
#

currently it works for me, tell me what to do

vocal spire
#

I think I have mine almost working(?)

#

does Input still exist?

copper nacelle
#

you just swap dynamic method to dynamic method definition

#

input legacy module

vocal spire
#

ok

copper nacelle
#

And then .CreateDelegate to .Generate().CreateDelegate

#

It looks like tc could fix this with like two clicks lmao

#

You just set api compat to .net 4.x

jolly oriole
#

write 'em

copper nacelle
#

But that's not net standard 2.0

#

Doubt they'd change it for the sole purpose of making modding easier

#

Idk how json.net doesn't die, it's supposed to use the same shit

#

Maybe because it doesn't get the chance

#

Due to Vector3 dying

vocal spire
#

y'all know the solution to this?```Severity Code Description Project File Line Suppression State
Error MSB3073 The command " C:\Users\name\Downloads\HollowKnight.Modding-1.5-Beta\HollowKnight.Modding-master\ILRepack/ILRepack.exe /out:Assembly-CSharp.dll MONOMODDED.dll System.Runtime.Serialization.dll Newtonsoft.Json.dll MMHOOK_Assembly-CSharp.dll MMHOOK_PlayMaker.dll MonoMod.Utils.dll Mono.Cecil.dll MonoMod.RuntimeDetour.dll ValueTupleBridge.dll" exited with code 1. Assembly-CSharp C:\Users\name\Downloads\HollowKnight.Modding-1.5-Beta\HollowKnight.Modding-master\Assembly-CSharp\Assembly-CSharp.csproj 49

copper nacelle
#

yo relatable

#

remove value tuple bridge tho

vocal spire
#

ok

copper nacelle
#

That's part of net 4 anyways

vocal spire
#

it says it's not defined

#

on net 4 btw

copper nacelle
#

You have to ref mscorlib

vocal spire
#

I did

copper nacelle
#

ref it better

vocal spire
#

ok

jolly oriole
#

i ref'd nearly everything in the managed thing

copper nacelle
#

and make sure it's the right one

#

Wtf

vocal spire
#

bruh

jolly oriole
#

it works though

vocal spire
#

huh more errors

prime urchin
#

the joys of an out-of-nowhere update

jolly oriole
#
Fallback handler could not load library E:/Steam/steamapps/common/Hollow Knight/hollow_knight_Data/Mono/data-00000259B3117860.dll

and many more that are nearly exactly the same

vocal spire
#

what do I do with this? ```Severity Code Description Project File Line Suppression State
Error MSB3073 The command " C:\Users\willd\Downloads\HollowKnight.Modding-1.5-Beta\HollowKnight.Modding-master\ILRepack/ILRepack.exe /out:Assembly-CSharp.dll MONOMODDED.dll System.Runtime.Serialization.dll Newtonsoft.Json.dll MMHOOK_Assembly-CSharp.dll MMHOOK_PlayMaker.dll MonoMod.Utils.dll Mono.Cecil.dll MonoMod.RuntimeDetour.dll ValueTupleBridge.dll" exited with code 1. Assembly-CSharp C:\Users\willd\Downloads\HollowKnight.Modding-1.5-Beta\HollowKnight.Modding-master\Assembly-CSharp\Assembly-CSharp.csproj 49

jolly oriole
copper nacelle
#

you didn't remove ValueTuple

#

Smh

#

No it's dead

vocal spire
#

I did

copper nacelle
#

You just don't know it yet

#

Go in a save

vocal spire
#

F

copper nacelle
#

Also note that the api isn't in the top left

jolly oriole
#

oh yeah right

copper nacelle
#

So it probably threw if anything

copper nacelle
#

You gotta yeet it from the repack post build

vocal spire
#

oh ok

#

this is fun

jolly oriole
#

i guess this is a bit better, although json.net still doesn't like modded save slots

copper nacelle
#

Now load a save

vocal spire
#

fixed

copper nacelle
#

And open inv

vocal spire
#

oh no

copper nacelle
#

Or dnail midair for that matter

jolly oriole
#

i see what you mean

vocal spire
#

hey it built

jolly oriole
#

only charm inv is messed up

vocal spire
#

I'm gonna play some good ol hollow knight

jolly oriole
#

one can take a wild guess what the error is palehmm

copper nacelle
#

It doesn't happen vanilla though

#

Idk what's up

jolly oriole
#
CallMethodProper error on Detail Sprite -> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: Method has zero rva
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <2b3a3162be434770b7a4fac8b896e90c>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0004b] in <2b3a3162be434770b7a4fac8b896e90c>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <2b3a3162be434770b7a4fac8b896e90c>:0 
  at HutongGames.PlayMaker.Actions.CallMethodProper.DoMethodCall () [0x00121] in <d32c0dfe89c64762859e5b578933976f>:0 

for reading, and i though of at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke indicates that it's because of the api

copper nacelle
#

It's time to inject logs into the generated functions

vocal spire
#

cool

jolly oriole
vocal spire
#

now I built it but where was it copied to?

jolly oriole
#

outputfinal

vocal spire
#

ok

jolly oriole
#

... the json.net dll is for .net3.5, right?

copper nacelle
#

maybe

jolly oriole
#

just picked up newest one for .net4, testing if it magically works better

vocal spire
#

ah nvm how did I miss an error

#
Error    MSB3073    The command " C:\Users\willd\Downloads\HollowKnight.Modding-1.5-Beta\HollowKnight.Modding-master\ILRepack/ILRepack.exe /out:Assembly-CSharp.dll MONOMODDED.dll System.Runtime.Serialization.dll Newtonsoft.Json.dll MMHOOK_Assembly-CSharp.dll MMHOOK_PlayMaker.dll MonoMod.Utils.dll Mono.Cecil.dll MonoMod.RuntimeDetour.dll" exited with code 1.    Assembly-CSharp    C:\Users\willd\Downloads\HollowKnight.Modding-1.5-Beta\HollowKnight.Modding-master\Assembly-CSharp\Assembly-CSharp.csproj    49    
jolly oriole
vocal spire
#

F

copper nacelle
#

Yeah that's what I expected

#

It also uses emit under the hood

vocal spire
copper nacelle
#

did you remove your value tuple grenade

jolly oriole
#

yes

copper nacelle
#

I wish lmao

#

Did you take it out of the repack too

jolly oriole
#

yes

copper nacelle
#

Alright so no idea

#

Wonderful

jolly oriole
copper nacelle
#

Yeah

jolly oriole
#

i guess all we can do is kindly ask

copper nacelle
#

Same thing to fix reflection

#

Omegalul

#

Asking

jolly oriole
#

or somehow find another way

copper nacelle
jolly oriole
#

but dictionaries

copper nacelle
#

that's true

jolly oriole
#

or did unity fix it finally?

#

add*

copper nacelle
#

Doubt

#

Can check though

jolly oriole
vocal spire
#

make our own dictionary support

copper nacelle
#

I despise unity json

vocal spire
#

make our own json

copper nacelle
#

uh huh

jolly oriole
#

time to implement a custom dictionary just for unity json

vocal spire
#

doesn't the api already have those?

copper nacelle
#

Yeah

#

They're just awful

vocal spire
#

also grenade, could you share your project so we can build as well?

jolly oriole
vocal spire
#

oooo

#

that seems fun

copper nacelle
#

A large amount of effort

vocal spire
#

that is not fun but this is not the first time I have been enslaved to myself

jolly oriole
vocal spire
#

ok

#

nice

copper nacelle
#

I still think the move is to kill merging

#

All the mods are broken anyways

jolly oriole
vocal spire
#

ok

copper nacelle
#

why did you just yeet the history

#

Unlucky

vocal spire
#

?

jolly oriole
#

1 sec

copper nacelle
#

that's true

jolly oriole
#

done, history is there

copper nacelle
#

oh you're using ilmerge

jolly oriole
#

just because that currently works for me

copper nacelle
#

it worked for me for a while

#

idk why it died

#

it's so slow though

jolly oriole
#

but it works

#

well, at least on my end

#

maybe try cleaning the project

copper nacelle
#

nah i tried that

jolly oriole
#

rip then

copper nacelle
#

i'm gonna try cloning yours

jolly oriole
#

just don't ask about the references

copper nacelle
#

yeah i noticed lmao

vocal spire
#

?

jolly oriole
#

throws a warning when i also ref the xgame thing dll

copper nacelle
#

amazing

jolly oriole
#

so i just let it be

#

rip

copper nacelle
#

the log killed my ide

#

it was too big

safe hamlet
#

is everything fucked now

copper nacelle
#

yes

prime urchin
#

So is HK now using the .NET Standard 2.0 Unity API and that's why PlatformNotSupported is getting thrown? That's what I'm seeing when looking up similar situations, at least

safe hamlet
#

unfortunate

copper nacelle
#

Yeah

safe hamlet
#

i am glad i don’t have to fix shit

copper nacelle
#

dw we will force you at gunpoint to recompile your mods later

vocal spire
#

yay

safe hamlet
#

is that even a threat tho

copper nacelle
#

that's true

vocal spire
#

yes

copper nacelle
#

i will forcefully make you immortal

vocal spire
copper nacelle
#

error 3 is fixable

#

it's just missing ilmerge

#

for some reason

vocal spire
#

huh

#

fixed

copper nacelle
#

oh it's cause the ilmerge path is hardcoded

#

you're supposed to use the variable they give

#

smh

vocal spire
#

had to create a Output folder in PrePatcher and copy the build contents of it to there

#

now I can play hollow knight with even more bugs!

copper nacelle
#

bugs :gwcorbinholyfuck:

vocal spire
#

what

copper nacelle
#

dwai

vocal spire
#

game acting weird

copper nacelle
#

oh this is the pre-fix version

#

terrible

#

double loading menu

vocal spire
#

yeah

#

hey everyone welcome to my modded playthrough of hollow knight beta 1.5

#

cool dreamnail bug but I don't have the dreamnail

copper nacelle
#

it works w/out you having it?

vocal spire
#

yes

#

started a new game

#

ill stream

copper nacelle
#

do you have wings

#

'have' wings

vocal spire
#

no

#

no super dash either

copper nacelle
#

but can you double jump

vocal spire
#

no

copper nacelle
#

weird

vocal spire
#

streaming in general 2

copper nacelle
#

i got my api working

vocal spire
#

nice

#

found another bug

copper nacelle
#

why tf is it only dnail

vocal spire
#

full soul on hitting anything that grants soul

#

idk

#

strange

copper nacelle
#

oml

#

what the fuck

vocal spire
#

does dnail have it's own fsm?

copper nacelle
#

this is so broken

vocal spire
#

yee

#

geo seems fine

#

also brb the game is teaching me to jump

copper nacelle
#

ok

vocal spire
#

huh

#

that doesn't seem right

#

why specifically fotf

#

oh did you grab fotf

copper nacelle
#

yeah

vocal spire
#

ok

#

makes slightly more sense

copper nacelle
#

it's the blank slot

#

apparently

#

I'm gonna try using normal reflection

vocal spire
#

ok

copper nacelle
#

nope lmao

vocal spire
#

lol

ornate rivet
#

unless there's something you need to report to TC for them to fix to make mods work, isn't it better to just wait for the final version of the game to come out before doing all this?

copper nacelle
#

why

#

it's gonna be roughly the same

vocal spire
#

yeah

ornate rivet
#

what if they build the game differently again and you have to go through all this again

copper nacelle
#

this lets you get it done before the game actually updates

#

so 9000 people in modding-help don't die instantly

ornate rivet
#

I see you zaliant

vocal spire
#

zal

ornate rivet
vocal spire
copper nacelle
#

that's true

#

so fucking true

#

do i just kill json.net or something at this point

#

Suicide

vocal spire
#

do we edit it to work right?

copper nacelle
#

i ain't doing that

#

that's so much effort

vocal spire
#

what's wrong with it in the first place?

fair rampart
#

Guys

#

Could I ask some questions

vocal spire
#

don't ask to ask

#

we don't like that

fair rampart
#

I am new at modding so plz?

copper nacelle
#

bro just ask

vocal spire
#

you can ask

fair rampart
#

Now can I just change the speed of swinging the nail in dnspy?

vocal spire
#

plz don't

#

just make a mod

#

don't mod with dnspy

#

use it to look at the code

#

don't make mods with it

ornate rivet
#

if you want it for yourself and dont want to use any other mod, then go ahead

vocal spire
fair rampart
vocal spire
#

get visual studio or rider or some other c# ide

vocal spire
#

oh ok

#

your choice then

fair rampart
vocal spire
#

if you want to edit it with dnspy no

jolly oriole
vocal spire
#

nope

#

was already like that

copper nacelle
#

they don't have any charms

fair rampart
vocal spire
#

run the mod installer

jolly oriole
fair rampart
vocal spire
#

ok

fair rampart
#

Does modding installer work on gog hk version?

vocal spire
#

yes

#

works on all modable versions

copper nacelle
#

we could try system.json

vocal spire
#

those versions include gog steam humble bundle

fair rampart
#

What is humble bundle?

#

Is it a mod bundle?

vocal spire
#

it's another way of purchasing games...

fair rampart
#

Mhhmm

#

Thx big bro

vocal spire
#

I don't think either of my brothers use discord

fair rampart
#

And I don't think u r big

copper nacelle
fair rampart
#

Will continue I want to learn

vocal spire
#

?

fair rampart
vocal spire
#

oh I see now

#

so reflection still bugged?

#

or is it something else since it's really only the dnail

jolly oriole
#

am i going to do it? 🄓

fair rampart
#

What the sh8 is this

vocal spire
#

oops ping

copper nacelle
jolly oriole
vocal spire
#

lol

jolly oriole
#

but first visual studio update

dark wigeon
#

fsmview is fixed, it's just the unity version was too new so I'm pretending it's older so it will load

vocal spire
#

ok

#

so what would need to be done to fix json.net

jolly oriole
#

similar what was done to reflectionhelper: change DynamicMethod to DynamicMethodDefinition from monomod.cecil i think

copper nacelle
#

that's gonna be so slow

vocal spire
#

ok

jolly oriole
#

i also could just dm benji to ask tc to export the actual release with the .net4.x thing

copper nacelle
#

do you really think that's gonna happen though

ornate rivet
#

tell them, I'm sure they will at least listen if you ask through benji/simo

jolly oriole
#

let me get unity first, so i can attach a screenshot lol

fair rampart
#

How does modding api works?

#

And if I made a mod how do I get in modding api?

jolly oriole
#

does this install vs or only additional tools for vs to work better with unity?

copper nacelle
#

looks like vs to me

prime urchin
#

I do wanna shill BepInEx once more as from what I've found it does support Unity's .NET Standard 2.0 - still probably a last resort thing depending on if it can be made to work or if it'll be rebuilt with 4.0 API

jolly oriole
#

i mean, it's unity, could be 1.4 GB of just tools

copper nacelle
#

i mean the api can work fine

#

it's just monomod static patching

#

not like bepinex is any different

#

there's just some patch that does terrible things now

prime urchin
#

fair 'nuff, just putting the option out there once more anyway

fair rampart
#

Could I ask

copper nacelle
#

understandable

fair rampart
#

On what u all are making?

#

Is it a new mod?

#

Or just the set up for making a mod

copper nacelle
#

excluding 800 files any%

vocal spire
#

it's a new modding api for the beta update

fair rampart
vocal spire
#

no

copper nacelle
jolly oriole
fair rampart
#

A beta update for hk?

#

A new update?

#

Excuse If I am being stupid

vocal spire
#

yes

#

adds glitches

fair rampart
#

So it fix glitches right?

#

Or it is a dlc?

jolly oriole
fair rampart
#

Yay

#

My pc is gonna kick my butt

#

OK I have read it and I am disappointed

#

My day is ruined and my disappointed is miserable

jolly oriole
#

so hkworldedit is fine i guess? at least it doesn't crash

vocal spire
#

edit the test scenes

ornate rivet
#

what about utiny

vocal spire
#

F

ornate rivet
#

there has to be a fork that updates it

vocal spire
#

I should try it

ornate rivet
#

it has a ton of forks

vocal spire
#

time to search

#

could you link the github page

#

I'm lazy

ornate rivet
vocal spire
#

~300 forks

jolly oriole
dark wigeon
#

yeah I seriously doubt hkworldedit will work because I'm manually binary reading version specific files

#

the guy who made utiny doesn't have an automated type extractor like uabe does so you'd have to do manual work to upgrade it

vocal spire
#

aren't we already doing manual work

jolly oriole
#

yea, copying level files from a 1432 install rn

ornate rivet
#

why has no one combined uabe and utiny sigh

vocal spire
#

someone should do that

dark wigeon
#

well he said he would make a similar tool but he never did

vocal spire
#

F

fair rampart
#

F

solemn rivet
#

I have been out of the loop but is the new beta being a pita for compiling the api or something

vocal spire
#

yes

#

we compiled it

#

and dnail be weird

jolly oriole
#

nearly everything normal reflection breaks

solemn rivet
#

Oh

vocal spire
#

also unity 2020

solemn rivet
#

Just remove all the mirrors and leave only the smoke

#

Ezpz

#

Wait what

vocal spire
#

makes sense to me

jolly oriole
#

new hk uses unity 2020.2.2

solemn rivet
#

Huh

jolly oriole
#

and .net4

vocal spire
#

old assetbundles now die shroompog

prime urchin
#

I've used AssetStudio to rip in the past, does it have feature parity with UTinyRipper?

solemn rivet
#

Yeah I knew about the .net4

dark wigeon
#

it doesn't extract scenes

#

but it should support newer unity

solemn rivet
vocal spire
#

ĀÆ_(惄)_/ĀÆ

#

don't know much about editing bundled assetbundles

solemn rivet
#

Just re-export and hope for the best

vocal spire
#

good point

solemn rivet
#

Thank god all my mods are low effort

vocal spire
#

lol

ornate rivet
#

hopefully we can just open the unity projects in 2020 and everything will work

solemn rivet
#

And don't have any fancy assetbundles

ornate rivet
#

and then we assetbundle

#

and that works

solemn rivet
#

That's what I'm hoping for Saleh

vocal spire
#

doesn't it not work in newer vers

ornate rivet
#

they're still using it though, no?

solemn rivet
#

Oh yeah 56 said something about tk2d

vocal spire
#

confused about that

#

also brb I need lunch

vocal spire
#

I have a case of dumbness probably solvable by food

copper nacelle
jolly oriole
#

why is it red

copper nacelle
#

Modified

vocal spire
#

huh

solemn rivet
#

diff

#

Yeah

#

F in chat

copper nacelle
#

my point was i removed 90% of the patches

#

and it still doesn't work

jolly oriole
#

neat

vocal spire
#

hmmm

copper nacelle
#

this is not the correct word

solemn rivet
#

Pog

vocal spire
#

frog

copper nacelle
#

omegamaggotprime

solemn rivet
#

What are you doing 56

jolly oriole
#

trying to get modding api to work

solemn rivet
#

Oic

vocal spire
#

looked around a bit and didn't see anything

jolly oriole
#

add nuget package monomod ig

#

at least the mono in modding api is a nuget package afaik

vocal spire
#

Internet just died

#

Tried searching and nothing came up

jolly oriole
#

i'd open visual studio to show, but i ran out of screen real estate

copper nacelle
fair rampart
#

Something is wrong? Remove it

#

Jk

copper nacelle
#

istg it's gonna be the merging

#

mark my words

fair rampart
#

Took a screen shot

vocal spire
#

?

jolly oriole
#

i can't seem to find a button for the .net4.x stuff, or would i really need to add scripts first?

dark wigeon
#

project settings

#

or player settings whatever

fair rampart
#

I was about to ask where?

jolly oriole
#

found it (near the bottom)

fair rampart
#

Big bros continue with this genuis thing I am going to search about vs

copper nacelle
#

I removed the merging and now it just crashes

jolly oriole
#

poggers

dark wigeon
#

sseadv is dead because the texture format changed

vocal spire
#

F

dark wigeon
#

probably why it's broken in hkworldedit as well

jolly oriole
#

but in hkworldedit it looks funny

dark wigeon
#

idk I'm surprised it loaded at all

#

it uses so much magic

#

I think what's happening in hkwe is that the filename of the texture is overwriting the position that it reads from the texture

#

so it's reading the right file but at the wrong location

charred topaz
#

I hope I can find some time later on to update my mods to the beta. My mods heavily depend on asset bundling

vocal spire
#

This would be a good time for hk manager to come out

jolly oriole
#

time to test my custom json.net.dll

#
System.PlatformNotSupportedException: Operation is not supported on this platform

Sadge

#

maybe doesn't support what we need idk if the lack of support for .net framework 4 the important bit, though idk which exact framework unity 2020.2.2 runs on

vocal spire
#

would looking it up find some answers

jolly oriole
vocal spire
#

šŸ¤”

#

I saw earlier that System.Json was mentioned, should we try that?

jolly oriole
#

tried, didn't autocomplete

vocal spire
#

F

vocal spire
#

@fair rampart I got the nuget package but it says it can't be used for net 40

#

I thought it was discussed that it was 4.0 earlier....

#

ok

jolly oriole
#

ig one would like to keep runtime env the same and i have absolutely no idea how the netstandard 2 interferes with that

empty ridge
#

is there a way to reference the classes in my unity scene from my mod

#

or vice versa

#

ok zote

#

thx

#

i assume i need to drop hk's dlls into the project as well?

native pelican
#

I made a mod to track when grass is destroyed. I needed to create a unique ID for each piece of grass the knight comes across.

This unique ID would need to be persistant between plays of the game (so instance ID won't work I think). I initially just used the names, but the names of the grass game objects aren't always unique within a single scene (frustratingly they are within King's Pass, Dirtmouth, Crossroads, and the first scene of Greenpath, so I thought it was working for awhile). Now I'm using the name and the XY position of the game object.

That seems to be working, but I'm a bit nervous. There's a lot of grass so I don't know if this is actually working, or only working for most grass. Anyone know if this strategy has been used by another mod, or if there's a better one?

vocal spire
native pelican
vocal spire
#

doesn't every object have an instance id already

native pelican
#

When I searched around for what "instance ID" is, I read that it's something that unity generates dynamically, and it isn't persistant from one run of the game to another (and maybe not even from one scene load to another).

#

I didn't actually test it though

vocal spire
#

ah

#

then store position and scene

empty ridge
#

i put the games assembly into my project and im getting this error error CS1704: An assembly with the same name `Assembly-CSharp' has already been imported. Consider removing one of the references or sign the assembly Library/ScriptAssemblies/Assembly-CSharp.dll (Location of the symbol related to previous error) Assets/assemblies/Assembly-CSharp.dll (Location of the symbol related to previous error)

vocal spire
#

why are you doing that

empty ridge
#

i kind of figured that would be the answer

vocal spire
#

what you should do(got this from SFGrenade)
Copy your mod project, in the new one delete everything but the monobehaviours. remove anything from the monobehaviours that doesn't work, build, put in unity

#

no longer need the game's assembly

jolly oriole
#

new error poggers:

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: [. Path 'BoolValues._keys', line 3, position 18.
native pelican
# vocal spire then store position and scene

That's my current strategy. scene/name (x, y). I noticed that the z coordinate changes between loads for many objects though, so I've been worried that the x, y might as well... I tested a bunch of scenes, but there's a lot of grass.

vocal spire
native pelican
vocal spire
#

show yours

dark wigeon
#

2020.2 supported, all tools back to working

vocal spire
#

cool

dark wigeon
#

cool

vocal spire
#

utiny ripper?

dark wigeon
#

we can just generate types for utiny ripper

#

wanna do it

vocal spire
#

ok

#

how

dark wigeon
vocal spire
#

ok

#

how do we generate the code to remake the files

dark wigeon
#

by writing it

vocal spire
#

cool

dark wigeon
#

cool

vocal spire
#

where do I start

dark wigeon
#

idk I think this is all hand written lol

vocal spire
#

šŸ¤”

jolly oriole
dark wigeon
#

on line 3 character 18

vocal spire
#

confusion

dark wigeon
#

I think the main issue with upgrading utiny is that the names he uses aren't the same that uabe uses

vocal spire
jolly oriole
#

i'll try that

#

it didn't throw an error in main menu, but i guess this isn't what we want

vocal spire
#

I don't see anything wrong with it

#

?

vocal spire
jolly oriole
#

idk

vocal spire
#

I'll look through the sprite dump

vocal spire
ornate rivet
#

can't believe all hk modding went boom with the release of a single update

vocal spire
#

yep

#

also ima go mess with the modding api for no reason

ornate rivet
#

so we dont have to update the modding api technically

#

it's always going to be a branch people can change to

vocal spire
#

oooooooooo

#

also official 64 bit hk cool

dark wigeon
#

I can only find this in UI Toolkit preview but it isn't a park of hk at all

vocal spire
#

šŸ¤”

dark wigeon
#

this isn't a part of 2020.2

#

not even a part of 2021.1

#

I think you just downloaded a preview package

#

what code are you even running

#

sorry, you downloaded a newer version

jolly oriole
#

damn, what did monomod do to this?

vocal spire
#

nice

#

so monomod was the problem all along

jolly oriole
#

for some reason it yeeted at least that method, idk if it yeeted more though

vocal spire
#

huh

jolly oriole
#

gonna try SFCore & idk what else

#

pushed the changes if people want to try

#

i think we have to keep the valuetuple thing

vocal spire
#

seems to work find for me

    public delegate (int env, UnityEngine.AudioClip clip) Somethinghook(HeroController c);```
#

oh you're viewing it in dnspy

jolly oriole
#

no, vs, but it wants me to install system.valuetuple

vocal spire
#

oh

#

it's fine for me

warm mirage
vocal spire
#

don't mind me adding to ITogglable mod