#mod-dev-talk Friday 31 December 2021
129 messages5 people
- J01:43It would be nice if there was an API that did farmland better, like with a map from farmland block to dirt block or something
- C
- J
- C01:43bruh
- J
- A
Replying toJack PapelIt would be nice if there was an API that did farmland better, like with a map from…
That sounds like it would fit nicely into incubus core03:09hmph, jack03:10Whenever you have the time and energy, mind doing a pass over AR and seeing what should be there and what should be moved to IC?(edited) - J
- C
- J
- J
- A
Replying toJack PapelI think the DynamicColorBlock interface is not needed at all really
Shoot for changes if you want, our current impl is ripped off of BetterEnd - J
- A
- J
- A
- J
- A
- J04:04Don't really remember
- A
- J
- A
- G
- A
- G
- A
- G
- J
- G
- J
- G04:06:V
- A
- G
- A
- J04:08I was making changes to InstallerGUI a few hours ago
- G
Hmm.org.spongepowered.asm.service.ServiceInitialisationException: LaunchWrapper is not available at sponge.mixin@0.10.7+mixin.0.8.4/org.spongepowered.asm.service.mojang.MixinServiceLaunchWrapperBootstrap.bootstrap(MixinServiceLaunchWrapperBootstrap.java:61) at sponge.mixin@0.10.7+mixin.0.8.4/org.spongepowered.asm.service.MixinService.runBootServices(MixinService.java:152) at sponge.mixin@0.10.7+mixin.0.8.4/org.spongepowered.asm.service.MixinService.<init>(MixinService.java:143) at sponge.mixin@0.10.7+mixin.0.8.4/org.spongepowered.asm.service.MixinService.getInstance(MixinService.java:169) at sponge.mixin@0.10.7+mixin.0.8.4/org.spongepowered.asm.service.MixinService.boot(MixinService.java:179) at sponge.mixin@0.10.7+mixin.0.8.4/org.spongepowered.asm.launch.MixinBootstrap.<clinit>(MixinBootstrap.java:87) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1155)04:08I think I know how to fix this and it's so hacky and stupid. - A
Replying toJack PapelI was making changes to InstallerGUI a few hours ago
Oh right that exists - J
- GFrom this:
to thisthis.bootstrapServiceLoader = ServiceLoader.<IMixinServiceBootstrap>load(IMixinServiceBootstrap.class, this.getClass().getClassLoader());if(getClass().getModule().getName() != null){ this.bootstrapServiceLoader = ServiceLoader.<IMixinServiceBootstrap>load(IMixinServiceBootstrapHack.class, this.getClass().getClassLoader()); }else{ this.bootstrapServiceLoader = ServiceLoader.<IMixinServiceBootstrap>load(IMixinServiceBootstrap.class, this.getClass().getClassLoader()); }04:12In theory I don't need that check, but better safe than sorry here. - A
- J
- G04:15Try the system look and feel.
- A
- G04:16Just a different look and feel.
- J04:17I tried putting the paradise lost icon in there and the window was massive
- A04:17Do it
- G
- A
- J
Replying togudenauYou should be able to do that in code.
"You" as in someone who actually knows swing, maybe04:18Being called InstallerGUI, it would be nice if it actually installed the mod for you - A
Replying toJack Papel"You" as in someone who actually knows swing, maybe
To be fair, you are pursuing CS, and half of CS is figuring shit out - A
Replying toJack PapelBeing called InstallerGUI, it would be nice if it actually installed the mod for you
What does it currently do? - J
- A
- GSomething something
Or something.BufferedImage source = ImageIO.read("farts.png"); BufferedImage dest = new BufferedImage(64, 64, BufferedImage.FORMAT_4BYTE_ARGB); var graphics = dest.createGraphics(); try{ dest.drawImage(source, 0, 0, 64, 64, 0, 0, source.getWidth(), source.getHeight(), null); }finally{ graphics.destroy(); } - A04:20Basically the installer should do all the installing little timmy needs to go from vanilla to facing lovecraftian abominations while riding a moa
- G
- A
- J
- A
- J
- A04:21Make the tray icon be the PL logo

Jack Papel pinned a message.
- J
Replying togudenauSomething something BufferedImage source = ImageIO.read("farts.png"); BufferedImage dest…
pinning this for later - A04:22@gudenau this is an obligatory rank, now put on the cat maid programmer dress
- G04:22No.
- A
- J04:23They're always too baggy and look uncomfortable
- A
- J
- A
- A04:24very crin
- J04:24or crop top
- C
- G
- A
- A
Replying togudenauI have been using Java for over a decade, how would I not know about AWT? :V
In other words, you've been using java for longer than half the people playing this game have been alive - J
- A
Replying toJack PapelDepending how much more than a decade, possibly more than the lead dev has been alive
iirc he is not that much older than me, so he would have needed to start coding java since he was babbeh - J
- G
- A
- G04:36I am now modifying mixin during runtime.
- K
Replying toAzzyypaarasYeah that sounds like an @kalucky0 moment
I haven't touched the code for months - A
- K07:40tbf I'm retiring soon. Two more gigs and I'm ending my programming career
- A
- J
Replying tokalucky0I haven't touched the code for months
InstalledGUI hadn't been modified for almost a year until yesterday16:16I think git blame blamed CyaCal




