#making-mods-general

1 messages Β· Page 250 of 1

latent mauve
#

The dialogue should be in Strings though, I think?

rancid musk
uncut viper
#

well presumably the person wanting to permanently remove tools does not want to place it elsewhere as the point was to remove it SDVpuffersquee

latent mauve
#

(I've been slowly duplicating all the special tiles in the Mayor's house to the community center for my Useable Community Center mod)

hot gale
reef kiln
#

The biggest issue with removing the lost and found is that after you inevitably give them back to tools through whatever method that is going to happen. You will want to add it back into the game, in case they lose the new tools, right.

latent mauve
#

True, was just implying (or trying to, I'm tired so might not be making much sense) that the String isn't hardcoded

uncut viper
#

no user facing string is hardcoded as far as I know? they all need to be translatable so

#

giving the tools back would be an issue yeah, you'd have duplicates in the lost and found

latent mauve
#

I probably misunderstood when you said you didn't know if the dialogue thing was hardcoded, is all

#

And sleepy brain went "the dialogue is in strings"

uncut viper
#

what I meant was like
"Is there a tile data for this, or is there just some code in the manor house that says if you click on x4 y9, open the dialogue"

latent mauve
#

Ah

#

Yeah, then sleepy brain latched onto the wrong bit

uncut viper
#

happens to us all

#

source: am currently sleepy

granite crescent
#

im not a modder but im trying to edit/alter a mods forage spawns, can i post in this chat for help?

reef kiln
granite crescent
#

nice, smapi gave my this piece of info to what i did wrong, anyone know what it means ; Technical details: After parsing a value an unexpected character was encountered: ". Path 'Forage_Spawn_Settings.Areas[1]', line 159, position 4.

tidal stone
#

ok when i harvest my chamnomile its a 🚫 object can i share my content json and someone see if they can spot what i did wrong?

lucid iron
#

Invalid json

granite crescent
#

ill post line 159 can u tell my whats wrong with it

#

}

granite crescent
#

" }"

reef kiln
granite crescent
#

oh my bad

#

ok

#

i copied the ore spawn ratio's from the quarry section into the forage spawn settings

#

before when i replaced normal forage with eggs everything worked fine

warm imp
uncut viper
#

forgot a ], actually

#

didnt close the "Areas" list

granite crescent
#

do i replace } with a ] ?

uncut viper
#

no. add a ],

warm imp
#

ah i didn't realize it was the end of that group as well

granite crescent
#

ok

royal sphinx
#

Thanks! It worked

uncut viper
#
      }
    ],
    "PercentExtraSpawnsPerForagingLevel": 0,
tidal stone
#

ty ty selph

#

i am a bit silly sometimes

brittle pasture
#

(whoops lagged and I accidentally deleted the msg)
just for archival purposes: I think you need to capitalize the C in the crop's harvest item Id

tidal stone
brittle pasture
#

a map patch to remove it should work?

reef kiln
#

What is the error about MoveEntries it looks right to me

uncut viper
#

moveentries error is likely a dependency issue

granite crescent
#

i have a new error about another } bracket, "Invalid property identifier character: {. Path 'Forage_Spawn_Settings', line 202, position 6."

uncut viper
#

it would be easier to find these json errors if you use a text editor/IDE that actually finds them for you. VSCode should tell you about these things ahead of time

#

otherwise your json is long enough and indentation off enough that its just kind of a pain to match braces

granite crescent
#

oh ok thx ill download it now

tidal stone
#

VS code is AMAZING

#

i think that link is found under...

#

!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.

tidal stone
#

there we go

royal sphinx
calm nebula
#

You can remove the contents of the starting gift box yes

#

....I guess you can't, but you can replace it with something useless like a piece of trash

uncut viper
#

where is the starting gift box data stored

calm nebula
#

But I'm now starting to wonder the gameplay point of this.

#

Map property on farm

uncut viper
#

you cant just remove that?

royal sphinx
#

I want to remove all farming from game Cat_Sitting
I start to remove tools and seeds

calm nebula
reef kiln
calm nebula
#

So you could replace it with something useless yes

uncut viper
#

does the game not let you just remove the property entirely

#

is that the same as empty

calm nebula
#

Empty defaults to parsnip seeds

royal sphinx
uncut viper
#

ive never touched a farm map

rancid musk
tidal stone
#

oooh

#

instapond

uncut viper
#

oh, you can move the FarmHouseStarterSeedsPosition to like, -100, -100

#

i think?

royal sphinx
#

how

tidal stone
#

Woohoo first plant in sdv i made woohoooo

uncut viper
#

just set that map property to those coordinates i suppose

#

its somewhere on the maps modding wiki page im sure

royal sphinx
#

okay, will search thx

reef kiln
rancid musk
#

I'm honestly very surprised at how little effort it has taken to implement this, lol

#

I don't even have any transpilers, just a handful of postfixes.

reef kiln
#

Thinking about it, with the right patches, you could do the opposite and fill in the ponds on the farm.

stone crypt
#

@ivory plume I am seeing that the 1.6 command for the farmer's gender in the dialogue "${male^female^non-binary}$" doesn't work if the player changed the farmer's gender with the Shrine of Illusions. The older dialogue token "^" still works though.

royal sphinx
ivory plume
stone crypt
# ivory plume Are you sure? Both cases just check `player.Gender`, so I don't see any reason t...

I saw it happening in this video: https://youtu.be/eBKhADhPuiI?si=Kg6Jb_cCM4pUhJlP let me get you the timestamps

#stardewvalley #mod #haley

This video is a continuation of a mod I have played before. It adds a pregnant Haley sprite and includes new lines and events, created by cptnmatruz. The previous video was only for a first child, so this part 2 is all about the second pregnancy

Download link
https://www.nexusmods.com/stardewvalley/mods/17206

And do...

β–Ά Play video
#

1:10:41

ivory plume
#

Can you post the code for that line?

faint ingot
#

Does SVE Morris ("MorrisTod") permanently go away if you complete the community center?

reef kiln
stone crypt
#

I did test my events using both a female and male farmers

ivory plume
#

Do you have an affected save which reproduces the issue (e.g. if you run the event using debug ebi <event id> in the SMAPI console window)?

tidal stone
#

cana noyone point me towards how i do the color tint overlay in content patcher for my foxglove flower D:

stone crypt
#

@ivory plume I'll try that when I get home, but for additional reference, at the 9:57 timestamp it does work, and this is the string: "Event.17206016.Haley.07": "Come on sweetie, your daddy is waiting for us at home.$0^Come on sweetie, your mommy @ is waiting for us at home.$0"

ivory plume
tidal stone
#

ooh so if i do ColorOverlayFromNextIndex and put in the say hexcodes it would pull from that?

#

or wait

#

nvm i misread

#

jfakfjsldkf

#

How do you get the colors to randomize like do i set to field to "TintColors": Random",

#

or is that where i put the colorm format

faint ingot
tidal stone
gentle rose
#

which is a good thing

#

odds are that sve removes him by just moving him to a warp room permanently or something

faint ingot
#

That's what I was expecting, but when I tried to reference him after completing the cc it said he didn't exist

#

the only event reference I see in his character file for SVE is "CanSocialize": "!PLAYER_HAS_SEEN_EVENT Any 191393",

reef kiln
reef kiln
#

Or see if smapi says he does not exist.

faint ingot
#

It looks like the marry Morris mod flat out rewrites his character data, I guess I'll try that

reef kiln
#

Interesting, you could ask Flash how they did it if you are comfortable pinging them. They are very helpful in my experience.

calm nebula
#

No SVE removes him is

#

In the c#

faint ingot
#

that's what I was wondering

calm nebula
#

Iirc Marry Morris had to patch SVE to undo that

rose path
#

I'm trying to convert a CP mod into an AT mod but i'm getting an error in my json file

tidal stone
#

dang so my asssumption was wrong because it wont let me put in hexcodes lmao

#

has anyone done the multiple colors of a crop thing before

