#archived-modding-development

1 messages ยท Page 156 of 1

copper nacelle
#

post a screenshot

rotund atlas
#

Ill try improve it tomorrow

cunning lagoon
#

nice!

#

ahhh the title screen bug is still a thing

#

cursed mod

compact sedge
#

thanks 56 for being on top of scores for me btw

copper nacelle
#

did you fight any dream things

cunning lagoon
#

no just the pop

copper nacelle
#

or does it just ruin the title screen by existing

#

wow nice

#

irfan why

floral furnace
#

Cuz he has no arms but he must dab

copper nacelle
#

it's spreading

#

why does having dream respawner on eat the title screen wtf

#

it's the scene load one

cunning lagoon
#

that eas fast

copper nacelle
#

oh ik why

#

ok removed the shitty hack

#

it's cause main menu isn't in world navigation for obvious reasons

#

i think

cunning lagoon
#

wow hitless again

#

consistency

copper nacelle
#

poggers

cunning lagoon
#

the bug didn't happen

copper nacelle
#

ok it was that & that one of the args was null

#

apparently

cunning lagoon
#

imma have to beat your time one of these days hollowface

copper nacelle
#

i really need to do it hitless at some point

cunning lagoon
#

wait your time is not on sr.com

copper nacelle
#

wait pop is actually on there

#

til

#

i was just running it cause it's fun

cunning lagoon
tranquil glen
#

pop with room dupe when?

copper nacelle
#

doesn't that usually make things harder

tranquil glen
#

yes

copper nacelle
#

also don't you need a transition from below

tranquil glen
#

well you could get the room dupe somewhere else and carry it over

#

it probably wouldn't be possible though

cunning lagoon
#

i hope they aadd a cool platforming section in gm

copper nacelle
#

same

floral furnace
#

Path of Mild Discomfort

cunning lagoon
#

i'd be okay with thatr

#

to get to godhome you need to nail a bunch of pixel perfect jumps

agile cipher
#

Mod request: Could someone make a mod that lets you play as Hive Knight?

#

Or has someone made one alreafy

young walrus
#

lemme guess, you'd do it, but you don't know how to code

#

and you'll probably pay someone to make it

#

well bois, we've reached the monthly quota

compact sedge
#

wait people actually pay people to make mods

#

bs

odd jetty
#

Technicallly. Yes

#

there's people that make mods and have a Patreon

hollow pier
#

753 GWchadMEGATHINK

compact sedge
#

I'd make a patreon but nobody cares about my mods and I don't think they're worth anything.

hollow pier
#

hey ttaco

#

is spinfinite supposed to disable shade soul

#

yes i give very quick and consistent mod reports

#

pay me to do this at my patreon

floral furnace
#

uhh no

#

its not

#

weird

hollow pier
#

well i think it does

floral furnace
#

like you just dont cast?

hollow pier
#

no it does no damage

flat forum
#

@compact sedge make a Patreon so I can dump all my money on yoi

floral furnace
#

GWchadMEGATHINK huh, ill check it tomorrow i guess, cuz thats not supposed to happen at all

hollow pier
#

only thing i think that wouldve caused it

#

never had a problem with rando before

compact sedge
#

wtf you can't give me money for my mods you helped me with them.

floral furnace
#

try removing it the mod is bad anyway that its equivalent to a virus anyway and see if it persist or something, unless it might fuck up your save file or something

#

which shouldnt? i didnt screw with playerdata

hollow pier
#

ill try with/without it

#

and rando

#

and stuff

floral furnace
#

aight tell me if its my mod's fault then

hollow pier
#

yup just did with rando/spin and ss didnt work

#

rando only ss worked

floral furnace
#

huh, ill check it out tom then

#

but it DOES hit right?

#

just that it doesnt do damage?

hollow pier
#

no it just doesnt hit

cunning lagoon
#

just use shaman stone lol

floral furnace
#

ok got it working now, i have no idea why

if(instance.Source.transform.parent.parent.gameObject.name == "Cyclone Slash")

is the one screwing it up, but changing it to

if(instance.Source.ToString().Contains("Hit L")|| instance.Source.ToString().Contains("Hit R"))&& instance.AttackType == AttackTypes.Nail)

got it working

#

i know uglier, but hey as god howard himself once said, "It just works"

hollow pier
floral furnace
#

I mean, its not wrong hollowface

#

Using mods to mine bitcoins from other pcs like that one steam game that just got recently removed

hollow pier
#

howd i even get through

copper nacelle
#

nice

floral furnace
#

is that another bug

#

or a randomizer thing

hollow pier
#

no i just somehow made it through a shade gate with spin on

cunning lagoon
#

perhaps you used the shade cloak and you didnt notice

copper nacelle
#

nearly have un-encrypted saves done

#

@compact sedge meme

compact sedge
#

cool

drifting light
#

How do i install Lightbringer?

compact sedge
#

you know what'd be a cool debugging feature. being able to dump (with modcommon) the knight or the scene you're in by pressing a button.

tranquil glen
#

how would i go about removing all the like pure black foreground objects

#

i'm trying to test room dupes but its impossible to see what i'm doing

odd jetty
#

If you are lucky, it might be just a layer

tranquil glen
#

anyone know if that's the case?

flat forum
#

probably

#

ask somebody to open up a scene and check

#

with some luck it will be layer 19 or something

tranquil glen
#

why is layer 19 good?

flat forum
#

no, it's an example layer in front of stuff

tranquil glen
#

how could i check?

flat forum
#

I mean it will be the top layer you see oj the scene dump

tranquil glen
#

also how is dead hallownest coming along

flat forum
#

@copper nacelle has all the Scene Dumps

#

well

#

I'm on a vacation with no PC

copper nacelle
#

more like

#

inthe gdrive

tranquil glen
#

ah fair enough

flat forum
#

and will be coming back on the 23rd

