#archived-modding-development

1 messages Β· Page 166 of 1

floral furnace
#

modmins

hollow pier
#

code fuckers

rain cedar
#

no

compact sedge
#

if it was called code fuckers then I especially wouldn't deserve it because code is definitely the thing fucking me and not the other way around.

rain cedar
#

Well someone is fucking your code because it's awful

compact sedge
#

to be tbh you don't read my code. only the screenshots I post of my worst hacks and 56's pictures. Otherwise you'd have seen the most disgusting function ever in infinite grimm that I recently sorta cleaned up.

#

this being before I knew how either coroutines or FSMs worked

rain cedar
#

I don't like that you have lower camelcase for non-local variables

#

I hate it

compact sedge
#

thanks. Me too

#

I mean uh wrong order

rain cedar
#

I agree with your const naming at least

compact sedge
#

naming aside:

I tell the game to wait exactly 40 frames using the update function and not a coroutine and then copy a game object into a public static GameObject which is named all lowercase so it doesn't conflict with the local variable which is camelcase. And then I use that static gameobject in a whole different function by checking a static bool to see if grimmchild should be loaded.

rain cedar
#

I think you can have same name if you access them as grimmChild and this.grimmChild

#

Works with parameters at least

compact sedge
#

can't do this because it's static

#

I think

rain cedar
#

Oh ok then just infinite_tent.grimmChild

compact sedge
#

yeah I could do that but aaa this code is awful and I wrote it around IG 0.1 when I knew literally 0 C# so that's my only defense but I have no excuses for not rewriting it except that it works and I'm lazy.

flat forum
#

at least you have an idea at what you're doing zote

compact sedge
#

the only "rewrite" I did was removing the update function and using a coroutine

#

but it does the same stuff

rain cedar
#

I rewrote an entire 10k line mod from scratch

#

Don't be lazy

compact sedge
#

well it wouldn't help. My combo mod has some pretty dumb code in it as well for tracking scores across saves using the world's most basic and exploitable anticheat but done so that I could do a meme in the settings file.

#

not even joking on that last part

rain cedar
#

Good

honest elm
#

Hey guys! Would anyone be able to help me find the Bonfire mod?

warped sinew
#

Does anyone know what damage binding nail gets you to? Also Does it scale with the pantheon?

young walrus
#

13

steep sail
#

Ask 56

hollow pier
#

ask 13

compact sedge
#

13 for 56 dollars

steep sail
#

Cause there are something strange

hollow pier
#

its actually 753/56

warped sinew
#

I'm going to use cheat engine to nerf my nail and HP so I can practice bosses with "all bindings"

hollow pier
#

which is ~13

warped sinew
#

In HoG

young walrus
#

nail2

hollow pier
#

graig just download woke

#

it forces binds on you

young walrus
#

^

#

also that

#

i dunno that it's done yet tho

compact sedge
#

waitasecond

