Skip to content

Commit 8a98edf

Browse files
asojiCephalonCosmicBluSpring
authored
v3: Part 2 (#7)
* Vigilance Config part 1 * Vigilance Config part 2 * you smell bad for doing that * you did a bad and you should feel bad. * I don't know if this will work but fuck it we ball. * Vigilance Config part 3 * please never make me touch AI ever again * version change for next major update * minor spelling mistake * Commands part 1 * mclo.gs crash uploading * before you say its gross, trust me, i know.. * random whitespace? in my commits? likely * read unsup.ini file + optimize some imports * I GOT BASE64 BROTLI ENCODED QOI IMAGE WRITTEN * some config stuff, renamed unsupini object, aaaaa * improved code for restart cmd [thanks @Deftu] * ioa * whitespace * finicky windows 11 dark mode titlebar :sakaSigh: * apply by default ig * [[ **VIOLENTLY HITS DESK**]] WHY IS DECODE EMPTY * comment of rage * everyone say `Thank You Storm` * oops dont malloc that twice please * mixin restructure * creditting everyone whos helped * mixin name change * tripping a roomba down the stairs like a child * `/request dontSleep` done * oops in 5 business ticks * finishing commands like how i finished your father * whitespace * category changes * readme you fu- * v3 time * use custom Vigilance + text fix in command * optimize imports --------- Co-authored-by: Storm Anderson <storm@artrinix.xyz> Co-authored-by: Naz Ikhsan <bluspringindohq@gmail.com>
1 parent 847ca92 commit 8a98edf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1276
-154
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ bin/
3131
# fabric
3232

3333
run/
34+
runServer/
3435

3536
# java
3637

@@ -40,7 +41,4 @@ replay_*.log
4041
*.jfr
4142

4243
# Kotlin 2.0+
43-
.kotlin/
44-
45-
# no.
46-
localLibs/
44+
.kotlin/

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,29 @@ Some fixes done for the Winter's modpacks.
1515
- Potential Problem Mods screen on first startup
1616
- Be able to click on Journeymap formatted waypoints if you use Xaero's [Journey already integrates the other way around]
1717
- Everyone in the end during an end fight gets a dragon egg
18+
- Dark Titlebar [Windows 11 only]
19+
- Ability to change titlebar and icon [Must be a 32x32 Brotli-compressed QOI Image in Base64 string form] [Converter here](https://qoi.y2k.diy/)
20+
- Ability to read unsup.ini files in pack folder to set icon [Must be a 32x32 Brotli-compressed QOI Image in Base64 string form] and titlebar
21+
- `request` commands, notably `request dontSleep`, `request attention` and [OP Level 4 only] `request serverRestart`
22+
- `restart` command that saves, does a 15 second countdown, and then stops server [and let Pelican/Pterodactyl start server back up under assumption]
23+
- Generative AI deterrent in logs
24+
- Uploads crash logs automatically and opens up browser
25+
26+
A lot of this can be found in the mod's config, which is powered by [Vigilance](https://github.com/EssentialGG/Vigilance)
27+
28+
![java_axPRlxeTJb](https://github.com/user-attachments/assets/503969a7-b709-4ccd-baac-2195fc5fca29)
1829

1930
## Credits
2031
- BluSpring for.. basically half of this mod and why it even exists. Major major code help.
2132
- Cartrigger for idea of Raccoon trinket slot and the 2 raccoon slot textures
22-
- CephalonCosmic for internal tool to figure out which NBT files have certain values
33+
- CephalonCosmic for internal tool to figure out which NBT files have certain values, and fixing the internal impl for getting QOI Images working correctly
34+
- Deftu for Vigilance config assistance and better server restart command implementation
2335
- IThundxr for
24-
- maximumpower55 for helping with the pack
36+
- maximumpower55 for helping with the pack, and the mclo.gs crash handling from TeaBridge
2537
- Oliver-makes-code for showing how to setup datapacks as a resource pack for actual working Structure NBT overriding
26-
- ims212 for end dragon fight mixin
38+
- IMS212 for end dragon fight mixin
2739

2840
## License
29-
As per usual with all my projects, [MIT License](LICENSE).
41+
As per usual with all my projects, [MIT License](LICENSE).
42+
43+
However, the [CrashReportGAIDeterrentMixin](src/main/java/one/devos/nautical/winterisms/mixin/common/CrashReportGenerativeAIDeterrentMixin.java) in specific is 0BSD, feel free to take it, no attributions needed. :p

build.gradle.kts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ repositories {
1919
maven("https://maven.bawnorton.com/releases") // MixinSquared
2020
maven("https://maven.ladysnake.org/releases")
2121
maven("https://cursemaven.com") // ech. curseforge.
22+
maven("https://repo.essential.gg/repository/maven-public") // Essential's Vigilance Config
23+
maven("https://jitpack.io")
24+
mavenLocal()
2225
}
2326

2427
//All dependencies and their versions are in ./gradle/libs.versions.toml
@@ -41,20 +44,35 @@ dependencies {
4144
modLocalRuntime(libs.bundles.dev.mods)
4245

4346
// Config
44-
include(modImplementation(libs.midnightlib.get())!!)
47+
// include(implementation(libs.essential.vigilance.get())!!)
48+
modImplementation(files("localLibs/Vigilance-312-CUSTOM.jar")) // bestie i am at my fucking limit
49+
include(implementation(libs.essential.elementa.get())!!)
50+
include(modImplementation(libs.essential.universalcraft.get())!!)
4551

4652
// modImplementation(files("localLibs/centered-crosshair+1.21-1.0.8.jar"))
4753

4854
include(modImplementation(libs.fmw.get())!!) // just to avoid the basic long metadata calls
4955
include(implementation(annotationProcessor(libs.mixinsquared.get())!!)!!)
5056
include(implementation(libs.mixinconstraints.get())!!)
57+
include(implementation(libs.brigadier.kotlin.get())!!)
58+
include(implementation(libs.ini4j.get())!!)
59+
include(implementation(libs.qoi.main.get())!!)
60+
include(implementation(libs.qoi.awt.get())!!)
61+
include(implementation(libs.brotli.get())!!)
62+
include(implementation(libs.jna.main.get())!!)
63+
include(implementation(libs.jna.platform.get())!!)
5164

5265
modImplementation(libs.grappling.hook)
5366
modImplementation(libs.lattice)
5467
modCompileOnly(libs.xaeros.minimap)
5568
modImplementation(libs.journeymap)
5669
modImplementation(libs.multikeybindings)
70+
// modImplementation(libs.yungs.api) // aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
71+
modImplementation(libs.cloth.config)
5772
modImplementation(libs.better.end.island)
73+
modImplementation(libs.cicada)
74+
modImplementation(libs.`do`.a.barrel.roll)
75+
modImplementation(libs.fabric.permissions.api) // DABR needs this but it doesnt bundle it which is dumb. so you crash on world join w/ this
5876

5977
modCompileOnly(libs.enderscape)
6078

@@ -82,6 +100,10 @@ java {
82100
targetCompatibility = JavaVersion.VERSION_21
83101
}
84102

103+
tasks.remapJar { // bestie i am at my fucking limit
104+
nestedJars.from(files("localLibs/Vigilance-312-CUSTOM.jar"))
105+
}
106+
85107
tasks.jar {
86108
from("LICENSE") {
87109
rename { "${it}_${project.base.archivesName.get()}"}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
33
org.gradle.parallel=true
44

55
# Mod Properties
6-
mod_version=2.0.3
6+
mod_version=3.0.0
77
maven_group=one.devos.nautical
88
archives_base_name=winterisms
99

gradle/libs.versions.toml

Lines changed: 50 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,88 @@
11
[versions]
2+
better_end_island = "1.21.1-Fabric-3.1.2"
3+
brigadier_kotlin = "1.4.2"
4+
brotli = "0.1.2"
5+
cardinal_components = "6.1.1"
6+
cicada = "0.14.2+1.21-1.21.1"
7+
cloth_config = "15.0.140+fabric"
8+
do_a_barrel_roll = "3.7.3+1.21-fabric"
9+
enderscape = "wbBsMlR1"
10+
essential_elementa = "710"
11+
essential_universalcraft = "427" # the stanley parable number?!
12+
essential_vigilance = "312"
213
fabric_api = "0.116.4+1.21.1"
314
fabric_language_kotlin = "1.13.4+kotlin.2.2.0"
415
fabric_loader = "0.16.14"
16+
fabric_permissions_api = "0.3.1"
517
flashback = "hQkBepoB"
618
fmw = "1.0.0+build.8"
719
grappling_hook = "0.7.3-1.21.1"
20+
ini4j = "0.5.4"
21+
jna = "5.17.0"
22+
journeymap = "1.21.1-6.0.0-beta.52+fabric"
823
lattice = "1.2.10"
924
midnightlib = "1.7.5+1.21.1-fabric"
1025
minecraft = "1.21.1"
1126
mixinconstraints = "1.0.9"
1227
mixinsquared = "0.3.3"
1328
modmenu = "11.0.3"
14-
sodium = "mc1.21.1-0.6.13-fabric"
15-
trinkets = "3.10.0"
16-
xaeros_minimap = "25.2.10_Fabric_1.21"
17-
enderscape = "wbBsMlR1"
18-
journeymap = "1.21.1-6.0.0-beta.52+fabric"
1929
multikeybindings = "1.0.2+1.21.1"
20-
techreborn = "5776057"
21-
reborncore = "5776056"
22-
cardinal_components = "6.1.1"
2330
polymorph = "AGMyBSJE"
31+
qoi = "1.2.1"
2432
reborn_energy = "4.1.0"
25-
better_end_island = "1.21.1-Fabric-3.1.2"
33+
reborncore = "5776056"
34+
sodium = "mc1.21.1-0.6.13-fabric"
35+
techreborn = "5776057"
36+
trinkets = "3.10.0"
37+
xaeros_minimap = "25.2.10_Fabric_1.21"
38+
yungs_api = "1.21.1-Fabric-5.1.6"
2639

2740
[libraries]
41+
better_end_island = { module = "maven.modrinth:yungs-better-end-island", version.ref = "better_end_island" }
42+
brigadier_kotlin = { module = "com.github.Phyrone:brigardier-kotlin", version.ref = "brigadier_kotlin" }
43+
brotli = { module = "org.brotli:dec", version.ref = "brotli" }
44+
cardinal_components_base = { module = "org.ladysnake.cardinal-components-api:cardinal-components-base", version.ref = "cardinal_components" }
45+
cardinal_components_block = { module = "org.ladysnake.cardinal-components-api:cardinal-components-block", version.ref = "cardinal_components" }
46+
cardinal_components_entity = { module = "org.ladysnake.cardinal-components-api:cardinal-components-entity", version.ref = "cardinal_components" }
47+
cicada = { module = "maven.modrinth:cicada", version.ref = "cicada" }
48+
cloth_config = { module = "maven.modrinth:cloth-config", version.ref = "cloth_config" }
49+
do_a_barrel_roll = { module = "maven.modrinth:do-a-barrel-roll", version.ref = "do_a_barrel_roll" }
50+
enderscape = { module = "maven.modrinth:enderscape", version.ref = "enderscape" }
51+
essential_elementa = { module = "gg.essential:elementa", version.ref = "essential_elementa" }
52+
essential_universalcraft = { module = "gg.essential:universalcraft-1.21-fabric", version.ref = "essential_universalcraft" }
53+
essential_vigilance = { module = "gg.essential:vigilance", version.ref = "essential_vigilance" }
2854
fabric_api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fabric_api" }
2955
fabric_language_kotlin = { module = "net.fabricmc:fabric-language-kotlin", version.ref = "fabric_language_kotlin" }
3056
fabric_loader = { module = "net.fabricmc:fabric-loader", version.ref = "fabric_loader" }
57+
fabric_permissions_api = { module = "me.lucko:fabric-permissions-api", version.ref = "fabric_permissions_api" }
3158
flashback = { module = "maven.modrinth:flashback", version.ref = "flashback" }
3259
fmw = { module = "gay.asoji:fmw", version.ref = "fmw" }
3360
grappling_hook = { module = "io.github.moonlight_maya:Grappling-Hook", version.ref = "grappling_hook" }
61+
ini4j = { module = "org.ini4j:ini4j", version.ref = "ini4j" }
62+
jna_main = { module = "net.java.dev.jna:jna", version.ref = "jna" }
63+
jna_platform = { module = "net.java.dev.jna:jna-platform", version.ref = "jna" }
64+
journeymap = { module = "maven.modrinth:journeymap", version.ref = "journeymap" }
3465
lattice = { module = "com.moulberry:lattice", version.ref = "lattice" }
3566
midnightlib = { module = "maven.modrinth:midnightlib", version.ref = "midnightlib" }
3667
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
3768
mixinconstraints = { module = "com.moulberry:mixinconstraints", version.ref = "mixinconstraints" }
3869
mixinsquared = { module = "com.github.bawnorton.mixinsquared:mixinsquared-fabric", version.ref = "mixinsquared" }
3970
modmenu = { module = "com.terraformersmc:modmenu", version.ref = "modmenu" }
40-
sodium = { module = "maven.modrinth:sodium", version.ref = "sodium" }
41-
trinkets = { module = "dev.emi:trinkets", version.ref = "trinkets" }
42-
xaeros_minimap = { module = "maven.modrinth:xaeros-minimap", version.ref = "xaeros_minimap" }
43-
enderscape = { module = "maven.modrinth:enderscape", version.ref = "enderscape" }
44-
journeymap = { module = "maven.modrinth:journeymap", version.ref = "journeymap" }
4571
multikeybindings = { module = "maven.modrinth:multi-key-bindings", version.ref = "multikeybindings" }
46-
techreborn = { module = "curse.maven:techreborn-233564", version.ref = "techreborn" }
47-
reborncore = { module = "curse.maven:reborncore-237903", version.ref = "reborncore" }
4872
polymorph = { module = "maven.modrinth:polymorph", version.ref = "polymorph" }
49-
cardinal_components_base = { module = "org.ladysnake.cardinal-components-api:cardinal-components-base", version.ref = "cardinal_components" }
50-
cardinal_components_block = { module = "org.ladysnake.cardinal-components-api:cardinal-components-block", version.ref = "cardinal_components" }
51-
cardinal_components_entity = { module = "org.ladysnake.cardinal-components-api:cardinal-components-entity", version.ref = "cardinal_components" }
73+
qoi_awt = { module = "me.saharnooby:qoi-java-awt", version.ref = "qoi" }
74+
qoi_main = { module = "me.saharnooby:qoi-java", version.ref = "qoi" }
5275
reborn_energy = { module = "teamreborn:energy", version.ref = "reborn_energy" }
53-
better_end_island = { module = "maven.modrinth:yungs-better-end-island", version.ref = "better_end_island" }
76+
reborncore = { module = "curse.maven:reborncore-237903", version.ref = "reborncore" }
77+
sodium = { module = "maven.modrinth:sodium", version.ref = "sodium" }
78+
techreborn = { module = "curse.maven:techreborn-233564", version.ref = "techreborn" }
79+
trinkets = { module = "dev.emi:trinkets", version.ref = "trinkets" }
80+
xaeros_minimap = { module = "maven.modrinth:xaeros-minimap", version.ref = "xaeros_minimap" }
81+
yungs_api = { module = "maven.modrinth:yungs-api", version.ref = "yungs_api" }
5482

5583
[bundles]
56-
dev_mods = [ "sodium", "modmenu" ]
57-
dependencies = [ "midnightlib", "flashback", "trinkets" ]
84+
dev_mods = [ "sodium" ]
85+
dependencies = [ "midnightlib", "flashback", "trinkets", "modmenu" ]
5886
techreborn = [ "techreborn", "reborncore", "reborn_energy" ]
5987
polymorph = [ "polymorph", "cardinal_components_base", "cardinal_components_block", "cardinal_components_entity" ]
6088

localLibs/Vigilance-312-CUSTOM.jar

808 KB
Binary file not shown.

src/main/java/one/devos/nautical/winterisms/config/Config.java

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package one.devos.nautical.winterisms.mixin.client;
2+
3+
import net.minecraft.client.Minecraft;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.injection.At;
6+
import org.spongepowered.asm.mixin.injection.Inject;
7+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
8+
9+
@Mixin(Minecraft.class)
10+
public class DisableVanillaTitle {
11+
@Inject(method = "updateTitle", at = @At("HEAD"), cancellable = true)
12+
private void disableVanillaTitle(final CallbackInfo ci) {
13+
ci.cancel();
14+
}
15+
}

src/main/java/one/devos/nautical/winterisms/mixin/KeyBindsScreenMixin.java renamed to src/main/java/one/devos/nautical/winterisms/mixin/client/KeyBindsScreenMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package one.devos.nautical.winterisms.mixin;
1+
package one.devos.nautical.winterisms.mixin.client;
22

33
import com.mojang.blaze3d.platform.InputConstants;
44
import net.minecraft.Util;

src/main/java/one/devos/nautical/winterisms/mixin/KeyMappingAccessor.java renamed to src/main/java/one/devos/nautical/winterisms/mixin/client/KeyMappingAccessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package one.devos.nautical.winterisms.mixin;
1+
package one.devos.nautical.winterisms.mixin.client;
22

33
import com.mojang.blaze3d.platform.InputConstants;
44
import net.minecraft.client.KeyMapping;

0 commit comments

Comments
 (0)