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
25 stars 19 forks source link

Extract settings with java mod #466

Open Discord-Github-Bridge opened 9 months ago

Discord-Github-Bridge commented 9 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 9 months ago

engineersmith_4628 on Discord says

You write the English in and then they save them to some generated file

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

hm

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

weird

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

Personal Assembler - perass

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

ah

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

hm

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

welp

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

good luck

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

scene.text(30, "hello world") => generates some key like kubejs.ponder.<scene name>.text_1

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

so it saves its own translation

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

but I have no idea if it pulls from the lang file each time it displays the text or not - so it's unlikely to help

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

yeah

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

so

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

mhm; I suspect even if I overwrite it - it will choose the en_us that's in the code

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

when a keybind is changed, f3+t is run

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

but reload is not run?

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

maybe force a reload when a keybind has been changed?

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

f3+t isn't ran on a keybind change

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

ah

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

maybe just force it

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

might have to do that in java

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

if anything - don't need full reload

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

just running kubejs reload client_scripts as a silent command

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

like when 'Done' is pressed on the controls screen we do a reload

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

yeah

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

hm

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

running a command progammatically is not easy in java

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

ok

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

ill have a look for a function to reload client scripts then

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

If you can figure out how to add your own kubejs event - we can add the command to kubejs when it is fired

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

yeah i did that

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

and this event should be fired when controls screen is exited

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

ok

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

The second problem is that; if you don't speak English you're just going to see Press V and have no idea what it means

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

ah, i thought we dont have support for other langs yet anyway

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

screw em'

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

We don't - but I like to do my best

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

bloody foreigners

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

https://tenor.com/view/theresa-may-dancing-bad-dancing-abba-conservatives-gif-12628874

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

well

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

i think just translate the 'Press' part of 'Press v'

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

how do you know im in england xD

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

again, it's auto generated

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

I'm British myself

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

We can't have args in these translations

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

they don't accept 'em

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

argh

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

fork

Discord-Github-Bridge commented 9 months ago

kikis2111 on Discord says

must be a way around it tho

Discord-Github-Bridge commented 9 months ago

engineersmith_4628 on Discord says

Maybe I can go poke the ponderjs gang again