#
  public static int BoundNailDamage
  {
    get
    {
      int nailDamage = GameManager.instance.playerData.nailDamage;
      if (nailDamage <= BossSequenceController.currentSequence.nailDamage)
        return Mathf.RoundToInt((float) nailDamage * BossSequenceController.currentSequence.lowerNailDamagePercentage);
      return BossSequenceController.currentSequence.nailDamage;
    }
  }```
warped sinew
#

Woke? Is that a mod?

hollow pier
#

yes

compact sedge
#

no vanilla

#

oh woke is a mod

#

but that code is vanilla

warped sinew
#

OK nice that makes it way easier

#

Gotta prac those bosses for that panth5 all bindings that I'll never pull off

hollow pier
#

youve had months before anyone

#

easy p5

warped sinew
#

I havnt had much prac with the GM stuff really, I was doing 112% runs over and over

#

Not much binding stuff

hollow pier
#

yikes

warped sinew
#

But yeah I do have more prac than everyone else

hollow pier
#

do from:56 has:file if not

compact sedge
#

so what's weird is this. The code I posted returns 5 unless you deal 5 or less damage and then it returns 80% of that. But it's clear this function was scrapped because you do 13 dmg with binding

#

thus we can conclude at one point you were supposed to do 5 dmg to enemies with the binding on

#

(or 4 dmg if you had the worst nail)

hollow pier
#

makes more sense tbh

warped sinew
#

It was going to scale I think

hollow pier
#

whys the shell bind 4

warped sinew
#

But obviously will changed it to flat 13

hollow pier
#

13 is still pretty good

compact sedge
#

it was only gonna scale if you do less than the binding amount. What I don't know is if that scaling is still in there somewhere else

#

maybe if you do less than 13 dmg base nail binding instead sets your damage to 80% of what it would otherwise be. like say if you have level 1 nail you would do 9->7 dmg.

#

but idk if anyone has tested it with less than 21 damage nail

warped sinew
#

It might still work

compact sedge
#

yes but it doesn't scale it

#

it caps it at either your current nail damage or 13

#

there is nothing in the code itself that says it should do 13 and not 5 dmg

#

probably in fsms

#

or it actually does 5 dmg but all damage against ascended and radiant bosses is scaled such that it feels like it's doing 13.

#

probably the former tho

rain cedar
#

Idk what you're on about

#

It's a scaler from nail damage

compact sedge
#

the code says it should do 5 dmg if nail damage is > 5 and nailDamage * 0.8 otherwise.

#

but clearly it's not doing that damage

#

so either I'm reading the code wrong or it's set somewhere else

rain cedar
#

Oh I see you're looking at the default value for nailDamage in BossSequence

#

Don't trust that

fossil oxide
#

How does glubberfly interact with the nail if the enemy is up close?

rain cedar
#

Components could have any value

#

It interacts in the good way

#

Not the lttp way

hollow pier
#

str but not

compact sedge
#

so you're saying it's set in fsms?

#

oh

#

I see

rain cedar
#

Set by editor

compact sedge
#

ech

#

this is why I need to retire from modding. I like being able to trust that vars are what they say they are.

#

and not: something completely different in "code" that you have literally no way of viewing.

#

if the editor created files I could actually read that might solve that problem.

pure thistle
#

Will debug mod be soon updated no rush

#

And it would be cool if we can have more commands

young walrus
#

you should ask a few more times today

#

no rush

pure thistle
#

Like kill other dream bosses instead of soul tyrant etc

#

Lol I can wait up to a month for the debug to update

fossil oxide
#

Achievements can still be gotten for those people who use debug mod, right? So the Steam achievement counter (like always) won't be accurate anymore

#

Or am I wrong here

pure thistle
#

U can get them

fossil oxide
#

Sad

pure thistle
#

When I first got debug

rain cedar
#

It'll be updated about 11 hours ago

woeful vault
#

Why WORK for a post game achievo if you can just be invincible

rain cedar
#

Just wait a bit

pure thistle
#

I didn't know any off the controls

#

And I accidentally killed so tyrant when i made a new game

#

...

terse nova
#

well thats just dissapointing

#

disappointing*

rain cedar
flat forum
#

what did

#

what did you happen

#

what happen

#

what did

rain cedar
#

What are you so confused by?

flat forum
#

I forgot how to English for a second there

#

No I simply forgot how to English for a moment

#

what caused this overlay?

rain cedar
#

Randomizer

#

It's broken

#

Because godmaster

#

NRE when editing menu

#

Idk what you want me to say

#

I swear if they stopped using EventTrigger

#

I'll have to learn a whole new event system ugh

#

I'll deal with it later bye

#

Now bye

steep sail
#

Are there datamained values of new enemies health?

rare barn
#

So the mods, do they work on Linux? I really want to get into modding my game, but there are only macOS and Windows versions of the mod in the mod zip file.

buoyant obsidian
#

Does the game even work on Linux?

rare barn
#

Yeah it is fully supported

rare barn
#

Also, is the Bonfire mod an API mod?

solemn rivet
#

Ye

#

Haven't tested, so dunno if it works on current patch

#

But they should all work on Linux

#

But iirc the installer wasn't working properly on Linux, so go to #archived-modding-help and check the pins there

rare barn
#

I see, thanks

solemn rivet
#

Np

somber spear
#

is there a way to make the debug mod work on 1.4.2.4? I keep getting no UI in main menu, cant enter ingame.

flat forum
#

Same here

tranquil glen
#

is there a way to like refresh the camera?

somber spear
#

@tranquil glen what do you mean by refreshing the camera?

tranquil glen
#

reset it to hero's position and then have it function normally

somber spear
#

Press "Home" (on your keyboard)

#

Sorry, it's "End" actually not Home

#

Home disables Hero light

tranquil glen
#

I'm making a savestate mod and need the camera to reset when i load a save

somber spear
#

Sorry, I thought you meant in debug mod

tranquil glen
#

nah

#

debug mod doesn't exist on the patch i'm working with

somber spear
#

Idk about that but might want to check with Seanpr then since he did it in debugmod

#

what patch are you working with?

tranquil glen
#

thats just the zoom though isn't it

somber spear
#

no it totally resets the camera to default

tranquil glen
#

1.0.2.8

somber spear
#

thats a very old version, why are you working on that one?

tranquil glen
#

because thats the patch i usually play on

#

so I'm making a mod to help me on it

somber spear
#

Very unusual to hear that, how come you play on that version? Is that to do with speedrunning?

tranquil glen
#

yea

#

also why i'm making a savestate mod

#

to practice

somber spear
#

Ah, gotcha. Worth asking Seanpr nonetheless for the camera reset thing

rare barn
#

Where can I download the modding API?

#

I can't find it anywhere in the pinned messages

copper nacelle
#

it's in the gdrive in the first pin

cunning lagoon
#

did veru get rad absrad yet

rare barn
#

thanks

compact sedge
#

Hey @rare barn I play and mod exclusively on linux and I got the modinstaller almost perfectly working. offline mode is buggy but otherwise it should just work.

rare barn
#

oh wow, nice

compact sedge
#

you just need to run it with mono ModInstaller.exe (it's just a c# program like everything else here)

rare barn
#

I see, thank you

cunning lagoon
#

he's done it

#

am i the first one?

tranquil glen
#

someone on reddit posted a pic a while ago but i'm not sure i'd trust its validity

#

other than that i know veru and monstah were both very close but not sure if they ever got abs rad

cunning lagoon
#

veru said he was gonna do it today

fossil oxide
#

@cunning lagoon

#

I was the first lmao

cunning lagoon
#

idk about monstah

buoyant obsidian
#

yeah but was it legit

cunning lagoon
#

nah i had to cheat on brooding mawlek

#

quick question how do i stitch 44 videos together into a big video

compact sedge
#

what if you got one of the bosses stuck like hornet is that ok?

copper nacelle
#

probably ffmpeg

compact sedge
#

ffmpeg if you know how to use it. literally any video editing software if you don't.

floral furnace
#

divide each video and monetize them for maximum cash gain

compact sedge
#

(I like kdenlive but idk what video editing stuff on windows doesn't cost shittons of money)

cunning lagoon
#

then i can't title it GODMASTER DLC - All bosses without taking A SINGLE HIT (you won't believe what happens next)

copper nacelle
floral furnace
#

it isnt worth watching if it doesnt have [All Bindings] [No Damage] [Nail Only] [WR] in the title

cunning lagoon
#

maybe ur mom

compact sedge
#

[FIRST EVER]

floral furnace
#

ouch 😩

cunning lagoon
#

😎

#

nothing personnel kid

floral furnace
#

srsly does p5 literally take an hour to complete on all bindings

compact sedge
#

1:30 apparently

tranquil glen
#

yeah probably

cunning lagoon
#

~1h:30 according to graig

#

speedrunners could probably do it faster

#

or maybe its 1h30 when going really fast milliS

buoyant obsidian
#

jesus that's a long time

cunning lagoon
#

its not only long but it also has 2 bosses that do 2 masks at the end

#

and you only have 4

#

also they are p hard

#

its not like nkg

compact sedge
#

at least it doesn't have to be hitless... yet

flat forum
#

Can I be pinged when Debug is updated please?

compact sedge
#

it is I think

flat forum
#

send dll?

compact sedge
#

isn't it in the installer?

flat forum
#

Not doing it Manually ew

compact sedge
tranquil glen
#

could you not replace one?

compact sedge
#

I think you need to serialize them with the editor

#

idk that it's possible to load them any other way

tranquil glen
#

oof

flat forum
#

@compact sedge can you send me the Updated Debug?

compact sedge
#

it's in the drive, no?

flat forum
copper nacelle
flat forum
#

@copper nacelle send Debug mod

#

.dll

copper nacelle
#

download it

#

.dll

flat forum
#

because I'm too dumb

#

3rd one?

compact sedge
#

yeah the one that was updated yesterday

copper nacelle
#

oh whoops

#

i added modcommon as a ref to debug mod i think

flat forum
#

what the hell

copper nacelle
#

?

flat forum
#

WhY THe fUCk aREn't yOU doWNlOaDINg?!

#

It just gives the scanning for Viruses thing in the corner and then does nothing

#

Ok, worked now

#

after repeating it for 5 minutes straight it worked

#

it required ModCommon, right?

copper nacelle
#

no

#

it shouldn't

flat forum
#

then what did it require?

#

didn't it require something?

copper nacelle
#

the api

honest elm
#

Hey guys is the Bonfire mod still a thing?

compact sedge
#

IDK if it's a bug with the API or vanilla but whenever I start the game I hear for a few frames the godmaster lake sound effect where the bench is before going back to normal. anyone else experience this?

rare barn
#

@honest elm I just tried playing with the Bonfire mod, it works fine.

honest elm
#

@rare barn I just don't know where to download or implement it. I just got hollow knight a few days ago

rare barn
#

You should play through the game normally before adding the bonfire mod imo

#

totally breaks the game

honest elm
#

Yeah that was honestly my plan. I just know when I do beat the game I'll want to try it out so was trying to plan a bit ahead

rare barn
#

ok I see

#

if you go the pinned messages of this channel, the first link there by FoldingPapers contains all the mods

#

I'll be afk for a moment

#

see ya

jovial echo
#

hey i cant find the api in the mod drive

#

im following a tut by verulean

waxen wyvern
#

ModInstaller isn't updated, right?

jovial echo
#

nvm i found it

solemn rivet
#

ModInstaller is updated

compact sedge
#

I mean it didn't need to be updated.

steep sail
#

Praise the Void

solemn rivet
#

Rule of thumb - the installer is always as up-to-date as the api

#

Dlk on windows you can use virtualdub to stitch videos together pretty easily

cunning lagoon
#

nice ill check it out

#

thank you happygrub

solemn rivet
#

be sure to select direct stream copy for video and audio, otherwise it'll re-encode them

mortal willow
#

Are you guys able to find HP of the new bosses?

copper nacelle
#

no u

#

just use debug mod

spark grotto
#

Is debug mode compatible with godmaster?

copper nacelle
#

yes

spark grotto
#

So i can just use the one in the pinned drive?

copper nacelle
#

yes

spark grotto
#

Alright thanks

#

I hid the menu of the mod and now i can't turn it back on

cunning lagoon
#

f1

spark grotto
#

You're the best

cunning lagoon
#

no u

heady heath
#

hey sorry to butt in but does anyone know where the bonfire mod is

tranquil glen
#

no we lost it

heady heath
#

ah shit

#

k then

shadow nimbus
#

oh noes! that was the one mod i was hoping to be updated

tranquil glen
#

πŸ“Œ

heady heath
#

yeah ikr it's just that i came here specifically to get it

copper nacelle
heady heath
#

oh it was in pins

#

alright cheers

copper nacelle
heady heath
#

ok in my defence that didn't load in

#

it was just a square

#

no need to be rude fam

copper nacelle
#

understandable have a nice day

solemn rivet
#

no one's being rude, we're just having some fun after being asked the same question 1209389854 times

tranquil glen
copper nacelle
#

that's not how that works but you're close

tranquil glen
#

like would it be something like CameraController.CameraMode.Following = true?

copper nacelle
solemn rivet
#

No

copper nacelle
#

O

solemn rivet
copper nacelle
#

@tranquil glen might be previous to be tbh

solemn rivet
#

well, if he wants to re-center on Knight, better make it Following, no?

tranquil glen
#

well i use GameManager.instance.cameraCtrl.transform.position = new Vector3(this.SavePos.x, this.SavePos.y, GameManager.instance.cameraCtrl.transform.position.z); to center on the knight

copper nacelle
#

yeah but then it'd follow him oob

tranquil glen
#

but then i need to move around a bit before it starts following

copper nacelle
#

capture the lock

#

i think

#

var lock = (CameraLockArea) (typeof(CameraController).GetField("currentLockArea", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(GameManager.instance.cameraCtrl)

solemn rivet
#

what exactly do you want to do kry?

tranquil glen
#

Before when i loaded a previous position the camera would sort of break, i kind of fixed it by teleporting the camera to the character while loading but the camera still does nothing for a bit until you walk around in the right way to make it move

#

just want it to work properly without the walking around part

copper nacelle
#
FieldInfo fi =  typeof(CameraController).GetField("currentLockArea", BindingFlags.Instance | BindingFlags.NonPublic);
var lock = (CameraLockArea) fi.GetValue(GameManager.instance.cameraCtrl);
// load
fi.SetValue(lock);
#

maybe

tranquil glen
#

how do i use the new FSM viewer?

copper nacelle
#

open it

#

file => open

#

select resources.assets

tranquil glen
#

keeps closing when i do that

copper nacelle
#

won't work on old/new versions

#

that's why i sent you the lb one

#

:ech:

tranquil glen
#

yeah i'm using that one

copper nacelle
#

wot

tranquil glen
#

it just closes

copper nacelle
#

uhh

#

oh you might need the .resS

#

and stuff

#

pain

#

ok got it

#

put this next to resources.assets

#

won't crash then

tranquil glen
#

now it crashes when i select the fsm

copper nacelle
#

fuck

#

gimme another sec

#

then

#

bet it's .resS

coarse moth
#

can someone send me ending with flower ?

copper nacelle
#

.resS and .resource don't work

tardy bluff
#

It’d be cool if there were a shade variant of Crystal Dash. It would do... something... xP

solemn rivet
#

wdym

#

like, being able to actually deal damage and dash through enemies with cdash?

tardy bluff
#

At the very least it would just go faster. At the most, yes those qualities.

solemn rivet
#

well

#

I'm adding the ability to change the cdash direction in midair in Blackmoth

#

also the ability to start the cdash without charging and on air

#

but those are nice ideas

copper nacelle
#

more than 10 damage

#

to be tbh

solemn rivet
#

to be etbh

#

to b etbh

#

I like how 2BH means something completely unrelated to tbh

exotic venture
#

to be too tbh be too to be tbh honest

hollow pier
#

tbh

solemn rivet
#

πŸ‘€

solemn rivet
flat forum
#

that sounds a lot like me zote

solemn rivet
#

progress bois

woeful vault
#

yeyeye!

copper nacelle
#

yπŸ‘πŸ‘

tranquil glen
#

@copper nacelle did you ever figure out what i needed to make the viewer work?

copper nacelle
#

i think basically all the assets

tranquil glen
#

rip

#

ok i'll get the patch i guess

#

thanks for attempting to enable my laziness

copper nacelle
#

or figure out how to fix the viewer

#

i'm gonna try and give it a shot but i'm bad

#

wait what

#

it's working

#

i swear this wasn't working a minute ago

#

@tranquil glen wait stop no

tranquil glen
#

wha

copper nacelle
#

yeah no it's working on gm

#

idk

#

also i think that was the wrong version

#

h

#

this works w/ godmaster

#

apparently

tranquil glen
#

nah that crashes too

copper nacelle
#

w/ godmaster resources.assets?

#

in your normal hk folder

tranquil glen
#

oh woops

#

dont talk to me as if godmaster is my normal hk folder though

#

you best believe 1028 is still the default

copper nacelle
tranquil glen
#

yeah that works thanks

copper nacelle
#

yw

tranquil glen
#

these aren't all the FSMs are they?

copper nacelle
#

they are

#

oh all the FSMs

#

no

tranquil glen
#

weren't there like 8 for every chain

copper nacelle
#

open any other assets file for more

#

and any level file for more

tranquil glen
#

coo

#

no wait there's 6000 assets files

copper nacelle
#

yes

#

wait no

#

only resources.assets has actual fsms

#

the rest are in levels

#

afaik

tranquil glen
#

thats what you think

copper nacelle
tranquil glen
#

little did you know sharedassets99 has Acid Detector-Detect in it

copper nacelle
#

oh is that where the abyss crawler fsm is

#

that's a pain

tranquil glen
copper nacelle
tranquil glen
#

i've opened a couple others

#

some of them have none

#

but some have like 2 random ones

#

wait what are levels files called

copper nacelle
#

level1

#

level2

#

level3

#

level4

#

...

#

level420

tranquil glen
#

would you happen to know where i could find HeroCtrl-Healed

copper nacelle
#

yeah

#

resources.assets

#

on the knight

#

probably

#

that's not an fsm tho

#

that's just an event

#

sent to an fsm

tranquil glen
#

ye

copper nacelle
#

I'd go for HeroCtrl-Respawned

#

but idk

solemn rivet
#

hey, I needs helps plz

copper nacelle
#

yes hello

solemn rivet
#

you can see I add a Click event to the enable button

copper nacelle
#

yes

solemn rivet
#

and this is that event

#

it's supposed, at the very end, to flip the bool checking if the mod is enabled or not

#

but

copper nacelle
#

it doesn't?

tranquil glen
#

lol

#

respawned isn't the best choice i think

solemn rivet
#

ye

#

ignore the messagebox, that's me trying to debug it

copper nacelle
#

smh why not a foreach loop

#

@tranquil glen leaving-scene?

#

idk

#

leaving-scene sounds like it'd do something bad

#

ngl

tranquil glen
#

lol yeah now that i have this i'll just try random shit until it works

copper nacelle
#

hey krythom

solemn rivet
#

foreach what

tranquil glen
#

hey 56

copper nacelle
solemn rivet
#

because

#

I need the index

#

to set their positions

copper nacelle
#

agony

#

is isEnabled readonly or anything

#

does it actually get past it

solemn rivet
#

well, it does get past it because I can click other buttons and it works

#

so it's not getting stuck there

copper nacelle
#

change the text after it imo

solemn rivet
#

it's not readonly or anything

copper nacelle
#

pain

solemn rivet
#
            button.Text = entry.isEnabled ? "Disable" : "Enable";```
