Jump to content

Recommended Posts

Posted

I've been working with Forge for a long Time know. But I have never taken a step into git simply because I never needed it.

Don't get me wrong here I know what git is and I know how to use it. I also used in the past to create some sort of online Backup for my mod.

 

But I don't know how to use it with forge.

 

Recently a Friend of mine joined me and I tried to make git work for both of us by uploading my mod files using Intellij Ideas git integration.

So here is my question:

Which files do I have to upload and how to make it work in a simple (clone repo to folder and open project) manner?

 

Thanks in Advance,

Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

Well thanks!

That is exactly what I needed.

 

I indeed know that github is just a platform based on git. For some reason I cant really explain I used "github" instead of "git"  :o

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

I tried it.

I added every necessary file to git and cloned the repo to another pc.

Afterwards I used the command "gradlew setupDecompWorkspace idea" to set everything up. It completed without any errors.

I proceeded by opening the .ipr project file using the latest version of Intellij Idea.

And thats where the problems started.

 

For some reason all Libraries had to be added by hand to the module using File/Project Structure/Libraries/addToModule

Which I did and it turned out to have worked even though it was a bit annoying to add over 50 libraries by hand.

 

And everything seemed to be working.

But now for some odd reason textures don't work.

 

This may not be a git problem since copying the necessary files to a Stick and pasting them to the other pc would have done the same but I never did it before and cant quite understand the process yet.

Where did I go wrong?

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

The .ipr project file is not in my repo it was created using the gradlew idea command.

 

These files / folders are in git:

 

  • gradle/wrapper
  • src/main
  • build.gradle
  • gradlew
  • gradlew.bat

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

That went surprisingly well.

Is the old method deprecated as of IntelliJ Idea 14 or has the problem existed before?

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

Nice,

now I just have one minor problem.

Librarys such as Not Enough Items dont seem to work. I use CodeChickenLib sometimes and the Code seems to work and compile but NEI, which I placed in the /libs folder wont show up. It worked before though.

Yes I linked the libraries in my IDE.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

No there are no log problems. There are no logs from CCC and NEI at all. Normally both announce their presence during launch.

Shouldn't files in /libs be added as mods anyways, even if you don't link them as Libraries?

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

OK,

I used the refresh button in the gradle tool window.

It did nothing but removing the scala framework support.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

If a mod provides a maven repo, I highly suggest using that! for CCC and CCL, here's what I do:

https://github.com/SanAndreasP/SAPManagerPack/blob/master/build.gradle#L50-L60

(Please note those versions are quitte outdated, but they work for testing)

 

I don't depend on those in this mod, if you do, you'll need to declare CCC, CCL and NEI inside the buildscript area:

https://github.com/SanAndreasP/VarietyChests/blob/master/build.gradle#L1-L28

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

The difference is that the first doesn't actively reference CCC or NEI classes. Thus I don't need those when I compile the mod.

The second one does reference NEI (for a compatibility thing), thus I need those classes to compile the mod.

 

And the CCL reference may be an old one I didn't remove, now that I think about it. Since it's not in the maven repo (anymore), you don't need it.

 

Also  please note the first code is always needed, but the second one only if you actively reference a class from the mods.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

It has been on files.minecraftforge.net for  some time now. But the (possible) maven repo 404's for me.

Is there any method to download it from a link?

 

 

 

PS:

I think I am at the point where I should apologize for this thread. I am not very experienced with gradle and ignored it to this point.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted
  On 8/24/2015 at 12:17 PM, Busti said:

Adding the Libraries in the build.gradle file downloaded them but they are not added as mods.

 

Then show me your build.gradle.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted
buildscript {
    repositories {
        jcenter()
        maven {
            name = "forge"
            url  = "http://files.minecraftforge.net/maven"
        }
        maven {
            name = 'CodeChicken'
            url  = 'http://chickenbones.net/maven/'
        }
    }

    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.0-SNAPSHOT'
        classpath 'codechicken:CodeChickenCore:1.8-1.0.5.36:dev'
        classpath 'codechicken:NotEnoughItems:1.8-1.0.5.104:dev'
    }
}
apply plugin: 'net.minecraftforge.gradle.forge'

version = "0.3.5.1"
group= "com.mlb.technica"
archivesBaseName = "technica"

minecraft {
    version = "1.8-11.14.3.1503"
    runDir = "eclipse"
    mappings = "snapshot_20141130"
}

