• 0

    posted a message on How to Install Forge (Manually/In Code)

    I would have done that sooner but it seems they are a little hostile towards people creating their own launcher, especially one that downloads Forge directly (understandably, security concerns and bypassing their main source of income).


    Anyways, I just ended up using Charles Proxy to reverse engineer how MultiMC handles it, so I'll just stick with that. Thanks for the input!

    Posted in: Modification Development
  • 0

    posted a message on How to Install Forge (Manually/In Code)

    I'm creating a Minecraft Launcher as a final project for my Computer Science course in C# with WinForms (end me).


    Everything vanilla works 1.7.x through 1.12.2 (and 1.6.x except the assets don't load), authentication, game files, libraries, etc. I'm not worried about making other versions work for now.


    I'm looking into adding the ability to install Forge from within the launcher. I'd like it to work basically the same as MultiMC, where a user can choose a Forge Version from a list, and the Forge libraries will download and be installed.


    I assume this would work by


    • Downloading Forge jar from files.minecraftforge.net/maven/net/minecraftforge/forge/[minecraft_version]-[forge_version]/forge-[minecraft_version]-[forge_version]-universal.jar and referencing it in the classpath
    • Downloading extra libraries required by Forge and adding them to the classpath (and natives path?)
    • Changing the main class to whatever Forge expects
    • Adding the tweakClass launch arg to whatever Forge expects
    • Launching the game with the modified launch args

    The things I would like to know:


    • Does Forge have a version manifest I can pull info from like vanilla? If not, how can I get a list of forge versions available (with their respective IDs) for a given Minecraft version
    • Where do I download Forge libraries from? Opening a forge universal JAR, the libraries are listed in version.json but every URL points to files.minecraftforge.net/maven/, and checking that URL, I don't see the libraries listed anywhere.
    • Is there any way to download the version.json inside of each Forge JAR directly (without getting the JAR itself)?
    • Are there any additional native libraries used by forge that need to be extracted?
    • Are my assumptions above correct? Am I missing anything?

    I haven't been able to find any documentation on this stuff, so I would appreciate it if anyone could point me in the right direction. In the meantime, I'll keep digging through launcher sources and see if I can figure anything out.




    Resources I've already checked:

    https://minecraft.gamepedia.com/Mods/Installing_OptiForge/Manual_Install/Modify_Existing (incomplete)

    https://www.wiki.vg

    MultiMC source code

    ATLauncher source code

    Posted in: Modification Development
  • 0

    posted a message on drawTexturedModalRect in GUI working a bit funky ...

    The texture can be any multiple of 256x256, however if your texture is say, twice that size, then when using drawTexturedModalRect(), a pixel (1x1) is actually 2x2 (twice the size). So on a 512x512 image, if your square is 32x32 pixels, just divide that by two and put 16x16 (do the same with the origin point of the texture, divide by two).

    Posted in: Modification Development
  • 0

    posted a message on Optifine and Shaders Mod Crash Error

    If Forge is installed, have you previously used Optifine and Xray together in 1.8.8? My best bet is that the Xray mod overwrites some of the core rendering code after Optifine already did, so when Optifine is trying to use methods it added to the code, it can't find them because Xray overwrote them. I would suggest using MultiMC and changing the loading order so that the Xray mod loads before Optifine.


    Also, do you have a seperate shaders mod installed? At some point the Optifine dev decided to include the shaders mod into Optifine, so that the normal shaders mod is no longer required (This is why I specifically mentioned 1.8.8 earlier).

    Posted in: Java Edition Support
  • 0

    posted a message on Please help

    Please provide logs, or you probably won't get help.

    Posted in: Java Edition Support
  • 0

    posted a message on Why most are hating 1.9?

    I can't wait for the Forge team to try to update the Forge API. Oh boy ;)

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on My opinion of Minecraft 1.9

    I have a pretty strong feeling that anything that touches combat will need to be overhauled. The new combat has more than just a "wait to attack again" timer. It has new NBT data, there are now different identifiers based on which hands you hold your weapons in, classes will no doubt be updated.

    Posted in: Recent Updates and Snapshots
  • 0

    posted a message on Pre 1.8 Slime Block Mod

    Tinkers construct has the bouncy, trampoline functionality of a slime block, but I haven't seen anything that can grab surrounding blocks and allow you to make piston contraptions with them.

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on One Handed First Person mode Mod?

    I'm not too fluent in Java (I'm more C# and don't have the patience to learn the Java syntax) so I couldn't do this, but i'm sure this could just be done by making the camera change direction based on your WASD inputs... So when you press left (A) the camera would turn left, and same with right. Now you may need to override how Minecraft does shifting to the left and right but that could probably just be done by making it so when you press left, it puts the exact same velocity to the right. Perhaps an MC modder could take this up.

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on MrCrayfish's Furniture Mod v4.1 - The Outdoor Update! (Updated: 9/1/2017)
    Hello!

    Upon launching your mod with my set of mods I crash and am notified of the duplicate "achievement.install" stat.

    It seems to be crashing with Food Plus, and my friend says the same happens with Pixelmon.

    The developer of Food Plus has already been notified, and I thought I should tell you as well.

    I'm not going to bother give a crash log since it's just an id that needs to be changed, and I really don't think you need it.

    Thanks!
    Posted in: Minecraft Mods
  • 0

    posted a message on Vanilla 1.6 on Technic Launcher
    You simply can't at the moment. Its the same with MultiMC currently. Since Mojang decided to be evil and completely revamp the MC launcher, they need to find a new way to run MC 1.6+ since it now requires tons of stuff (For Example, 2 Jars now). For now I have to suggest using the new MC launcher, or using Magic Launcher if you want to mod easily (I've heard they got MC 1.6 compatibility working, but i'm not sure.)
    Posted in: Mods Discussion
  • 0

    posted a message on Custom Recipe Mod
    Try it like this: Shapeless (263:1) > (263, 1)
    If that doesn't work, then I don't know what will...
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.5.2] GLSL SHADERS FOR MINECRAFT 1.5.2!
    The shaderpack folder you gave us has shaders, but it does not contain the shader you used. I have tried every shader in the folder but none of them gave off the shadow that you got... Any idea`s why?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Minecraft News, and Minecraft Realms
    I always wanted something like this after they made LAN servers. I hope its not too much money. 3 - 8 bucks for 2 months would be good, but I almost know that its gonna be more expensive. I hope that the player limit is expanded during public beta/after beta. Maybe 10 - 15 players. Even if the player limit isn't expanded, i'm gonna get it if it's cheap.
    Posted in: Minecraft News
  • To post a comment, please or register a new account.