#

put this at the end

#

same thing

copper nacelle
#

does wpf try catch events or anything

#

like the api

solemn rivet
#

and, yes, I have tried entry.EnableButton.Text instead of button for an absolute reference

#

still nothing

#

uhhh wdym

#

I can try catch stuff

copper nacelle
#

like you know if you fuck up in a modhook

#

it'll just throw the error in modlog and continue running

solemn rivet
#

ye

copper nacelle
#

might do the same thing here

solemn rivet
#

it's possible

#

I even tried re-adding the subscription at the end, for good measure

#

at one point

#

hmm

#

well, usually when something throws, VS tells you

copper nacelle
#

ye

solemn rivet
#

wait

#

ModField entry = modEntries.Single(f => f.EnableButton == button); maybe this is it

#

I'm not getting an absolute reference

hazy sentinel
#

go through panth 5

solemn rivet
#

yeah, makes sense

tranquil glen
#

how do i make something only happen once per keypress and not just while i hold down the button

#

or does Input.GetKeyDown already do that

copper nacelle
#

i thought that was what it did

#

otherwise i'd get 80 logs every time i tried to test something

#

@solemn rivet

#

it didn't change to cheese

solemn rivet
#

lemme see

#

huh

#

weird

tranquil glen
#

aha i fixed it