copper nacelle
#

in enemy rando

flat forum
#

so, plan is - play GnG

#

finish DeadHallownest

tranquil glen
#

they should delay gng so i have more time for my other stuff tbh

#

ok now that i have the scenes what am i looking for

copper nacelle
#

what black foreground objects are you trying to get rid of

tranquil glen
#

all of them

#

i want to see

#

i'm in here somewhere

#

i just want to get rid of all the black shit that blocks my view

odd jetty
#

It was supposed to disappear casually, right?

tranquil glen
#

that's not there casually i think

#

idk i'm doing room dupes

#

and stuff always gets in the way of seeing properly

copper nacelle
#

give yourself z 100000

odd jetty
#

Yes

#

that works xD

tranquil glen
#

but i want to see the terrain as well 56

odd jetty
#

give the terrain 99999

tranquil glen
#

just putting myself in front doesn't help me know where to go

copper nacelle
#

if you go way oob so that black scrolls over the screen and lighting changes can you see stuff

tranquil glen
#

idk i'm not in game anymore i don't think so though

#

is there any way to just remove everything i can't collide with?

#

like just make the game barebones af

#

like all the foreground stuff, textures, background objects, etc

#

i just need to be able to see what i'm doing

copper nacelle
#

yes but everything would violently stop working

tranquil glen
#

ok

#

what about making the color black transparent

copper nacelle
tranquil glen
#

i'm just trying to figure out how to be able to see the actual level behind all this shit

copper nacelle
#

that's another room tho right

#

so i'd assume that's just missing lightning

tranquil glen
#

man idk

#

what about just putting lighting everywhere cornywoke

copper nacelle
#

yeah that was my idea

tranquil glen
#

oh lol

#

do you think that'd work

#

and how would i add that to the mini debug? cause there's no modding api for 1028

copper nacelle
#

idek how to do the lighting thing to be tbh

tranquil glen
#

good

copper nacelle
tranquil glen
#

oh yeah

#

those are good

flat forum
#

hey Krythom

#

I mentioned it a bit earlier

#

these black cover up things are called Black Fade or something

tranquil glen
#

there's a bunch of things called black_solid on layer 0

copper nacelle
#

eat them all ez

tranquil glen
#

can i delet layer 0

flat forum
#

destroy all doors

#

no

#

don't

#

there's some important stuff on it

tranquil glen
#

like what

flat forum
#

Infection trigger in crossroads is there

#

Mantises' stuff is also there I think

copper nacelle
#

feel free to kill the infection trigger hollowface

flat forum
#

no

#

kill everything living instead

#

God, this is turning into GnG teasing

copper nacelle
#

pretty printed too

#

it can load .json and .dat

#

it'll load whichever one was modified more recently

#

it always saves to both .json and .dat

#

but this lets you still move replacement save files in and stuff

#

the only thing is that you have to delete the .json when you move replacements in cause replacements will still be older

#

but they still work

compact sedge
#

good shit!

copper nacelle
#

what i was thinking for replacement saves is if they're .dat and greater than 2 or 3 days from current time and not within 5 minutes of the json then prefer them

#

that way it's still easy to replace saves

tranquil glen
#

K wait so actually how do i add this to the game

{
     if (obj.GetComponent<Collider2D>() == null)
     {
          UnityEngine.Object.Destroy(obj);
     }
}```
#

i have no idea what i'm doing

copper nacelle
#

there's a thing called modcheats or something iirc

compact sedge
#

inb4 you destory your camera

tranquil glen
#

inb4 i destroy my assembly_csharp.dll

copper nacelle
#

CheatManager.OnGui

#

maybe

#

wait no that's tc's

#

ModCheats

rain cedar
#

Find every gameobject multiple times per frame

#

Good idea

copper nacelle
#

yes

rain cedar
#

urd

hollow pier
#

urd

copper nacelle
#

yes

hollow pier
copper nacelle
#

re

rain cedar
#

i dont have occurred here

tranquil glen
#

wait what does insert do

hollow pier
tranquil glen
#

oh

rain cedar
#

It inserts

copper nacelle
#

why do you have that saved

tranquil glen
#

why would you ever turn the vignettes back on

hollow pier
copper nacelle
#

why

hollow pier
rain cedar
copper nacelle
#

how's the 3 days thing sound

rain cedar
#

Is that 3 business days or normal days?

copper nacelle
#

business

#

stay's business days

#

not the normal

hollow pier
#

but his business days take longer

copper nacelle
#

yes

#

i'm gonna take that feedback as "it's a fantastic idea"

trim totem
#

56 can you link pop mod

copper nacelle
#

it's in QoL on the installer

#

wait

#

did i put the fix on the installer

#

real questions

trim totem
#

does it also reset white palace

hollow pier
#

the hecks pop mod

copper nacelle
#

no it just resets PoP

#

Infinite PoP

hollow pier
#

POP

copper nacelle
#

P O P

hollow pier
#

isnt that just called not watching

trim totem
#

big oof

copper nacelle
#

no when you finish it it'll re-make the wall and untoggle the lever and stuff

hollow pier
#

just simulate breaking the wall and hitting the lever

copper nacelle
#

so you can do it again on saves you've completed it on

#

without having to repeatedly copy saves

tranquil glen
#

ok how do i actually edit thing. do i right click and hit edit class?

copper nacelle
#

edit method on the method imo

tranquil glen
#

how do i save it?

copper nacelle
#

hit compile

#

bottom right

tranquil glen
#

but then i get like 80 errors

copper nacelle
#

show

tranquil glen
#

they're not even on the lines i made

#

there's only actually 5

copper nacelle
#

don't just throw it in update

#

add an if

#

for another button

#

also show when

tranquil glen
#

here are the errors

#

i did add an if for pressing R

copper nacelle
#

remove one of the mscorlibs from the sidebar

#

u have 2

tranquil glen
#

excuse me

copper nacelle
#

murder one violently

tranquil glen
#

how

copper nacelle
#

right click

#

remove

hollow pier
#

thats pretty violent

tranquil glen
#

what sidebar, the assembly explorer?

copper nacelle
#

yeah

tranquil glen
#

oh yeah there are two

#

eyy

#

it worked

copper nacelle
#

nice

tranquil glen
#

well actually i should probably test it in game before i say that

#

but there weren't errors this time

copper nacelle
tranquil glen
#

well my game hasn't crashed but i still can't see in that spot

copper nacelle
#

f

#

ok i swapped it to if the dat is older than the json by more than twenty minutes and the json hasn't been modified w/in the last 23.9999 hours

#

so any old saves will do but the json is still higher priority

#

@compact sedge does this sound good to you

compact sedge
#

so it uses the json if the dat is more than 20 minutes older and the json is older than a day and the dat otherwise?

tranquil glen
#
{
    foreach (GameObject gameObject in UnityEngine.Object.FindObjectsOfType<GameObject>())
    {
        if (GameObject.name.Contains("black_solid"))
        {
            UnityEngine.Object.Destroy(gameObject);
        }
    }
}
```will this work?
copper nacelle
#