task downloadCCLDev(type:LibDownloader) {
    sourceUrl = 'http://files.minecraftforge.net/maven/codechicken/CodeChickenLib/1.8-1.1.2.139/CodeChickenLib-1.8-1.1.2.139-dev.jar'
    target    = file('libs/CodeChickenLib-dev.jar')
}

task downloadCCLSrc(type:LibDownloader) {
    sourceUrl = 'http://files.minecraftforge.net/maven/codechicken/CodeChickenLib/1.8-1.1.2.139/CodeChickenLib-1.8-1.1.2.139-src.jar'
    target    = file('libs/CodeChickenLib-src.jar')
}

repositories {
    maven {
        name = 'CodeChicken'
        url  = 'http://chickenbones.net/maven/'
    }
    maven {
        name = 'forge'
        url  = 'http://files.minecraftforge.net/maven'
    }

}

dependencies {
    compile 'codechicken:CodeChickenCore:1.8-1.0.5.36:dev'
    compile 'codechicken:CodeChickenCore:1.8-1.0.5.36:src'
    compile 'codechicken:NotEnoughItems:1.8-1.0.5.104:dev'
    compile 'codechicken:NotEnoughItems:1.8-1.0.5.104:src'
}

processResources {
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version

    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
                
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
        
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}

idea { module { inheritOutputDirs = true } }

class LibDownloader extends DefaultTask {
    @Input
    String sourceUrl

    @OutputFile
    File target

    @TaskAction
    void download() {
        ant.get(src: sourceUrl, dest: target)
    }
}

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

2nd Bump...

Also github should be working right now. Even though its still a bit empty.

All the files are there if you need a more insightful look...

 

github.com/Busti/Technica

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

CCC and NEI are added as libraries for me. The only thing that isn't is CCL. That is because you try to download it via the LibDownloader, but don't actually tell it do download anything, see here:

https://github.com/SanAndreasP/VarietyChests/blob/master/build.gradle#L64-L65

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

I already updated it but didn't push the updated yet. It has not been in in the posted file either.

The libraries have successfully been downloaded to the libs folder but they are neither linked in the IDE (I have to do it manually) nor are they being compiled.

Even adding this to the build.gradle file does not help.

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
}

 

The maven repos are not being compiled as well. Thus NEI wont start.

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted

A Summary

 

Have you tried turning it off and on again?

Now I have...

After deleting everything it is working like a charm.

 

And I have learned many things about gradle...

 

Also SanAndreasP and Diesieben07 I owe the tow of you a Beer. Please remind me if we ever meet.

 

Thank you for all the help.

Thus:

giphy.gif

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • abro el juego pero al tocar un solo jugador me tira la de   [02:23:30] [Render thread/FATAL] [ne.mi.co.ForgeMod/]: Preparing crash report with UUID c3ff08d5-d285-458d-a3b5-fbba17743dff #@!@# Game crashed! Crash report saved to: #@!@# C:\juegos\Minecraft\instances\1.20.1 forge\.minecraft\crash-reports\crash-2025-05-02_02.23.30-client.txt Process exited with code -1 (0xffffffffffffffff). ¡Por favor, ten en cuenta que normalmente ni el código de salida ni su descripción son suficientes para diagnosticar problemas! Sube siempre el registro entero y no solo el código de salida.
    • So, First of I am new to modding so bare with me I am creating a 1.20.1 forge mod that needs Oculus/Embeddium as a dependancy because later on I need to add custom shaders in for lights and such. I am using ParchmentMC as I've heard its better because of namings of things but that doesn't seem to like it when I run it alongside Oculus (Its a very barebones script adding two blocks and an item, and tested it before I did this) The 4 errors I get when I run 'runClient' is Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [mixins.oculus.json:texture.MixinAbstractTexture] from phase [DEFAULT] in config [mixins.oculus.json] FAILED during APPLY Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on iris$afterGenerateId could not find any targets matching 'Lnet/minecraft/client/renderer/texture/AbstractTexture;m_117963_()I' in net.minecraft.client.renderer.texture.AbstractTexture. Using refmap oculus-mixins-refmap.json [PREINJECT Applicator Phase -> mixins.oculus.json:texture.MixinAbstractTexture -> Prepare Injections ->  -> handler$zgm000$iris$afterGenerateId(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse] And then a "Execution failed for task ':runClient'." error My dependancies are just these with latest forge for 1.20.1 implementation fg.deobf('curse.maven:oculus-581495:6020952') // Oculus for 1.20.1 - 1.8.0  implementation fg.deobf('curse.maven:embeddium-908741:5681725') // Embeddium for 1.20.1 - 0.3.31 I have tested these mods & forge in a different modpack alone and it works fine Any help is much appreciated!
    • Im trying to make a server for me and my friends. I have no mods on it, (yet) but i keep getting this on the terminal right before it closes out. it insist even open long enogth m=for me to log on .this is my most resent crash report thanks in advance.   ---- Minecraft Crash Report ---- // I blame Dinnerbone. Time: 2025-05-01 18:17:25 Description: Exception in server tick loop java.lang.IllegalStateException: Failed to initialize server     at TRANSFORMER/minecraft@1.21.5/net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:676) ~[server-1.21.5-20250325.162830-srg.jar%23141!/:?] {re:classloading,pl:accesstransformer:B}     at TRANSFORMER/minecraft@1.21.5/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:276) ~[server-1.21.5-20250325.162830-srg.jar%23141!/:?] {re:classloading,pl:accesstransformer:B}     at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.21.5     Minecraft Version ID: 1.21.5     Operating System: Linux (amd64) version 6.11.0-19-generic     Java Version: 21.0.6, Ubuntu     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Ubuntu     Memory: 99161192 bytes (94 MiB) / 233832448 bytes (223 MiB) up to 1004535808 bytes (958 MiB)     CPUs: 2     Processor Vendor: GenuineIntel     Processor Name: Intel(R) Pentium(R) CPU B950 @ 2.10GHz     Identifier: Intel64 Family 6 Model 42 Stepping 7     Microarchitecture: Sandy Bridge (Client)     Frequency (GHz): 2.10     Number of physical packages: 1     Number of physical CPUs: 2     Number of logical CPUs: 2     Graphics card #0 name: 2nd Generation Core Processor Family Integrated Graphics Controller     Graphics card #0 vendor: Intel Corporation (0x8086)     Graphics card #0 VRAM (MiB): 256.00     Graphics card #0 deviceId: 0x0106     Graphics card #0 versionInfo: unknown     Virtual memory max (MiB): 5743.06     Virtual memory used (MiB): 3361.15     Swap memory total (MiB): 3828.00     Swap memory used (MiB): 811.72     Space in storage for jna.tmpdir (MiB): <path not set>     Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>     Space in storage for io.netty.native.workdir (MiB): <path not set>     Space in storage for java.io.tmpdir (MiB): available: 421206.25, total: 467297.75     Space in storage for workdir (MiB): available: 421206.25, total: 467297.75     JVM Flags: 0 total;     Server Running: true     Active Data Packs: vanilla, mod_data, mod/neoforge     Available Data Packs: minecart_improvements, redstone_experiments, trade_rebalance, vanilla, mod/neoforge, mod_data     Enabled Feature Flags: minecraft:vanilla     World Generation: Stable     World Seed: -7131934175611965967     Suppressed Exceptions: ~~NONE~~     Is Modded: Definitely; Server brand changed to 'neoforge'     Type: Dedicated Server (map_server.txt)     ModLauncher: 11.0.4+main.d2e20e43     ModLauncher launch target: neoforgeserver     ModLauncher services:         sponge-mixin-0.15.2+mixin.0.8.7.jar mixin PLUGINSERVICE         loader-7.0.10.jar slf4jfixer PLUGINSERVICE         loader-7.0.10.jar runtime_enum_extender PLUGINSERVICE         at-modlauncher-11.0.2.jar accesstransformer PLUGINSERVICE         loader-7.0.10.jar runtimedistcleaner PLUGINSERVICE         modlauncher-11.0.4.jar mixin TRANSFORMATIONSERVICE         modlauncher-11.0.4.jar fml TRANSFORMATIONSERVICE     FML Language Providers:         javafml@7.0         minecraft@7.0     Mod List:         server-1.21.5-20250325.162830-srg.jar             |Minecraft                     |minecraft                     |1.21.5              |Manifest: NOSIGNATURE         neoforge-21.5.63-beta-universal.jar               |NeoForge                      |neoforge                      |21.5.63-beta        |Manifest: NOSIGNATURE     Crash Report UUID: 99fdd6a6-3898-4cfe-ab2c-80b1ace92081     FML: 7.0.10     NeoForge: 21.5.63-beta
    • My minecraft version is 1.20.1, I haven't had too many issues other than a mod not working sometimes, in which case I usually just delete and sift through the preexisting mods to try to find the issue, but I hit a big wall of not knowing what my issue is now. I just want to make a modpack for me and my partner!!! Here's the latest log url, https://pastebin.com/9LjctgYN 
    • i was having same problem, thanks 
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.