copper nacelle
#

respawned then healed?

tranquil glen
#

no

#

loops

copper nacelle
#

nice

tranquil glen
#

its probably not the best way but it works

copper nacelle
#

also holy shit i wish i knew about single earlier

tranquil glen
#

yeah those're what i used

#

for whatever reason me manually sending the events didn't work

copper nacelle
#

huh

solemn rivet
#

single?

copper nacelle
#

yes

solemn rivet
#

also, for some reason, I found that it's the bool change that's changing the text

copper nacelle
#

wtf

#

is there a button.refresh or something

solemn rivet
#

I removed everything from the method, except the bool change, and it worked

#

did the opposite, and it didn't

#

dunno

copper nacelle
#

there's a button.refresh

#

good meme

solemn rivet
#

but the weird thing is

#

it's not supposed to tho

#

I set the value of button.text way before clicking

#

it has no reason to update it

copper nacelle
#

weird

solemn rivet
#

indeed, I set it using the bool

#

modEntries[i].EnableButton.Text = modEntries[i].isEnabled ? "Disable" : "Enable";

#

but that happens before I even subscribe to the event

copper nacelle
#

it sets it

#

it just doesn't fix the button

#

wait what

#

it does set it but it doesn't stay set

#

wait gradow

#

don't structs copy on ref

