game-design-driven / Create-Prepare-to-Dye

Create: Prepare to Dye an opinionated, minimalistic modpack centered around complex and interesting automation.
GNU General Public License v3.0
24 stars 19 forks source link

Extract settings with java mod #466

Open Discord-Github-Bridge opened 10 months ago

Discord-Github-Bridge commented 10 months ago

minecraft.getMinecraft().gamesettings as a variable that can be accessed in kubejs (even write to a file and read with kubejs)

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

doesnt make sense a translation is auto generated

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

Even create mod itself autogenerates them

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

maybe theyre auto generated if its not already set?

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

jeez

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

If that was the case - my changes each time I reload wouldn't be reflected

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says


{
"kubejs.ponder.introduction.header": "AUTOMATON 9000",
"kubejs.ponder.introduction.text_1": "Thank you for purchasing the AUTOMATON 9000",
"kubejs.ponder.introduction.text_2": "We hope it brings you many years of good use!",
"kubejs.ponder.introduction.text_3": "Version CQ1503 brings all new features!",
"kubejs.ponder.introduction.text_4": "No need for maintenance, fuel or down time!",
"kubejs.ponder.jump.header": "Triple Jump",
"kubejs.ponder.jump.text_1": "Introducing Triple Jump",
"kubejs.ponder.power.header": "Tool set",
"kubejs.ponder.power.text_1": "The automaton comes with all the tools it requires built in!",
"kubejs.ponder.power.text_2": "Press V",
"kubejs.ponder.power.text_3": "And can break and place any block from up to 30 metres away!"
}
``` very generic names lmao
Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

so confusing

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

how does create handle i8n ?

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

create generates them too

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

Ah no thst makes sense then

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

https://github.com/Creators-of-Create/Create/blob/2201d87da7744cf9ee3f83e1e4c21643244f342b/src/generated/resources/assets/create/lang/en_us.json

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

vs ungenerated lang file https://github.com/Creators-of-Create/Create/tree/2201d87da7744cf9ee3f83e1e4c21643244f342b/src/main/resources/assets/create/lang/default

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

I could just not tell them the key... and hope they put the chat message and the ponder text together .... but end users are dumb

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

it seems create doesnt have support for languages other than english anyway

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

oh it does

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

oh

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

in this directory

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

the generated is only en_us

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

ah

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

based off

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

whatever is selected

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

mhm

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

maybe we should deal with translation at a later date

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

The chat message has the same issue. It's also hard coded

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

On client reload means that it sets itself when you join world?

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

If so that's good enough

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

yes

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

mhm

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

Then let's stay with that

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

What if we also add an advancement for opening the personal assembler?

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

more "DO IT" energy

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

Not enough

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

Need the key. Hard coded is better then none

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

And on join is even better

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

Ooo I have idea

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

Wait, maybe solvable

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

Lol same time

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

When you look up in EMI "personal assembler" tell them about v again

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

since you can add text right?

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

I can add tooltip dynamically yes

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

But I don't know if that's enough

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

I want the key in the ponder too

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

oh. I just realised my problem hasn't been solved...

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

kikis2111 love the options - but since I can only read key.keyboard.v I still can't get if that's the same key on their keyboard (e.g. it's using scancodes for different layouts)

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

hm

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

you need a keybind object?

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

You sure all the ponder code runs I ly once? Nothing can run on watch?

Discord-Github-Bridge commented 10 months ago

yarden.zamir on Discord says

What if changing setting did client reload?

Discord-Github-Bridge commented 10 months ago

engineersmith_4628 on Discord says

uhhhhh minecraft usings GLFW right?

Discord-Github-Bridge commented 10 months ago

kikis2111 on Discord says

yeah