it uses the json if the dat is w/in twenty minutes of its modification

#

OR

#

if the json has been modified in the last 23.9 hours

#

also yes krythom

#

but black_solid probably isn't the thing your looking for imo

compact sedge
#

Sure but why?

copper nacelle
#

so people can load old saves

#

like when i load my old nkg saves to fight nkg again

#

or a pop save to do pop again

tranquil glen
#

yeah idk 56 just trying what i can think of

compact sedge
#

ok

#

so in theory if you copy a dat to use it as your save, but your json is new enough it will use the json. and it will continue using the json so long as you play more than once per day

copper nacelle
#

yes

#

oh wait

#

that's a problem

compact sedge
#

that's kinda arbitrary

copper nacelle
#

yeah i only want to use the json if the user modifies it basically

#

echh

tranquil glen
copper nacelle
#

i could set the modified time of the jsons to like 1999 and if they're not 1999 then the user has modified them and i'd use them

compact sedge
#

what about trusting users to delete user.json if they are copying user.dat over

tranquil glen
#

ah

copper nacelle
#

trusting users is a bad idea

compact sedge
#

or alternatively, moresaves mod so this isn't even a problem

#

moresaves in qol

copper nacelle
#

i tried to fix moresaves

#

i'll try again

#

also i'm doing the 1999 thing

tranquil glen
#

wait i forgot to press r

#

god i'm smart

copper nacelle
#

nice

tranquil glen
#

deleting black solids helps a bit

#

i need to actually see what my first attempt did though

copper nacelle
#

1999 thing works beautifully

#

it's kinda dumb but it works really well

tranquil glen
#

|| is or right?

copper nacelle
#

yeah

tranquil glen
#

yeah ok the first way breaks everything

copper nacelle
#

how badly

#

to be tbh

tranquil glen
#

screen freezes and some weird sounds play

#

nvm no weird sounds

copper nacelle
#

could try RenderSettings.ambientLight

#

maybe

tranquil glen
#

just normal ones i wasn't paying attention to earlier

copper nacelle
#

or better yet GameManager.instance.sm.SetLighting(new Color(0,0,0), 100000000) or something

tranquil glen
#

wait so just upon pressing R do that?

copper nacelle
#

idk you could try it

tranquil glen
#

setlighting isn't a thing apparently

copper nacelle
#

wtf

#

oh it's static

#

just

#

SceneManager.SetLighting(Color.white, 1000000);

tranquil glen
copper nacelle
#

won't ever have issues with seeing dark stuff again

tranquil glen
#

wtf

copper nacelle
#

now to make it black

tranquil glen
#

if (gameObject.name.Contains("wall"))

copper nacelle
#

idk walls have weird names

tranquil glen
#

actually deleting the walls works fairly well

copper nacelle
#

it's usually like chunk or some shit

hollow pier
#

nice sub3

copper nacelle
tranquil glen
#

actually p cool looking

copper nacelle
#

ye

#

i'm gonna try an nkg fight w/ it

tranquil glen
#

are higher layer numbers closer to the front of the screen?

copper nacelle
#

dunno

glossy jungle
#

i fux with it

tranquil glen
#

can i put more than one or in an if

copper nacelle
#

yes

#

true || true || true || true

#

i started w/ nkg but he didn't end up looking super cool

#

so i just went through dirtmouth and part of crossroads

tranquil glen
#

if i do .Contains("") is the part in the "" case sensitive?

copper nacelle
#

yes

tranquil glen
#

if only i could figure out what the black boxes in front of everything are called

hazy sentinel
#

they're called stop going oob boxes

copper nacelle
#

did you try the lighting thing

#

it lights up everything

tranquil glen
#

no i couldn't figure out how to do it

copper nacelle
#

echhhhhh