solemn rivet
#

they do, I think

#

wait

copper nacelle
#

wouldn't entry copy

#

yeah i fixed it ig

solemn rivet
#

?

copper nacelle
#

i think?

#

lemme check something

solemn rivet
#

k

copper nacelle
solemn rivet
#

the thing is, I can't get an absolute ref to the struct

#

ye

#

that's my point

#

how fix

copper nacelle
#

but setting it as a var just copies it

#

make it not a struct

#

ez

solemn rivet
#

pain

copper nacelle
#

idk it works

#

discord please

solemn rivet
#

wut do

copper nacelle
#

i made it not a struct

#

and i did the thing in the screenshot

solemn rivet
#

what did you make it then?

#

a class?

copper nacelle
#

ye

solemn rivet
#

:gasp:

#

k

copper nacelle
#

cause like aren't structs supposed to be read-only or something

#

wait i found something

#

w/out switching to a class

solemn rivet
copper nacelle
#

nice

solemn rivet
#

didn't know that structs were readonly

#

makes sense tho

copper nacelle
#

they're not but like it's weird to write to them or something

#

hard to get absolute refs like you said

#

think i found a solution tho

#

w/out class

solemn rivet
#

ye

#

before that

#

any cons to using class?

copper nacelle
#

idk

solemn rivet
#

k

#

tell me ur alternative

copper nacelle
#

Expression.Unbox

solemn rivet
#

if it's too much work/ugly, I'll just ignore it

#

uhhh

#

wut dat do

copper nacelle
#

makes it use a pointer using linq i think

solemn rivet
#

linq 4 lyf

#

but how does that work

#

pointer to what?

copper nacelle
#

idk still googling it

solemn rivet
#

k

copper nacelle
#

pointer to the original

solemn rivet
#

hmmm

#

k, installing/uninstalling works

copper nacelle
#

nice

tranquil glen
#

