#making-mods-general

1 messages · Page 162 of 1

wanton pebble
#

This looks like you're speeding up interactions in game somehow

#

At least with how fast you sped away

#

Did you load the texture first before applying it in item code?

#

Also give log/item code in validator, might help with showing a patch fail

simple spoke
#

is it okay to copy paste the code here or is there a better way?

hard fern
#

!json

ocean sailBOT
#

JSON is a standard format for machine-readable text files that's used by Stardew Valley mods.

If you need help with a JSON file, you can upload it to smapi.io/json to see automatic validation and share the link here.

When making mods, it's recommended to edit your files in a text editor with JSON support, such as VS Code, Notepad++, or Sublime Text. These programs will check for syntax errors.

simple spoke
#

thats what i have right now all i wanted to see for today was the texture for the seeds ingame. im failing for 3 hours now SDVpuffercry

elder mountain
#

This happened to me when I entered the wrong texture with a size of 24x48

#

Maybe you have the same

ornate trellis
#

Mods/{{ModId}}Assets/Objects/MonsteraSeeds.png shouldnt there be a / between {{ModId}} and Assets

elder mountain
wanton pebble
#

Void's right re:texture

simple spoke
#

i will cry when thats the problem

#

changed it but still no image

wanton pebble
#

Waaait

simple spoke
wanton pebble
#

With the / that is

#

Because the json you sent was just the item

elder mountain
#

If you have 16x16, then everything should work

elder mountain
simple spoke
#

Wait i will parse everything. not that its much

simple spoke
wanton pebble
#

Target and Texture don't match

#

Or, well

#

The load's target should match what you put in texture for the item

simple spoke
#

I can't describe how grateful I feel right now

simple spoke
ornate trellis
#

hm, how do i get ambientlight working for an outdoor map...if i take Outdoor T out i got no grass or fish but secret woods does have that and also working ambient light?

simple spoke
#

I love making sprites, but coding will be very adventurous for a long time.
Thank you all again🫡

latent mauve
ornate trellis
#

i use 2 sconce type ones so far. the thing is during day it looks really bright (as daylight does on a map lol) and I just want some sort of darker vibe where it looks more like a forest clearing or something

#

tis my properties

#

i know secret woods uses the type 6 aka indoor window but how does the map feel darker in opposite to the other maps

rancid temple
#

Secret Woods is hardcoded to ignore outdoor lighting

ornate trellis
#

damnit

#

so without c# magic i wont be able to, huh

rancid temple
#

Yeah. Not sure if anyone's bothered making a framework for that

#

Might be something to add to a map utility framework

velvet narwhal
#

it wouldn't be too hard considering my one line of code works just fine for me

faint ingot
tawny ore
#