#
if (ajksdfkjasdfkl)
{
    SetLighting(Color ambientLightColor, float ambientLightIntensity)
    {
        float num = Mathf.Lerp(1f, ambientLightIntensity, SceneManager.AmbientIntesityMix);
        RenderSettings.ambientLight = new Color(ambientLightColor.r * num, ambientLightColor.g * num, ambientLightColor.b * num, 1f);
        RenderSettings.ambientIntensity = 1f;
    }
         SetLighting(Color.white, 10000)
}```
#

@tranquil glen is this u

tranquil glen
#

It's still getting mad at me about SetLighting

copper nacelle
#

show

tranquil glen
copper nacelle
#

wait what

tranquil glen
copper nacelle
#

fuck

#

add a void before SetLighting

#

so it's void SetLighting(Color....

tranquil glen
#

now it doesn't like abientLightIntensity

copper nacelle
#

show again

tranquil glen
copper nacelle
#

there shouldn't be a semi there

#

rn it's float ambientLighting);

tranquil glen
#

oh whoops

#

see this is why i couldn't figure it out on my own

#

still mad bout ambient

copper nacelle
#

just make that 0.5f

#

it's always 0.5f anyway

tranquil glen
#

wait what does that have to do with the ambient?

copper nacelle
tranquil glen
#

god it hurts my eyes

hazy sentinel
#

LightThemeMod.dll

tranquil glen
#

it also doesn't let me see in the area sadgrub

copper nacelle
#

rip

#

@tranquil glen do you have any specific example that isn't a room dupe

river eagle
#

This is the price of having the modder role

tranquil glen
#

maybe in the spire room on the right side where its black until you go into it

#

that may be a similar thing

#

idk

copper nacelle
#

i can give that a shot

hollow pier
#

is it time for firzen to get mad again

copper nacelle
#

no he doesn't have the role anymore

hollow pier
#

wow

tranquil glen
#

rip fir

buoyant obsidian
hollow pier
#

does art mods or modders ping more

leaden hedge
#

yes

hollow pier
#

think its modders

solemn rivet
tranquil glen
#

hey gradow whats the black foreground stuff called

copper nacelle
#

might be layer 8

hollow pier
#

shadows

tranquil glen
#

how do i delete a layer

copper nacelle
#

loop through objects in the layer and murder them

solemn rivet
#

Uuuuuuh dunno kry

#

Black foreground thinkgrub

tranquil glen
#

gameObject.layer something something?

copper nacelle
#

would a direction vector be like

#

1,1 ?

hollow pier
#

no it would be left right

copper nacelle
#

you ever float.PositiveInfinity

leaden hedge
#

can I float.NegativeZero

copper nacelle
#

no

tranquil glen
#
        if (Input.GetKeyDown(KeyCode.R))
        {
            foreach (GameObject obj in UnityEngine.Object.FindObjectsOfType<GameObject>())
            {
                if (base.gameObject.layer.Equals(8))
                {
                    UnityEngine.Object.Destroy(obj);
                }
            }
        }
#

is that a thign

leaden hedge
#

cs

copper nacelle
#

that'd work

#

not base.gameObject tho

#

just obj.layer == 8

tranquil glen
#

well that deleted the ground and loadzones zote

copper nacelle
#

nice

hollow pier
#

3238

tranquil glen
#

i've done it

#

thats def what i wanted to delete

copper nacelle
#

lmao

hollow pier
#

now you dont

tranquil glen
#

how come deleting layer 8, 10, and 11 all kill loadzones

copper nacelle
#

i hate raycasts

tranquil glen
#

what'd you do?

copper nacelle
#

killed anything with the word chunk in it

#

would not recommend cause that's the entire floor

#

you just kinda fall out of existence

odd jetty
#

How come that console don't appear in my stuff after pressing F10 sadgrub

hazy sentinel
#

now remove ceilings and floors and make the knight perma airswim and call it Wallow Knight

copper nacelle
#

gotta enable it in the modding api config file

odd jetty
#

And then it will appear after pressing F10?

copper nacelle
#

w/out pressing f10 to be tbh

tranquil glen
#
        if (Input.GetKeyDown(KeyCode.R))
        {
            foreach (GameObject obj in UnityEngine.Object.FindObjectsOfType<GameObject>())
            {
                if (gameObject.GetComponent<SpriteRenderer>)
                {
                    UnityEngine.Object.Destroy(obj);
                }
            }
        }

what's wrong with this?

#

i have no idea what i'm doing

copper nacelle
#
  1. gameObject instead of obj
#

which would be yourself

#
  1. anything which has a sprite would die
odd jetty
#

You will delet everything xD

tranquil glen
#

ok fair enough

hazy sentinel
#

incognito mode

copper nacelle
#

@tranquil glen ```cs
if (Input.GetKeyDown(KeyCode.O))
{
HeroController.instance.heroLight.size = new Vector2(2000, 2000);
HeroController.instance.vignette.size = new Vector2(2000, 2000);

            foreach (GameObject go in Object.FindObjectsOfType<GameObject>())
            {
                if (go.name.Contains("Chunk"))
                {
                    if (go.GetComponent<SpriteRenderer>() != null)
                    {
                        go.GetComponent<SpriteRenderer>().enabled = false;
                    }
                    else if (go.GetComponent<MeshRenderer>() != null)
                    {
                        go.GetComponent<MeshRenderer>().enabled = false;
                    } 
                }
            }
        }
#

this works decently well

#

idk how well it'll work with room dupe

#

but it's pretty good

tranquil glen
#

wait whats mesh renderer? is that just stuff you can collide with?

copper nacelle
#

sprite renderer but 3d

tranquil glen
#

and collider2d is if you can collide?

copper nacelle
#

yeah

tranquil glen
#

what if i deleted everything that didn't have collider2d and wasn't the camera?

copper nacelle
#

uhhh

#

idk try it

tranquil glen
#

how do i specify not the camera

copper nacelle
#

!go.name.Contains("Camera") maybe idk

hazy sentinel
#

print("Not the DSLR please it costs $5000")

tranquil glen
#

no it still breaks

odd jetty
#

better if you do if go.name.Contains("Camera"){continue;}

copper nacelle
#

braces why

#

ew

tranquil glen
#

what does continue do

odd jetty
#

skip to next loop

#

break stops the loop, continue skips to next loop

tranquil glen
#
        if (Input.GetKeyDown(KeyCode.R))
        {
            foreach (GameObject obj in UnityEngine.Object.FindObjectsOfType<GameObject>())
            {
                if (obj.GetComponent<Collider2D>() == null && !base.gameObject.name.Contains("camera"))
                {
                    UnityEngine.Object.Destroy(obj);
                }
            }
        }