why does soul suck

copper nacelle
#

wdym

tranquil glen
#

well for geo i can just do, this.SaveGeo = PlayerData.instance.geo;

#

same with health

#

can't find anything like that for soul

copper nacelle
solemn rivet
#

^

tranquil glen
#

oh is that what they call it

solemn rivet
copper nacelle
#

MPCharge and MPReserve

solemn rivet
#

ya boi

#

only minor fixing left

#

v8.0.0 is upon us

copper nacelle
#

n i c e

tranquil glen
#

MPCharge?

copper nacelle
#

yes

tranquil glen
#

have a feeling i'm gonna have to do a similar thing as i did with health

copper nacelle
#

you are

#

either gonna have to loop or a send an fsm event

tranquil glen
#

yep

copper nacelle
#

GameCameras.instance.soulOrbFSM.SendEvent("MP SET");

#

ez

tranquil glen
#

oh sick

#

yeah that worked

solemn rivet
#

now time to do the hackiest of all hacks

#

here's how I'm gonna handle the readme function and there's nothing anyone can do to stop me:

copper nacelle
#

whatever you're doing don't ez

solemn rivet
#

download and install the mod (so I can get the readme), open the readme and listen for close, uninstall the mod on close

copper nacelle
#

wtf

solemn rivet
#

hack life 2018

copper nacelle
#

just ask for people to put readmes outside of the zip imo

solemn rivet
#

no

#

that'd be too easy

copper nacelle
solemn rivet
#

and

#

I'd have to add those to the xml

#

:effort:

copper nacelle
#

what if the mod has no readme

#

stay woke

solemn rivet
#

then i'll display a message

#

"sorry lol"

compact sedge
#

to be tbh let me make all my readmes separate files.

solemn rivet
#

tbh we should host all readme's online, on a db

#

so I can just link to it

compact sedge
#

yesssss

copper nacelle
#

put them all in a github repo

compact sedge
#

I was about to ask if I could make my readme just open a webpage

solemn rivet
#

ye

compact sedge
#

or maybe we just have another xml file idk.

solemn rivet
#

what of that db/documentation thingy u and KDT were working on, AA?

#

we can just link to that imo

compact sedge
#

uh tbh I was just writing documentation for the components I wrote and nothing else. zote

solemn rivet
past wadi
#

is there a mod that would remove the ui? kind of want to take a screenshot without the ui

compact sedge
#

debugmod my dude

#

also lets you hide the knight and the knight's light

copper nacelle
#

Delete in debug mod toggles ui

#

backspace for the knight

#

idk the light one

compact sedge
#

delete, backspace, and home

#

press all 3 to hide everything

#

and they're all right next to each other

leaden hedge
#

up up down down left right left right a b start deletes everything

copper nacelle
solemn rivet
#

ok

#

I think I'll just release the installer as it is for now

compact sedge
solemn rivet
#

while we think on what to do with the readmes

compact sedge
#

btw I fixed the permissions right?

solemn rivet
#

yeye

compact sedge
#

cool

past wadi
#

oh ive used the debug mod before but didnt know it also has an option to hide ui

#

is it updated for the current patch? I assume so

copper nacelle
#

ye

tranquil glen
#

oh btw i keep putting .instance. in between stuff that doesn't work and then it works but i dont know why

#

why do i do that

copper nacelle
#

cause otherwise you're trying to set stuff on a type which only works for static variables

leaden hedge
#

.instance returns static _instance

#

its called a singleton

compact sedge
#

if you're gonna have a singleton class why not just make it a static class?

copper nacelle
#


What makes you say that either a singleton or a static method isn't thread-safe? Usually both should be implemented to be thread-safe.

The big difference between a singleton and a bunch of static methods is that singletons can implement interfaces (or derive from useful base classes, although that's less common, in my experience), so you can pass around the singleton as if it were "just another" implementation.
compact sedge
#

ok

tranquil glen
#

why does hk UI suck so much to make work properly

#

why

copper nacelle
#

wtf

#

is the camera not locking

tranquil glen
#

i dont actually have full soul but it makes it look like it for some reason

copper nacelle
#

send the mp set event again

#

ez

copper nacelle
#

did you set maxMP or anything

tranquil glen
#

no

copper nacelle
#

idk show code

tranquil glen
copper nacelle
#

@tranquil glen

#

for the camera

#
typeof(CameraController).GetField("isGameplayScene", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(GameManager.instance.cameraCtrl, true);
#

should work

#

weird that soul isn't working

#

cause

#

you could do TakeMP/AddMPChargeSpa

#

depending on whether it's lower or higher

tranquil glen
#

should i delete my old camera thing?

copper nacelle
#

ye

#
int diff = PlayerData.instance.MPCharge - this.saveSoul;
if (diff < 0)
{
    HeroController.instance.AddMPChargeSpa(-diff)
}
else if (diff > 0)
{
  HeroController.instance.TakeMP(diff);  
}
#

might work

#

idk

tranquil glen
#

i'll try it

solemn rivet
#

can someone try opening their installer (without downloading a new ver)

#

plz

copper nacelle
#

ye

solemn rivet
compact sedge
#

lol.exe

#

nice

solemn rivet
#

shhh

copper nacelle
solemn rivet
#

wut

#

u offline?

cunning lagoon
copper nacelle
solemn rivet
#

close and open again

compact sedge
#
System.InvalidOperationException: Sequence contains more than one matching element
  at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0004a] in <cfb47fb578724298a99300488c84e137>:0 
  at ModInstaller.ModManager.GetInstalledFiles () [0x00153] in <51c25c36dfad4ce98c5528dd5024ee3c>:0 
  at ModInstaller.ModManager.PopulateList () [0x00063] in <51c25c36dfad4ce98c5528dd5024ee3c>:0 
  at ModInstaller.ModManager.Form2_Load (System.Object sender, System.EventArgs e) [0x00018] in <51c25c36dfad4ce98c5528dd5024ee3c>:0 
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x0001f] in <6ab6d649f62a4ed39febf32ac6ef41e3>:0 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <6ab6d649f62a4ed39febf32ac6ef41e3>:0 