Hi @ivory plume I was wondering if we could discuss a proposal to support better integration between Automate and some of my mods (I'm going to thread this message to contain the proposal and your reply).

mighty quest
#

can anyone suggest an easy way to calculate at runtime what is the cheapest fish price available (ignoring seasons or location restrictions.. just what the cheapest price of any fish, considering mods and reduced profit modifier)?

brittle pasture
#

iterate over Game1.objectData, check if it's a fish, create the item and check the price

mighty quest
#

that sounds taxing

#

having to create about 100 items

brittle pasture
#

if you dont do it every tick that's not taxing at all

mighty quest
#

guess I'll do it at save load

versed wyvern
#

What should I look at if I want to make a map tile the player can interact with to get and immediately drink an item? I'd like to add a complimentary coffee machine to the Clinic so the player can visit for a free short speed boost, but without giving them free items

brittle pasture
#

the reason I said to actually create the item is because you seem to care about any price modifiers that the game/other mods may add on top

#

if you only care about the base price you wouldn't need to create the item, just checking the price in the data would be enough

mighty quest
#

on second thought, it's better if I ignore difficulty and profession + other modifiers

#

to check for a fish can I use the FishCategory, or would that include random crap like algae?

#

ok looks like the Type does include algae, but Category does not

hallow urchin
#

Hi guys, I'm trying to edit the "ActionTiles" property of a building within Data/Buildings.json in C#. The wiki shows this example:
var editor = asset.AsDictionary<string, string>(); editor.Data["Key C"] = "Value C";
Which would mean replacing the whole key for the building(and not just ActionTiles). Is there a better way to accomplish this?

tawny ore
#

Data/Buildings is not a Dictionary<string, string>

#

It should be a Dictionary<string, BuildingData>

hallow urchin
#

ooooooh

#

of courseee

tawny ore
#

If you interface with it as the right type you can access more deeply nested attributes

hallow urchin
#

fantastic, tysm

brittle pasture
#

also (CORRECTION: for reading only, not editing) you can use Game1.buildingData

tawny ore
#

You can't necessarily depend on that in the middle of an edit

#

You're results may vary depending on if you're late or early priority

#

Also changes to Game1.buildingData won't persist between edits from content mods, so you'd have to do that from the content pipeline if your intention is to make changes that every mod is able to see

brittle pasture
#

ah darn I missed the latter half of the question

hallow urchin
#

Now I'm wondering...
If I want to make a permanent change to a building type's functionality, should I be doing that through c# at all? Or should i prioritize using content patcher?

uncut viper
#

content patcher is just a C# mod that does things for you

#

so you CAN do it in C#

#

depending on how much you wanna do and how many other things you would use content patcher for it might be easier to use it though but if all you're doing is an edit to a buildings data that doesnt need to change then it doesnt really matter

hallow urchin
#

so if I run a OnAssetRequested change to add an action to a building (to run a method in my script, which I prefer), it's basically the same thing contentpatcher is doing?

brittle pasture
#

yes

hallow urchin
#

oh that's awesome

#

I much prefer that

proven spindle
#

Theoretically a map edit with a trigger action should be able to do it without spacecore but I've never been able to get that working, so spacecore it is lol

versed wyvern
#

Ooh, awesome, I'll go dig around Spacecore's docs then, thank you

uncut viper
#

spacecore wont be able to make you drink the item

proven spindle
#

No but you can get a drink and limit it to once per day with regular trigger action conds

#

Spacecore just lets you make it happen using a tile action

versed wyvern
#

Hmm, that seems like a problem then thonking I didn't want to just give the player a free coffee because Harvey's right there and that's a free Loved gift just for visiting

uncut viper
#

yeah it read to me like the forced drinking was integral

versed wyvern
#

And farmerEat is event-only so I'm starting to fear this would need C# snuffFear_s

proven spindle
#

Is the point to add a buff? I think that was a possible action, could just skip to that part plus some flavor text

uncut viper
#

i dont know a way you'd be able to do it without C# unles you just wanted to give them the buff itself but without an animation

versed wyvern
#

Well, that would be the next best thing, I don't think have the brain juice to spare to figure out C# for a while thonk

uncut viper
#

you can use spacecore to play the drinking sound when they click it

#

along with the buff

versed wyvern
#

I'll go poke around there anyhow and maybe someday I can try making it a proper drink to get my feet wet with C#, thanks googlythumb

faint ingot
tough crater
uncut viper
#

yeah if you wanna recreate years of development and features to do things that content patcher will already let you do in 5min, then nothing is stopping you

tawny ore
#

Hey guys, Stardew Valley is just a C# Application with assets. If you wanted to you could make your own game as long as you provide the code and assets. /s

tough crater
#

That's too much for me to even think about taking on lol

tough crater
tawny ore
#

!harmony

ocean sailBOT
#

Here be dragons. Venture forth with bravery, young warrior, for thou art alone in these dark lands. See the Harmony wiki page for more info.

tawny ore
#

Or wait, this one maybe:

#

!god

ocean sailBOT
#
versed wyvern
#

(I haven't actually used it so I don't know well it runs)

light jasper
#

can someone point me to the docs for hiding other mods outputs in my debug console? I can't remember where it is

lucid iron
#

I don't think that's a feature

#

The log parser let u hide it ofc, but that's not console

tawny ore
#

I think smapi internals lets you tweak things like having verbose for your own using ids

calm nebula
#

Right click trigger an event

#

That's an action you can do

#

Sure, it's two annoying fade in and out

versed wyvern
#

I did consider that but yeah I feel like the fadeouts would be kinda jarring

calm nebula
#

Also is AddBuff not a trigger action

#

Swore it was

versed wyvern
#

Plus it wouldn't be able to remain consistent with whoever else is in the Clinic, right?

uncut viper
#

it is

silk venture
#

Spent all day writing out AcceptGift lines for a bunch of different things for my NPC only to realize at the end here that anything singled out with that tag doesn't seem to count towards the weekly gift limits

uncut viper
#

what? that shouldnt be the case

silk venture
#

Wait

uncut viper
#

do you have CJB cheats unlimited gifts on?

calm nebula
#

(Pro tip: make sure cjb infinite gifts is not on )

silk venture
#

Yeah no nevermind i'm dumb. I actually haven't played much 1.6 and

uncut viper
#

the only things that bypass the limits are bday gifts and stardrop tea

silk venture
#

I did not realize that stardrop tea, uniquely, does not count

#

yeah

uncut viper
#

and im actually not 100% sure on bday gifts i cant remember

rancid temple
#

I believe birthday gifts count towards the daily limit but not the weekly

calm nebula
#

Birthday gifts count towards the limit

uncut viper
#

i know they count towards the limit

calm nebula
#

BUT you can give a b-day gift even if you've given two gifts that week

uncut viper
#

i wasnt sure about bypassing it if you've given 2 this week (but not today)

silk venture
#

I really need to do more testing before I say stuff sometimes- Right after I sent that message I went back in-game and attempted to give something other than stardrop tea only to get the "You've already given a gift today" box, lmao

#

Not the first time i've done something like that, probably won't be the last 👍

uncut viper
#

the reason i always forget the birthday thing is Haley is my go to and she is cursed with a Sunday birthday

#

so it never matters

silk venture
#

Oh dang, I'd never even thought about that

calm nebula
#

Poor Haley

versed wyvern
#

I suppose she's already easy enough to raise just because her bday is that early though

#

Only one easier is Shane, I think

uncut viper
#

you wont be able to get any of her loves by then anyway so not really

versed wyvern
#

One time the Traveling Cart brought me 5x coconuts in time for it ironmouseHYPERS

calm nebula
#

Debug fin sunflower

uncut viper
#

unless you super book it to the desert, i guess

#

traveling cart is an option thats true

#

i usually dont have enough money banked up for treats at the cart by week 2 tho

rancid temple
#

Just gotta start fishing on day 2

versed wyvern
#

But I also came to realize that she has a number of lines meant to show her slowly warming up to you that I've never seen because I just drown her in flowers immediately

uncut viper
#

i do!

#

i am the resident fisher between my partner and i

#

but why spend money on niceties when there are backpacks and empty dirt spots on our farm

rancid temple
#

Can't fill dirt spots without scarecrows

uncut viper
#

thats why my partner is the resident miner SDVpufferthumbsup

velvet narwhal
#

"babe i'm gonna go mine"
"ok have fun starts up junimo cart"

uncut viper
#

im 100% sure thats literally happened word for word many times

light jasper
#

idk who has the harder task in that situation tbh

lucid iron
#

Button do u use that mod which lock you into junimo kart jail whenever a multiplayer event starts (for another player)

calm nebula
#

You actually like junimo cart????

#

I'm so bad at it

light jasper
uncut viper
#

i dont know what mod you mean and i dont know if ive ever actually been playing it when a multiplayer event starts

#

also yes i genuinely love junimo kart

#

i would much rather play junimo kart than go mining

lucid iron
calm nebula
#

I only ever successfully got past level 1 with 1.6's generous grace jumps

lucid iron
#

Jail for p2

rancid temple
#

"Fair" is a wild adjective for a co-op game

light jasper
uncut viper
#

this seems like an objectively worse experience to me

#

just install a mod that pauses time when someones in a cutscene

calm nebula
#

Let's split the difference

uncut viper
#

that is my preference

calm nebula
#

Time runs at 1/n speed

#

Tbh I've also never played real Stardew MP

versed wyvern
uncut viper
#

it pauses time

teal bridge
#

Time is paused in MP if (and only if) all players pause simultaneously. Hence "fair", I guess, if everyone has the mod installed.

#

Force everyone to pause if anyone pauses.

uncut viper
#

i was referring to the mod

rancid temple
#

I assumed it was going for "fair" as in it's not fair that the person not viewing the cutscene gets to keep playing?

uncut viper
#

but i was mistaken anyway, it asks you to install Pause Time in Multiplayer for it

rancid temple
#

Wow

uncut viper
#

that is the definition of fair yeah

#

(the definition of fair for this mod* i mean)

rotund elm
#

Does anyone here use BBCode on their mod page?

teal bridge
#

What other choice is there?

rancid temple
#

Plain text I guess

uncut viper
#

just about every mod ive ever seen on nexusmods uses bbcode in at least one spot

rotund elm
#

Ok would any of yall know if they have a vendetta against table of contents, because my anchor tags are just not working

#

XD

#

My anchor tags are not working at all

#

IDK if their is a mod page that has a working one I could check but I swear I'm doing it right lol

teal bridge
#

As far as I'm aware, bbcode has never supported anchors.

rancid temple
#

I've never seen anyone with a ToC

teal bridge
#

How are you even trying to write an anchor tag? Like what syntax did you attempt for that?

calm nebula
#

I assume raw html lol

#

Dude I can't even table lol

rotund elm
#

I may be on something then lol, I swear you can use anchor tags, I used them in school [anchor=description]

teal bridge
#

Maybe there is some bbcode implementation out there that accepts that, but not Nexus.

rotund elm
#

Maybe I can just try using a link to that portion of the mod page

calm nebula
#

Markdown needs to happen lol

#

Although tbh how long is your mod page

teal bridge
#

You can link to pages with anchors just fine, you just can't create an anchor.

rotund elm
#

Not long now but its about to get super long LMAO

rancid temple
#

I would make the page short and have documentation elsewhere

uncut viper
#

you can always put things in spoiler blocks

teal bridge
#

(For Nexus, Markdown needed to happen 10 years ago; we're whistling past the graveyard now)

rotund elm
#

Im gonna use spoilers to hide bulk info but I don't want to make a whole wiki or pdf for people to see all the info

uncut viper
#

(as of 3 months ago apparently markdown is "still planned on" but they are working on other projects right now)

rotund elm
#

Love that for us lol

teal bridge
#

Of course they are. Many vitally important projects, as you can see in their announcements.

uncut viper
#

theyve got their new UI coming out this month i believe so maybe itll be closer in priority now

velvet narwhal
#

are we still guinea pigs for that stardew-vortex

uncut viper
#

theyre not making a stardew mod manager, theyre making a general mod manager

rancid temple
#

Gotta keep experimenting with compressing all our screenshots

velvet narwhal
#

oh, i thought it was specifically for us, but again, chicken wire brain

rotund elm
#

Screw vortex lol

teal bridge
rotund elm
#

All vortex has ever done right was install my 1900 mod skyrim constellation pack

uncut viper
#

i could mean to say that, but what i said is also still correct

velvet narwhal
#

i mean smapi already handles everything for us

rotund elm
#

I cant even get that crap to open the proper mod file half the time

#

Stardrop is great but the in manager mod update feature no longer works right now

#

and I am sad cause I pay for premium and it would be nice

velvet narwhal
#

oh, i just get redirected

uncut viper
#

could always try that new mod manager that someone made recently

velvet narwhal
#

no premium club 🤝

#

the thing with the uhhh god what was it, the one Ai translation to help other languages or something?

uncut viper
#

¯_(ツ)_/¯

lucid iron
#

It's ok just get 30k dl

uncut viper
#

i dont remember what its called

rotund elm
#

Yea!

#

Damn

uncut viper
#

probably uploaded to the Modding Tools categoryu maybe

lucid iron
#

I think it was a fairly general name

rotund elm
#

Ill take a look but if it doesnt have auto mod updates or in manager mod updates Ill stick with stardrop

uncut viper
lucid iron
#

Windows only if that matters, and psure u still need premium for auto updates

velvet narwhal
#

yes yes, i'm not a real mod author because i haven't been accosted by a dm to get me to be a dev for an ideas man

teal bridge
#

Is the 30k thing uniques or totals?

velvet narwhal
#

30k uniques

uncut viper
#

uniques

rancid temple
#

Pretty sure the premium restriction is on Nexus's end

rotund elm
teal bridge
#

And it's supposed to be for just one mod, right?

lucid iron
#

Mine was stuck on like 29500 for a month

velvet narwhal
#

across all your mods

uncut viper
#

no, across all mods

lucid iron
#

Even though my total was above

rancid temple
#

All mods, I would only have gotten it very recently if it was only one mod lol

teal bridge
#

Oh. Huh, then I think I actually beat that a second time for Stardew, not that it makes any difference.

velvet narwhal
#

i figured you would've already had it by now focus thonk

rotund elm
#

Yea you get one at 10K to I think or something around there

uncut viper
#

you get single months of premium at a few milestones

lucid iron
#

For most ppl actively making mods

teal bridge
#

Oh, I had it before I ever released a Stardew mod, I was just curious if the Stardew numbers themselves would have done it.

rancid temple
#

You get several one month long free premiums on the way up to 30k

lucid iron
#

You can probably reach it before the 1 month premiums ran out

uncut viper
#

i didnt even use mine

rancid temple
#

Took me about 3 months I think

rotund elm
velvet narwhal
#

just sell yourself to the devil whims of users, and make a pretty decent aesthetic/user-facing QOL mod SDVpuffersmile

rotund elm
#

Exactly lmao

uncut viper
#

alternatively, you can make a fake garbage anti-lag mod

teal bridge
#

My predictions of which mods would be popular were way, way off.

rotund elm
#

Ive seen too many of these

velvet narwhal
#

now that is peak dp farming right there

teal bridge
#

Though, yeah, random aesthetic changes and "more stuff" mods are pretty easy wins.

rotund elm
#

Lol did yall see the new policies with the dp system

velvet narwhal
#

if there's been another new change, no

#

if you're talking about the change prior to 1.6.9 drop, yes

rancid temple
#

New as in when they changed the math or new as in a recent change?

uncut viper
#

the last time i recall them changing was like, half a year ago

rotund elm
#

The new algorithm yea

#

Maybe i just saw it late but I thought it was only a month or two ago

velvet narwhal
#

something, something, pathos and casey have seen a record low

rancid temple
#

I got one payout before the algorithm change, so I dunno what it was like before

velvet narwhal
#

which makes me 😠

rancid temple
#

Well they still haven't released the framework payout changes

versed wyvern
teal bridge
#

It's a reference to the one that was broken on day one.

uncut viper
#

there wasnt a release expected for the framework stuff, they said it was something they wanted to figure out

rancid temple
#

They were supposed to have separate math for frameworks like SMAPI and SpaceCore

rotund elm
#

Interesting....

velvet narwhal
#

well that's the "personally picked" mods

rancid temple
#

I'm sure it won't take them several years /s

uncut viper
#

they werent "supposed" to when they changed the algorithm. just something they want to consider

#

also yes as focus said that one mod never worked right and always made things worse

rotund elm
#

Is this the performance mod that unpixelated stardew valley because that made me die laughing

uncut viper
#

plenty of nexus comments saying it works great, though.

velvet narwhal
#

something something, false smapi logger and a lot of unnecessary calls to the garbage collector

rotund elm
#

or is it the one for ram

#

idk theres so many

teal bridge
#

No? SpriteMaster and CG work fine.

lucid iron
#

Spritemaster was actually perf improving in 1.5

uncut viper
#

i dont know what ram thing you mean but you are thinking of SpriteMaster, but it actually did things

rotund elm
#

SpriteMaster thats the name, I guess it would work, but why

lucid iron
#

The one being referred to here is no more lag

rotund elm
#

I see X|

uncut viper
#

afaik the unpixelation was an auxiliary feature?

versed wyvern
#

No More Lag is the one I was talking about yeah, are you telling me that just never did anything

lucid iron
#

1.5 has funny(bad) handling for textures i think, no clue what's the specifics as i am baby

teal bridge
#

I think we should avoid speaking its name in public, or come up with a funny alt name.

rotund elm
#

Lol

uncut viper
#

More Lag

velvet narwhal
#

idk, i'm pretty sure pathos has publicly stated that it crashes content patcher

rotund elm
#

XDD

rotund elm
rancid temple
#

No More Lag broke CP didn't it?

uncut viper
#

on the contrary it does things you dont want it to do

versed wyvern
#

I'd thought I'd seen people saying it made big mods load faster but it also sounded too good to be true to me

teal bridge
#

Yeah, the things it does are 99% nullified by vanilla game code and 1% actively harmful.

uncut viper
#

any performance improvement people saw is placebo

rotund elm
#

Does smapi use threading already?

velvet narwhal
#

never will afaik

teal bridge
#

Hahaha, nothing based on MonoGame uses threading, at least not very effectively.

lucid iron
#

More lag has a chance to kill cp yea, if it managed to actually "work" and preload something that is map or textures

rotund elm
velvet narwhal
#

i had a good track record of 3/10 AVE crashes while debugging 1.6.9 because i accidentally had NML installed and forgot about it

lucid iron
#

For map it was put it as generic object (which is bad) while for texture monogame doesn't let u thread that

rotund elm
#

I see

velvet narwhal
#

yes, had it in the folder because i decomplied cause i'm nosy

rancid temple
#

KEK I just decompile from the downloads folder

uncut viper
#

i have a separate folder entirely that i put mods i wanna decompile into

lucid iron
#

Anyway mod making amrite sleep

velvet narwhal
uncut viper
#

i think decompiling mods is making mods related

rotund elm
#

LOL

velvet narwhal
#

yeah we're still talking about mods woopsCryy

versed wyvern
#

Technically it's unmaking a mod

teal bridge
#

#making-placebo-mods

rancid temple
#

Observing other peoples crimes is important sometimes

rotund elm
#

please XD

rancid temple
#

Especially when they decide to do something that breaks shit

lucid iron
#

The jury

uncut viper
#

or when you're too lazy to go find the source repo

velvet narwhal
#

or it just ~doesn't exist~

uncut viper
#

this is why i have Content Patcher open in ILSpy

rotund elm
#

New modders reading the convo right now 👀

velvet narwhal
#

which was the case for it at the time (don't know if that's still true)

teal bridge
#

Some authors don't post repo links on their mod pages and don't use the same author or project names on GitHub, making them very hard to find.

lucid iron
#

I have used another mod being close source as excuse to refuse compat before

teal bridge
#

How would you even write compat without the source?

tiny zealot
uncut viper
#

also doesnt help that right now the API that SMAPI/Pathos uses to get source links from mod descriptions is broken and so source links arent actually being put on the compatibility repo

teal bridge
#

I guess if it had an API and a lot of documentation, or something.

velvet narwhal
#

you did the SiD fix on your own because you were pissed off about it idk what you mean woopsSleep1

lucid iron
#

Just harmony crime them ofc

calm nebula
lucid iron
#

No i did it in exchange for angry roger that's different

uncut viper
#

i think focus meant like, if you didnt even have access to the dll?

#

hard to know how to harmony crime without that

teal bridge
#

I guess you can always decompile, but, yeah, no way I'm writing compat for a decompiled mod, it's hard enough doing that with vanilla.

lucid iron
#

I am still confused about what im doing wrong with source code links though

rancid temple
#

The best you're gonna get with me having to look at a decompiled mod is telling you why it's broken SMCKekLmaoDog

lucid iron
#

It never gets picked up automatically by the smapi compat list

lucid iron
#

Oh but it was borked b4 the gh move

velvet narwhal
#

pathos on vacation, we're self sufficient

uncut viper
#

it wouldnt be the move that broke it

lucid iron
#

I think it managed to pick up my very first mod and then never again

uncut viper
#

its on Nexus's end, per pathos

lucid iron
#

Naruhodo

uncut viper
calm nebula
#

You can just PR him lol

velvet narwhal
#

everyone taking their vacation at the same time thonk

uncut viper
#

who is "him" when talking about Nexus

calm nebula
#

It's like it's new years

rancid temple
#

It's almost like a major holiday just occured /lh SMCKekLmaoDog

lucid iron
#

Yeah i do and it's not big deal

calm nebula
lucid iron
#

But i do wonder if the open source mods stats r actually lower than reality

uncut viper
#

oh, i thought you meant for fixing the nexus export api thing

lucid iron
#

If the thing isn't reliable

teal bridge
#

Hm, I just checked and interestingly the compat list does not have StardewUI, but it has Pen Pals which was released months after StardewUI. Little strange.

velvet narwhal
#

What's that like, I've always worked uhhh wtf are they called, important jobs or w.e

uncut viper
#

yeah im not scared to do that or anything

uncut viper
#

i just cant really be bothered

calm nebula
#

Suddenly people are replying to my emails again lol

#

It's amazing.

#

What do you mean most people took vacation...

tiny zealot
#

ok i checked all of my mods on the compat list and the github links are all there, so phew crisis averted

rancid temple
calm nebula
#

Real talk I'm glad I was in a clean room during the pandemic

#

Probably the place least likely to get sick

tiny zealot
#

i haven't added a new mod in a hot minute but i typically put the github link in the description and also in the list of Mirrors, so that might have helped me if any of them came after the break?

uncut viper
#

i dont think we know exactly when the break was

rancid temple
#

I avoided catching covid for a long time by having a heart condition and losing my job

teal bridge
velvet narwhal
#

i was unaware of the break until button said something tbh

rancid temple
#

Didn't catch it until the bars opened back up and my roommates started leaving the house again

tiny zealot
velvet narwhal
#

me tabbing through channels: "Pathos is typing"
me: eyesh

teal bridge
#

Although.... hmm, on StardewUI my GitHub mirror link goes to the /releases page for some reason instead of the project root. Could be coincidence, but that's the only mod where I did a weird mirror link and also the only one that's missing from compat.
(Edit: False alarm, a bunch of my older mods did the same thing and they all made it)

uncut viper
#

absolutely none of my mods have their sources linked, but my books mod i didnt have it at the start so that tracks. BETAS i mightve forgotten to put it there immediately. CMCT im rather sure was there from the start, so thats October 4th

velvet narwhal
#

speaking of junimos, i wanna ask DH if he can turn off front-facing MEEP logs

uncut viper
#

(also confetti.trees i see you keep typing and untyping so dont be afraid to interrupt us!)

velvet narwhal
#

i have forgotten the atra quote, but don't be afraid to interrupt us, we will never shut the hell up

rancid temple
#

We yap, feel free to interrupt

velvet narwhal
#

oh i found it

#

.q 6255

patent lanceBOT
#
#6255

Please interrupt these fools if they're off topic

velvet narwhal
hallow urchin
#

Sup guys
Does "\n" not work for a line break in dialogues?

calm nebula
#

Nope

hallow urchin
#

Is there a way to do it?

calm nebula
#

Nope SDVpufferthumbsup

hallow urchin
#

waaa really

calm nebula
#

Yup

hallow urchin
#

well i'll do another box of dialogue then

calm nebula
#

Dialogue explicitly removes newline even if you try to put them in

tiny zealot
#

breaking to a new box with $b has a similar vibe

hallow urchin
#

oh that's useful

tiny zealot
#

you can do line breaks in mail (^), if that's helpful

hallow urchin
#

just a standard dialogue box but that's good to know

slim gorge
slim gorge
calm nebula
slim gorge
uncut viper
#

i was close!

slim gorge
calm nebula
#

Game1.content.Load<object>

brittle pasture
uncut viper
#

i assume they thought it was the unpixelation that caused the performance increase

slim gorge
rancid temple
#

Oh I thought the joke is that it unpixelates a pixel art game

slim gorge
#

I'm not sure how that's a joke.

uncut viper
#

sometimes you can just find something amusing even if its not a joke. how amusing depends on the person i spose

slim gorge
#

Resampling algorithms have existed since 1980... for this very purpose.

rancid temple
#

I don't even find some jokes amusing, but they're still jokes

#

Like anything Dane Cook steals

slim gorge
#

SM does not support SAA5050 from 1980, though.

slim gorge
uncut viper
#

they didnt call it a joke

rancid temple
#

I don't think the joke is specifically about the mod, moreso about the end result

slim gorge
#

Then I'm confused.

velvet narwhal
#

tbh i'd just let goat answer, goin round in circles ain't gonna get us anywhere

rancid temple
#

I'm the wrong person to explain humor

slim gorge
rotund elm
slim gorge
#

That's what my brain is doing.

#

Now I'm Ian McKellan.

velvet narwhal
#

well you have been gone for a pretty long time i assume SDVpuffersquee

rancid temple
#

You return and now it's filled with us newbs

slim gorge
lucid iron
#

repixelation bolbphase

rotund elm
lucid iron
#

is it like u smooth out a 16x16 but then pixelate it a bit to look as if its 32x32

rancid temple
#

Well I look forward to seeing the repixelization

lucid iron
#

or any other combo of source and target res

slim gorge
#

The game pretends to be pixelated, and also pretends to have things like Mode 7... but it's neither. That bothers me :/ it's not reminiscent of low-resolution games or old sprite-rasterizing consoles to me :/

tiny zealot
#

i assume ameise is referring to rendering on an actual consistent pixel grid instead of the mishmash of scales that the vanilla game uses

slim gorge
#

Correct.

rotund elm
#

Yea I have checked it out, but my vision is also terrible so it doesn't look pixelated to me, not that that is an excuse for my previous words, I do hope you'll forgive me ❤️

slim gorge
#

Something like the SNES could arbitrarily scale sprites, but it was all done very differently.

slim gorge
brittle pasture
slim gorge
#

Looking through media I've added as comments. There's a lot.

lucid iron
#

is this the face of yoba

versed wyvern
#

Got a bit of Shrek energy in there

hard fern
#

Oh my

#

It kind of reminds me how, when making custom designs in acnh, the pixels will get smoothed out

dreamy cedar
#

I'm writing a mail entry - how can I say "1+2" in the mail without the + being replaced by a pictogram of some sort? Is there an escape character or something?

lucid iron
#

just don't use english

uncut viper
#

you cannot

calm nebula
#

The font is Just Like That

lucid iron
#

there's regular font in other langs

calm nebula
#

I ended up using the & instead

brittle pasture
#

hmm I remember one SVE event where you do arithmetic. I wonder if they actually patched the font (like the down arrow) or if that event didnt have a plus sign at all

rancid temple
#

It's several word problems

velvet narwhal
#

the down arrow does get patched by SVE

calm nebula
#

You do dimensional analysis and then calculus

velvet narwhal
#

nomori and i found that out the hard way

brittle pasture
#

oh yeah, two apples at a market kinda stuff

velvet narwhal
#

oh that's what you meant KEK

wispy gale
#

hey everyone, i was told to bring mod compatibility questions here - i'm v new to modding and most tests have run great so far except this one. so i'm making a little mentalhealth/self-care mod where characters literally just ask/remind you to drink water LOL. but in a more conversational way than a phone notification lul. the initial version will have Alex as lead "Accountability Buddy" that players can team up with (in the least Fitness Coach way as possible i think lol), and eventually expand so other NPCs can be players' accountability buddy and additionally maybe other self-care reminders outside of drinking water too hehe. but rn since i'm married to Seb in my current playthrough, i'm testing the code with him. goal: compatibility with other dialogue mods. here's my content.jason, default.json, seb dialogue & seb marriage dialogue JSON files: content - https://smapi.io/json/content-patcher/cf508bf0d7c7410181d4d6c1aa255736 default - https://smapi.io/json/content-patcher/43e079ed095e46fbb8cedf63d84c152d SEB dialogue - https://smapi.io/json/content-patcher/39045598c0314a6cab700ae287bfbd7d SEB marriage dialogue - https://smapi.io/json/content-patcher/a59b95e1c4604f959159449ee990420d

velvet narwhal
#

also screw that rate of change question, i hate that thing

rancid temple
#

If Sam has two apples and Sebastian has four apples, what is the circumference of two suns smashing against each other

dreamy cedar
#

For what it's worth, there's no math here. It's a letter from Maru:

Hey @! Maru here! I forgot to tell you that there's a knob down by your left knee that you can use to widen or narrow the spread of your tools! It works well to go narrow, but the wide setting is really fiddly. I'm sure you'll get the hang of it with practice!^ - M^ ^(Hint - use the keypad plus and minus keys to increase or decrease the area of effect of your tools. The max area is 3x3 until you get farming skill of 10, when it goes to 5x5.)[#]Tractor Tool Shift Knob HowTo

I went with spelling out the + and - thing. I'm not sure of the future of this thing if I make that keybind configurable.

calm nebula
#

Oh come on both of the sve questions are super easy

velvet narwhal
#

atra i dropped out of calc intro 2, leave me alone, i'm stupid

rancid temple
calm nebula
#

Tbh I found them unimmersive because they were so easy

brittle pasture
velvet narwhal
#

listen here electrical engineer, some of us work essential jobs and can only count money and don't care about everything else SMCPufferjail

wispy gale
# wispy gale hey everyone, i was told to bring mod compatibility questions here - i'm v new t...

@serene tapir ty for offering help in the other thread! any guidance would be appreciated when you have time. **issue: **on Green Rain summer 6, it will do either of the following:

  1. load OG dialogue from the game + CFDE's Spouse Room dialogue regardless of whether Spouse is in the spouse room or the kitchen(Randomly selected i think?)
    OR
  2. load OG dialogue from the game + MyMod ("RKAB" for short) dialogue for MarriageDialogueNPC, but not Green Rain 1 or 2, only "Rainy_Day_1" or more in the same file dialogue (randomly too i think)

it won't run OG, CDFE, and RKAB one after another, and even if it does run mine, it's not the correct dialogue i want.

velvet narwhal
#

line 19 in your content.json

#

needs to be editdata, not include

rancid temple
velvet narwhal
#

i'm surprised that didn't throw an error at you in SMAPI tbh

rancid temple
#

I mean, might've done, I don't see a log SDVpufferthinkblob

tiny zealot
velvet narwhal
#

i fucking hate those things

rancid temple
#

I don't know why I hate sliding puzzles, I actually do alright at them

orchid patrol
ocean sailBOT
#

Log Info: SMAPI 4.1.7 with SDV 1.6.15 build 24356 on Microsoft Windows 10 Home, with 27 C# mods and 1 content packs.
Suggested fixes: One or more mods are out of date, consider updating them

wispy gale
# wispy gale <@335108443532689409> ty for offering help in the other thread! any guidance wou...

hi - new to modding & here's where i'm at, i appreciate any guidance!

https://smapi.io/log/aad051ab08854b1ca59d6ee524258bd4

goal: make my dialogue mod compatible with primarily Canon-Friendly Dialogue Expansion (CFDE) and potentially Diverse Stardew Valley (DSV), playing each dialogue even if it's 5+ clicks long lol

**issue: **on Green Rain summer 6, it will do either one of the following:

  1. load OG dialogue from the game + CFDE's Spouse Room dialogue regardless of whether Spouse is in the spouse room or the kitchen (Randomly i think?)
  2. load OG dialogue from the game + MyMod ("RKAB" for short) dialogue from MarriageDialogueNPC file, but not Green Rain 1-2, only "Rainy_Day_3" in the same file dialogue (Random)
  3. load CFDE Spuse Room dialogue only

it won't run OG, CDFE, and RKAB one after another, and even if it does run mine, it's not the correct dialogue i want

things i tried:

  • default.json: unique dialogue keys >> "RKAB.GreenRain_MarriageDialogueSeb"
  • RKAB.MarriageDialogue_Seb, Changes/Action/EditData and used "GreenRain" and "GreenRain_2" as game-recognized dialogue keys = "{{i18n: RKAB.GreenRain_MarriageDialogueSeb}}")
  • *content.json:
  •         1) ***used Action/Include***, which i saw was effective in Hearty Haley mod
           2) "When": "HasMod" and the ModUniqueIDs 
    
  • consulted the Modding Wiki dialogue section, searched "mod compatibility" and "dialogue compatibility" in #1272025932932055121 and even other mod threads here to what can be shown (i think back to 2023)
  • will no longer be consulting AI for code after being advised
  • reordering so that "GreenRain1-2" follows "Rainy_Day_1"
  • in RKAB Marriage Dialogue Seb file, rerouted all "Rainy_Day_ 0-4" keys: "{{i18n: RKAB.GreenRain_MarriageDialogueSeb}}"
  • made sure all mods updated (one issue with TDIT Island Portrait, but otherwise all good)
  • labeled mod "Z RKAB" loading last