this breaks it zote

copper nacelle
#

base.gameObject

#

pls

tranquil glen
#

wat

copper nacelle
#

base.gameObject is the knight

tranquil glen
#

idk dude

#

i didn't type base

copper nacelle
#

yeah if you do gameObject it'll go to base.gameObject

#

should be obj

#

also capitalize camera

tranquil glen
#

i also had it as an if in an if and then it added them together

#

what does a single & do?

copper nacelle
#

bitwise and

tranquil glen
#

oh ofc

#

obviously

copper nacelle
#

don't use it

#

it's confusing

tranquil glen
#

you ever just "an object reference is required for the non-static field, method, or property 'Object.name'

copper nacelle
#

obj

#

not Object

tranquil glen
#

hlep

#

there's too many things

#

how do you remember al this

copper nacelle
#

idk

compact sedge
#

well you learn how to read the error

copper nacelle
#

time

#

also error reading yeah

compact sedge
#

and it tells you what's wrong

tranquil glen
#

i read the error

copper nacelle
#

I mean errors aren't exactly obvious at first

tranquil glen
#

i just didn't understand it zote

copper nacelle
#

error reading is its own skill

compact sedge
#

it's saying you need a specific object (in this case one named obj) and not the general "Object"

tranquil glen
#

ok well now it breaks in a very different way

copper nacelle
tranquil glen
#

lemme record just a sec

compact sedge
#

Hopefully this explanation is clear:

Think of Object like an animal, say moth. And obj is refering to a specific moth, say one named Harry. Now you can't just destroy "moth" because it's not just an animal, but an idea representing that animal, but you can destroy a specific moth.

#

this explanation for 56 who hates moths

copper nacelle
#

should've made the moth the seer

tranquil glen
#

man

#

it really be like that sometimes

trim totem
#

oof

copper nacelle
#

might have a different colider

compact sedge
#

there's multiple kinds of colliders you should check for

#

yeah

copper nacelle
#

BoxCollider2D

tranquil glen
#

ah ok, i should also probably not delete the lights

compact sedge
#

the game doesn't use that they use an infinitely thin line collider

#

I forgot the name

copper nacelle
#

wtf

#

also try the thing I pinged you with on the room dupe when

compact sedge
#

PolygonCollider2D

#

also all enemies use BoxCollider2D

copper nacelle
#

quality hitboxes

tranquil glen
#

56 idk i pasted what you sent and it gave me errors, you also said it deleted the floors

copper nacelle
#

no I fixed that

tranquil glen
#

oh

copper nacelle
#

give errors

tranquil glen
#

gimme a sec

#

testing my thing

#

@copper nacelle

copper nacelle
#

UnityEngine.Object instead of Object

#

and just kill those top 2 lines

tranquil glen
#

yeah that lets me see

#

it does also kill whatever i'm colliding with though

copper nacelle
#

wtf

#

didn't even destroy anything noot

#

it should just make some stuff invisible

tranquil glen
#

well yeah sorry

#

i can't see what i'm colliding with

copper nacelle
#

rip

tranquil glen
#

think this is enough to confirm there's no way out of where i am

copper nacelle
#

yeah

tranquil glen
#

btw saving the polygon colliders still deleted the ground

#

unless i did it wrong

#

with this some lights still exist but the ground goes away

copper nacelle
#

that looks right

tranquil glen
#

is there any way to just check for every type of collider without doing them all individually

copper nacelle
#

obj.GetComponents().Any(x => x is Collider)

tranquil glen
#

wtf

copper nacelle
#

linq is pretty fantastic

tranquil glen
#

is that x standing for something else?

copper nacelle
#

oh I used x twice whoops

tranquil glen
#

yeah ok

#

that makes more sense

rain cedar
#

GetComponents<Component>

copper nacelle
#

^

tranquil glen
#

where does the any go now

copper nacelle
#

obj.GetComponents<Component>().Any(x => x is Collider)

tranquil glen
#

identifier expected

#

also method name expected

#

or wait

rain cedar
#

.ToList()

#

obj.GetComponents<Component>().ToList().Any(c => c is Collider)

tranquil glen
#

same error except ToList this time

rain cedar
#

using System.Linq

#

Also maybe System.Collections.Generic idk

tranquil glen
#

just System.Linq seems to have done it

solemn rivet
#

Linq is bae

tranquil glen
#

what kind of collider does the knight use?

rain cedar
#

Hundreds of them

#

Seriously it's like a damn spider web

#

If you draw colliders around him

tranquil glen
#
if (Input.GetKeyDown(KeyCode.R))
        {
            foreach (GameObject obj in UnityEngine.Object.FindObjectsOfType<GameObject>())
            {
                if (obj.GetComponents<Component>().Any((Component x) => x is Collider) && !obj.name.Contains("Camera") && !obj.name.Contains("Light"))
                {
                    UnityEngine.Object.Destroy(obj);
                }
            }
        }
#

would that do the thing

copper nacelle
#

make it !obj.GetComponents

#

you want it die if it doesn't have any colliders

tranquil glen
#

good point

hazy sentinel
tranquil glen
#

oh fucking god

#

ok slight issue

#

when i press R

#

every single thing in existence gets deleted

hazy sentinel
#

the only winning move is not to play

tranquil glen
#

I just get a pure black screen

#

and like 1500 fps zote

rain cedar
#

Did you put the ! ?

odd jetty
#

You might be deletting all lights and camera

tranquil glen
#

yes

#

i put!

#

and it should be specifically avoiding deleting lights and camera

#

the code i have to stop it from doing that is the same that worked before

odd jetty
#

Why are you wanting to delete stuff, again?

tranquil glen
#

so i can see

hazy sentinel
#

hey guys delete the camera so you can see

tranquil glen
#

i don't understand why this deletes everything

odd jetty
#