but on the plus side the auto update worked PERFECTLY

copper nacelle
#

hitting continue got me dlkurosh's screen

cunning lagoon
#

same thing

#

after closing and opening

compact sedge
#

woah finally a bug that isn't linux exclusive

solemn rivet
copper nacelle
#

opening ModInstaller(7) doesn't make me offline mode

#

but 8 and 9 do

solemn rivet
#

can someone send me their versions so I can check?

copper nacelle
solemn rivet
#

much thank

compact sedge
cunning lagoon
copper nacelle
#

why is yours larger

#

why are yours both larger

#

illegal

compact sedge
#

mine got updated

#

and that part actually worked perfectly

#

(for me)

copper nacelle
#

opening kurosh's just gave me the new one

solemn rivet
#

well yours worked for me 56

copper nacelle
#

agony

compact sedge
#

uhhh well my modinstaller matches the sha1sum of the one that's uploaded.

copper nacelle
#

ok so moving it to a new folder made it work

#

no sequence errors or anything

#

oh ik why

#

maybe

compact sedge
#

inb4 56 already had a lol.exe file

copper nacelle
#

mine is like modinstaller(9) and it downloads modinstaller

tranquil glen
#

56 your thing gives right amount of soul but still doesn't fix ui sadgrub

copper nacelle
solemn rivet
#

yeah, it's supposed to download the same as the initial filename

copper nacelle
#

idk having 19 might be weird

solemn rivet
compact sedge
#

sidenote: nice desktop background

copper nacelle
solemn rivet
#

thx

copper nacelle
#

putting it in pictures made it download to ModInstaller.exe

#

on a side note the new installer looks great

solemn rivet
#

well, that reminded me that for debugging I had disabled auto-udpdates on the newest ver

#

so oops

cunning lagoon
#

πŸ€”

copper nacelle
#

new installer as big as old one when

solemn rivet
copper nacelle
#

offline mode

#

on the (9) one

#

works but also asks for updates

#

large think

solemn rivet
#

heh

#

so

#

string file = Path.GetFileName(System.Reflection.Assembly.GetEntryAssembly().Location);

#

this is what I'm passing as the name for the new installer

copper nacelle
#

i tried renaming the old ModInstaller.exe to aaaaaa

#

still broken

#

offline mode options

#

idk

tranquil glen
#

wait no 56 i think your thing works i just forgot to delete mine

solemn rivet
#

well

#

I'm a dungo

#

smh

copper nacelle
#

nice

solemn rivet
compact sedge
#

after picking my path

System.InvalidOperationException: Sequence contains more than one matching element
  at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0004a] in <cfb47fb578724298a99300488c84e137>:0 
  at ModInstaller.ModManager.GetInstalledFiles () [0x00153] in <83c0ddb9cfdd47b28062d869f7165841>:0 
  at ModInstaller.ModManager.PopulateList () [0x00063] in <83c0ddb9cfdd47b28062d869f7165841>:0 
  at ModInstaller.ModManager.Form2_Load (System.Object sender, System.EventArgs e) [0x0001e] in <83c0ddb9cfdd47b28062d869f7165841>:0 
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x0001f] in <6ab6d649f62a4ed39febf32ac6ef41e3>:0 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <6ab6d649f62a4ed39febf32ac6ef41e3>:0 
cunning lagoon
#

discord says its 523.50kb but windows says its 524

#

who do i believe

compact cove
#

Windows might round it

cunning lagoon
copper nacelle
#

my installer works

cunning lagoon
compact cove
#

If you don't select a path, it crashes:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.GetPathRoot(String path)
   at ModInstaller.ModManager.ManualPathClosed(Object sender, FormClosedEventArgs e)
   at System.Windows.Forms.Form.OnFormClosed(FormClosedEventArgs e)
   at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)
copper nacelle
#

after moving it and letting it auto update

cunning lagoon
#

i did select a path

#

well it asked me if the steam folder was where i have my game and that is correct so i said yes

compact cove
#

For me it seems to work upon selecting the correct install path.

#

Disabling a mod (debug mod):