ocean sailBOT
#

Log Info: SMAPI 4.1.10 with SDV 1.6.14 build 24317 on Microsoft Windows 11 Home, with 38 C# mods and 42 content packs.
Suggested fixes: One or more mods are out of date, consider updating them

rancid temple
brittle pasture
rancid temple
#

Oh is this meant to be a hidden flag

velvet narwhal
serene tapir
#

i think it'd be really helpful to add these to your toolbox confetti: patch summary "youruniqueID", and patch export Characters\Dialogue\NPCInternalName

velvet narwhal
#

but yes everyone else's suggestions is good KEK

serene tapir
#

lord i hope i got those right its been a minute since i bug tested

ocean sailBOT
#

Log Info: SMAPI 4.1.10 with SDV 1.6.14 build 24317 on Microsoft Windows 11 Home, with 38 C# mods and 42 content packs.
Suggested fixes: One or more mods are out of date, consider updating them

brittle pasture
velvet narwhal
uncut viper
calm nebula
#

you should target Characters/Dialogue/Sebastian for that

uncut viper
#

(conditional on the config I mean)

calm nebula
#

it is not relevant if they're married or no

velvet narwhal
#

i just see a when patch on trigger actions and i feralyrsin

uncut viper
#

sometimes it's necessary

serene tapir
#