What Any does?

tranquil glen
#

i have no idea i just copied what sean/56 sent

odd jetty
#

pfff

tranquil glen
#

I assume its checking for every component name that contains "collider"

solemn rivet
#

Any returns true if any of the items in the list satisfies the given condition

#

In your case, if any component is a collider

#

Any(x => x is Collider)

tranquil glen
#

so why does everything dissapear

odd jetty
#

Doesn't collider have a value of True or False?

hazy sentinel
#

kry pls

tranquil glen
#

what veru

#

shouldn't this be only deleting stuff that doesn't have collider

#

maybe there's something vital that doesn't have a collider that i didn't save

#

I don't know what that is though

odd jetty
#

Or the Camera is not named Camera hollowwoke

tranquil glen
#

nah that condidtion saved the camera before thought

#

maybe there's more than one part of it that wasn't getting deleted before

odd jetty
#

does Light was called Light before?

compact sedge
#

hmm

odd jetty
#

I mean

tranquil glen
#

yeah when i added the light condition it definitely brought back the lamp lighting

odd jetty
#

Light was saved before too?

hazy sentinel
#

just slap another pair of parentheses inside Any()

#

will definitely work

hollow pier
#

A()ny()

odd jetty
#

Well

hazy sentinel
#

()w()

odd jetty
#

Krython

hazy sentinel
#

]][]

hollow pier
#

Any(%)

odd jetty
#

Do a

if (Input.GetKeyDown(KeyCode.R))
        {
            foreach (GameObject obj in UnityEngine.Object.FindObjectsOfType<GameObject>())
            {
                if (obj.GetComponents<Component>().Any((Component x) => x is Collider)
                {
                    Log(obj);
                }
            }
        }
#

To know what it will delete

#

and then check the list

tranquil glen
#

it doesn't like Log

odd jetty
#

then use something that you can see

tranquil glen
#

what do you mean

odd jetty
#

If log don't work, then use another log function

#

]][]

hazy sentinel
#

ln

odd jetty
#

Man, when I see ]][] I see a fish

compact sedge
#

If you don't have a Log function it's because you're not a Mod class (maybe you're a MonoBehavior), use Logger.Log

tranquil glen
#

i see the fish more in }}{}

compact sedge
#

<><

hollow pier
#

i see the fish more when i see a fish

odd jetty
#

I have a better abstraction capacity than you then, Kry

tranquil glen
#

an object reference is required for Logger.Log(object)

#

i think i've seen this type of error before

compact sedge
#

you're a robot whose image detection machine learning underfits the curve.

#

no Logger.Log takes a string

odd jetty
#

it's asking a object tho

compact sedge
#

try

#

Modding.Logger.Log

tranquil glen
#

Modding does not exist in current context

compact sedge
#

um what are you doing

odd jetty
#

post the whole code here

compact sedge
#

paste code or something

tranquil glen
#
        if (Input.GetKeyDown(KeyCode.R))
        {
            foreach (GameObject obj in UnityEngine.Object.FindObjectsOfType<GameObject>())
            {
                if (obj.GetComponents<Component>().Any((Component x) => x is Collider))
                {
                    Logger.Log(obj.name);
                }
            }
        }
odd jetty
#

Whole

#

code

compact sedge
#

uh and this is in a MonoBehavior?

#

or a Mod?

odd jetty
#

just post the whole code

tranquil glen
#

whole code is beyond the character limit

compact sedge
#

send cs file

odd jetty
#

pastebin

tranquil glen
compact sedge
#

wait are you not using the modding api?

tranquil glen
#

i'm on 1028

#

so no

compact sedge
#

ohhhhhh

#

ic

tranquil glen
#

this is a direct assembly_csharp mod

#

i'm adding onto seans thing

hazy sentinel
#

is this 753

buoyant obsidian
#

lol

compact sedge
#

you must have written your own logging function then, or there's maybe one you can borrow idk.

odd jetty
#

@hazy sentinel No, it's just a fantasy

tranquil glen
#

I have definitely not written a logging function

odd jetty
#

just write a file

tranquil glen
#

everything that i've done is adding using System.Linq and the stuff inside if press R

hazy sentinel
#

stopdeletingthecamerathanks.txt

solemn rivet
#

Use Debug.Log imo

compact sedge
#

can't you output to output_log.txt

solemn rivet
#

I think it's Debug.Log that does that

#

or Debugger.Log

#

something like that

#

try auto-completing, Kry

tranquil glen
#

usign Debug.Log it compiles

#

where does that go?

solemn rivet
#

output_log

tranquil glen
#

is that in the teamcherry folder?

compact sedge
#

only on mac and linux

#

on windows it's where your hollow knight exe is

odd jetty
#

cough pop it cough

solemn rivet
#

it's inside hollow_knight_Data

compact sedge
#

oh sorry yeah

tranquil glen
#

it repeatedly says couldnt find a hero make sure one exists in the scene

odd jetty
#

uuuh

#

wat

solemn rivet
#

can you send the file, kry?

tranquil glen
odd jetty
#

that appears when you press R?

tranquil glen
#

it appears in the output_log

solemn rivet
#

hm

odd jetty
#

ok, then open the game, run it, delete the whole contents of the output_log and then press R after closing and saving the txt file

#

then check that file again

solemn rivet
#

ok, I can see a few issues...

#

you should check if the Knight exists before anything else, otherwise you get NREs in the main menu etc.

#

wait

#

nvm

#

that class is a component of the knight iirc

#

can you send me the modded dll kry?

tranquil glen
#

sure

solemn rivet
#

kry, just to make sure where the break is happening, add some random log after getting the R key, but before checking the colliders

tranquil glen
#

k i now log Oy before that

#

do you want my new Output_Log

odd jetty
#

yu

tranquil glen
odd jetty
#

dafaq is tilemap

tranquil glen
#

