• 1

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory
    Quote from Dats_ME»

    Any chance of making a 1.13.2 version for Rift mod Loader?


    I'm learning how to use Rift, as well as planning some new feature. Because I'm busy recent days, I may not get it done too soon. But as always, I'm not going to abandon this mod.
    Posted in: Minecraft Mods
  • 0

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory
    Quote from JoZi799»

    Will it work in forge ? Like so :

    https://hypixel.net/threads/guide-using-forge-and-liteloader-together.506393/


    I tried it but I'm not sure if I did it wrong ..

    Also it works on skeleton horses right ?



    It works in forge, but not unless with LiteLoader installed together. Mumfrey, the author of LiteLoader, always releases a Forge-compatible version after a couple of weeks after a "trial" version. According to Mumfrey's guide, you don't need to use the installer of LiteLoader if you have the right Forge installed. Instead, you put LiteLoader's jar into Forge's mod folder, just like another Forge mod.

    About skeleton horses, of course, my mod works with them as well. It just gets attribute values from a beast of burden of any kind.

    Posted in: Minecraft Mods
  • 0

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory
    Quote from genandnic»

    Do you think you could display the percentiles on the screen, outside of the menu? Or just a way to see an untamed horses stats? So that when searching for horses in the wild, you don't have to tame each one to see how fast it is.



    I haven't tried it because the current way was how Wubbi's old mod worked. Also, the current way is more stable, safer, and simpler.
    I'll need to learn how to do things with string labels above entities if I'm going to do it right now. It may need much time to achieve.

    I can't promise that I'll certainly add that function, but it's a good thing to consider.

    Posted in: Minecraft Mods
  • 0

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory

    Sorry for late checking. Update for 1.12.2 is out now! Hacking of .json is longer needed.

    Posted in: Minecraft Mods
  • 1

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory
    Quote from minecrafter147»

    I know someone's mentioned forge before, but you really should do this mod on forge as well. Its easier for people to maintain 1 modloader instead of 2.


    I had considered that once, but now I wouldn't if not necessary. I don't have enough time to dig into Forge right now.
    Also, there are many advantages of LiteLoader for modders to make client-only and new-objects-free mods. We don't need to handle most packets ourselves, we can obviously shorten our code, and we can use pre-made listeners to do what we want.

    You could try asking MamiyaOtaru, the author of VoxelMap, for converting his mod back to forge. He might tell you more reasons of staying in LiteLoader.

    Quote from Dats_ME»

    Just as you got it fixed they update to 1.12.1 lol well at least it was working ;)



    Thanks for telling me. I've done porting to 1.12.1.

    Posted in: Minecraft Mods
  • 0

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory

    HorseAttribs for Minecraft 1.12 is out now!

    Quote from Dats_ME»

    Mumfrey is awesome i'm sure he will be able to help! And he is usually very good about answering questions on the forum.



    Yeah. He finally answered, and my problem is solved now.

    Posted in: Minecraft Mods
  • 0

    posted a message on LiteLoader
    Quote from Mumfrey»

    I didn't see those. Your issue is you haven't set your project up for mixin. If you're using the MDK that doesn't include the mixin configuration like applying MixinGradle and setting the refmap, so you need to copy those sections from your old buildscript. The MDK is meant to be a starter for new mods so it doesn't include the more complex aspects like using mixins.




    It's finally solved. Thanks!
    I've compared the old build.gradle with buildscript.gradle and project.gradle, then I've added the lines into the new build.gradle:


    buildscript {
        (omitted)
        repositories {
            maven {
                name = 'sponge'
                url = 'http://repo.spongepowered.org/maven'
            }
        }
        dependencies {
            classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
        }
    }
    
    (omitted)
    
    apply plugin: 'org.spongepowered.mixin'
    sourceSets {
        main {
            // Refmap declaration must match the refmap name specified in the json config
            refMap = "mixins.horseattribs.refmap.json"
        }
    }
    
    mixin {
        defaultObfuscationEnv notch
    }


    Besides, can you add description into litemod{json{ }} or gradle.properties to make the mdk more friendly to new modders? I know parameter description because I've ever used your old ExampleMods.

    Also, would you mind to give FFlanker of #5778 a hand? I don't see his query answered.

    Posted in: Minecraft Mods
  • 0

    posted a message on LiteLoader

    #5778 and #5777 are still not solved. Please don't ignore us.

    Posted in: Minecraft Mods
  • 0

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory
    Quote from Dats_ME»

    Not sure if this will help with the issue your having but, there is now a pre-release of the MCP for 1.12.

    It's an error of ":compileJavaNote:", where the mixin method isn't working. I've left a message to the author of LiteLoader, and I'm waiting for his reply.

    Since I'm coding on LiteLoader, I don't need to use MCP directly. Thanks anyway.
    Posted in: Minecraft Mods
  • 0

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory

    Since I have a major problem in 1.12 modding, I decided to upload the new version for 1.11.2 first.

    Now it displays llamas' attributes differently to horses. It doesn't have "J" and "S", instead, it displays the strength tiers "T".


    Major Incompatibility report for you


    This mod has an incompatibility with Not Enough Items for 1.8+, causing a crash in that mod's ASM transformations.




    I was unable to reproduce the error you had. Version 1.0.3 for 1.11.2 works fine with NotEnoughItems for 1.11.2.
    Please note "1.8+" doesn't mean ability to work with Minecraft 1.9 or newer. You should use only the version of NEI exactly for your Minecraft version.

    Posted in: Minecraft Mods
  • 0

    posted a message on LiteLoader

    Does @Redirect have anything changed? I got an error when running runClient: (using Minecraft 1.12; mappings=snapshot_20170715)

    Working Directory: D:\.....\HorseAttribs
    Gradle User Home: C:\.....\.gradle
    Gradle Distribution: Gradle wrapper from target build
    Gradle Version: 2.11
    Java Home: C:\Program Files\Java\jdk1.8.0_131
    JVM Arguments: None
    Program Arguments: None
    Gradle Tasks: runClient
    
    :extractMcpMappings SKIPPED
    :liteloaderDeobfCompileDeobfDepTask0 SKIPPED
    :liteloaderDeobfCompileRemapDepSourcesTask1 SKIPPED
    :deobfCompileDummyTask
    :deobfProvidedDummyTask
    :sourceApiJava
    :compileApiJava UP-TO-DATE
    :processApiResources UP-TO-DATE
    :apiClasses UP-TO-DATE
    :sourceMainJava
    :compileJavaNote: SpongePowered MIXIN Annotation Processor Version=0.6.10
    Note: ObfuscationServiceMCP supports type: "searge"
    Note: ObfuscationServiceMCP supports type: "notch"
    D:\.....\HorseAttribs\build\sources\main\java\com\wbx\horseattribs\mixin\MixinEntityPlayerSP.java:53: warning: Cannot find method mapping for @At(INVOKE.<target>) 'Lnet/minecraft/client/Minecraft;displayGuiScreen(Lnet/minecraft/client/gui/GuiScreen;)V'
    	@Redirect(method = "openGuiHorseInventory(Lnet/minecraft/entity/passive/AbstractHorse;Lnet/minecraft/inventory/IInventory;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;displayGuiScreen(Lnet/minecraft/client/gui/GuiScreen;)V"))
    	^
    D:\.....\HorseAttribs\build\sources\main\java\com\wbx\horseattribs\mixin\MixinEntityPlayerSP.java:53: error: No obfuscation mapping for @Redirect target openGuiHorseInventory
    	@Redirect(method = "openGuiHorseInventory(Lnet/minecraft/entity/passive/AbstractHorse;Lnet/minecraft/inventory/IInventory;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;displayGuiScreen(Lnet/minecraft/client/gui/GuiScreen;)V"))
    	^
    1 error
    1 warning
     FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':compileJava'.
    > Compilation failed; see the compiler error output for details.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    
    BUILD FAILED
    
    Total time: 2.787 secs


    I copied the mixin method from my 1.11.2 mod, where the @Redirect works perfectly. I've checked the paths, method names, and argument types in Minecraft 1.12, and all of them are identical to 1.11.2's. I also tried to reset the project ("clean", "cleanEclipse", re-unzip mdk, etc.), but the error wasn't solved.


    Besides, the new build.gradle doesn't have "refmap" argument. Does it mean that we no longer need "refmap" in our .json for mixin?

    Posted in: Minecraft Mods
  • 0

    posted a message on LiteLoader
    Quote from Mumfrey»

    Yes but did you clean and cleanCache to get rid of the broken part-decompiled artefacts? The mdk for 1.12 is here.



    I didn't use clean and cleanCache; instead, I deleted the failed project and re-copied a fresh one.

    I never knew http://mdk.liteloader.com/ , the mdk page. The build.gradle looks totally different to old ExampleMods, and I don't see "mappings" and argument. Does it mean that the mdk now automatically fetch the newest obfmap? Or the argument has been moved somewhere?
    Also, ExampleMod for 1.11 seems unable to work on 1.12 straightly because VertexBuffer.class has been changed a lot (not only the path but also all methods inside). It certainly needs update.

    Anyway, I'll try to upgrade my own mod first, using the mdk you provided.

    Posted in: Minecraft Mods
  • 0

    posted a message on LiteLoader

    So, which version of ForgeGradle should I use? I see 2.3 on GitHub, which is the only version newer than 2.2.

    I tried to change it to "classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'", but setupDecompWorkspace still threw the very same error message.

    I also tried to change the wrapper from 2.9 to 2.12, then to 2.14, but none of them worked.


    This is really frustrating. Maybe you can update your ExampleMod for Minecraft 1.12?

    Posted in: Minecraft Mods
  • 0

    posted a message on LiteLoader

    I'm unable to begin 1.12 modding due to an error of setupDecompWorkspace:



    Working Directory: D:\.....\ExampleMod
    Gradle User Home: C:\.....\.gradle
    Gradle Distribution: Specific Gradle version 2.9
    Gradle Version: 2.9
    Java Home: C:\Program Files\Java\jdk1.8.0_131
    JVM Arguments: None
    Program Arguments: None
    Gradle Tasks: setupDecompWorkspace
    
    :extractMcpMappings
    Download http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp_snapshot/20170713-1.12/mcp_snapshot-20170713-1.12.zip
    :liteloaderDeobfCompileDeobfDepTask0
    :liteloaderDeobfCompileRemapDepSourcesTask1
    :deobfCompileDummyTask
    :deobfProvidedDummyTask
    :getVersionJson
    :downloadClient SKIPPED
    :extractDependencyATs SKIPPED
    :extractMcpData SKIPPED
    :genSrgs
    :deobfMcSRG
    Applying SpecialSource...
    Applying Exceptor...
    :decompileMc
    :fixMcSourcesPatching failed: minecraft\net\minecraft\client\Minecraft.java
    Hunk 1 failed! Cannot find hunk target
     
           while(true) {
              try {
    -            if (!this.field_71425_J) {
    -               break;
    -            }
    +            while(this.field_71425_J) {
     
                 if (!this.field_71434_R || this.field_71433_S == null) {
                    try {
    File state
    package net.minecraft.client;
    
      == long code omitted ==
    
     FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':fixMcSources'.
    > com.cloudbees.diff.PatchException: Cannot find hunk target
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    
    BUILD FAILED
    
    Total time: 2 mins 38.196 secs

    I tried the old trick of modifying the versions and mapping in build.gradle in the newest ExampleMod (master-48a4b5c6be4fe5ea4f44646d7425bca68076cb91), then I got the error every time.
    Here's the content of build.gradle:


     
    buildscript {
     repositories {
     mavenLocal()
     mavenCentral()
     maven {
     name = "sonatype"
     url = "https://oss.sonatype.org/content/repositories/snapshots/"
     }
     maven {
     name = "forge"
     url = "http://files.minecraftforge.net/maven"
     }
     maven {
     name = 'sponge'
     url = 'http://repo.spongepowered.org/maven'
     }
     }
     dependencies {
     classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
     classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
     }
    }
    
    apply plugin: 'net.minecraftforge.gradle.liteloader'
    apply plugin: 'org.spongepowered.mixin'
    
    version = "0.1"
    group = "com.mumfrey.examplemod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
    archivesBaseName = "examplemod"
    
    minecraft {
     version = "1.12"
     mappings = "snapshot_20170713"
     runDir = "run"
    }
    
    sourceSets {
     main {
     // Refmap declaration must match the refmap name specified in the json config
     refMap = "mixins.example.refmap.json"
     }
    }
    
    mixin {
     defaultObfuscationEnv notch
    }
    
    litemod {
     json {
     name = "test"
     mcversion = "1.12"
     mixinConfigs += "mixins.example.json"
     }
    }
    
    jar {
     from litemod.outputs
    }
    Posted in: Minecraft Mods
  • 2

    posted a message on HorseAttribs - Show Horse's/Llama's Attributes in Its Inventory

    Sorry for late reply because of being busy.

    Quote from skyli91»

    Hi! Could you please update for 1.12? It's not working right now.



    Of course I will. Sorry for being slow.


    Major Incompatibility report for you


    This mod has an incompatibility with Not Enough Items for 1.8+, causing a crash in that mod's ASM transformations.



    Thanks for reporting. Although I'd never dealt with any conflict issue any once, I'll see what I can do.


    Quote from idfkmg»

    Any plans to add llama stat viewing to this mod also?



    I'll consider it. Once I figure out how attributes of a llama works, I'll add it in both the one for 1.11.2 and the one for 1.12.

    Quote from Thermawrench»

    Is there anything similar to this on Forge? It's such a chore for me to check stats when breeding to sort out the ones the ones that are for selling.



    If I knew anything like my mod and keep updating, I would have never made one myself. All I know is something adding new items for the purpose or installing on sever side, which doesn't work in multiplayer games.
    Using the inventory screen is the least harmful way to do the job.

    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.