the first loads a little chart of boxes telling you some stats about what is or isn't happening re your specific mod. there are some limitations, you won't see includes marked as applied and it only really works right after you load in a save file. the second loads a big chunk of the dialogue in as a single file you can find in your game folder and look through. it only shows the loaded version of a randomized line in my experience but very useful to see if your edit is actually the last one loaded in

orchid patrol
uncut viper
#

you only need to conditionally load the edit that changes the price based on the mail flag

#

if that patch isn't loaded because they have the config turned off, then it won't matter if they have the mail flag or not

uncut viper
#

You CAN make it conditional the way Jamore said, it's just unnecessary

wispy gale
uncut viper
#

though making it conditional either of the two ways would likely make the actual price change lag behind by one day

orchid patrol
serene tapir
velvet narwhal
#

weren't item price changes cached-per-item or is the chicken wire brain striking again

wispy gale
velvet narwhal
#

it's probably because of all of your missing {}s

uncut viper
velvet narwhal
#

if that was discussed, my brain is split in like 9 different directions and i didn't keep up

uncut viper
velvet narwhal
#

Button needs to finalize the json toy so I can turn it into a command woopsCryy

uncut viper
#

it's never gonna have anything but preset jsons in it for tutorial purposes

velvet narwhal
#

Yeah that's fine because it saves me the trouble of the sandwich analogy