ornate trellis
tidal stone
#

Ooohhhh

#

then how do i set the colors i want it to pull from πŸ€”

reef kiln
tidal stone
#

ok uwu_nod

ornate trellis
#

cornucopia only has ColorOverlayFromNextIndex in the objects json too

#

theres seeds with color tints but not sure if its what you need or not

#

because for example the blue mist is set to true but has no tint in the seeds json so i doubt it

reef kiln
#

From the mod page it seems like the roses have an option to be a bunch of colors. Not sure how it is done though.

ornate trellis
#

or maybe it was an overlook, hmm

brittle pasture
#

look at vanilla flowers

royal sphinx
#

Can we spawn chest with loot using CP?

brittle pasture
#

should be possible with FTM

reef kiln
ornate trellis
#

so it is seeds afterall

#

heres a conucopia example

"Cornucopia_RoseSeeds": {
                    "Seasons": [ "spring", "summer", "fall" ],
                    "DaysInPhase": [ 2, 3, 4, 3 ],
                    "HarvestItemId": "Cornucopia_Rose",
                    "Texture": "Cornucopia.MoreFlowers/Crops",
                    "SpriteIndex": 17,
                    "TintColors": [ "#f52536", "#fff8f8", "#737391", "#f03888" ]
                }
winged sedge
royal sphinx
tidal stone
ornate trellis
#

no clue, honestly cuz it confusesme i never tried making a tinted crop

reef kiln
tidal stone
#

like when you pick a flower it stays that coolor im worried that if i dont sync it somehow ill pick a flower and itll be a random color not what was grown

winged sedge
#

so i could try and wait but...

ornate trellis
#

maybe just try out tint for now and see if your worries are warranted?

deep cypress
#

The $v dialogue command for starting an event... I see that it says it has to be at the start of the dialogue, with no previous commands. Does this therefore mean it is not possible to work this into a question?

brittle pasture
tidal stone
#

ok

deep cypress
#

Basically, I am wanting and event to happen (or not) based on the answer to a question.

dusk mulch
#

oml that feeling when your code works just right first try

reef kiln
reef kiln
# winged sedge so i could try and wait but...

But if you want to make that mod. you will need to do it from scratch. The JA converter mod does not work at the moment. So the code has to be re typed to work for CP. But it is possible and pretty easy to do.

winged sedge
winged sedge
reef kiln
#

One sec. Let me check. I don't have salmon berries specifically but I do use that mod.

winged sedge
#

ok

#

ya it only produces during the season and their picking times

tawny ore
tidal stone
#

weird thing cp is saying its ignoring my mod but i think my mod is working regardless, i dunno what thatsd about

tawny ore
#

It logs every check, like it'll say if it fails because of one of the conditions

winged sedge
tawny ore
#

Oh in CustomBush\config.json

winged sedge
#

oh ok

tawny ore
#

CustomBush doesn't have config options other than that, and it's only used for debugging purposes

winged sedge
tawny ore
#

You can save that file to there

winged sedge
#

so i just put it in this location adn then what?

reef kiln
winged sedge
#

i want a yr round producing one

tawny ore
#

FYI - That's how the content pack author setup the bushes, it has nothing to do with the framework

winged sedge
#

ah ok

reef kiln
#

The easiest thing would be to just change the code in that mod. if you dont mind doing that. otherwise you will need write your own.

winged sedge
#

abnd what do i change it to?

tidal stone
#

aw boo
did something wrong

#

im trying to grab the mask i made next to it thats white for tinting

reef kiln
#

if you want every day you would just change it to 1, 2, 3, ect...

#

up to 28

brittle pasture
deep cypress
#

Ok, what's funny is a c# deep dive seems to reveal that maybe $v dialogue command is no longer used by the game? Or never was?

brisk wedge
#

Do I need to follow a specific order for arguments when patching in harmony? Like I want to patch a function with definition int FuncA(string input1, float input2) on some Object. I want to change the result, have access to string input1 and float input2, and have access to the object this function belongs to so I can access its other fields, from what I can tell, I should be doing something like bool FuncA_prefix(string input1, float input2, ref int __result, Object __instance) but I've been getting an error

