#archived-modding-development

1 messages ยท Page 82 of 1

buoyant wasp
#

hmm

#

what's the difference in enums? cause the menu's themselves didn't change

#

main menu has 5 options, Start Game, Options, Achievements, Extras, Quit Game. Options has 5 options as well.

pearl sentinel
#

But in the modding api overwrite I don't think it has extras?

buoyant wasp
#

honestly, I'm wondering if the code for OnMove is the problem

#

it's interesting that OnMove has special coding for left/right, but not for up/down

#

can you compare MenuSelectable between 1.2.2.1 and 1.3.x?

pearl sentinel
#

Sure

floral furnace
#

sorry to intrude, new project under class library for starting out for HK right?

copper nacelle
#

yes

#

.NET framework

#

not .NET standard

buoyant wasp
#

though I'd suggest using one of the example's personally

copper nacelle
#

^

#

for hell mod i didn't know what do so I cloned glass souls and changed everything

pearl sentinel
#

Yeah, use an example mod or my template mod (use an api example imho)

floral furnace
#

dunno where to fully get started but might as well try to follow you guys lmao

summer marlin
#

hopefully in the future the documentation will be plentyfull so starting off is easy

copper nacelle
summer marlin
#

like terrarias

#

wym

buoyant wasp
#

we started documentation, but man, i hate doing documentation, so it hasn't gone far

summer marlin
#

yeah its not a very enjoyable task is it

pearl sentinel
#

Part of what I'm trying to do with mod common is make heavily commented template/example classes. Like my example FSM replacement class.

floral furnace
#

yeah ill do that to prevent lines like
// I have no idea what this line does but im not removing it cuz it might screw up some stuff

#

tho ill probably start with baby steps like the bar that fills in and out whenever you dash/jump, ill just do the more complicated stuff like stopping your player from attacking once he depletes all his stamina soon instead

copper nacelle
#

tbh the second part sounds easier

buoyant wasp
#

^

#

but the game's code is...special so

floral furnace
#

well i dont know the commands or methods that hk has for its attack but well see soon enough i guess

sterile valley
#

Hey, guys.

#

Somebody should fix the save manager.

#

fades out of existence

buoyant wasp
#

k, well, 1.3.1.5 is posted. to the drive for mac/linux/windows (steam). I went ahead and kept the linux/mac separation. They are identical for dlls, but the folder structure is entirely different, so, just to make life easier

#

should just get @pearl sentinel added to the drive if he isn't already anyway. It's not like i'm doing anything special to post them

pearl sentinel
#

The Google drive?

#

I'm on that

#

@56 you added mantis gods to modlinks.xml before right?

copper nacelle
#

yes

#

unrelated, but is the scenechanged hook fixed

pearl sentinel
#

Would you be up for helping me update the links?

copper nacelle
#

sure

summer marlin
#

would any modders possibly be interered in being commisioned to make a mod?

pearl sentinel
#

Since I've been juggling puppy I haven't had the time to fix the links for 1.3.1.5

copper nacelle
#

so

#
  • enemy hpbar
pearl sentinel
#

New modding api

copper nacelle
#

oh yeah

#

and i think the rest is all the same, right?

#

because updating files keeps link

pearl sentinel
#

Yeah unless a mod released a separate download for 1.3.1.5

#

I'll add the heavy blow and boop mod later

summer marlin
#

ill take that as a no then

copper nacelle
#

should I add darkroom?

pearl sentinel
#

Oh yeah, def

copper nacelle
#

would I need to put that into the drive

#

or

#

can you just put discord direct downloads

pearl sentinel
#

Technically any link that goes directly to a .zip should work

#

The only nice thing about the drive links is they handle new version updates nicely

rain cedar
#

@summer marlin You're gonna have to be a lot more specific to get responses

summer marlin
#

I suppose thats fair

#

I'm looking for someone to make a mod that fixes issues with playing the game at a 21:9 aspect ratio

#

and am willing to pay for it (though i have no reference on what price would be suitable)

rain cedar
#

That's gonna be hard to get anyone to do since it's not really something you can make unless you have one of those monitors yourself

summer marlin
#

Id be willing to test versions if people arnt willing to mess with dsr which is respectable as dsr is a mess

rain cedar
#

What issues does the game even have?

#

Might be something easy to fix

pearl sentinel
#

Probably just UI positioning

summer marlin
#

Well using the hexedit to force it to 21:9 (which probably would be nicer as a seperate mod than a direct edit)

#

theres a few small menu issues

#

black bars on the sides of rooms

#

and thats really about it

rain cedar
#

Black bars are probably not too bad to fix

summer marlin
#

UI could be moved to the sides of the screen but thats more of a QOL than a fix

rain cedar
#

The camera should just be able to be given a wider "lens"

summer marlin
#

KDR? i think thats his name, helped me try to fix that yesterday

#

but it didnt work

rain cedar
#

KDT

summer marlin
#

thats it

pearl sentinel
#

Cameras have a viewport rect that can be set at runtime

rain cedar
#

Yeah, I figured

summer marlin
#

im more than happy to get some specific screenshots of the issues if that can help

pearl sentinel
#

It uses normalized coords, so it's fairly easy to mess with

summer marlin
#

Oh, actully

#

after readin what you guys have said

#

you may have missinterpetid the issue

#

the game shows as much as youd expect on the ratio, the issue is it shows abit to much

rain cedar
#

A screenshot of the issue would be nice

#

Not sure what you mean by that

summer marlin
#

the camera shows to much when you go to the sides of the room, so it shows the black bars surrounding the level itself

#

ill take some shots now

rain cedar
#

Oh ok the camera limiter doesn't work

#

That should be easy to fix too

summer marlin
#

id assume its a side effect of the sloppy way the hexedit works

#

@rain cedar

rain cedar
#

Yeah, that makes sense