ok so update, if i just delete stuff that isn't collider the screen freezes when i press r, if i save things with camera in the name instead of freezing the screen it goes black

odd jetty
#

So, there's no object with the name camera

tranquil glen
#

well it made a difference

#

instead of freezing it goes black

odd jetty
#

in the debug file you sent, there's no object named camera

tranquil glen
#

oh ok

#

weird

odd jetty
#

Or the camera is not named camera or it don't have a collider

#

why there's a object called tilemap with a collider then, tho ๐Ÿค”

tranquil glen
#

oh whoops the reason camera isn't in that log isbecause i left in the condition to save it

#

so there is a camera is was just saved from the logging

odd jetty
#

So, Camera does have a collider?

tranquil glen
#

no i just have another condition left over from when i was deleting stuff

#

i saved things with camera in the name

woeful vault
#

so totally new to hollowknight modding, any recommendations for mods to use going back again other then the randomizers?

odd jetty
#

You mean, creating mods?

woeful vault
#

meant more for what mods to use as someone who hasnt played in a while, but realzied this might be the wrong chat for that ๐Ÿ˜…

flat forum
woeful vault
#

ty!

odd jetty
#

This channel should be named #mod-creation to avoid those confusions

flat forum
#

Mod Making

woeful vault
#

Mod Development?

solemn rivet
#

Modding imo

odd jetty
#

Mod development

compact sedge
#

Mod Discussion and Mod Gallery

flat forum
floral furnace
#

I-Want-To-Make-Mods and I-Want-To-Play-Mods

hollow pier
#

#please-dont-ask-help-questions

flat forum
#

becayse right now modding is like "general anything related to mods"
and mossing help is also "how do I play ir make mods"

cunning lagoon
#

mossing

odd jetty
#

Mossing

flat forum
#

and the problem that the creation of the 2nd channel was supposed to clear still remains

compact sedge
#

Mossing and Mothing, but don't tell people which one the help and which one the modding channel is.

floral furnace
compact sedge
flat forum
#

it may have even worsenee because people are asking how to install mods here and how to make them in the other one

odd jetty
#

modding staff distThink

floral furnace
#

well since people mix up both of them often why not just switch their names hollowface

flat forum
#

aaaaAAAAA

compact sedge
#

no really there's a modding staff channel. they made it a day before redwing (the original not cp1) came out. It's only for people with the modders role. I'll never see it unless people post screenshots of it in other rooms.

rain cedar
floral furnace
#

quality modding discussion

flat forum
compact sedge
#

wow that is throughly dead. you should revive it by talking shit about me.

odd jetty
#

beautiful

flat forum
#

no

floral furnace
#

something something naming conventions something

flat forum
#

talk shit about bad people instead

compact sedge
#

like the pale king

flat forum
#

talk about Haramboi

hollow pier
#

i see modding staff is where the high quality discussions are

#

does paerux talk in src staff

compact sedge
#

What if Haramboi is the pale king.

floral furnace
#

lets not talk about "him"

flat forum
#

He Who Shall Not Be Named

floral furnace
#

accursed name

compact sedge
#

I mean, he does a bunch of evil stuff, disappears (gets banned), but his memory remains and comes back once in a while to haunt #hk-discussion

flat forum
#

make a "ModMaker" and hide the modding channel from those who don't have it

#

Only Modding Help is public

compact sedge
#

tbh I've already accepted I'm never gonna have any roles on this server ever.

floral furnace
#

but in that way wouldnt that prevent people from seeing new mod releases?

odd jetty
#

that's cause you didn't type ?rank speedrunner

cunning lagoon
#

just ?rank speedrunner lol ez role farming

compact sedge
#

anyway that's what oneshot does and it's awful.

#

with the secret room for mod makers

floral furnace
#

unless you wanna advertise your shit in modding-help or something

rain cedar
#

?rank racer

autumn shardBOT
#

@rain cedar, you joined Racer.

compact sedge
#

it's impossible to get into modding because of it.

floral furnace
#

delete colorless roles tyvm /s

compact sedge
#

tbh the only role worth having in this server is "Team Cherry" anyway

floral furnace
#

not until we get a Team Berry role

odd jetty
#

I can't even tag @mellow falconam cherry tho

floral furnace
#

oh shit

rain cedar
#

@mellow falcon

odd jetty
#

te

floral furnace
#

oh shit 2x

hollow pier
#

@trueend

flat forum
#

@compact sedge what if you can just type ?Role ModMaker

#

same system as Speedrunning stuff

compact sedge
#

?Role Modders

#

shit

odd jetty
#

?role

floral furnace
#

then people would take it just for the sake of a differnet name color, just like how half of the speedrunner roles dont speedrun or something

hollow pier
#

?rank Bots

autumn shardBOT
#

dynoError That rank doesn't exist.

compact sedge
#

?rank Modders

autumn shardBOT
#

dynoError That rank doesn't exist.

compact sedge
flat forum
#

keep the colour white

floral furnace
#

but if you give it a default color then theres on incentive in getting the role to begin with amirite /s

flat forum
compact sedge
#

pfft who would ching I mean do something like that?

odd jetty
#

Why white color? no roles is black distThink

flat forum
#

Because

#

people will get the role for the black colour then

compact sedge
#

no literally the color #000000 on discord is colorless. if you want a black role you have to make it like #000001

odd jetty
#

huh

flat forum
#

but

#

but

floral furnace
#

lame

flat forum
#

Transparency Factor

odd jetty
#

it's an extra 00

flat forum
#

?!

compact sedge
#

they don't have a transparency thing so they had to make do without it

odd jetty
#

hex color with alpha is #00000000

compact sedge
#

yeah

odd jetty
#

with an extra 00 for 255 of transparency channel

compact sedge
#

but alpha is always FF unless you have the specific color #000000 which is hardcoded to act differently