uncut viper
#

oh if you just mean for explaining brackets then you can still link to it as is right now. it's just kinda overkill most of the time when all people care about in the moment are bracket issues and not an entire explanation of json

rancid temple
#

Make a command that's the sandwich analogy

velvet narwhal
#

I'll make it both eventually and it'd just be !sandwich

wispy gale
velvet narwhal
#

I am yet again contemplating the full tutorial of "strictly using BETAS for dialogue expansions."

wispy gale
gentle rose
#

I want to play around with BETAS, it probably opens so much room for cursedness

serene tapir
#

into the smapi console after you've launched a save file!

velvet narwhal
#

I already have a base template for a "more maru" mod that will probably not be released anytime soon

uncut viper
velvet narwhal
#

Yes were both out of cursed ideas

wispy gale
gentle rose
#

“if you ever find yourself unable to reach full cursedness, lmk” ty buttons I absolutely will

calm nebula
#

silly questions time.

uncut viper
#

(and in more seriousness, for non cursed things too. im out of ideas. if you ever need a gsq or action or trigger please let me know i need more stuff to add that will be useful)

calm nebula
#

I wonder if festivals freeze the time at the time you went in

#

and in particular, if the TIME query works

gentle rose
#

ooo with BETAS I can now make it so that any time the player tries to change the music, I can punish them with a rickroll, entirely through content patcher!

uncut viper
#

the music changed trigger happens through normal music changing means as well

#

such as random music turning on

#

i like where your head is at though

rancid temple
#

Even better, constant rickrolls

gentle rose
#

I already forgot if there’s an “on hp loss” trigger bc I’m on the actions page but Fade To Black On HP Loss would make a lovely concussion mod

uncut viper
#

there is a damage taken trigger

velvet narwhal
#

i am very happy to have chaos partner

#

this sparks joy

uncut viper
#

the trigger also reports how much damage was taken iirc, so you can fade for longer if you take more damage

gentle rose
#

I feel like I can do Very Dangerous Things with that patch update action

velvet narwhal
#

you haven't even read the harmony patching

uncut viper
#

patch update is at least more practical

#

my main thing I was thinking of with the patch update action was instant mail flag based patches

versed wyvern
#

I for one would welcome a mod that plays a rickroll over the player's wedding

uncut viper
#

since you could add mail and patch update back to back in the same trigger action

versed wyvern
#

(Would even be sweet in a way given the lyrics)

velvet narwhal
#

noted, i'll do that for mothman's update

uncut viper
#

and instantly reload any patches that check for the mail flag in their condition

gentle rose
gentle rose
#

the harmony methods are very promising for hiding my crimes

uncut viper
#

you could do something with splatter sfx with a Delayed action at the same time you fade to black

velvet narwhal
#

oh wait

uncut viper
#

just time a playsound action to happen mid fade

velvet narwhal
#

could iro do the "get the fuck away from my door" thing with BETAS

gentle rose
#

gonna remake shovel mod entirely through betas /lh

uncut viper
#

im not sure what door thing that is

velvet narwhal
#

pls explain, i'm eating

gentle rose
#

it was an idea for an immersion mod for when you’re pre-2 hearts with an npc and they’re INSIDE THEIR ROOM and ignoring you like the little shits they are

#

but no, it wouldn’t work through betas bc it requires too much cursitude kekw

uncut viper
#

what would it require?

velvet narwhal
#

i imagine if you don't want them to actually come up to the door, it's possible

uncut viper
#

whats the idea here again, what did you want the npc to do

gentle rose
#

so there were multiple versions at various points of how you check if they’re in their room, and one of them was using the pathfinder to check if they can reach their door but not the farmer

uncut viper
#

i remember this conversation halfly i just don't remember what the desired end result was

gentle rose
#

also yes, there was a version at some point that was going to make them get up but changing schedules on the spot seems too cursed even for me

uncut viper
#

did you want them to come out of their room

gentle rose
#

I mean we initially just want to check if they’re even in their room. If they are, either they would get up and go to the door or there would be some kind of dialogue from where they are and an option to leave a gift

uncut viper
#

then yeah, BETAS can do that

#

it can't make them walk, but it can move them

velvet narwhal
uncut viper
#

and it can open a dialogue box now

gentle rose
#

betas can do the pathfinding thing?

velvet narwhal
#

it can force warp

uncut viper
#

it can warp them

gentle rose
#

no I mean the part where it checks if they’re in their room using the pathfinder haha

velvet narwhal
#

so i mean ig you could do a quick fade to black and they're in front of the door maybe

uncut viper
#

No, it just checks if they're in an area you specify

slim gorge
uncut viper
#

You would define a point to check around

#

a tile coordinate

gentle rose
uncut viper
#

there's an absolutely silly chain of actions here I can imagine using if you'd like to indulge me in it but it'd need to wait till I could get back to my desk in a few minutes