System.InvalidOperationException: Sequence contains more than one matching element
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at ModInstaller.ModManager.OnEnableButtonClick(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

solemn rivet
#

yeah... idk why that is happening

compact cove
#

Probably I didn't have the mod api installed yet

solemn rivet
#

hack: replace single with first

compact cove
#

I renamed it to retry

cunning lagoon
#

πŸ€”

solemn rivet
copper nacelle
#

@solemn rivet that one just auto-updated for me

cunning lagoon
solemn rivet
#

wtf

#

literally wtf

copper nacelle
#

yeah and then i got the kurosh error

compact sedge
#

same error for me as I pasted before

cunning lagoon
#

if i click on either offline mode or retry i get the big empty screen

copper nacelle
#

kurosh try moving it to another folder

#

it suddenly will work flawlessly

solemn rivet
#

this makes 0 sense

compact cove
cunning lagoon
#

nah i still get the same error

copper nacelle
#

in a different folder?

#

wtf

cunning lagoon
#

yup

compact sedge
#

it does that and if I click the x I get the same error I got before which means if you all click the x it should work perfectly

copper nacelle
#

nvm it stopped working

#

:ech:

#

mod list error

compact cove
#

If I move it to a different folder, I can select the HK folder path:
but then:

************** Exception Text **************
System.InvalidOperationException: Sequence contains more than one matching element
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at ModInstaller.ModManager.GetInstalledFiles()
   at ModInstaller.ModManager.PopulateList()
   at ModInstaller.ModManager.Form2_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

copper nacelle
#

yeah offline mode gives me that too

compact sedge
#

tbh not offline mode but I get that exact same error at the same spot

compact cove
#

If I rename it to aaaa.exe or something, it re-asks to select the path (but didn't auto update like before): then it opens correctly

quiet marsh
#

Wait this game has modding?

copper nacelle
#

no this channel is a myth

#

in fact the mod installer in pins is also a myth

#

and so are the mods in the gdrive in pins

compact cove
#

it the code open source somewhere btw?

solemn rivet
copper nacelle
#

@compact cove Ayugradow/ModInstaller

#

iirc

compact cove
#

ty

copper nacelle
#

for the installer

cunning lagoon
#

empty installer again

copper nacelle
#

worked for me

#

this time

compact cove
#

Yeah that's the one I was looking for

cunning lagoon
#

for some reason it asked me to update redwing this time

solemn rivet
#

cause it's outdated

cunning lagoon
#

but i updated it literally 5 minutes ago

solemn rivet
#

about that offline thing

#

idk sometimes it just does that

#

I have no idea why

quiet marsh
#

I didn't know that this game has mods
When I think of mods I think of Minecraft, ark, Terraria, or Starbound

solemn rivet
#

there are 3 ways the installer will suggest offline mode

#
  1. if it fails to update
#
  1. if it fails to fill the modslist
#
  1. idk, AA added it, but I can't remember what it was
copper nacelle
#

the new one works idk

#

lemme break it

#

nvm didn't break

#

broke it

compact cove
#

Aside from displaying the readme's everything seems fine to me

copper nacelle
#

it'll suggest offline mode if you have an outdated one at ./ModInstaller.exe

solemn rivet
#

wut

copper nacelle
#

yes

solemn rivet
#

also, found case 3)

#

makes no sense

#

it's simply failing to order the modlist

copper nacelle
#

@compact sedge whomst've

solemn rivet
#

I mean

copper nacelle
#

ok i can get more specific now

solemn rivet
#

it makes sense

#

because if you are offline, the modlist will be empty

#

but I can just check for if it's empty tho

copper nacelle
#

if you have an outdated one at ModInstaller.exe AND open an outdated one it'll go into offline mode

solemn rivet
#

wut

copper nacelle
#

yes

#

run this

#

with

#

wait what

#

it only happens in my downloads folder

#

the fuck

#

oh it auto-updated outside of my downloads folder

#

but then also went into offline mode

#

fantastic

cunning lagoon
#

ModInstaller9 huh

copper nacelle
#

i have more

cunning lagoon
#

how deep can we go

copper nacelle
#

way more

#

this is in my new downloads folder

#

lemme get the old ones

#

that + those 9 + 2 i renamed

solemn rivet
#

ok... try again...

#

ded inside

cunning lagoon
#

same thing

solemn rivet
cunning lagoon
#

same thing

copper nacelle
#

works

solemn rivet
#

what's the error again?

copper nacelle
#

sequence machine πŸ…±roke

cunning lagoon
#

uhh the same one that they posted up there

copper nacelle
#

oh maybe i know

solemn rivet
#

lemme push 56

#

just a sec

copper nacelle
#

do you have a disabled mod w/ the same name as an enabled mod

solemn rivet
#

maybe that's it

#

DLK?

copper nacelle
#

no i tried that

cunning lagoon
#

i do

copper nacelle
#

didn't work

#

o

cunning lagoon
#

wtf

copper nacelle
#

give mods folder tbh

cunning lagoon
#

do you want me to like compress it and send it

copper nacelle
#

yes

#

i wanna see if it crashes mine too

cunning lagoon
#

its too big for discord

solemn rivet
#

2 big

copper nacelle
#

god site

solemn rivet
#

uhhh can you like get rid of one of those files with the same name?

#

for science

cunning lagoon
#

thats without the redwing cutscenes

#

they are very big

copper nacelle
#

yes

solemn rivet
#

ye

copper nacelle
#

ok i didn't crash

cunning lagoon
#

every boss is in disabled and enabled

#

mod*

copper nacelle
#

i got 50 update notifs tho

#

2 for redwing

cunning lagoon
#

actually not all of them

#

wtf

#

debug and hihgspeed arent

#

or fasttext or invertknight

#

or ig

copper nacelle
#

uhh

#

lemme pull and try something

solemn rivet
#

wtf

#

y

copper nacelle
#

just wanna list it

solemn rivet
#

I mean

#

have everything enabled/disabled

#

what's the point

copper nacelle
#

old versions in disabled

#

that's what i had at least

solemn rivet
#

oh

#

btw deleting the Disabled folder fixed it for me

cunning lagoon
#

same

#

it works now

copper nacelle
#

why does it work for me tho

#

:ech:

solemn rivet
#

it worked at first