1.19.2 Dev environment help
glados1235 opened this issue ยท 17 comments
hello! I love this revival mod lot and wanted to add some machines to my mod pack integration mod to tie things together with my other machine mods.
was wanting to ask how i can properly use the mod inside my dev environment as just using the release build in the mods folder crashes the game as expected, I know it needs a different .jar as the fully compiled release build doesn't work. I am mostly wondering if there is a way to "make the jar work" or if there is a development file I should be using.
I mostly dev in Unity, only dabbling in MC modding here and there, so sorry if this is an easy/dumb question!
also for added context, I'm importing the dependency via cursemaven as such
i thought that only imported the mod for API usage? I have done that and already have some machines set up and working, its just tedious to build the mod move it and boot up a normal version of MC, if possible i would like to launch the in dev environment.
when trying to launch it crashes with a failed mixin. From what I found mods will do this due to the dev environment having different names here and there that the compiled jar is trying to find, but with the obfuscated compiled names, and since it can't find the same things it causes crashes, had the same issue when making a Cyclic based machine
Oh, right.
Add this to your plugins block
id 'org.spongepowered.mixin' version '0.7.+'
This is why I made the addon repo, it has everything to run with IC2C out of the box.
okay, no longer mad about that mixin, but now a unmapped function it cant find i think?
i will also take a peek at the build.gradle of that repo to see what all is there that differs from mine
EDIT: here is my build.gradle
Updated to the latest IC2C and MDK. Ready to use: https://github.com/CrossVas/IC2CAddonSetup
okay, no longer mad about that mixin, but now a unmapped function it cant find i think? i will also take a peek at the build.gradle of that repo to see what all is there that differs from mine
EDIT: here is my build.gradle
It looks ok.
When updating the build.gradle, did you re-sync the whole thing?
You can use this repo: https://github.com/CrossVas/IC2CAddonSetup
Don't forget to use the latest build from CurseForge: https://www.curseforge.com/minecraft/mc-mods/ic2-classic/files/all?page=1&pageSize=20
yes, i also manually resynced in the gradle changes after to be sure
You can copy the build.gradle from here: https://github.com/CrossVas/IC2CAddonSetup/blob/master/build.gradle
do I use that as the project base? or compile that project into a jar? I already have a MDK project setup so just wanting to know if I would need to shift stuff around or not. my mod does way more than add machines for IC2C, it adds things to affect the modpack as a whole and add on and tie mods together, filling gaps and whatnot
thanks for the fast response by the way!
In this case, just add this:
implementation fg.deobf("curse.maven:ic2-classic-242942:6275736")
to your dependencies block, update, and you should have it inside your dev env.
do I use that as the project base? or compile that project into a jar?
I already have a MDK project setup so just wanting to know if I would need to shift stuff around or not.
my mod does way more than add machines for IC2C, it adds things to affect the modpack as a whole and add on and tie mods together, filling gaps and whatnot
thanks for the fast response by the way!
yeah even with that build.gradle file it throws that "f_60439_ not found" exception. so i feel it is unrelated to the build.gradle this is my repo if it helps at all its a bit of a mess but other than that.
if it keeps being a issue and we cant fix it, i will prob transfer what i have over to your repo as there is not that much to move
do you mean "reload all from disk"? or "Reload all gradle projects"?
i assume neither as both dont fix it
do you mean "reload all from disk"? or "Reload all gradle projects"? i assume neither as both dont fix it
I just did a clean clone of your repo and it worked out of the box.
Unfortunately, I have no more ideas what could it be
okay, i will just do that, its probably something messed up somewhere. sorry misinterpreted reload