#
if (lockArea.cameraXMin < 0f)
{
    this.xLockMin = 14.6f;
}
else
{
    this.xLockMin = lockArea.cameraXMin;
}
if (lockArea.cameraXMax < 0f)
{
    this.xLockMax = this.xLimit;
}
else
{
    this.xLockMax = lockArea.cameraXMax;
}
if (lockArea.cameraYMin < 0f)
{
    this.yLockMin = 8.3f;
}
else
{
    this.yLockMin = lockArea.cameraYMin;
}
if (lockArea.cameraYMax < 0f)
{
    this.yLockMax = this.yLimit;
}
else
{
    this.yLockMax = lockArea.cameraYMax;
}```
#

The problem here is they've got hard coded values for locking the camera

pearl sentinel
#

Yeah, you increased the resolution but not the camera viewport

rain cedar
#

They're not checking aspect ratio

pearl sentinel
#

Also that

#

That's..... a way to do it

#

To do something, anyway

rain cedar
#

Should just be able to multiply the x values by 21/16 and get a proper camera

copper nacelle
#

sean do you want me to add tenegg to modlinks

rain cedar
#

I don't mind, go for it

summer marlin
#

getting the UI issue screenshots now

pearl sentinel
#

Now that lifeblood is out I'll add a mod description field to crossroads next time I'm able to sit down and work on it

rain cedar
#

That will be much harder to fix

summer marlin
#

It seems like theres some jankyness with the hunters jouranl thats hidden on the 16:9 game

pearl sentinel
#

I wanted to have it show mod readmes like nexus mod manager does, but I can't think of a nice way to do that

summer marlin
#

@rain cedar can you just put some black bars on the sides?

#

just 2 rectangles of blacc

copper nacelle
#

ech

rain cedar
#

Yeah I suppose that's an option

solemn rivet
#

Since the inventory is drawn using canvas, shouldn't fixing the viewport also fix this?

rain cedar
#

Oh, it is?

solemn rivet
#

I thought it was

pearl sentinel
#

Pretty sure it is

summer marlin
#

Well if anyone wants to try and fix this ill happily test it, if not i could pay someone to fix it when i have the money but again, not sure how much the mod would be worth

#

Not many platformers let alone metroidvanias have the chance to work flawlessly on 21:9

#

and a game as good as this is the perfect canidate

solemn rivet
#

Bloodstained native 21:9 or rito

rain cedar
#

If I don't suck at math that might work

#

I think the camera changes I made make sense

summer marlin
#

this also changes the res correct? or do i need to apply the hexedit to this

rain cedar
#

No you'll still have to do whatever you did before to make it 21:9

summer marlin
#

Alright

#

I dont think that helps anyone tho becuase its probably found in cheat engine or whatever

rain cedar
#

Wait what I did doesn't make sense

summer marlin
#

o

rain cedar
#

I changed the y locking of the camera too

summer marlin
#

trying it anyway

rain cedar
#

Just check anyway to see if the x locking makes sense now

#

Yeah

#

But know that the camera height is gonna be fucked

summer marlin
#

:Thinking:

#

Its doing something alright

#

It has mixed results

#

the y is def fucked tho

#

lol

rain cedar
#

Yeah I shouldn't have changed that

summer marlin
#

comparison screenshots incoming

#

abit confused by thast first one

#

(ignore the very small black bar thats caused by the hexedit and not the camera itself)

#

wait no i think the very very small black bar is a camera issue

#

2many black bars

rain cedar
#

The second screenshot looks like the camera locking on the left side of the screen is pretty close to good

#

Idk about the right side

summer marlin
#

yes

#

screenshot 2 looks very good

#

screenshot 1 looks

#

o

copper nacelle
rain cedar
#

Yeah idk about that, check the right side of that same screen again with the non-messed-up y axis

summer marlin
#

Y is alot better now

#

Right X is consistently jank though

#

i dont really know how to describe the jank though

rain cedar
#

Ok, I will just change the aspect ratio on my end to see

#

Searching for 398EE33F turns up this function

private void AutoScaleViewport()
{
    float num = (float)Screen.width / (float)Screen.height;
    float num2 = num / 1.77777779f;
    float num3 = 1f + this.scaleAdjust;
    Rect rect = this.tk2dcam.CameraSettings.rect;
    if (num2 < 1f)
    {
        rect.width = 1f * num3;
        rect.height = num2 * num3;
        float x = (1f - rect.width) / 2f;
        rect.x = x;
        float y = (1f - rect.height) / 2f;
        rect.y = y;
    }
    else
    {
        float num4 = 1f / num2;
        rect.width = num4 * num3;
        rect.height = 1f * num3;
        float x2 = (1f - rect.width) / 2f;
        rect.x = x2;
        float y2 = (1f - rect.height) / 2f;
        rect.y = y2;
    }
    this.tk2dcam.CameraSettings.rect = rect;
    this.hudcam.rect = rect;
}```
#

So changing some numbers in there is all the hex edit does

summer marlin
#

money placed on it being

#

1.77777779

rain cedar
#

It just looks like I'm locking the camera too early on the right side

summer marlin
#

that sounds right

rain cedar
#

Way too early

#

Oh I see what I need to do here

summer marlin
#

oo

rain cedar
#

Massive black bars on top/bottom are because I'm running 1080p

summer marlin
#

not all heros wear capes

rain cedar
#

You don't have to do the hex edit for this one

summer marlin
#

fancy

rain cedar
#

See if it looks good

summer marlin
#

wow thats alot better

#

not related to edges of the room

#

and small verty bars

rain cedar
#

Weird, I don't have those

summer marlin
#

what res? 2560x1080?

rain cedar
#

1920x1080, I don't have a 21:9 monitor

summer marlin
#

oh i thought you changed it earlier

#

my b

#

just to confirm

#

can you upload your exe

#

i might have fucked with it earlier, probably not the cause but id rather check before no one wastes time

rain cedar
#

Ok I'll pm it to you

#

Actually it's too big to upload without nitro, probably easier if you just verify game files

summer marlin
#

Oh ok

rain cedar
#

You'll have to put the modded assembly-csharp back in after, of course

summer marlin
#

yeah this aint my first verified rodeo