velvet narwhal
gentle rose
#

yeah that was another option, to hard code the locations of the rooms for each npc, but I thought the pathfinding method was both more universal and more cursed

uncut viper
velvet narwhal
#

button outs you for your crimes

slim gorge
gentle rose
#

so betas can move an npc… does the farmer count?

slim gorge
gentle rose
#

can betas harmony patch itself

teal bridge
# slim gorge The game pretends to be pixelated, and also pretends to have things like Mode 7....

Probably splitting hairs, but I think it's less of any intentional "pretending to be pixelated" as it is simply doing the best it can with low-res tilesheets and sprites, absent any fancy upscaling system like the one you made. Most any top-down PC game using 16x16 sprites is going to look similar.

There's occasional silliness like the menu tiles being physically 64x64 but actually just pre-upscaled from 16x16 using nearest neighbor, but those are exception to the rule.

slim gorge
#

I'm not sure what "betas" is in this context

faint ingot
#

looking for some guidance on what should be a simple event task but is proving troublesome. I need to add a sprite from bigcraftables (or from a custom image), and later remove it, without affecting other sprites. If I use addBigProp, it doesn't get removed with removeSprite or removeObject. If I use removeTemporarySprites, it clears everything, but then manually adding back the sprite I need brings back the one I removed on purpose. (??)

slim gorge
#

SM patches the .NET runtime :/

#

Or at least it used to

gentle rose
#

BETAS = button’s mod that we’re talking about, that lets you do harmony patches using cp

lucid iron
#

