#regionkit-support
1 messages · Page 1 of 1 (latest)
?exceptionlog
Close the game and send the exceptionLog.txt file that you can find on your root installation folder (next to the .exe, default path: C:\Program Files (x86)\Steam\steamapps\common\Rain World).
thanks, this is it
i made the region that has the issue
You don't have region kit installed, move to modding support
when the game crashed it was trying to add creature spawns
This is for region kit related issues
so there is probably something wrong with those
what is region kit
do i need this to ad my custom regions?
No
#modding-quick-support message
I've been trying to debug why ConditionalEffects is breaking my game. As of about an hour ago it's now freezing when I try playing the main game, and I don't understand what changed. However, I do have some interesting debugging results...
I added a line in RegionKit to log the effect that's currently being parsed. It's crashing on Fog-0.2391304-23-82 which is from CC_SettingsTemplate_Outside.txt which is the first template that CRS loads when it loads them all at the start of the game. Removing this effect causes it to freezes on the next loaded effect - basically, for whatever reason the hook freezes the first time it's ran. It's not an issue of an invalid syntax
I just tried it on a completely fresh install after copying only the BepInEx stuffs over from the previous install, and it still freezes with the exact same exception
ok, looks like the whole bug was caused by missing curly braces in the version I was building from VS. Releases version works fine (could've sworn I tried using that already)
im in
epic
wait is this a problem with regionkit and underbelly?
not sure rn, I'm dnspying around to see what's up and it might be because the playerprogression or save slot hasn't been loaded yet, but I'm not sure
what did you say you were doing when it broke?
i was just trying to look at underbellys map and art in the main menue regions tab
do you want any other logs or smth?
I couldn't see anything I thought was unusual in the customworldlog, but could I see the console log?
not sure that it will help, but probably worth having
ty
no problem
oh
[CustomRegions] Error finding Title directory for [UB] - at [Mods\CustomResources\Underbelly\Assets\Futile\Resources\Illustrations\]
Wrong syntax effect loaded: Fog
is that the problem
the Wrong syntax effect loaded log message is from the same hook that throwing the exception
I didn't realise it was a normal log and not an error log message so assumed that wasn't happening because it wasn't in the exceptionlog
i see
... interesting decision
idk much about regionkit, so I'm not 100% here
first thing to check would be that your room effect string for Fog is formatted correctly
how would i do that?
not sure how room effects are meant to be formatted but I can check that now lol
alright cool
the console log doesn't look like it matches this
unless I'm wrong, which is possible
hold on
i can look at it again and send the logs again if you want
yeah sure
ah, yeah I forgot you could start a story session and then exit to main menu 
bear with, I am trying to check something but realm is having a fit lol
looking at the first line of this rn. I don't know how "Title directory" stuff works, but yours appears to be missing
i see
I have a feeling that might not be the issue causing the crash, but 
(quietly praying that gar arrives)
xd
hey imma have to leave now, sorry
if you find something you could put it here and i guess ill see it later 
and thanks for the help still
no worries, hopefully if I don't find anything then someone else will. Can't remember how visible threads are to people who haven't joined them
not very visible, i guess i can just ask again and find another unfortunate victim
Wrong syntax effect loaded: Fog
misunderstood where this was coming from - this is from the vanilla method, not the regionkit hook that's throwing the exception
Is there some scuffed shit going on with the fog?, i actually remember seeing somethibg like that very early in the regions development
that is logged from the catch clause of a try-catch, but the catch isn't filtered by exception type, so there's no immediate way to tell what the issue is, just that something went wrong when it was reading the Fog affect for a room
and I'm again not sure if this is what sets off the big issue
Yikes
I dont see why that would cause problems with the main menue map thing but u dont jnow how this game is coded
he does know, you're the one who doesn't
M
presumably a typo
Oh yeqh im on phone
lol
Sorry for any confusion
it loads the map for the region at some point for the region menu
Oh and also, just before leaving i tested it without regionkit, and it worked
Okay tjat makes sense

<@&882919010251976744> (so you can be here)
Satanic ritual
so it looks like you have a dodgy fog effect string somewhere, vanilla game is ignoring it (to check that, the message should still be in consolelog when running without regionkit), but something is causing the regionkit hook to die
vanilla game is ignoring it
as in, it sticks the message in the debug log and skips loading it
Oh so i can just check for a room without fog cuz there should be fog in pretty much every room in underbelly
no, the fog affect is in a room, but something about it for that room is wrong
effect format should be Fog-a-b-c where a, b, and c are floats
Oh
so like Fog-0.5-50.2-584.3242 or something
I see
would it be as simple as just finding that room and removing that fog effect or is there something more that needs to be done?
hopefully
unless there is something else going on, which there doesn't seem to be
regionkit-support
I gues i could manually check every effects file
okay, the format is Fog-amount-x-y where x and y are the x and y coords for the devtools panel for the effect
Ok cool
how would i spot that something is fucked up with a specific instance?
would a value be missing or something
yeah, missing values like Fog--x-y, or something where a float/numeric value should be that isn't a digit or .
I'm not sure how that would have happened in the first place though
would that be easier to spot in game or by checking the text files actually, all those numbers just make my brain melt
well, you probably wouldn't spot it in-game because it isn't loading the effect
I think
I'd imagine there is a room somewhere that's meant to have fog but actually doesn't in-game
i mean every room in UB is meant to have fog
so i feel like that would be easy to spot
oh, fair enough
nw
I don't think it's actually an issue with regionkit (though a little logging and more specific exception handling for this hook would be nice)
but not sure yet
I guess we just wait and see if this fixes it (if it does then it was just a mistake in the room settings)
alright im back home and i think i found it
room 5 doesnt seem to have any fog, no matter how much i mess with the settings
Fog-0.4565217-270-20 fog settings for UB room 5
uh
not sure why it doesn't like that
I am back to being confused
unless it's different on your end
no matter what i do i cant seem to turn on fog in the room, so im assuming its the problem
open the settings txt for room 5 and see what the fog settings are
i removed it so idk what they were originally
ah
i have the version of UB thats on crs so its probably the same as for you
this is what the effect looks like when ive maxed it out
Fog-1-20-20
seems pretty normal
yeah
now that you've changed the values to something we know loads properly, try the region menu again
i just removed it cuz the fog didnt load either way for some reason?
haunted room ig
lol
same exception
yeah
oh...
i took a little peek at the console log and i seems to be complaining about flies now
let me go back to that exact same room and check again iguess
no flies in that room?
yeah
is it crying about a different room then
good god
okay I have a few ideas
one second
if you run with this, it should put the room names in the consolelog before it loads the effects
that way we'll be able to tell which room it's having issues with
here
can you upload the settings for UB_room65 ?
huh
no manual editing?>
so it's trying to parse an empty string as a number
no not as far as i remember
weird
idk what i was on when i made UB tho so i cant be completely shure
perhaps something in regionkit accidentally tampered? I know there is a lot of messing with effects and pobjs and stuff
lmao
i guess ill just remove flies from that room and call it a day
unless there are more broken efects
yeah...
I'm still a bit confused about why this is causing regionkit to piss itself though
oh
at least its fixed
thanks a lot for the help :)
do you mind if i credit you in the update thingy?
cuz i 100% would not have been able to fix this without your help
yeah, I did actually just finish a version that will also log the effect parsing in full, but this seems like a pretty niche issue lol
yeah, idm lol
and no worries
i guess you could put it somewhere so that it can help if anyone else runs into this issue
but yes, seems a bit to nieche
@supple obsidian is the idea of the drought and regionkit threads to reuse them for future drought and regionkit issues?
yeah, maybe multiple users have the same problems
common solutions could be pinned
okey 
tldr on this one was that if a room effect string is malformed then the vanilla game doesn't care but for some reason regionkit will freeze the game
Why is it a different file size every time I post it
evidently you relaunched the game between sending the files because this log is different
the apparently fatal error in the log you sent in modding support before I suggested you post it here was occurring while regionkit was trying to load room effects. This is very different and it probably and incompatibility between sporecat and another mod that edits slugcat tail length (fancy, etc.), so this log is not regionkit related
That's odd. I completely removed fancy slugcats and deleted all LizardSkin things so this might be an old version of this file in the game file