#

:P

#

@rain cedar bars are still here

rain cedar
#

Alright

summer marlin
#

i can go into photoshop and count the pixels of the bars for you if the numbers can help

rain cedar
#

It would make sense for there to be either horizontal or vertical bars if your monitor is not exactly 21:9

#

But I'm not sure why there would ever be both

#

And nah I don't think that would help

#

I'm gonna see if there's a way to set my monitor to a 21:9 resolution

#

Maybe that will make the issue happen for me as well

summer marlin
rain cedar
#

Oh, yeah any room that's darkish will fade to near black on the edges

#

Didn't think of that

#

Alright I can't find anything that works for forcing windows into a 21:9 resolution

summer marlin
#

Thanks for trying, still willing to try as many tests as you want though

rain cedar
summer marlin
#

@rain cedar Perfect

#

perfect is what it looks like

rain cedar
#

Alright

summer marlin
#

Holy fucking shit its so nice

rain cedar
#

This is incompatible with other mods and only works for 21:9, though

#

I'll try to make a better version

summer marlin
#

Having it as a mod would make it compatible with other mods though correct? as you wouldnt need to replace the asscharp

rain cedar
#

Yeah, but as is the case with most very specific mods I'll have to make changes to the API first to support that possibility

summer marlin
#

changes that need to happen at some point anyway or

rain cedar
#

Nah

#

Not big changes though, just adding a couple more hooks

copper nacelle
#

couldn't you do it w/ the hooks thingy

#

the new monomod hooks thing

rain cedar
#

Idk what that is

summer marlin
#

also ofc in some rooms that are too small its still janky

#

but thats alot harder to fix

copper nacelle
rain cedar
#

Which small rooms? I looked in Sly's shop before and it was fine

#

Can I get a screenshot of what's janky?

summer marlin
rain cedar
#

Oh ok I see

summer marlin
#

yeah

rain cedar
#

Yeah that is harder to fix

summer marlin
#

its not awful

rain cedar
#

I can try to prioritize locking to whichever side has transitions

#

That would look nicer

summer marlin
#

do you think moving the HUD would be difficult?

rain cedar
#

It's probably a bit harder, yeah, but I can look into it

#

It's probably drawn with canvas from an FSM somewhere

#

Also @copper nacelle I will try that

copper nacelle
#

it looks super nice

summer marlin
#

hmmmmmmmmmm

#

now if only the menus could be fixed

#

but that sounds like a pain probably

rain cedar
#

Nah that's the easier of the two fixes

#

Just have to add black bars when the menu is open

summer marlin
#

mhm

#

that wont work for the main menu though, but who uses the main menu amirite

#

just never quit the game like how its ment to bep layed

rain cedar
#

Main menu seems less important to me

summer marlin
#

it is

#

youd be shocked how janky the menus work

#

you dont see it becuase its cut off but

#

wew

rain cedar
#

Not surprising

#

The Team Cherry people aren't coders

#

Actually I don't think the thing you said will work for this case since I need to change hardcoded values in LateUpdate @copper nacelle

copper nacelle
#

couldn't you copy paste all of lateupdate into a method that hooks lateupdate

#

and just not call the original

#

like it's shitty

summer marlin
#

sicc methodswapping my dude

rain cedar
#

Yeah I guess so

#

What Unity really needs is a LaterUpdate

#

So I can do shit and have it guaranteed to be after LateUpdate

copper nacelle
#

lol

rain cedar
#

There's a problem in DebugMod because this same LateUpdate function is fighting with my own camera positioning code

copper nacelle
#

oof

rain cedar
#

Why is this even a feature?

#

This has no use other than fucking over modders

#

Like there's actually no other reason a game dev would need this

copper nacelle
#

to cause pain

rain cedar
#

Damnit there's no actual download here

#

Always annoying when they make you compile it yourself

copper nacelle
#

yeah

rain cedar
#

Wait I can just get it from the API source

#

Alright it's not generating the hooks dll and the readme says literally nothing about the hookgen

#

That's about the effort I'm willing to put into that, just gonna add hooks to the API

copper nacelle
#

rip

#

I could give it a shot rn

rain cedar
#

Go for it

copper nacelle
#

compiled monomod and replaced the monomod

#

but the line MMILRT.Modder.ShouldCleanupAttrib = IsUselessAtrib; breaks because MMILRT doesn't exist

rain cedar
#

Maybe there's some dependency you need that's not on the github idk

copper nacelle
#

tfw i removed the line and monomod stopped responding

rain cedar
#

Nice

copper nacelle
#

tfw fixed the line and monomod still isn't responding

copper nacelle
#

i had to run the hookgen exe on assembly-csharp by hand

#

y e s

#

it is

rain cedar
#

Neat

#

I'm doing stuff in iconoclasts now but I'll try out modding with that later

copper nacelle
rain cedar
#

I think my favorite thing about Iconoclasts is the dev is a cool guy and doesn't fuck over speedruns with his patches

summer marlin
#

Thanks for today sean

copper nacelle
#

ahh

#

i ran it on the wrong file

#

that has hooks for modding

#

i now have hooks for hooks

sterile meadow
#

Hey losers people I love
Is there a way to enable steel soul early and if so where's the 0 I change into a 1

copper nacelle
#

yes

#

on a save?

sterile meadow
#

I just meant overall but if I have to make a new save to do it sure

copper nacelle
#

you could just download any save and beat thk

#

or you can create a save and set permadeathMode to 1/true on it

sterile meadow
#

Oooo that's actually the smartest thing
I forgot about downloading saves

rain cedar
#

Or just self impose permadeath

sterile meadow
#

No

rain cedar
#

Dang, no self control

sterile meadow
#

Is there anywhere in the discord with a save just before thk or am I onto googling

copper nacelle
sterile meadow
#

Aaa ty

copper nacelle
#

got the hooks working

#

it had a reference to a dll which had a reference to a dll

#

and another ref to a dll

#

throwing those and the hooks file into mods lets you use them tho

#

tested it with