#

on discord

odd jetty
#

#FFFFFF is 255, 255, 255 for RGB, #FFFFFFFF is for 255, 255, 255, 255 for RGBA :V

flat forum
tranquil glen
#

GUI.Label(new Rect(0f, 50f, 200f, 200f), string.Format("Xpos x Ypos: {0} x {1}", this.rb2d.position.x, this.rb2d.position.y));

copper nacelle
#

same

tranquil glen
#

is this how i do that

copper nacelle
#

yeah

tranquil glen
#

k cool

copper nacelle
#

you're setting this.rb2d right?

tranquil glen
#

this is in the middle of someone else's code

#

i'm just changing what the numbers display

compact sedge
#

Does the modding api compile on gm?

#

does anyone even have gm to test?

#

if someone does and it does compile could they please compile it for me so I can have an assembly to get my mods working for tomorrow?

copper nacelle
#

get veru to give you the assemblies ez

compact sedge
#

I don't even want GM I just want the assembly csharp file

hollow pier
#

he says as he clearly wants gm

copper nacelle
compact sedge
#

I mean I do want GM but I won't play it until it comes out for me

#

I care more about getting my mods ready and also finishing salt and sanctuary

copper nacelle
#

buy it on GoG ez

cunning lagoon
#

you buy it

compact sedge
#

to be tbh I'd own many more games on GoG if they had auto update on linux.

cunning lagoon
#

or even better buy me a copy

#

thanK

copper nacelle
#

with GoG you can technically just distribute the installer

#

you shouldnโ€™t

compact sedge
#

tru, it is drm free

copper nacelle
#

but you can

#

Iโ€™ve given someone the terraria installer

#

Iโ€™ve bought it like thrice so idc

compact sedge
#

hey @hazy sentinel could you post the assembly csharp here for GM so I can try to recompile the modding api for it?

hollow pier
#

wow can you give me the terraria installer

copper nacelle
#

donโ€™t you have terraria

hollow pier
copper nacelle
#

@compact sedge did you know galaxy is on mac

#

depressing

compact sedge
#

fuck me

copper nacelle
#

no thanks

#

but like

#

reee

#

i've been waiting for galaxy for linux for forever

compact sedge
#

I don't even want a complete galaxy I just want an autoupdater that's all I'm asking for.

copper nacelle
#

yeah

#

idc about the client

#

i just want the updates

#

and maybe the downpatching thing too cause that seems great

hexed swan
copper nacelle
#

wtf

river eagle
#

gaming on a mac

#

Shiggy diggy

copper nacelle
#

hackintosh

#

to be tbh

river eagle
#

ah

#

Does it even support directx?

copper nacelle
#

metal

#

and vulkan

river eagle
#

poor

copper nacelle
#

vulkan > directx

compact sedge
#

although mac wasn't even supposed to get vulkan because apple is bad people.

river eagle
#

too bad most games still use directx

copper nacelle
#

yes

#

yes

hollow pier
#

urd

copper nacelle
#

i wish everything used vulkan

#

i get way better performance w/ vulkan

#

at least in DOOM

river eagle
#

vulkan is better than directx that I know

copper nacelle
#

which ran at like 90 fps on linux

#

w/ a gtx 960

#

through wine

#

which is pretty great

compact sedge
#

tbtbh even when a game uses vulkan and it's so easy to port that a studio internally creates a linux build they usually get blocked by the publishers see WoW and Doom for examples.

copper nacelle
#

denovo

river eagle
#

Then try running something like the witcher 3 on linux

#

rip

copper nacelle
#

someone has probably got it running

#

with that thing

compact sedge
#

No but like many denuvo games get linux ports that are DRM free which makes the linux version the objective best one.

copper nacelle
#

that makes directx into vulkan

compact sedge
#

like Mad Max for example

copper nacelle
#

yeah

#

what's that thing called aa

#

the magic shit

compact sedge
#

dxvk

copper nacelle
#

yes

compact sedge
#

aka fuckn magic

copper nacelle
#

hey hal

#

dxvk is a magical thing

compact sedge
#

Plus wine got another hack recently to greatly reduce its cpu usage

#

like half as much

river eagle
#

huh..

#

that's pretty impressive actually

copper nacelle
#

yeah

#

it runs well according to the github issue for it

fossil oxide
#

JUST MAKE IT QUICK

#

GERALT

copper nacelle
#

so hair is worse than usual

#

one enemy is weird and one npc

#

but everything else works fine

#

that's pretty amazing

compact sedge
#

lol hairworks is bad on windows, it tanks the fps

#

like when W3 came out only the 980s could keep a decent framerate when hairworks was on

copper nacelle
#

nice

#

i didn't like w3

compact sedge
#

but yeah the newest hack everyone's hyped over is called esync and all the lutris games are deemed "esync ready" since to enable it you have to change some system settings that lutris cannot change.

river eagle
#

btw is there any benchmarks of the new 20xx gpu's?

compact sedge
#

can you actually buy them yet?

river eagle
#

that's what I'm wondering

compact sedge
#

huh they came out like today wow

hollow pier
#

preorder

copper nacelle
compact sedge
#

oh god I'm glad my inbox isn't the only one that's as cluttered

copper nacelle
#

haven't checked it all of this year

river eagle
#

Do you like get any actual mail

copper nacelle
#

except for like verification emails

#

no

river eagle
#

From other people

copper nacelle
#

no

#

i got one

#

technically

river eagle
#

woke

compact sedge
#

ok you know what today is gonna be the day that I unsubscribe from every piece of shit.

#

that I don't click on

cunning lagoon
#

same

river eagle
#

why have you even signed up for any shit?

copper nacelle
river eagle
#

when 10 minute mail exists

compact sedge
#

because I like permanent accounts for some websites

copper nacelle
#

cause i actually want emails from some stuff

river eagle
#

boi