#
Mod crashed on entry and might not work correctly. Technical details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> ArgumentException: Bad label content in ILGenerator.
   at System.Reflection.Emit.ILGenerator.GetLabelPos(Label lbl)
   at System.Reflection.Emit.ILGenerator.BakeByteArray()
   at System.Reflection.Emit.DynamicResolver..ctor(DynamicILGenerator ilGenerator)
   at System.Reflection.Emit.DynamicILGenerator.GetCallableMethod(RuntimeModule module, DynamicMethod dm)
   at System.Reflection.Emit.DynamicMethod.GetMethodDescriptor()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at MonoMod.RuntimeDetour.Platforms.DetourRuntimeNETPlatform.GetMethodHandle(MethodBase method)
   at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.GetIdentifiable(MethodBase method)
   at MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform.Pin(MethodBase method)
   at MonoMod.RuntimeDetour.DetourHelper.Pin[T](T method)
   at HarmonyLib.MethodPatcher.CreateReplacement(Dictionary`2& finalInstructions)
   at HarmonyLib.PatchFunctions.UpdateWrapper(MethodBase original, PatchInfo patchInfo)
   at HarmonyLib.PatchProcessor.Patch()
tidal stone
#

do i have to attach itdang it i panic closed my krita folder and accidentally overwrote the png

#

im gonna cry

reef kiln
#

Wont matter as they are in the green house

brittle pasture
#

@tawny ore since you're here I have a(nother) minor request/bug report for CB: Can you change this line from SEASON to LOCATION_SEASON Target? it's to account for custom location season overrides (like wildflour's 4 seasons farm map). thanks!

winged sedge
#

so like this?

tidal stone
#

oh thank godoness i have a backup i saved

brittle pasture
#

(I tested with the map and the hops bushes when planted in the "eternal summer" maps only produce if the global season is summer)

#

(whoops, should be Target and not Here)

tidal stone
#

here's my png

reef kiln
tawny ore
uncut viper
deep cypress
#

$v isn't in Dialogue.parseDialogueString, so Imma call the code for it. Instead, I will head off to some dark hole of witchcraft to conjure a means to start an event at will...

winged sedge
#

it worked!! Yay!!

calm nebula
tidal stone
winged sedge
#

is there a way to make it only produce base quality berries? like no stars

brittle pasture
#

you can edit the item query to remove the quality/quality modifiers field

winged sedge
#

where is that located

#

found it

brittle pasture
winged sedge
#

do i just remove the whole line? or set all numbers to 0?

reef kiln
tidal stone
#

i cant also post my content json if need be?

dusk mulch
brittle pasture
#

When is a content patcher thing, it's not part of the entry

brisk wedge
brisk wedge
uncut viper
#

it would be better to show your actual code then instead of example code

brittle pasture
winged sedge
#

can i make the bushes walk throughable?

brittle pasture
#

alternatively you can make two blocks that edit Data/Shops, only applying if difficulty is true and one if it is false

reef kiln
winged sedge
#

k

brittle pasture
#

also "ColorOverlayFromNextIndex": "true", must be part of the Data/Objects definition, not the Data/Crops one

dusk mulch
#

Didn't work. You mean like this right?

                            "Id": "{{ModId}}_Salad",
                            "ItemId": "(O)196",
                            "When": {
                            "Condition": "{{Difficulty |contains=Medium}}"
                            }
brittle pasture
#

no, remove the "When" block around it

#

put the line directly below ItemId

#

"When" is a Content Patcher exclusive thing, it has to be on the same level as "Entries"

#

not inside it

dusk mulch
#

!

#

Thank you!

#

It worked!

deep cypress
#

Sorry, brain clouded... NPC.Name is the internal name? Like, MutantJeanGray?

reef kiln
tidal stone
#

ty ty selph

brittle pasture
#

I think it only matters for seasonal tilesheets?

calm nebula
#

Well, location season on GI is summer

tidal stone
#

ok new problemo

calm nebula
#

That said....bad label content?

#

That should only happen with a transpiler

tidal stone
#

actually let me try something

uncut viper
rancid musk
#

I have gone mad with power.

#

I... think this might be ready forother people to play around with.

tidal stone
#

how do i set the mask of the flower to be a different color on the top and bottom of the mask

brittle pasture
#

you can't. as mentioned some time ago you can only have one extra color per object

uncut viper
tidal stone
#

ooh ok

calm nebula
tidal stone
#

i thought i could set an opacity thing somehow

#

too bad

brittle pasture
#

you can have the base color be green

tidal stone
#

ill adjust the colors more then

rancid musk
brittle pasture
#

and if you want a gradient you gradually shift the opacity of the mask

brisk wedge
calm nebula
rancid musk
#

You technically can design a building to be overlappable, and it just... overwrites part of the map.

#

If you have more than one building doing the same area, it's probably based on the order the buildings were built?

uncut viper
#

if they overlap though, does moving one not mess up the one its overlapped with?

rancid musk
#

But you should just Not Do That

uncut viper
#

could be nice to have modular pond pieces, though

rancid musk
#

In this case too I am using additional placement tiles to make a nice, accurate layout for the pond to make placement accurate.

tawny ore
calm nebula
#

Terraforming!!!

#

We love you, khloe

lucid iron
#

Now that there r Pond what about hill

lucid iron
#

Buildable quarries

rancid musk
#

I mean you could make anything with this that you could make with a map override.

lucid iron
#

Quarries are map props tho it might be a bit jank think

rancid musk
#

I think my phone just freaked out and did an app command πŸ€” but I have no idea what
In retrospect I think I accidentally told it to quote chu√e when my phone freaked out. Lovely, lol. Could be worse.

reef kiln
#

I love it. Will it cause lag issues if you build a ton. Probably not, but just wondering.

tawny ore
#

It'd be neat if it could support arbitrary shapes, and you could tile-by-tile define the pond/land.

lucid iron
#

Pond painter maffs

tidal stone
#

ok so i managed to pick the foxglove in a vsariety of colors but idk what i did but the anim for pickign the plant is like a seedbag LMAO
time to fix that XD

things to do
-adjust colors

  • fix animation

ty ty for all the help so far

rancid musk
#

As for lag, I don't... think it will? Mostly it just:

  1. Iterates over buildings in GameLocation.MakeMapModifications() checking for buildings with map overrides to apply, and applies them if needed.
  2. Transpiles Building.draw() so you can have it not draw the main layer.
  3. Postfixes Building.doesTileHaveProperty() so that it actually picks up tile properties "under" your building if there's a map override.
#

The sketchiest one there would be doesTileHaveProperty() but I am also caching the laggiest part, which is getting the dimensions of the building's map override.

faint ingot
# reef kiln Interesting, you could ask Flash how they did it if you are comfortable pinging ...

I did reach out to them and will see if they respond but I'm guessing the method is this since they literally put this one line of code as plaintext in the game (maybe just tired of people asking about this SDVpufferwaaah ): "String.851": "It's some Stardew Valley Expanded source code:^^private void OnDayStarted(object sender, DayStartedEventArgs e)^if(MasterPlayer.mailReceived.Contains(\"ccIsComplete\") || Game1.MasterPlayer.hasCompletedCommunityCenter())^Game1.removeCharacterFromItsLocation(\"MorrisTod\");^^private void OnSaveLoaded(object sender, SaveLoadedEventArgs e)^^if (!Context.IsWorldReady) return;^^Multiplayer multiplayer > Reflection.GetField-Multiplayer-(typeof(Game1), \"multiplayer\").GetValue();^^FarmAnimal whiteCow1 > new FarmAnimal(\"White Cow\", multiplayer.getNewID(), -1L)^^Position > new Vector2(96 Game1.tileSize, 19 Game1.tileSize)^^(Game1.getLocationFromName(\"Forest\") as Forest).marniesLivestock.Add(whiteCow1);",

lucid iron
#

So ur saying i can use draw layers

rigid musk
calm nebula
#

That's an inside joke from him

ornate trellis
rancid musk
#

So far I've got five custom fields (which are prefixed with a unique id, not included here for brevity):

  • Map: The name of the map to load for override, does nothing if this is not set
  • Source A source rectangle to use (default is 0,0 and width/height of Map)
  • Target A target rectangle (of which only the X and Y coordinates are used, which are relative to the building coordinates)
  • Construction When set the map override will apply while the building is under construction, default is not
  • DisableDraw When set, causes the building's default layer to not be drawn
reef kiln
faint ingot
#

Hello I'd like to put your character in JAIL could you please help me? IDK I could be the first : ) we'll see

rancid musk
#

Oh, asset invalidation. I should definitely be watching for the maps to be invalidated so I can reapply things.

lucid iron
#

What are you trying to do

reef kiln
granite crescent
#

i tried copy pasting code to create a rarity system for forage cave spawns but i probs shouldnt since i have no coding knowledge, am i allowed to ask if anyone could create a rarity system for me (for reference, lines 102 - 111)? i will post the smapi link, and if im breaking rules ill delete my message asap

faint ingot
#

Actually he did just respond and linked to the source code, and said it can't be done with just CP

#

and now I see how the marry morris mod gets around it

lucid iron
faint ingot
#

Since he didn't offer to put in an exception for me as well I guess he prefers that I not πŸ˜›

granite crescent
#

yes

lucid iron
#

Or a MEEP farm animal morris

#

If you do the second one you can toss him

faint ingot
lucid iron
#

You can ofc patch sve if you want him to not be yeeted

#

A bit rude but you could

tidal stone
#

ok does anyone know why im picking seeds int he animation? i have the harvest item set to the flower

lucid iron
#

Are these freshly planted

#

After updating data

#

Btw cjb cheats has instant plant growth

tidal stone
#

oh it does

#

thats sueful

#

ty

#

and i planted them as seeds then waited like 11 days and they grew and when i went to pick them i got the seeds animation but the plant in my inv

lucid iron
#

Yeah like, did you change data before planting them

tidal stone
#

oh i dont think so

lucid iron
#

Might be stored on the plant instance then

#

I would just try again

brave fable
# granite crescent }

i just want to take the time to say, judgement-free, this is the funniest 'help wanted' post i've seen yet
some people paste the whole log in chat, some paste a single line. i've never seen someone ask for help with a single character

lucid iron
granite crescent
tawny ore
sour sleet
#

Is it possible to create a moderately sized expansion with CP only?

tawny ore
#

A lot is possible with CP alone, you can do almost anything that is possible in the vanilla game

final arch
#

SVE and RSV are mostly CP and FTM

lucid iron
dusk mulch
#

well i just uploaded new versions for my mods

sour sleet
#

Oh that's reassuring

brave fable
#

you only need C# for unique or otherwise hardcoded behaviours, there's a whole world you can do with CP alone

sour sleet
#

I'm thinking of doing an expansion SDVpufferwow

lucid iron
#

Well you should just do it

tawny ore
#

Theoretically, you could make a mod that removes almost everything from the game, and then adds it back as a CP mod. So most of Stardew Valley's content could be represented as a Content Pack for Content Patcher.

lucid iron
#

If u bump into weird hardcoded thing kidnap a C# from here and make them fix it

sour sleet
#

Thanks, I've got a lot of ideas about what I want to include

#

Kidnap lmao

brave fable
#

another willing victim

dusk mulch
lucid iron
#

Blueberry is ur expansion more C# than data yet

granite crescent
sour sleet
#

Ooo are you doing an expansion Blueberry?

brave fable
#

no 😌

lucid iron
#

Had been since the dawn of time

#

Dokkan im very excited for it

#

Long artemis...

brave fable
#

it's only 'more data' because of all the stupid unique features with a dozen c# classes between them that need me to feed them data

deep cypress
#

Can you harmony patch a method in a subclass, even if it is not mentioned in the subclass? Like, can I patch Beach.answerDialogue? Or do I have to patch GameLocation.answerDIalogue?

brave fable
#

it's eternally cursed to have someone, maybe concernedape, release whatever feature i just happened to be working on at the time to wondrous applause

lucid iron
#

You have to patch GameLocation

brave fable
#

so i'll keep picking it up from time to time so that someone somewhere out there gets their big break lol

tender bloom
#

You could release just the lanterns

deep cypress
#

Thanks so much!

lucid iron
#

I was impressed with elaborate dialogue to buy cookie DokkanStare

#

I also like the bg draw

#

Is that game1.background

brave fable
#

oh that reminds me, it'd be fun to make fortune cookies. since she's a fortune teller

#

how has noone made a food with an oneaten action that pops up a random message

lucid iron
#

I feel like u can glue something together with spacecore+betas

brave fable
#

yeah the whole cliff and landscape is Game1.background = new class : Background

calm nebula
#

(Eh, I would say vanilla game has a lot of very interesting hardcoded stuff)

brave fable
#

i'm not sure how the summit does it in the base game, but i sort of had to make new clouds that fade out when they cross the cliff so there weren't cloud shadows on the sky

#

did you know that clouds are critters like squirrels? i didn't.

lucid iron
#

Terror

calm nebula
#

Yeah@

#

They are critters

lucid iron
#

I was thinking of data-ing bg somehow but i am confused about all the chunk stuff

#

What do they mean what even use them

brave fable
#

really you can make anything a critter, it's a real helpful stub class to just have some clientside sprites that layer and update and all that for you

calm nebula
#

Critters is your reasonable light weight not serialized or mp synced way of doing little animations

brave fable
#

i forget if the lanterns are still Critter subclasses or not, cool little guys

lucid iron
#

Don't they use AnimatedSprite tho

calm nebula
#

Isn't that chunk stuff mostly for the nightmare background

lucid iron
#

Which would be net sync

calm nebula
#

Tbh background isn't necessarily hard to dataify other than the whole lighting engine problem

brave fable
#

well the list of critters isnt netsynced so they cant possibly sync the sprite for each critter

reef kiln
lucid iron
#

The issue is more like

#

I dunno which of these knobs to expose

#

Or if i should just shrug and subclass Background to do whatever i want

brave fable
#

probably just subclass it honestly. but also if you have a custom-typed location you're working on you can just override where.drawBackground directly

#

not that i think many people do

hot gale
#

I wouldnt just go around exposing knobs

lucid iron
#

That would defeat the point of framework mod

#

The thing i did manage is forest lighting and light rays

#

Mostly just "take the code and glue it on GameLocation"

brave fable
#

going after sewer swamp gas next?

lucid iron
#

I guess i could, and bath steam

hot gale
#

Best part of releasing a mod is discovering all the bugs you didn't know it had

lucid iron
#

Although i think i need to think more about the whole setup

#

Rn it is just "tag this map and get these mostly predefined light rays drawn for u"

#

It's got a mysterious feeling i think

calm nebula
#

(The lighting engine problem is that if you take a ring to the edge of a map with a background, it somehow casts a light on the background. Try it on island north)

brave fable
#

yeah the game has no way of knowing that your background is meant to represent something in the far distance towards the horizon, there's nothing to try and crop or mask things 'sensibly'

#

hence silly clouds

dusk mulch
#

Bruh. There are 2 colors on the secret note direction sheets, 1 HTML COLOR CODE DIGIT APART

#

Red is ffe6b8 and green is ffe6b9

deep cypress
#

That's awesemely hilarious!

#

YES!!! My thingie I was working on works!!! The sacred code is patched! U can now go for a swim with Lantana (after you unlock her probably four or so heart event, or somehting)!

gentle rose
dusk mulch
#

Like the one at kent and jodi’s house

tidal stone
#

when i picka flower it shows a random texture it seems off the object sheet

#

im trying to locate whats causing that

dusk mulch
#

like in game or in the jason

#

jason

#

gain

#

..

#

json

#

there

tidal stone
#

when i pick a flower to ahrvest it in the game it does an animation showing me grabbing a random seedbag off my objects sprite sheet and then gives me the flower

#

ok i found a line that i had set to false event hough its default is false so im seeing if having that there did it

reef kiln
#

It is still doing that? So it is not the same seed bag each time, but a different random one.

tidal stone
#

yea im editing my json further

#

yup still doing it lol now let me set this to true and maybe that will fix it?

#

😭 maybe i have the sprite set up wrong

#

i think i fixed it

#

time to test

#

no i just need to get the colors right 😭

#

*now

silk swan
#

I'm editing a farm map for personal use to get rid of the fences in the map. I saved the map file with Tiled after editing it. I was told before I need to delete the image source part that has the path in it and just keep the name of the tilesheet there.

So intead of
<image source="../../../../../../Gaming/Steam/steamapps/common/Stardew Valley/Content (unpacked)/Maps/spring_outdoorsTileSheet"

it'd be something else, but I don't know how much of that to delete

lucid iron
#

!tilesheetclimbing

ocean sailBOT
#

When creating or editing maps in Tiled, one common error is tilesheet climbing, marked by red text containing "invalid tilesheet path '../../..'. This is caused by SMAPI not being able to find the tilesheets needed by the map file. To prevent this error, make sure that you have a copy of all necessary tilesheets in the folder containing your WIP tmx file. Copies of vanilla tilesheets can later be deleted, but must be present while working on your map.

If you get this error with a completed map, an easy way to fix it is to open your tmx file in VS Code or a similar text editor, find all of the places with <image source=, and remove the filepaths to so that only the tilesheet names remain. For example, if the code says <image source="Content (unpacked)/Maps/townInterior_2" width="512" height="64"/>, change it to just <image source="townInterior_2" width="512" height="64"/>.

silk swan
#

Thank you!

lucid iron
#

for your case you want spring_outdoorsTileSheet

rigid musk
#

For recipes, can you use specific produce items? I.e. cauliflower pickles specifically

lucid iron
#

the tile sheet is relative to Maps

#

maybe with spacecore recipes?

#

if you could do 2 tags at once think

brittle pasture
#

yea need spacecore

rancid musk
#

You can set spacecore to require all context tags.

lucid iron
#

the nothing donut

rigid musk
#

everything bagel mod but it requires all types of jam, pickles, wine, etc...

#

(there's already an everything bagel mod, but im saying make it WORSE)

brittle pasture
#

the ultimate pickle jar

faint ingot
#

can you use a dynamic token inside a when block like this? or what is the syntax "When":{ "myToken":"aCertainValue", }

lucid iron
#

yea tjeu r tokens

#

hmmm what if item query recipes

#

consider.

rigid musk
#

yeh that's how I did dialogue changes for Qi's divorced dailogue - using when conditions + dynamic tokens

#

Chu what does that mean

lucid iron
#

item query recipes?

#

so instead of context tag i let u do FLAVORED_ITEM whatever to pick valid ingredient

brittle pasture
#

that's a thing in Better Crafting

lucid iron
#

can u use it to cook then

#

for the thing lily wants

rigid musk
#

I just had the random idea to make peanut butter and jelly sandwiches of a bunch of different types

brittle pasture
#

yes, crafting is just cooking with a fancier name
it does require you to add a dependency on BC, and doesn't work with LOC

rigid musk
#

idk why i just thought itd be fun

rancid musk
lucid iron
brittle pasture
#

I never released that mod however, and will never will, so don't let it stop you

lucid iron
#

im glad someone already did it since clickCraftingRecipe scary

rigid musk
brittle pasture
#

old screenshot

rancid musk
rigid musk
#

It'd be cool if you did release that though pondering

#

soybeans butter and jalapeno jelly sounds horrifying

brittle pasture
tawny ore
#

That actually sounds yummy to me. I'm a fan of sweet+spicy foods.

brittle pasture
lucid iron
#

selph i actually thought u removed the feature already kyuuchan_run

rancid musk
#

I think at that point I'd want to set up Better Crafting's recipe overrides to affect vanilla CraftingRecipes, so the changes affect non-BC crafting.

#

That could be tricky, with how I've set up ingredients. πŸ€”

#

Will have to consider.

lucid iron
#

was it the one which explodes phones or naw

brittle pasture
lucid iron
#

oh thats (un)fortunate you are in the clickCraftingRecipe trenches now

rigid oriole
brittle pasture
#

tbh when I learned that LOC doesn't work with any other cooking overhauls (SpaceCore ingredients mainly) that makes my decision to keep it easier

rancid musk
brittle pasture
#

like LOC is 10x bigger than my mod, and they are still in the clickCraftingRecipe trenches

rigid oriole
#

Does better crafting support an event for "i just cooked something, here's the ingredients that went into it"?

tawny ore
#

I feel like there aren't enough cooking mods. There should be a Better Cooking.

rigid oriole
#

i'm actually deciding to maintain the mod I wrote since you offered a PR and forced me to look at it again lol

lucid iron
#

cooking mama

rigid oriole
#

maybe i'll finally fix the "you introduced 200ms of lag every automate tick" compat from 8 months ago

#

one more question for Khloe... does better game menu support / plan to support custom tabs on the game menu page? I thought I saw a SS of you working on it a little while ago, but I'm poking around the repo and can't find the API

rancid musk
#

(Also if you do enter the clickCraftingRecipe trenches please make sure to coordinate with me to ensure Better Crafting support.)

brittle pasture
#

anyway here's a list of clickCraftingRecipe trench diggers and whether they work together:

  • SpaceCore (works with YACS and BC, and other BC users)
  • Yet Another Cooking Skill (SC and BC, and other BC users)
  • Love of Cooking (only with itself, but can use BC's menu to make it magically work with all other mods)
  • Extra Machine Config (works with SC and BC, and all other BC users)
  • Cooking Overhaul (only with itself, no BC compat)
  • Allergies (SC and BC, you know the drill)
  • Craft Anything (technically kinda sorta deprecated and not strictly cooking, works with SC (not sure?) and BC... you know it)
lucid iron
#

wow i thought it was romance of the three kingdoms but it's actually the spring and autumn warring states

rancid musk
lucid iron
#

this implies better crafting is Qin yggy

rigid oriole
#

thanks!

rancid musk
#

The API should remain pretty stable at this point, since I don't think there's any more important things to add.

#

The last thing I added was the tab context menu event.

brittle pasture
#

edited my post to add another bunch of mods... anything else missing I'm wonder

rancid musk
#

This reminds me I still need to reach out to the Crafting Collections Page dev about BGM support.

rigid oriole
#

I'm actually surprised mine ended up working with BC

#

It had to work with spacecore because i use spacecore recipes

gentle rose
#

@hot gale hey, I noticed that you removed the "AI" and "AI-generated content" tags from your mod and locked them so they can't be added. Was this by accident? I know you mentioned generating the portraits for your mod using AI, and they appear to still be in it.

rancid musk
rigid oriole
#

ok caveat: once upon a time it did work and nobody has complained about it since

tawny ore
#

In other words, it works as long as...

gentle rose
#

"it works on my machine!" /lh

rigid oriole
#

i have broken crafting more times than i can count but that was without better crafting installed

#

i am credible 😌

gentle rose
#

(also I can't wait until I have the mental energy to be doing code related things again, I feel like I'm going to get there soonish after like two months of not)

rancid musk
gentle rose
#

ooo new C# event triggers? I should look into better crafting more SDVpufferwow

#

I have not explored some of these frameworks nearly enough considering my affinity for c# crime

rancid musk
#

There are like... 3 or 4 events triggered by every single craft?

gentle rose
#

they aren't vanilla though, right? like you added them in the mod?

rancid musk
#

Yeah, they're Better Crafting specific, and only fire when using Better Crafting's menu.

#

There's CheckCanCraft, ApplySeasoning, PerformCraft, and PostCraft.

gentle rose
#

ngl I have yet to use better crafting doorhide but that's because I didn't know it existed back in 1.5 and I haven't done a properly modded 1.6 run yet lmao

rancid musk
#

CheckCanCraft was added for LoC, and ApplySeasoning was just kind of added to make custom seasoning make more sense in general.

#

So many conflicting cooking mods to support. lol

gentle rose
#

what if we just remove cooking altogether

lucid iron
#

no cooking only eating

#

eating skill hmmm

gentle rose
tawny ore
calm nebula
#

I mean, vanilla doesn't really expose events... other than net events

lucid iron
#

dont make me xkcd u matt

tawny ore
calm nebula
#

What would eating skill be tbh

#

What the heck is an eating skill

rancid musk
# tawny ore

(It's me, making my game menu standardization / optimization mod.)

gentle rose
#

there's something I really want to try to make but it requires me to basically come up with a small game of my own, like an expansion but not relating to stardew in any way pffft and ofc as soon as you WANT ideas you don't have any

gentle rose
tawny ore
#

Mukbang mod?

gentle rose
#

what's the opposite of installing a mod

brittle pasture
lucid iron
#

you should just make it anyways

calm nebula
lucid iron
#

i dont remember typing this

calm nebula
gentle rose
calm nebula
#

Pay godawful amounts of money for shit food that is bad for you

gentle rose
#

the idea I have is really a proof of concept but I need an actual idea for it pffft

brave fable
#

community kitchen mod kinda comes with ubereats. when you finish the bundle you get ~gus on a bike~

brittle pasture
brave fable
#

i'd update that but the framework for it is disgusting

tawny ore
#

I just got an inspiration. What if a mod made skills deteriorate, and your levels could go negative. So then you have the opposite of Profession at certain negative levels.

brittle pasture
#

it's just a fancy menu and the food teleports into your hand, but the idea's there

gentle rose
tawny ore
#

-5 Farming - Black Thumb skill: Crops have a 50% chance of dying

lucid iron
#

opposite artisian - artisianal goods sell for -40% bc you are so bad at it

dusk mulch
gentle rose
#

ngl this is already a terrible mod for balance so you may as well not limit it lmao

dusk mulch
#

Just when I feel like I am good at coding I come across the biggest problem that takes me months to solve

tawny ore
#

-5 Mining you have to choose between using more energy while mining or decreased ore

gentle rose
#

this is a mod for when you want to break things burnitall

brittle pasture
#

-10 Farming, ranching branch choices: Enemy of Poultry - Coop animals attack you and produce 2x slower, or Enemy of Livestock - Barn animals attack you and produce 2x slower

gentle rose
dusk mulch
#

-100 foraging, cindersap is now a wasteland

tawny ore
#

-10 farming could have weeds aggresively take over your farm

calm nebula
#

Yessss

rancid musk
#

Hostile creatures start spawning on your farm in the weeds

gentle rose
#

the other option is it is now possible to overwater your plants and the threshold is random

#

good luck keeping them alive!

tawny ore
#

Watering just randomly washes away your crops

brave fable
#

do be do

dusk mulch
brave fable
#

jesus christ that's like 4 years ago

tawny ore
#

Negative Combat skills could be fun, you either debuff yourself or you buff the mobs

brave fable
#

oh to be so young

brittle pasture
#

did you know stardew valley was released 15 years ago

dusk mulch
rigid musk
#

It absolutely was not ...

#

wasn't it released in 2015 or 2016

brave fable
#

2015 was 15 years ago..

rigid musk
#

Nuh uh

reef kiln
rancid musk
#

2015 was 15 years ago in troll years

gentle rose
tawny ore
#

Did you know that the time since Stardew Valley was released to now is longer than the time since Harvest Moon was originally released to Stardew Valley?
-# Not really

brave fable
#

it is a published mod, it's from community kitchen. it's just that when you make a cool feature as an unlock reward for another game feature it kinda doesnt sell itself very well

#

and also i didnt make an update for 1.6. which also doesnt make it sell very well

gentle rose
reef kiln
#

15 years is not that long ago. You are all acting like that is forever ago.

tawny ore
#

Man, last week was a long decade

rancid musk
gentle rose
rigid musk
#

I'm gonna go make some tea and pretend I didn't read any of this

lucid iron
#

i had a dum mod idea where

#

you jump into da well

#

and go to stardew valley 400 years ago

gentle rose
tawny ore
gentle rose
rancid musk
#

-# Oh I thought you were gonna say you jump in the well and find the Lens of Truth /s

lucid iron
#

where u can plant trees and then get entire forests when you come back'

#

its a chrono trigger yep

rigid musk
reef kiln
#

I watch the Little Mermaid in theaters when it first released. And I am talking the animated one. 15 years is not that long,

lucid iron
#

i think its actually not that bad to smoke n mirror

#

need to patch daytimemoneybox mainly

rancid musk
#

You go back in time 400 years and some things are the same and some things aren't and it's actually very creepy

brave fable
#

the little mermaid is modern disney to me. 15 years is that long lol

tawny ore
#

I owned the banned Little Mermaid VHS

reef kiln
gentle rose
lucid iron
#

i wonder what ppl will say about sdv once it's as old as harvest moon is now

gaunt orbit
tawny ore
#

It'll probably be on version 1.21 by then

brave fable
tawny ore
#

And almost everything is dehardcoded

lucid iron
#

blueberry

calm nebula
#

Over in the knitting discord people were discussing if 1992 was vintage

reef kiln
#

Starfruit technically right

tawny ore
#

By then, Content Patcher will have taken over all the mods. Like ALL of them.

calm nebula
#

Yay! Hey Pathos, do you want my implementation for Data/Equips?

brittle pasture
gaunt orbit
#

can't wait for Data/HarmonyPatches

reef kiln
#

True

#

But so much work

lucid iron
#

Data/Cecil

tawny ore
#

best is a bit subjective because to me the best is the most efficient in terms of space+time

brittle pasture
#

true, my answer was assuming infinite shed space and resources

calm nebula
#

Space is time and time is space

#

And at the start of the universe....

tawny ore
#

I'll ask Neil DeGrasse Tyson

calm nebula
#

(This is the book I'm reading)

brittle pasture
#

if you don't have that much space (a likely scenario if you are experiencing the Canadian housing market) then starfruit is the best

calm nebula
brave fable
#

how did we get from gus on a bike to universal entropy

gaunt orbit
uncut viper
brave fable
#

this is a new kind of scope creep

brittle pasture
#

my humble ask is Data/Moss

gaunt orbit
#

how are you already cropmaster button it's been 2 years

uncut viper
#

2?

tawny ore
#

Or 15?

uncut viper
#

i barely spoke before 1.6

gaunt orbit
#

says you joined in 2023

uncut viper
#

maybe like, 3 messages?

rigid oriole
#

the honk on the better game menu options page is funny but i subclass the options page and now it's in my menu ahaahhaha

brave fable
#

you joined on 17 march 2023. happy birthday πŸ₯³

calm nebula
#

Why the fuck do you subclass the optiosn page

#

Why

gentle rose
uncut viper
rigid oriole
#

with checkboxes n things

#

if i did it today i would not do that

calm nebula
#

It is like the only menu in the damn game that let's you just insert buttons into it

tawny ore
#

Despite recent evidence, I'm not very chatty

rigid oriole
#

it had scrolling and everything already implemented for me

gaunt orbit
#

button is bot confirmed /jk

brave fable
# uncut viper

a little scared i've been here since 2019 and you've almost got as many messages as i do

rigid oriole
#

all my components r custom i just use the shell

gentle rose
calm nebula
#

Anyways, real modding can commence

fierce vault
tawny ore
#

Not very chatty for having been here for over 5 years

uncut viper
#

i only have ~36k messages in the server total, so more than 91% of my messages are in this channel alone

fierce vault
#

Oh, I guess that makes sense

gentle rose
#

what level is cropmaster, 250?

uncut viper
#

500

gaunt orbit
#

yee

tawny ore
#

First post:

I'm interested in writing a mod that customizes spouse chores.
I found that all the chores are performed in NPC.marriageDuties() and I was thinking about setting some of the chore flags to true in order to prevent the default game code from running such as NPC.hasSomeoneFedTheAnimals since it's only purpose seems to be for chores. Does that seem like the right way to go about it?

gentle rose
#

oh, I thought that was rancher

gaunt orbit
#

desperado is 1000

#

that's how you know someone is married to the server

tawny ore
#

I did not get an answer, but thankfully that implementation did work

rigid musk
#

Perhaps one day I'll be there... in like seven years

gentle rose
brittle pasture
#

my first ever post:

Poking around in CP and looking to add mod-specific config in the CustomFields field; do they have to all be string values or can I just stick JSON into it?

tawny ore
#

I feel sad that my first mod has been broken for awhile, but I just don't know what I want to do with it

brittle pasture
#

this is swiftly followed by me posting a link to an illegal decompile repo, because I was stupid and didn't know better

gentle rose
reef kiln
#

This is my 2nd time joining the stardew discord. A little over 2 years ago, I went through purge of my discord channels and left 90% of them. I only recently rejoined stardew.

fierce vault
#

My first post was literally announcing that I was new and unfamiliar with discord lol

gaunt orbit
#

my first message was about custom furniture back in like 1.4 I think

uncut viper
#

doing my "say iirc so no one can get mad if you're wrong" from my very first message, i see

fierce vault
#

(I’m still kinda new lol)

gentle rose
#

I am on mobile so I can't sort by oldest rn

rigid musk
#

😭 mine was me commenting on someone's game being a slideshow... literally just that

gaunt orbit
#

how does one even get fps drops in stardew

rigid musk
#

I dont know, and it looks like it was in vanilla too

gaunt orbit
#

wtf

gentle rose
#

through god-given talent at running games on potatoes with screens

rigid musk
tawny ore
#

Did you ever get an answer to this?

fierce vault
#

Oh, know that I think of it, i was wondering about something

gaunt orbit
#

@rigid musk I love your profile banner btw

#

I remember selph's first mod!

brave fable
lucid iron
#

i think since you can put numbers and bools in there a json would probably work

gaunt orbit
#

I think I was in chat helping with it

reef kiln
#

Yup, my profiles lies. I just checked. There are messages from me on this discord from 3 years ago. It only shows my most recent rejoining in my profile.

lucid iron
#

on the other hand you can just be snakey

rigid musk
brittle pasture
gaunt orbit
gaunt orbit
lucid iron
#

JsonConvert.DeserializeObject<GenericSpawnItemDataWithCondition>(JsonConvert.SerializeObject(data.ModData));

fierce vault
#

Would adding patches that extend the size of a vanilla map destroy every other custom npc’s schedules because the X and Y axis’s would have more coordinates added?

lucid iron
#

this is how i did nested item queries

gaunt orbit
#

not... what I had in mind but that would work

rigid musk
#

hehe thank you, I don't remember where I found it actually pondering I was trying to find something that felt like it would fit my Qi-Themed profile I was going to make one myself but I ... didn't wanna

lucid iron
#

snek behavior

gaunt orbit
#

actually now I'm thinking about a custom orm for moddata

#

stop giving me horrible ideas lol

brittle pasture
uncut viper
#

i dont think you can put non-string data in a string customfields bc wont it just... fail to deserialize. like it wont even get the chance

lucid iron
#

well u cant put it in from C# for type checking reasons

uncut viper
#

cant change the way DataLoader.Whatever loads it

lucid iron
#

but i feel like cp prob just ToString whatever you feed it?

uncut viper
#

i do not think that is what it does

tawny ore
#

Pathos came out of the gate with some heavy hitters

gaunt orbit
#

oh oh something cool I did learn about assets though is that if you make a field type object, you can get raw JTokens from CP and process them yourself

brittle pasture
#

"yep" and then dropping the hardest links known to humankind

uncut viper
#

processing raw JTokens is how i added Secret Note Framework compat, and how i do config in CMCT

lucid iron
#

oh rly maybe i dont need to do this stupid round triping for a Dictionary<string, object>

tawny ore
#

2nd modding post included Lookup Anything and Chests Anywhere. Like drop the friggin mic.

uncut viper
#

if you're working with Data/Powers you get a Dictionary<string,object> CustomFields for free

reef kiln
lucid iron
#

but how do i obtain the JToken

uncut viper
#

you cast them

gaunt orbit
uncut viper
#

technically you cast to JObject

calm nebula
gaunt orbit
calm nebula
#

A change

lucid iron
#

ah i see bolbthinking

uncut viper
#

JObject holds many JTokens, ed boy

gaunt orbit
#

JObject is also itself a JToken

calm nebula
#

Also let's be honest

rigid musk
#

My first comment in THIS channel was just me saying that I think the dangerous mines dust sprites were cute and looked like jellies catpeek and then i asked about how sitting with custom furniture worked because it was a bit borked at the time

brittle pasture
#

did you get an answer to your question

calm nebula
#

If you're consider jtoken nonsense

uncut viper
#

you can also just not use Newtonsoft at all

calm nebula
#

Please.

uncut viper
#

and just reflect into your objects

calm nebula
#

Consider your own data asset you fools

uncut viper
#

atra, i read JTokens bc i read peoples config.jsons manually

tawny ore
#

The obvious answer is to use toml, the superior format

lucid iron
#

i have it but atra i want to have arbitrary data models in my non arbitrary data model

uncut viper
#

the other time i used JTokens, it wasnt my data asset. it was someone elses in a different mod i didnt have access to

lucid iron
#

let me snek in peace ok

gaunt orbit
uncut viper
#

ill be honest i dont know what an expression tree is

calm nebula
#

Godawful

uncut viper
#

so thats cool or im sorry that happened or something /lh

calm nebula
#

Don't use expression trees

#

U literally may have more fun emitting IL

uncut viper
#

oh wait, im vaguely familiar, bc i looked at them for CMCT 2.0

gaunt orbit
uncut viper
#

i decided that was a way of pain

reef kiln
calm nebula
#

I regret expression trees

tawny ore
#

Dang, advanced topics, we got a guru over here /s

lucid iron
#

oh its ast but for C# bolbsunglasses

gaunt orbit
#

though admittedly expression trees can make some IL-level optimizations that would be annoying to do in Emit

uncut viper
calm nebula
#

Not really but no

lucid iron
#

ast.literal_eval my beloved

tawny ore
#

Oh the days of the unofficial 64-bit

lucid iron
#

aw ok

tawny ore
#

Isn't unofficial 64-bit what brought Shockah into this community?

calm nebula
#

It's more the exec tbh

lucid iron
#

hm

gaunt orbit
#

I love transpilers I love il

lucid iron
#

can i use this to let ppl give me

#

sin(x), cos(y)

calm nebula
lucid iron
#

to implement their own motions

tawny ore
#

Oh I'm thinking of someone else then. Whoever contributed towards that effort from the Terraria modding community.

gaunt orbit
#

c# has exec?

lucid iron
#

whatever casey used for console code

#

i never rmbr the name its some long microsofty thing

uncut viper
#

CodeAnalysis

#

another thing i looked at once for... BETAS

gaunt orbit
#

I guess you wouldn't need all of roslyn since you wouldn't be able to define new types

reef kiln
# tawny ore Oh the days of the unofficial 64-bit

I still have my unofficial 64bit game. It has a ton of custom stuff I did to get mods to work. I will never play it but I can't bring myself to delete it. I still have the originals of Trents animals in that folder. I was the one that commissioned him to make them originally.

tawny ore
rancid musk
#

My first message in this server was replying to someone asking a question about crafting. Fast forward five months and I've dropped Better Crafting and my second post is showing off its search function.

tawny ore
#

I feel like since then, there has been a heavy overlap between SDV's development and it's additional modding support

brave fable
tawny ore
gaunt orbit
tawny ore
#

Like random person makes an unassuming post on a topic that they seem to know about

brave fable
#

you specifically have to use var for it to be true

reef kiln
gaunt orbit
brave fable
#

ah but there you're using string b and not var b

rancid musk
#

Better Game Menu is pretty subtle. Most people wouldn't notice 13 individual PRs to 16 separate mods. gooseBop

tawny ore
#

I just mean first post clearly indicating you were in the process of research

rancid musk
#

Along with me not shutting up about it.

gaunt orbit
rancid musk
#

Oh, the first message in the process of research. Well, there was that buildable map edits thing I was doing earlier.

tawny ore
#

Like why would you have specific knowledge about crafting

brave fable
#

well, it lets you declare something in a conditional statement SDVdemetriums

lucid iron
#

are you crawling the archives matt

gaunt orbit
#

ah, I see. Evil Syntax

brave fable
#

i was just surprised it didn't check against nulliness is all

rancid musk
#

Honestly I have subtle knowledge about most of the game at this point, so that's a lot harder.

gaunt orbit
#

yeah I would be too

brave fable
#

i suppose you'd use the wicked syntax pathos posted some time ago for that, if (x is {} y)

tawny ore
#

I would never crawl the archives

gaunt orbit
lucid iron
#

do you know that i started modding to add slightly better custom bush - lookup anything support

tawny ore
#

I feel like replying to old posts might be breaking a rule, or at least a cardinal sin

rancid musk
#

-# My next mod should be "Slightly Better" and not just "Better".

gaunt orbit
#

my first mod was a cp conversion of my favorite xnb mod, primitive artisan equipment

brave fable
#

Different Game Menu

tawny ore
rancid musk
#

Different Game Menu. It looks exactly the same but differently

brave fable
#

nono that's Same Game Menu. underrated mod that one

tawny ore
#

Yeah, Better is just like your opinion. Different is fact.

lucid iron
#

Different Game Menu

#

its the same but rotated 3 degrees

tawny ore
#

Working on Different Chests.

#

Maybe better, maybe worse. I don't know, I'm not your boss.

gaunt orbit
#

can't wait for Weird Chests

brave fable
#

why oh why do we put so much more effort into mod names than commit names. surely someone's published Minor Changes by now

gaunt orbit
#

unironically though I have a WIP buildings mod called Funky Buildings

rancid musk
#

Weird chests. Just like a normal chest but everything you put inside it ends up smelling of old cheese.

golden basin
#

Wait

#

Wren!!

gaunt orbit
tawny ore
#

Yet Another ...

brittle pasture
#

less machine configs, removes features from machines

gaunt orbit
golden basin
#

Are you the same Wren I'm remembering, we used to talk I think

reef kiln
gaunt orbit
#

yeah!

golden basin
#

Matt too!!!

#

You two omg it's been forever

gaunt orbit
#

meatspace has been pretty rough for the last while so I haven't been super active here

rancid musk
#

How about chests that are only slightly connected like junimo chests.

golden basin
#

I get that I've been existing

gaunt orbit
#

trying to get back into things a little bit though bc I figure if I'm gonna have a bad time I might as well be productive about it

rancid musk
#

Like mostly the items all stay in the original chests but sometimes an item will swap to a different chest at random.

tawny ore
#

Just like a checkerboard of synced items

brittle pasture
#

weh, I havent completely defeated the draw code yet (Fish Pondering compat)

dusk mulch
#

if i had the skill to draw digital art well i would be unstoppable in modding

gaunt orbit
#

I can do art but the tricky bit is that I don't get to choose when I'm in an Art Mood

gaunt orbit
reef kiln
tidal stone
#

everytime i open my game it says its ignoring my mod due to invalid action field but all my action fields are filled out and the mod is working and nothing is being ignored so idk how to make it stop saying this

lucid iron
#

oh i think u can cheat wren

#

draw layersℒ️

tawny ore
#

I am a just alright coder, I definitely get help for art, writing, and everything creative wherever I can

brittle pasture
gaunt orbit
lucid iron
#

selph cannot cheat for they have chosen fish pond

golden basin
#

All I do is draw all day

lucid iron
#

hm do u have to manually copy it think

dusk mulch
#

!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.

gaunt orbit
rancid musk
#

It applies a map override. I could fairly trivially change the code to update WaterTiles even if a building doesn't have a map override.

tidal stone
#

everything looks correct to me but i might be overloooking something

rancid musk
#

But placing tiles is pretty nice since you automatically are compatible with tile recolors πŸ™‚

dusk mulch
#

First off, fix your errors listed.

tidal stone
#

oohh i see now

lucid iron
dusk mulch
#

I don’t think anyone will help you when the errors are longer than your JSON. (quote from chu)

gaunt orbit
tidal stone
#

i didnt notice them i will fix them now

lucid iron
#

but it really is just "math a new scale and use that everywhere"

rancid musk
#

It... might when the map is being loaded, but it definitely wouldn't update when you place a building on an already loaded map.

#

WaterTiles is calculated in loadMap

gaunt orbit
#

rats

rancid musk
#

This mod I'm working on should be out like... tomorrow, though.

lucid iron
#

speed DokkanStare

rancid musk
#

It was much easier than I originally expected.

lucid iron
#

i do want to figure out the "paint a pond" thing one day tho

#

which wouldnt be buildings i feel

#

vague idea was u get a magic terraform wand

gaunt orbit
#

ponds have a color override netfield

#

oh you mean like actual map ponds

rancid musk
#

Actual map ponds.

reef kiln
tidal stone
gaunt orbit
#

one day I would still like to make a buildable building with a custom-designable interior
I did a bit of work with map generation to that end but abandoned it because I couldn't wrap my head around making it play nice with MP

lucid iron
#

yea i wanted ACNH terraforming

rancid musk
#

I'm sure a lot of us have wanted ACNH terraforming at one point or another.

#

I've definitely put a bit of work into it myself.

lucid iron
#

i never even played ACNH kyuuchan_run

gaunt orbit
#

I played a bit of it but I'm not good at sticking to daily things

lucid iron
#

it looks fun to just shovel some water wherever you want tho

gentle rose
#

I have, but not enough to know of any terraforming features SDVpufferthinkblob

lucid iron
#

and the other thing where u build a hill

gaunt orbit
#

aaaanyways I have some ongoing web serials to catch up on before bed, so I will see you all later

rancid musk
#

Bye~

reef kiln
lucid iron
#

no i didnt want buildings

tidal stone
#

idk what im doign wrong with my move netries but thats what the error is

lucid iron
#

it would really just be erinth's map editor extended

rancid musk
#

Better Map Editor

lucid iron
#

but with some topology or whatever the relevant maff is

reef kiln
rancid musk
#

Which are still technically buildings. For something like the ACNH you'd want a custom system.

lucid iron
#

i think its very cool to build preset map tiles but again that wasn't what i envisioned

tidal stone
lucid iron
#

why do you have a null

tidal stone
#

it said null on the example and i didnt know if i should tamper with it

lucid iron
#

the null on example shows removing an item

#

you never had this item so i feel like it just does nothing think

tidal stone
#

ah ok

reef kiln
#

That explains the errors. You removed the entries then tried to move them. Sorry, I am on my phone and code it hard to read on the tiny screen.

tidal stone
#

the error on id remains πŸ˜”

#

i really dont know what to do to get out of this situation because my error logs are too long apparently but thats the error its just repeated if i could just solve one of em i could solve em all

drowsy pewter
#

error? what error? Did you say what the error was?

tidal stone
#

i showed logs earlier but was told that most likely no one would help me because the rror log was 2 long

drowsy pewter
#

Your moveentries thing needs to match the id of the entry, not the item id

reef kiln
#

This is an example for you.

tidal stone
#

well not logs but my content json

drowsy pewter
#

I mean, we need to know what the error actually says

reef kiln
#

i used move to top instead but the rest should give you an idea

tidal stone
#

ty

reef kiln
#

remove the line in red

#

see it that works.

#

also just noticed you dont need this i think

tidal stone
#

i removed both and still get the same error

tidal stone
reef kiln
#

yes please

drowsy pewter
#

No, I need to know what error it is that you're seeing in your log

#

since that's the source of your issues?

tidal stone
#

Ah ok

ocean sailBOT
#

Log Info: SMAPI 4.1.10 with SDV 1.6.15 build 24356 on Microsoft Windows 11 Pro, with 9 C# mods and 2 content packs.

tidal stone
#

it says its ignoring my mod but all the action fields are filled out

drowsy pewter
#

Nope, you have brackets misaligned

#

For example right here, the second set of moveentries is nested as if it's another action

#

Looks like your code editor has color coded brackets, so you should be able to see that those are blue instead of the correct color

tidal stone
#

I didnt know the colors meant anything except that red usually meant it wouldnt work

reef kiln
#

looking at the pasted code. you are also moving the same seeds twice. no need for that.

#

you can just get rid of the entire 2nd set i think

tidal stone
#

yay its not saying it anymore!

#

ty tyyyyyyy

drowsy pewter
#

np, make sure to share all the info next time tho

#

errors typically say exactly what the error stems from, so if you dont understand what it's saying then a more experienced modder will

old edge
#

should adding the little icon for the specialorders board be simple? I'm on day 4 of trying to figure out the C# code for it. I was hoping someone had an easier solution or if someone could add the feature to content patcher.

#

I've already tried over 40 times but mod crashes when I try to add the harmony patch for it.

drowsy pewter
#

C#? I thought this was something that happened automatically

old edge
#

no apparently it's not a part of content patcher.

drowsy pewter
#

i couldve sworn ES quests have their icon

reef kiln
#

It take the icon from the character issuing it I though

old edge
#

yes they added their own code and I'm trying to figure it out.

drowsy pewter
#

I see

old edge
#

but I dont know how to do it.

#

Hopefully someone can make a small framework mod instead. I think I already tried too many times. I'll probably come back to it later.

reef kiln
#

I am pretty sure you can do it with CP.

lucid iron
#

what if Baby is the requester DokkanStare

#

you cannot do it with CP

#

we already determined this

old edge
#

Im nott using content patcher I'm usingg C# and idk what you mean by baby is the requester.

lucid iron
#

there is a hardcoded list of vanilla character emojis basically

#

the baby idea is bc, part of that hardcoded list is 2 Baby emojis

reef kiln
#

As "part of a saloon breakfast" adds a gus special order. And it has the icon. (I think). Is it just custom characters that need c#

old edge
#

I said I hope someone can make it simple and just implement it into content patcher

lucid iron
#

gus is vanilla

drowsy pewter
lucid iron
#

that said im pretty sure it is just that prefix no?

#

what are you doing rn

brittle pasture
#

haha it's fine, if I wanted to remove it I would have done so months ago. All the complaining is just me playing up the clickCraftingRecipe situation

#

and like I said, it was only because of my perfectionist tendency (this has to work with every cooking mod!!!)

old edge
lucid iron
#

without more C# this is true PecoWant

brittle pasture
#

(feel free to use it as much as possible in Cornucopia)

lucid iron
#

anyways ill go make a PoC since ive made -2 process on my own mod today

old edge
#

well I'm on day 4 of just trying to do whatt you said but it's just crashing

#

not sure how to do what you said about the baby

lucid iron
#

well if u just give me like an hour ill do it

old edge
#

I was trying to add a postfix like you said ```json

    public static void Postfix(string requester_name, ref KeyValuePair<Texture2D, Microsoft.Xna.Framework.Rectangle>? __result)
    {
        if (requester_name == "Annetta") // Change this to match your requester's actual name
        {```
rancid musk
drowsy pewter
brittle pasture
#

unfortunately khloe's better crafting already homfed that title

brittle pasture
#

(well, fortunately, really, because mine works with BC, and if all the other mods are forced nudged into adding BC support it will automatically work with mine as well)