#
    public class TestMod : Mod
    {
        public override void Initialize()
        {
            On.HeroController.CanOpenInventory += Yes;
        }

        private bool Yes(On.HeroController.orig_CanOpenInventory orig, HeroController self)
        {
            return true;
        }
    }
#

and it worked

#

I think if I had compiled the API with the new MonoMod successfully then you would only need the hooks dll

#

but rn trying to compile the API cause monomod to stop working so you need all those

rain cedar
#

Nice

#

Inventory always openable is probably pretty broken

copper nacelle
#

yea

summer marlin
#

@rain cedar do you think it would be hard to do the black bar thing compared to how you fixed the camera or

rain cedar
#

Harder but not too bad still

#

I'd just have to find a good way to check if inventory is open

#

Since apparently the way I've been using broke with lifeblood

summer marlin
#

can you just check for the select button?

copper nacelle
#

I think you could have a lightbringer api version with this by just hooking all the methods it replaces and not calling the original

rain cedar
#

I don't know what you mean

summer marlin
#

check for the button that opens it

rain cedar
#

Oh, no

#

That doesn't always open the inventory

summer marlin
#

oh right

rain cedar
#

I'd probably add additional FSM actions into the inventory control to call methods in a MonoBehaviour that draw black bars

summer marlin
#

whats a fsm

rain cedar
#

Evil

copper nacelle
#

finite state machine

#

aka garbage

summer marlin
copper nacelle
rain cedar
#

What a helpful guy

floral furnace
#

Question, for Kerrs sample mods, I have to download the API right, cuz "using Modding" doesnt exist correct? sorry total C# and Assembly noob here

copper nacelle
#

you need the api, yeah

floral furnace
#

Aight, and i just drop it in wherever the hell the frameworks are stored in correct?

copper nacelle
#

if you have the api for hk installed at all you can just add a reference to it

floral furnace
#

I dont, i just uninstalled it like, 4 versions awhile ago during the beta, and i dont know how to reference it so yeah i just downloaded the 1.3.1.5 api

copper nacelle
#

then you just go to browse

floral furnace
#

I see

copper nacelle
#

hit browse

#

and select the file

#

check it and click ok

floral furnace
copper nacelle
#

you're using one of the examples, right?

floral furnace
#

yup

copper nacelle
#

they probably have it set to the hk game location

floral furnace
#

kerrs example mod numero uno

#

i see

copper nacelle
#

delete it

#

and add your own

floral furnace
#

alright deleted, and added the 1.3.1.5 api, thanks

copper nacelle
#

yw

summer marlin
#

@rain cedar do you have a vanilla csharp ass?

#

you might have almost fixed the main menu but it might also be placebo

rain cedar
#

Nah sorry I don't

copper nacelle
#

i've got one

summer marlin
#

ily bb

#

actully i cant tell

#

๐Ÿค”

#

:Thinking:

rain cedar
#

Oh nice the pause menu doesn't just dim things, it's an actual finite sized overlay

summer marlin
#

Is that good or bad

copper nacelle
#

Oh nice

summer marlin
#

Couldn't tell if it was sarcasm

exotic venture
#

it's a finite sized overlay and just sets the timescale to 0

#

what a pause button

summer marlin
#

im excited that full ultrawide support could actully be a thing

floral furnace
#

okay, should i priotize making a shitty temporary gui first? then do the stamina logic?

#

like a bad one in ms paint

copper nacelle
#

disabling dash and attack sound way easier than gui stuff imo

#

i should probably figure out canvasutil but also pain

floral furnace
#

alright, so basically ill do the entire "see your bar" later, so for now id go with a "keep slashing, until you run out and no you cant see your stamin bar because were hardcore over here" for now

copper nacelle
#

lol

floral furnace
#

wait is there no differences with all of kerr's 3 sample mods?

copper nacelle
#

idk

#

are they in modcommon?

#

or

#

the api example mods

#

the API example ones are all the same

#

except they each have different saving thingies

#

ex1 doesn't save

floral furnace
#

yeah i can see that

#

just me being dumb

#

is there any instances or mods thats been made that needs saving tho?

copper nacelle
#

randomizer

#

enemy rando

floral furnace
#

ahh yeah that makes sense

#

so if i ""theoretically"" make the mod have upgrades ie more stamina if you do x or something, then id need to do so or else the players stamina will set back to default correct?

copper nacelle
#

i mean

#

if the thing you want the player to do is already saved

#

then you can just use that

#

but otherwise, yeah

#

like if the thing you're checking for is obtaining dash, that's already a var

#

but like

#

counting dashes

#

isn't a var

floral furnace
#

ok ok

mellow tide
#

hello there, I'm new on this discord, is there any way to be introduce to modding?

rain cedar
mellow tide
#

the 3rd mod adds critical hits in the game and count how many you did?

#

thanks for that but these examples just show how to do simple codes; what do I do with all that, what should I do to test the mod, how can I add assets, how do I access the game's files, etc...

#

I already know a fair bit about programming but I still have issues understanding how mods work, what they are and what a modder actually do, other than programming, to make it all work
I'm a bit confuse about all that so I'd like to have some explanations to get the basis

rain cedar
#

We use a program called dnspy to look at the game code

#

Testing is just done by playing the game

mellow tide
#

okay and where do you need to put the folder?

rain cedar
#

What folder?

mellow tide
#

correct me if I don't understand something, but what you need to do is a folder with a .css file with your code, one to save your datas, one for global settings,... and then once you finished this folder what do you do with it to make it work in the game?

rain cedar
#

You need to compile it to a class library

#

You can't just expect source files to work

mellow tide
#

how do you do that?

rain cedar
#

Visual studio

mellow tide
#

and then when compiled into a class library what do you do with it?

rain cedar
#

You stick it in your mods folder

mellow tide
#

sorry about all these noobs questions

#

okay but it's not enough to then run the mod is it?

rain cedar
#

It'll be loaded automatically by the mod API, if you've got that installed properly

mellow tide
#

oh ok

#