BETAS is a mod (button's extra trigger actions stuff) that has funny content pack harmony patching support

uncut viper
#

alright, im back at my desk

slim gorge
uncut viper
#

BETAS can harmony patch anything that harmony itself doesnt explicitly bar you from patching

slim gorge
#

It's very unlike actual pixel art from, say, the SNES.

teal bridge
#

Yeah, I get it. I just think of it less like an intentional style and more like an artifact of 16x16 being way easier for artists to work with than 32x32 or 48x48. You just don't see a lot of pixel art at those higher resolutions.

slim gorge
#

Harmony can already do that, since it is Harmony.

uncut viper
#

correct

#

BETAS provides this functionality to Content Packs

slim gorge
#

Ah.

#

I'm woefully unfamiliar with how content packs work.

uncut viper
#

and i was saying it does not place any limitations on it, including preventing you from patching BETAS itself

teal bridge
#

(I will refrain from analogies at this point.)

lucid iron
#

what would happen if i try to patch like, the method that emit the IL

slim gorge
#

It's... not the level I operate at.

lucid iron
#

does it go explod or is it fine and merely useless

uncut viper
#

(or well not fire a trigger, it IS the trigger, you'd try to run an action)

slim gorge
#

I already heavily patch SMAPI and mess with .NET object structure and function signature flags directly.

Add that.

teal bridge
#

I don't think you're the target audience.

slim gorge
#

But I want them to add it anyways.

rancid temple
#

Unless you prefer working in json

slim gorge
#

I want to see people use it.

gentle rose
#

I mean, I think it probably can already patch SMAPI DogeSmile

slim gorge
lucid iron
#

its less about "can patch" and more about "well i guess im doing it"

velvet narwhal
#

i have yet to make a betas-harmony because i've just not bothered, but i assume i can cause a Hell Of A Mess™️

gentle rose
#

I wonder what the most cursed things are to patch from a content pack. The asset loading functions would probably be a good one

slim gorge
#

But does it allow direct manipulation of the VM's object headers?

lucid iron
#

i havent done it yet cus i actually make a fair amount of effort towards having less or no harmony blobcatgooglyblep

slim gorge
#

It should

gentle rose
#

imagine getting a lightning strike every time an asset is loaded/rendered

slim gorge
lucid iron
teal bridge
#

It's not as though an alternative and more limited and constrained path to Harmony patching is somehow going to allow people to do things more dangerous than Harmony itself. What I joked about, at the time, was rather the opposite, that it would allow far more dangerous people (that is, modders with no knowledge of IL or even C#) to do things that are relatively less dangerous but far higher in quantity.

gentle rose
#

or it would allow me to just sow confusion in other modders

#

which I consider a win

teal bridge
#

Of course, I don't think it's happened that way. Instead, the content patch authors don't know it exists.

#

(which might be for the best, per above)

lucid iron
#

its always a kind of

slim gorge
velvet narwhal
#

i do not advertise it because if you know what harmony is, you probably already know how to do it

lucid iron
#

if you knew enough to be dangerous with button-harmony

#

u would probably prefer to use normal-harmony

uncut viper
# uncut viper there's an absolutely silly chain of actions here I can imagine using if you'd l...

disclaimer: this assumes you're fine with hardcoding positions of NPC rooms and relevant doors

  1. MenuChanged trigger. check that the menu is DialogueBox (the msg when you try to open a door and fail). use PLAYER_NEAR_AREA to check if the player is in front of the NPC's door. check their friendship level. use NPC_NEAR_AREA to check if the NPC is within range of whatever point you want in their room. if all these checks pass, proceed to step 2
  2. Use the WriteModData action to write the NPC's current coordinates to the player's mod data using the [CharacterCoordinate] tokenizable string.
  3. Warp the farmer one tile away from the door using the WarpFarmer action (optionally you can move the Farmer relative to themselves e.g. one unit downward instead of an absolute unit)
  4. The farmer warp will cause a Fade To Black by itself naturally, so also do a DelayedAction action to time a WarpNpc to warp that NPC in front of the farmer while the screen is faded. optionally, warp them relative to the farmer e.g. one unit above the farmer instead of an absolute unit
  5. DialogueBox action to open a fake dialogue box with that NPC to have them say whatever you want them to say. in this dialogue, include another action to manually FadeToBlack once the dialogue is over
  6. also, make sure you do a DelayedAction at the same time to warp the NPC back into their room while the farmer is still faded. you can read the previous coordinate from mod data using the [PlayerModData] tokenizable string
  7. the farmer unfades, the NPC is back in their room and you have talked to them
lucid iron
#

rube goldberg modding...

uncut viper
#

(optional step 0.5: check for MenuChanged to track when the dialogue opens, and again to track when the player closes it, with another DelayedAction so its not so jarring immediately after closing it)

velvet narwhal
#

i forgot about menuchanged

gentle rose
#

imagine opening a content pack dialogue mod and finding out that instead of adding dialogue the sane way, every single line is patched in via a BETAS prefix for the dialogue method that has conditions for exactly when to trigger the line

uncut viper
slim gorge
#

I am, as always, concerned about malicious mods, but anyone with Harmony can be so.

teal bridge
#

MenuChanged is new? I'm sure I was using it back in July...

velvet narwhal
#

it's not inherently malicious

#

.q 6279

patent lanceBOT
#
#6279

(One of the benefits of content packs is that they're generally stable and rarely break in game updates.
Button: "Let's fix that!")

slim gorge
#

Didn't say it was.

uncut viper
slim gorge
#

I'm concerned about the potential, but it's always there.

teal bridge
#

Ah, right.

uncut viper
#

truthfully its probably more difficult for someone to be malicious with BETAS harmony patching than it would be to just spin up an actual C# mod with direct access to harmony

#

on account of figuring out how the fuck you're supposed to write the json in the first place

#

no other reason /j

slim gorge
#

People have - in the past - patched things in SM to try to fix things, only to break it... requiring me to patch their mod so it would stop patching SM. Not intentionally malicious.

gentle rose
#

buttons you never answered if your warpnpc action can warp the farmer too. I want a speed mod that works by harmony patching the methods for moving the farmer and warping the farmer an additional distance in that direction every single time they’re triggered

teal bridge
velvet narwhal
uncut viper
gentle rose
#

amazing

#

introducing my new mod: If You Really Loved Abigail You Would Download This Virus

uncut viper
#

you can also patch the warping method with BETAS so that you warp a few steps to the right after every warp

#

disclaimer: im not responsible for any infinite loops

slim gorge
inland cedar
#

how to get the list of Items from Expanded Storage chest? somehow obj.Items.Count always 0

slim gorge
#

That's actually why I never added direct APIs.

teal bridge
#

Yeah, and in a major software company this would be a security risk, competitive risk, etc. In game mods it's just... an extra bullet point on the "NOT COMPATIBLE WITH" line.

gentle rose
#

wait I can use betas to make it so that every time the player talks to a specific npc a Womp Womp sound is played

teal bridge
#

Oh, SM is broken because you installed ABC? Well, I warned you ABC wasn't compatible, so whaddaya.

slim gorge
#

Problem is that I refuse to allow SM to have incompatibilities.

teal bridge
#

Well, that cuts more to the heart of the issue, I'd say...

slim gorge
#

I've tried to be as thorough as possible in avoiding them. I care about user experience.

lucid iron
#

hm if i want to netsync a C# random

#

can i just sync some seed and make the random separately

teal bridge
#

I think there are degrees of caring about user experience. I'd probably call myself an 8.5, whereas you are going for the full 10.

#

It's admirable, if a bit quixotic, given the number of mods out there.

slim gorge
#

Given the compatibility that I achieved (up until 1.6), I largely had accomplished it.

lucid iron
#

which kind of compat are u hoping for anyways, i kinda doubt many other mods r touching the stuff SM do for catastrophic incompat

teal bridge
#

Atra apparently managed to burn himself out from compat headaches. Seeing that, I decided to adopt a looser, "best effort" position.

uncut viper
slim gorge
#

I can only think of a tiny handful of mods that were partially incompatible - mostly due to render target usage.

lucid iron
#

just chance for stuff looking bad in some scaling algo

teal bridge
velvet narwhal
slim gorge
#

They were using them to generate composite textures, and then copying them.

#

The issue with render targets is that SM doesn't know if it should resample the sprites being drawn into the target (and resizing the target - complicated), or if it should resize the result.

#

Certainly want to avoid the latter if the RTT is being updated every frame...

gentle rose
teal bridge
#

Yes, I suppose it's hard to guess.

#

This is something that could definitely happen. For example, a render target gets created due to a rotated surface that is also clipped. Then, that target is subsequently scaled in a higher-level transform.

slim gorge
#

Presently, it doesn't draw resampled unless it's being drawn into the main target, IIRC

#

I have to look

uncut viper
teal bridge
#

Or even a low-opacity region being drawn at non-unity scale (or even non-uniform scale).

gentle rose
#

ngl I’ve yet to try transpilers

uncut viper
#

thats a niche of niches, though, since i dont know how else id do it besides just asking for opcodes

#

so good luck getting someone whos comfortable reading and writing IL but using BETAS harmony

#

i wouldnt even mess with that for fun

slim gorge
uncut viper
#

that said i recommend trying transpilers SDVpufferthumbsup

slim gorge
#

It's just texture object after all.

#

It is hard for it to know when to invalidate it, though.

uncut viper
#

(this is also my last free week so my free time for silly projects like that is about to crater again anyway)

teal bridge
#

Well, "not optimal" is better than "broken". Users probably shouldn't expect that scaling up UI would have zero artifacts (otherwise they should use layout rather than transforms).

velvet narwhal
#

it's a /fulljoke because it is 💯 easier to write this transpiler on my own than it would be trying to turn my brain into a balloon animal for BETAS

slim gorge
#

SM can't easily detect presently if you update the target.

teal bridge
#

If the net result is that the artifacts might be different artifacts than what might ordinarily be expected, that's probably alright.

slim gorge
#

And it certainly cannot detect regional invalidations.

rigid oriole
#

i've acquired new transpiler power

teal bridge
#

Yeeeaah, I noticed that too with a generated Texture2D object, sometimes after calling SetData CG just... ignores it.

uncut viper
#

what did you transpile for that

teal bridge
#

Not a render target in that case, but same issue I believe.

rigid oriole
slim gorge
#

If it doesn't, that's a bug.

teal bridge
#

It's definitely a bug.

uncut viper
slim gorge
#

Why are you using SetData with an RTT?

teal bridge
#

I'm not - different issue.

slim gorge
#

Ah.

teal bridge
#

And not using SetData at all after I discovered the bug, I just found a different solution.

#

Well, not using it more than once.

slim gorge
#

When you said "generated", I was confused.

#

If you want, add a bug report with details to the github repo

teal bridge
#

But render targets are definitely used in StardewUI for certain drawing effects including opacity and various combinations of transforms.

calm nebula
teal bridge
#

And typically the way that works is that UI is drawn onto a render target and the render targets is then drawn as a texture onto a larger render target or onto the main surface.

slim gorge
uncut viper
#

am i not allowed to just independently appreciate a transpiler instead of a skipping prefix?

teal bridge
#

Yes, redrawn.

slim gorge
#

You answered before I hit send :/

calm nebula
#

Skipping prefix when it's item specific seems fine to me?

teal bridge
#

Only redrawn once per target per frame, if that's what you mean.

calm nebula
#

Tbh I'm not a huge fan of transpiling switch cases

#

Sure. I can do it

slim gorge
#

Why are you compositing recursively like that?

uncut viper
#

sure, unless someone like me is adding triggers that need to run after certain functions within it

slim gorge
#

That seems odd

calm nebula
#

But the compiler can do wildly different IL

teal bridge
#

Because XNA has some severe limitations in its graphics APIs.

calm nebula
teal bridge
#

If you have a better way to implement CSS opacity in XNA/MonoGame, I'd love to hear it. The blend modes just don't support it.

uncut viper
#

notably, skipping prefixes on tryToReceiveActiveObject break my RelationshipChanged trigger

velvet narwhal
#

(NPC.checkAction too, wasn't it?)

uncut viper
#

it was checkAction for my NpcKissed one yeah

teal bridge
#

And XNA's ScissorRectangle uses global screen coordinates, so you have to use a render target if it's a rotated surface.

calm nebula
#

AtraCore SetRelationship event command would break it too huh

uncut viper
#

probably

wispy gale
ocean sailBOT
#

Log Info: SMAPI 4.1.10 with SDV 1.6.14 build 24317 on Microsoft Windows 11 Home, with 38 C# mods and 42 content packs.
Suggested fixes: One or more mods are out of date, consider updating them

calm nebula
#

(Ignoring the fact that atracore doesn't exist)

velvet narwhal
#

i have yet to check against spacecore's relationship change as well

uncut viper
#

that one is at least not very avoidable i think though

velvet narwhal
#

but i also feel like i don't use relationshipchanged all that often

teal bridge
#

(If your question was very specifically "yeah but why recursive" it's because, well, UI is recursive. It's a tree.)

uncut viper
#

i could technically stick a watcher on the field changed event for the friendship data but in doing so i'd not be able to send any of the other data i want to send with that trigger, which is why i dont do that and instead just transpile everywhere the game otherwise would do the changing

slim gorge
#

the issue with the RTT there would be - unless I fixed it and don't remember - SM doesn't know when the data in a render target texture has changed. It knows when you draw with it (and thus it needs the data, but it also cannot use async fetch methods with render targets - it forces synchronization), but it needs to know when it changes. I may have made it so if it sees it being set as the current render target, it invalidates it.

#

which is pretty brute-force, but workable.

#

the fact that it forces synchronization sucks, though.

teal bridge
#

I do use GraphicsDevice.Clear on the render targets at the beginning of each frame, maybe it understands that?

slim gorge
#

you could always emulate ScissorRectangle in the pixel shader with discard :P

#

that's probably actually faster than recursive composition

serene tapir
teal bridge
slim gorge
slim gorge
#

still not ideal, but it'd need more context (or the driver's understanding) to do much better.

calm nebula
#

The name of the NPC

#

You could use captures for that

uncut viper
#

i dont think i know what captures are

teal bridge
slim gorge
#

I might be able to do something with occlusion queries to figure out regions?

#

CG made no fundamental algorithm changes as far as I know.

calm nebula
uncut viper
#

(but also yeah i had it a bit backwards its not "any of the other data" its "one bit of data (the name) but that data is important")

slim gorge
#

It's disabled a few things which need to be on, but otherwise it's basically the same

uncut viper
#

i also would need to add a watcher on every single friendship object manually, wouldnt i?

calm nebula
#

At some point I'll do a proof of concept, etc

#

Yup.

slim gorge
#

and it added localization (why anyone would ever be using something other than Inland Great Lakes North American English is beyond me)... but heinously uses JSON files instead of TOML.

calm nebula
#

Still, netevent watchers are pretty easy to do. Will you accept PR?

#

(You know. In four months.)

uncut viper
#

i would accept a PR from you

#

as long as you promise not to get mad at me for still not doing the uhh.... Targets... whatever. thing

#

in the csproj

tiny zealot
#

button i also have a skipping prefix on tryToReceiveActiveObject and a relationship-changing event command ._.

#

but my prefix skips when i want to avoid changing the relationship status

slim gorge
uncut viper
#

i didnt want to come across like was judging anyone or mad at anyone that did a skipping prefix there!! i just wanted to appreciate Barley for going the extra mile to transpile it!

teal bridge
#

Here's a silly example. Let's put aside the question of why you'd want a 30° rotated UI, since it's a framework we're talking about. This needs a render target for the scroll region, it's simply not possible to do with scissor rectangles, and even if I were comfortable with patching the pixel shader, I'm pretty sure it would be a one-off solution and very difficult to adapt to a general-purpose framework.

calm nebula
#

I legitimately think the netevent is more compat because you'll get any relationship change, regardless of questionable event command

#

Or, you know, trigger action

tiny zealot
#

oh, i understand. i just want you to know that i probably also break your stuff

slim gorge
#

Is that rotated in the target, or is it being rotated during the draw?

uncut viper
#

ive no doubt it would be more compatible if i knew how to do it. the issue is that i dont know how to do it

calm nebula
#

Trust me if I wrote setrelationship after triggeractions existed I would do that

velvet narwhal
#

i want it to spin

teal bridge
#

It is drawn to a render target in order to do the scissor-rectangling, and then the target is drawn rotated on the parent surface (in this case the main game).

slim gorge
#

the smoothing pattern suggests that the target itself is rotated...

teal bridge
#

The other way around wouldn't work; it's the render target that provides the clipping.

rotund elm
#

side note full 30* rotation of all UIs for april fools would be great SDVpufferchef

drowsy pewter
#

I can't even go to sleep anymore after seeing that.

rigid oriole
teal bridge
#

lol, that seems dramatic.

slim gorge
#

you don't need to patch the pixel shader, mind you. You're drawing a shape that you own. You can bind whatever pixel shader you want.

teal bridge
#

If you prefer, I could have it rotate constantly as you scroll.

slim gorge
#

I don't for exactly those compatibility reasons.

tiny zealot
slim gorge
#

since it's rotated that way, that's why it isn't maintaining the smoothness of verticals

#

from SM's perspective, it's a very large, weird sprite.

rancid temple
rotund elm
#

The fact I cant link to text on this specific word on my mod page might make me lose it lol

velvet narwhal
rancid temple
#

Just enough that you can notice it, but not enough to be 100% sure it's actually crooked

rotund elm
rancid temple
#

All New Gaslight Mod, coming 2025

velvet narwhal
#

now THAT'S what i call intentionally malicious KEK

teal bridge
rotund elm
rancid temple
#

Call it: Even Less Lag

velvet narwhal
#

i had a cursed idea

rotund elm
velvet narwhal
#

can i patch out rain entirely with BETAS and then use ATA to make false rain across all maps

slim gorge
#

I've opted not to use shaders for a few reasons, the biggest being compatibility.

calm nebula
#

What's ata

velvet narwhal
#

arbitrary tilesheet access

#

button's other crime mod

calm nebula
#

Oh

slim gorge
#

AT Attachment, the way hard drives are connected

gentle rose
velvet narwhal
#

i was considering setting the rain animation on alwaysfront

#

because i found out i can grab any tilesheet i damned well pleased and make an animation

uncut viper
#

you like... could. but. itd be hard to make a seamless animation that covered the whole map i think

uncut viper
#

since when one rain drop exited one tile it'd have to seamlessly move to the next tile

rancid temple
#

Could you load your own tilesheet with a 1000x1000 rain animation?

tiny zealot
uncut viper
#

doesnt each tile on the tilesheet need to be individually animated?

velvet narwhal
#

yes

rancid temple
#

It wouldn't be easy

velvet narwhal
#

it wouldn't be fun

rancid temple
#

Or fun

velvet narwhal
#

but i'd definitely call it "No More Rain Lag"

slim gorge
#

SM heavily patches precipitation overall - rain should be faster on it as well :|

uncut viper
slim gorge
#

no.

#

but it does heavily patch precipitation in general.

uncut viper
#

cuz thats what Jam meant

rancid temple
#

In the same spirit as No More Lag, I'm pretty sure it would actually be laggier

slim gorge
#

since how it draws is pretty bad.

teal bridge
velvet narwhal
rotund elm
#

STOP NOW XD

#

please I need this asap

gentle rose
velvet narwhal
#

"No Officer, I'm Not Drunking I'm Driving." mod title

rotund elm
#

Lol

tiny zealot
#

actually if you did a gentle sine wave of like -2 to +2 and back i think i would genuinely love it

slim gorge
#

I'm unsure what 'No More Lag' is/does, particularly

tiny zealot
#

"No, More Lag!"

teal bridge
#

You and everyone else here.

rancid temple
#

It tries to preload stuff and breaks things

uncut viper
#

it literally caused more lag

slim gorge
#

for SM, I explicitly created entirely new draw routines so I could draw all of the precipitation in a single draw call...

#

or as few as possible, at least.

rotund elm
#

just what the user wants : D

tiny zealot
calm nebula
#

Oh my god...

#

Why are we doing this

slim gorge
uncut viper
#

(tbh i was thinking the same as ichor)

calm nebula
#

Why are we doing any of this

velvet narwhal
#

didn't pillow make that already

gentle rose
#

from my understanding, no more lag is incompatible with common sense

rotund elm
uncut viper
#

a little bit of rocking back and forth, with very subtle scaling bigger and smaller a lil bit

gentle rose
calm nebula
#

I don't like it when menus bob around

teal bridge
calm nebula
#

Why.

slim gorge
#

I mean, if you want, I can add API calls for SM so you can use its precipitation system

#

then you can make whatever fancy rain you want to

gentle rose
#

I have never seen atra (or anyone here) hate an idea this viscerally

velvet narwhal
#

you must not be around when i'm making c# mods then

tiny zealot
#

... have you seen atra complain about the pathfinder

teal bridge
# calm nebula Why.

Honestly, I was only doing it to illustrate the rationale to Ameise. I don't have an actual mod UI that does that.

slim gorge
#

which is shocking as I've done some terrible things.

velvet narwhal
#

atra hates everything i make SDVpuffersmile

gentle rose
velvet narwhal
gentle rose
#

atra I still want to see your knitting patterns

royal stump
#

(someone I know gets motion sickness really intensely from animations like that, so I get it SDVpufferdizzy)

calm nebula
teal bridge
#

Anyway, if there's some fancier way to do it with a custom pixel shader that plays nice with XNA's matrix transforms and won't break compatibility in other places, then I can't say I know what it is.

calm nebula
#

Like, if someone else is playing a first person game on the TV I leave the room

royal stump
#

I found out when we tried to play a mario kart together and, uh, it was brief

gentle rose
calm nebula
#

Portal is the worst offender

royal stump
#

that one indie precursor to portal gave me vertigo pretty reliably, though I'm otherwise usually fine

gentle rose
#

portal is a fun game but it’s just such an unpleasant experience bc of the nausea SDVpufferchickcry

slim gorge
#

old snow:

teal bridge
#

Popcorn snow?

brittle pasture
rancid temple
#

Pre-yellowed

gentle rose
#

puffersnow SBVLmaoDog

slim gorge
#

and before that:

gentle rose
#

where are the sprinklers from btw?

slim gorge
#

directional sprinklers, I think? This is from 2022,.

teal bridge
#

And that would be... cursorsnow.

rancid temple
#

There should be at least one up to date directional sprinkler mod currently

calm nebula
slim gorge
#

what bothers me is that nobody has made a Conway's Game of Life crop.

rancid temple
#

I think atra can still be a nerd and not a gamer SMCKekLmaoDog

calm nebula
#

This is what I listen to at work

lucid iron
#

would that propagante once a day or every 10min

slim gorge
#

10 min

royal stump
#

despite having played with a game of life sim for hours, I always ignore mods that try to add them SDVpuffersquint never feels worth it

slim gorge
gentle rose
#

true nerds have already listened to it during the 1st edition atra, geez

royal stump
#

(mostly thinking of a specific minecraft one, though, lots of restrictions)

calm nebula
#

Life sim?

slim gorge
#

it's game of life on a cube.

royal stump
#

a Conway's Game of Life simulator, I mean

slim gorge
#

specifically done entirely using Unreal materials/blueprints, no custom shaders

gentle rose
#

((game of life) sim), not (game of (life sim)) I think

slim gorge
#

basically, doing it as hard as I can.

#

I mean, I also make life sims...

#

I'm fond of evolutionary bytecode

royal stump
#

ig for context, there's a popular minecraft mod that adds weird plants and reasons to grow them for power generation;
the endgame one grows in Conway patterns, but it's such a hassle and has lifespan limits etc, so everyone I knew ignored it SDVkrobusgiggle

#

despite the dev nerfing other stuff as encouragement

gentle rose
#

my only real graphics-related project was using 2d desmos to display some 3d wireframes lmao

calm nebula
#

Look, Minecraft is Java blocks game to me

uncut viper
#

esca is vazkii posting

slim gorge
royal stump
#

sorry if this is a known thing, I've never been to an actual MC forum SDVpuffersquee

#

just dragged into friends' servers like 4 times

uncut viper
#

oh i have no idea how known to everyone else the conway flower is i just know what you're talking about

calm nebula
#

(As per usual, the atra grew up under a rock and now lives under a pile of wool.)

gentle rose
#

I’ve played like 10 minutes of minecraft in my life and it was on a tablet iirc so I, do not know what we’re talking about

#

I do know wool though SCyes piles of wool I understand

slim gorge
#

I ran a local server for my friends for a while

gentle rose
#

are you a Wool Nerd or a Game Nerd (the two genders of nerd)

slim gorge
#

I wish that Java wasn't terrible.

calm nebula
#

There can be plenty of nerd types