I'll check the pinned comments to get a better understanding on how to do all of this, thanks for the answers tho

#

is there any mod currently developped?

rain cedar
#

Lots, yeah

leaden hedge
#
        if (!this.gameConfig.disableSaveGame)
        {
``` did this used to be in GameManager.SaveGame(int) ?
solemn rivet
#

I don't think so, but I might be wrong

#

Also, TTacco, listen to 56. Working on bars rn might not be a good idea. Focus on getting what you want to work first. After that you can take a look at my enemyhpbar mod to get a good idea of how to draw bars

#

Also, might be worth checking KDT's original hpbar mod, on which mine is based

floral furnace
#

ahh yeah, i didnt bother with the ui first for now

hollow pier
#

listen to 56 kids

floral furnace
#

im focusing on the logic instead, but im kinda stuck with the entire "give me 5 stamina per second" because im so not used to unity's function

solemn rivet
#

I see

floral furnace
#

so far i tried using update() on a class thats extended by MonoBehavior, but i cant call the other method in the other class that holds the int currentStamina variable

solemn rivet
#

I have a mpregen function in bonfire, if you want to take a look

floral furnace
#

yeah but i didnt continue for now, was kinda getting late, but ill try to continue it tom

#

also most modders were offline awhile ago so i didnt continue it too far, i just ended up checking some of the source code of other mods instead

solemn rivet
#

Gotcha

fringe schooner
#

what mods work with lifeblood update right now?

inland relic
#

lightbringer didn't work with my game but blackmoth or bonfire works for me

copper nacelle
#

lightbringer hasn't been updated past 1.2.2.1

pearl sentinel
#

Just updated crossroads to download the 1.3.1.5 modding api

#

added updated enemy rando, added boop mod, added charm mod (heavy broken)

#

added mod common and update the dependencies for those mods

#

ps. if you download enemy randomizer (don't have to use it) your background will be the gods and glory background

#

๐Ÿ˜„

copper nacelle
#

crossroads ui broke

solemn rivet
#

My mods work, debug partially works, darkness mod works...

young walrus
#

BOOP MOD hollowwoke

copper nacelle
#

lol

hollow pier
#

boop mod is the only mod

solemn rivet
#

Boop works

copper nacelle
#

why is everything private ahh

bronze temple
#

@rain cedar @copper nacelle I haven't had the time to create a README section for the MonoMod HookGen yet, and MMILRT became MonoModRule (no s), which is why the new version broke

copper nacelle
#

i found out the 2nd part

#

changed MMILRT to MonoModRule

#

now monomod stops working

bronze temple
#

Great ๐Ÿ˜… oh

#

Do you have a stack trace?

copper nacelle
#

lemme grab it

#

wtf

#

works now

#

ยฏ_(ใƒ„)_/ยฏ

#

it was something like can't set x public

#

mono.cecil iirc

bronze temple
#

Oh, yeah, I've updated the Cecil dependency to the non-beta 0.10

#

If there's anything else I can help you with, please ping me :)

#

I noticed that you also managed to generate a MMHOOK_Assembly-CSharp.dll

copper nacelle
#

that thing is amazing

bronze temple
#

@copper nacelle if you want a different output assembly name, HookGen.exe Assembly-CSharp.dll Something.dll

#

and thanks :)

queen prawn
#

@fringe schooner how can i give somebody my save fie

fringe schooner
#

does anyone have a spare 106 or 107% savefile?

leaden hedge
#

%appdata%/../locallow/team cherry/hollow knight

copper nacelle
#

save file location is in pins, just take the file and send it to somebody

fringe schooner
#

but he has mac

queen prawn
#

ya mac

leaden hedge
#

~/Library/Application Support/unity.Team Cherry.Hollow Knight/

queen prawn
#

thank you

#

so

#

where do i search that

copper nacelle
#

hit

#

Command+Shift+G

#

and paste that in

queen prawn
#

im kinda dumb with this stuff sorry

#

nothing shows up

#

@leaden hedge I put all that into finder no folder shows up

#

anybody here

#

@copper nacelle

copper nacelle
#

search for user1.dat

young walrus
#

Here's an idea. Let's not tag everybody

hollow pier
#

@everyone

fringe schooner
#

does anyone have a spare 107% savefile i can get

queen prawn
#

yo hey @copper nacelle im under the aplication support folder, but i dont see the unity.Team Cherry.Hollow Knight/

copper nacelle
#

picture when

queen prawn
#

what

copper nacelle
#

p
i
c
t
u
r
e

#

Necesse est tibi dare mihi picturam.

queen prawn
#

oh

#

why didnt you use latin in the first place

copper nacelle
#

tfw the latin worked but not the english

queen prawn
#

ok

copper nacelle
#

wrong library

#

that's

#

/Library

#

you want

#

~/Library

#

use command-shift-g ez

queen prawn
#

@copper nacelle

copper nacelle
#

yes

queen prawn
#

ok

#

every since OSX Lion mac hides the ibrary folder

#

i cant find it

copper nacelle
#

command-shift-g

queen prawn
#

@copper nacelle

copper nacelle
#

press

#

command

#

and shift

#

and

#

g

#

at the same time

#

then put in

#

~/Library

queen prawn
#

w h a t

#

where

#

when

copper nacelle
#

ree

#

open finder

queen prawn
#

go to folder isnt there

copper nacelle
#

it doesn't matter ๐Ÿค”

#

if you just press the buttons

#

in finder

#

it'll pop up anyways

queen prawn
#

bet

#

it doesnt work buudddyyy @copper nacelle

queen prawn
#

same

copper nacelle
#

iirc you can go to terminal

#

type

#

cd ~/Library

#

open .

#

and that works

#

but might be wrong

queen prawn
#

ya

wide crown
queen prawn
#

same

copper nacelle
#

4th one is the only good one

#

also did the terminal thing work

wide crown
#

transparent quality

queen prawn
#

no

brazen needle
#

I was wondering if there is the possibility of putting Traitor Lord inside the Mantis Lords' arena so they can fight each other, it'd be fun to watch

young walrus
#

Go do it

digital citrus
#

Does anyone else have a problem where the EnemyHPBar mod causes certain areas to freeze your whole pc?

copper nacelle
#

no

digital citrus
#

Weird, maybe it's the mod api or something but the game freezes everything

river tiger
#

Why isn't EnemyHPBar mod working?

copper nacelle
#

did it load

#

did you install it

#

did you install the api

#

is it in the top left

river tiger
#

I installed API

#

But then it said denied

#

when I tried to install the mod from the ModInstaller

#

For some reason when I install try to install the mod, it installed the zip file and not the .dll

#

Weird... I just had to go in the Hollow Knight data and extract it on my own

solemn rivet
#

that's my fault, 69

#

oh

#

it's because it's a .rar

copper nacelle
#

oh yeah

#

i was going to ask about that

#

cause kerr's doesn't support rars either

#

iirc

river tiger
#

Thank God I'm here then :^)

#

69 to the rescue.

solemn rivet
river tiger
#

happygrub REEEEEEEEE

solemn rivet
#

re-uploaded it to a zip and changed the reference in the installer

#

this should work

fiery sequoia
#

randomizer easy is on

#

its only randomized charms so far, does hard so charms and enemies

solemn rivet
#

no

#

item rando only randos items

#

enemy rando only randos enemies

fiery sequoia
#

oh

solemn rivet
#

I'll update the dl link for the installer

fiery sequoia
#

where do i enable enemy randomizer

#

is it enabled just at installation or

#

when i make a save or

copper nacelle
#

you install it

#

you open hk

#

and there's a very large enable enemy randomizer button in the top left

solemn rivet
#

it's another mod

river tiger
#

@solemn rivet Are you working on any other mods at the moment?

copper nacelle
#

Bonfire, Blackmoth, Enemy HP Bars

#

off the top of my head

solemn rivet
#

only those, yeah

#

I only work on mods that start with B

copper nacelle
#

enemy hp bars

solemn rivet
#

Bonfire, Blackmoth, Bars

fiery sequoia
#

getting an error

#

says enemy randomizer failed to load, then to check modlog

copper nacelle
#

try not getting an error

fiery sequoia
#
[INFO]:[API] - Adding GitHub SSL Cert to Allow for Checking of Mod Versions
[INFO]:[ModManager] - Initializing
[INFO]:[ModManager] - Initialized
[ERROR]:[API] - Couldn't check for new version.System.IndexOutOfRangeException: Array index is out of range.
  at Modding.ModHooks..ctor () [0x00000] in <filename unknown>:0 
[INFO]:GameLoading
[INFO]:[API] - Trying to load mods
[ERROR]:[API] - Error: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetExportedTypes () [0x00000] in <filename unknown>:0 
  at Modding.ModLoader.LoadMods () [0x00000] in <filename unknown>:0 
[INFO]:[RandomizerMod] - Instantiating Mod
[INFO]:[HPBar] - Initializing HPBars
[INFO]:[HPBar] - Initialized HPBars
[INFO]:[RandomizerMod] - Randomizer Mod initializing!
[INFO]:[RandomizerMod] - Randomizer Mod initialized!
[INFO]:[RandomizerMod] - Github = 0.0
[INFO]:Saving Global Settings
solemn rivet
#

is your API uptodate?

fiery sequoia
#

yea installed the one from pins

solemn rivet
#

idk about that enemyhpbar version

#

but my current compilation is using experimental stuffs from the latest api

river tiger
#

@solemn rivet Is it possible for you to make a mod which is base solely on cosmetic?

fiery sequoia
#

should i just reinstall enemy randomizer

river tiger
#

See, I have somewhat of a fantasy...

#

And I think playing as a shade would be pretty cool

#

If it's possible...

copper nacelle
#

just replace a shit load of assets

river tiger
#

Ahh.

#

So it is possible?

#

๐Ÿ˜ฎ

copper nacelle
#

yes but no one would want to do it

solemn rivet
#

yeah

#

:effort:

#

and I'm lazy

copper nacelle
#

2meirl4meirl

fiery sequoia
#

how should i fix my issue pls help :notlikledc

#

fk

solemn rivet
#

oh

copper nacelle
solemn rivet
#

uhhh

copper nacelle
#

lastest patch, newest api?

solemn rivet
#

can you send me your hpbarmod plz

copper nacelle
#

isn't his hpbar working and enemy rando not

solemn rivet
#

actually

#

well

fiery sequoia
#

i just reinstalled it but will do, dont see what it has to do with enemy rando but might as well
latest patch, api in pins

solemn rivet
#

if you try running hpbars without the experimental API, that's what happens tbh

#

because it uses a new hook that's not in the previous api versions

fiery sequoia
#

its been working for me just fine, but what would it have to do with breaking enemy rando

solemn rivet
#

oh

#

if it's working, then it should be fine

#

about enemy rando, idk

#

maybe kerr also added new hooks?

fiery sequoia
#

where would i get the experimental ai

copper nacelle
#

doesn't the pinned one have all the new hooks

solemn rivet
#

dunno

#

does it?

copper nacelle
#

what were they called

solemn rivet
#

I know wyza accepted the pull request, but did it get added to the drive?

river tiger
#

When I swing my sword in bonfire mod

#

I see red flames

#

Is that like, a crit?

solemn rivet
#

that's a crit

river tiger
#

Ah

#

Happens very often

#

I like it

copper nacelle
#

ech

solemn rivet
#

oh

#

I didn't fix the bonfire link, I don't think

dusky lion
#

I could very well be an idiot but do you need the mod installer to install the HPBar.dll or can you install it manually?

solemn rivet
#

this is KDT's hpbar btw

copper nacelle
#

both work

solemn rivet
#

mine is diff

pearl sentinel
#

Out and about today, but drive has newest api

river tiger
#

Hmmm?

solemn rivet
#

thanks Kerr

river tiger
#

You want me to replace my .dl with that?

solemn rivet
#

yeah

pearl sentinel
#

Crossroads is now pointing at that

solemn rivet
#

should fix crits happening too often

dusky lion
#

Thanks but where should the .dll go?

solemn rivet
#

or at least, more often than they should

river tiger
#

Why would I not want my crits to be often?

#

It happens like 1/4 or so.

solemn rivet
#

what's the crit% supposed to be on the stat screen?

dusky lion
#

I'm assuming plugins.

solemn rivet
#

wut

#

wut?

dusky lion
#

I'm asking where you put the .dll for the HPbar mod.

river tiger
#

What does "respec" do?

#

in bonfire

solemn rivet
#

but I didn't send it to you, howol

#

it lets you respec your stats, 69

river tiger
#

Huh?

#

Ah

#

I see

solemn rivet
#

re distribute them

river tiger
#

You can redo it

#

Ah.

dusky lion
#

The mod is in pins.

solemn rivet
#

yeah, howol, you put it in the Mods folder

#

inside hollow_knight_data/Managed

dusky lion
#

Thank you!

river tiger
#

Gradow

#

Does the mod auto-update itself?

copper nacelle
#

no

river tiger
#

Ah.

#

I have to do that manually then?

copper nacelle
#

installers can update

river tiger
#

The mod and the api?

copper nacelle
#

you can just uninstall/reinstall w/ installer

#

crossroads has a redownload button

river tiger
#

Ah

copper nacelle
#

.

river tiger
#

So uninstalling an reinstalling updates it.

#

Cool.

#

Btw, Gradow, I think spells should crit, it would be pretty neat.

solemn rivet
#

but mods should be up-to-date, so there's no need for that rn

river tiger
#

Okay.

copper nacelle
#

spells should crit

solemn rivet
#

yeah, I was actually thinking about adding that

copper nacelle
#

wtf

solemn rivet
#

because now it's possible

river tiger
#

...

copper nacelle
#

160 damage shade soul

river tiger
#

What do you mean 56?

#

What's wrong with spells critting?

solemn rivet
#

56 is a bot

river tiger
#

Lol

copper nacelle
#

288 damage

river tiger
#

And?

#

It should be over 9000

#

:V

copper nacelle
#

what is balance

solemn rivet
#

that's what I found with bonfire, 56

#

people don't like balance and order

#

they like chaos and disorder

copper nacelle
#

true

river tiger
#

Exactly.

#

It's a stat-building mod anyways.

#

Why not go crazy?

#

๐Ÿ˜•

copper nacelle
#

fluke pre-nerf-pre-nerf crit imo

river tiger
#

lol

#

What stat should I start upgrading first in bonfire?

#

It's luck, huh?

#

It's always luck in almost every RPG game.

copper nacelle
#

ds3

river tiger
#

ds3?

copper nacelle
#

dark souls 3 upgrading luck

#

good meme

river tiger
#

Ah. Of course you meant Dark Souls...

#

๐Ÿคฆ๐Ÿป

#

I'm an idiot.

copper nacelle
#

tbh need a hollow facepalm emote

river tiger
#

^

spare crag
#

With the Bonfire mod, is increasing Luck supposed to decrease the amount of damage the nail deals?

#

It seems to have undone my strength increases

sterile valley
#

"I will upgrade how much luck I have in combat by dealing less damage and giving the enemy more chances to hit me"

copper nacelle
#

exactly

#

also i now hate the word private

sterile valley
#

private

copper nacelle
#

die

hollow pier
#

privet

copper nacelle
#

Blah does not contain a definition for blah and no extension method blah accepting a first argument of type Blah could be found (are you missing a using directive or an assembly reference

#

x100

solemn rivet
#

R e f l e c t

#

@spare crag no, but levels do increase enemy hp

copper nacelle
#

actually me_irl

#

should be caching the fieldinfos but also no

solemn rivet
#

Can't you find those with the hitinstance hook?

#

It gives you the fsm of who is hitting and its hit parameters

#

(so you won't need to waste time doing reflections)

copper nacelle
#

oof

solemn rivet
#

I mean, dunno what you need those for, but might be worth a shot

river tiger
#

@copper nacelle Private parts :^)

#

Btw, @solemn rivet Blackmoth needs a lot of work...

solemn rivet
#

says who

river tiger
#

I was testing it out

#

Felt somewhat...

#

Weird...

fiery sequoia
#

@solemn rivet so whenever i dash through a metal/shield thing, the shadow dash breaks

hollow pier
#

hey modder the mod feels sorta weird i think you should rework the entire thing

river tiger
#

That's a bug.

fiery sequoia
#

yes

river tiger
#

@fiery sequoia

fiery sequoia
#

i know

#

i am reporting it

river tiger
#

Kek

fiery sequoia
#

and what a necessary ping

solemn rivet
#

that's a vanilla bug

river tiger
#

I mean... It's a long-time bug

#

Exactly.

#

Vanilla bug

#

That has yet to be patched

solemn rivet
#

also, what metal/shield thing?

fiery sequoia
#

any metal or shield

#

like uh

solemn rivet
#

oh

#

gotcha

fiery sequoia
#

the weaver hunter things facemask

solemn rivet
#

yeah

#

I tried to fix that earlier, but didn't work

river tiger
#

@fiery sequoia Just go to main menu and go back into the game

#

That's your only solution tbh.

fiery sequoia
#

yea but thats gay

river tiger
#

Welp.

#

๐Ÿคท๐Ÿป

#

You're gay.

#

:V

solemn rivet
#

as soon as I'm more comfortable with the whole porting fsms to code thing, I might rewrite the whole sharpshadow behaviour and fix that

river tiger
#

Wow Gradow.

#

You really are nice

#

Fixing the game for TC and all...

#

:C

solemn rivet
#

I mean

#

I'm not the only one

#

sean, Kerr and others are also looking into rewriting fsms into code

river tiger
#

fsms?

solemn rivet
#

actually, Kerr has done major progress in that front

copper nacelle
#

finite state machines

#

aka

river tiger
#

Wtf is that?

solemn rivet
#

he completely rewrote Hornet1 to code

river tiger
#

Huh

#

What did he do?

solemn rivet
#

flowcharts, 69

river tiger
#

Kerr, made Hornet 1 do what exactly?

copper nacelle
#

exist

solemn rivet
#

the game's ai basically works by following flowcharts

river tiger
#

So...

solemn rivet
#

which sucks for a variety of reasons

river tiger
#

Kerr is part of TC?

#

...

solemn rivet
#

so Kerr rewrote that into actual logic

river tiger
#

Ah.

solemn rivet
#

for Hornet1, at least

river tiger
#

So... he basically made Hornet 1...

#

Smarter?

solemn rivet
#

here, lemme show you

#

no, she still behaves the same

river tiger
#

Then what did he improve?

solemn rivet
#

but she's now easier to handle from a coding pov

river tiger
#

Ooooh

#

He basically puppeted her

#

with code

copper nacelle
#

rewrote imo

scenic slate
#

what mods work right now?

fiery sequoia
#

made the code easier to code

river tiger
#

So instead of using flowcharts for the Ai

#

Kerr used code?

copper nacelle
#

no flowcharts, yeah

sterile valley
#

@scenic slate Enemy hp bars, debug mod works to an extent.

copper nacelle
#

@scenic slate blackmoth, hell mod, mantis gods, enemy hp bars, charm notch, debug, enemy rando

sterile valley
#

These are the two I know.

#

Charm notch, ene-

river tiger
#

What does debug mod do?

sterile valley
#

Oh okay 56 replied.

copper nacelle
#

get dusted

sterile valley
#

Debug mod does a lot of shit.

solemn rivet
sterile valley
#

Like uh.

river tiger
#

Very specific Niko..

hollow pier
#

it debugs the game so it removes every bug

sterile valley
#

Noclip, invincibility, spawn geo, spawn items, change charm properties...

river tiger
#

@solemn rivet So that's the flowchart you were talking about?

sterile valley
#

@hollow pier Stop trolling, he's asking a genuine question.

solemn rivet
#

each one of these blocks has a check for conditions and what to do once those conditions are triggered

copper nacelle
#

respawn bosses, noclip, invin, spawn items, geo, skills, etc

hollow pier
#

wow my apologies mr big serious

river tiger
#

Wow

sterile valley
#

No offense taken, mr I desperately need validation so I keep trying to troll everyone I can.

river tiger
#

So debug is basically cheat egine.

#

Kek

#

:V

fiery sequoia
#

lmfao no chill

#

seemed to be a pretty obvious joke to me

river tiger
#

I didn't laugh :}

fiery sequoia
#

thats great

solemn rivet
#

chill out people

#

also, 69, yeah

#

so kerr rewrote one of those into actual C# code

#

and that's great for us modders

#

and also great for performance and stuffs

#

like, the BIG change from TGT to Lifeblood was that every enemy had one of those flowcharts called "health_manager" or "health_manager_enemy" (it varies seemingly randomly)

river tiger
#

So code is easier than flowcharts for you guys?

solemn rivet
#

and now, they don't

river tiger
#

TGT?

solemn rivet
#

TC rewrote the health_manager fsm into an actual component and then added that component to every enemy

river tiger
#

Don't answer that.

#

The Grim Troupe huh

solemn rivet
#

so performance quite literally increase dramatically

#

that was needed, amongst other reasons, to make the Switch port viable

river tiger
#

Wow.

#

Nice.

solemn rivet
#

as it were, game ran like shit on the Switch

river tiger
#

You saw?

solemn rivet
#

nah

river tiger
#

Lol

solemn rivet
#

we got inside word

#

we have our connections

river tiger
#

So is that why they did Lifeblood

#

To work on performance and etc

#

Before Switch release.

solemn rivet
#

main reason was to make a functional Switch port, yeah

river tiger
#

Why a port tho?

#

Why not build it from the ground up?

young walrus
#

Cuz they promised one....

#

And they're not coders

solemn rivet
#

/s?

river tiger
#

?

#

I never said anything about their promise

#

Lol

solemn rivet
#

why build it from the ground up?

young walrus
#

So they coded the game very poorly at firat

#

First

solemn rivet
#

it's way easier and more cost-efficient to simply port the game

river tiger
#

True.

#

Ignore me question.

#

Anyways...

young walrus
#

If they ported what they had already, it would have run at 2 fps

river tiger
#

Weren't we also promised a PS Vita version of the game as well??

solemn rivet
#

mick is one of the inside sources, or so I heard

river tiger
#

WTF HAPPENED TO THAT???

solemn rivet
#

don't...

#

sigh

young walrus
river tiger
#

;v

#

But seriously.

#

That was one of the stretch goals

young walrus
#

And was it reached?

river tiger
#

It was.

young walrus
#

Pretty sure it wasnt

river tiger
#

Ummm...

#

It was...

solemn rivet
#

I have no idea about that

hollow pier
#

hey guys abyss dlc

young walrus
#

They might have updated the goal and changed it to switch

river tiger
#

Nope.

young walrus
#

Based on changing eqyipment

river tiger
#

Nope.

hasty hull
#

Team Cherry decided to switch the console they were going to port it to

young walrus
#

Equipment

hasty hull
#

Yeah

river tiger
#

I was meaning Mickely

young walrus
#

Cuz originally, the switch port was gonna be wiiU

river tiger
#

I'm sure if you go to their Kickstarter for the game you'd see it

#

Not to mention "Abyss dlc"

#

LOL

young walrus
#

That wasn't met tho

river tiger
#

facepalm

#

Could you check before talking crap?

young walrus
#

Could you?

hollow pier
#

tri too slow

void tree
solemn rivet
#

gotta go fast

#

also

#

NGG single segment when?

void tree
#

roughly never

solemn rivet
#

0 0 f

void tree
#

last phase is just too hard man

hollow pier
#

get horheristo to do it

solemn rivet
#

so I heard

#

I never really bothered too much with NGG