Jump to content

Recommended Posts

Posted

I'm leaving this post right before I crash, so bear with me here...

 

I'm a C# developer writing a custom cross-platform install package (through Mono). The install package is small and configurable, and provides the end-user with a single package for installing the provided Forge version as well as deploying a few resource packs and Forge mods.

 

My question has to do with the Forge Installer itself - there are three modes once launced: install client, install server, and extract. All three require you to select a destination. I've attempted to use the extract option, which dumps forge-1.8.8-11.15.0.1655-universal.jar to my selected folder. I then, for test purposes, attempt to execute the program with the --help flag, but it appears to just instantly close. I get the same result with the installer .jar and .exe.

 

What I would like to do, ultimately, is either replicate the installation process within C# or to have my installer kick off a Forge Client Install.

 

Question-time then...

 

What is the purpose of forge-1.8.8-11.15.0.1655-universal.jar? There does not appear to be an attached GUI (double clicking does nothing) and running the program through the command line does not appear to have any results either. I can't find anything on the Wiki for this either - it mentions that "extract" is an option, but it does not elaborate further.

 

My second question is whether or not there are any command line options for installing the client. So far, the only command line options I can find are --help, --install-server, and --extract, though these are poorly documented on the wiki.

 

Lastly, has anyone else attempted to automate this process with any degree of success? I can re-write the entire installer in C# or I can fork the Java installer and trim out what I don't need, providing a surface for my C# app. However, for logging purposes, having what I need in the C# installer seems to be a better option. Food for thought.

 

Thanks,

 

Fox

Posted

I'm leaving this post right before I crash, so bear with me here...

 

I'm a C# developer writing a custom cross-platform install package (through Mono). The install package is small and configurable, and provides the end-user with a single package for installing the provided Forge version as well as deploying a few resource packs and Forge mods.

 

My question has to do with the Forge Installer itself - there are three modes once launced: install client, install server, and extract. All three require you to select a destination. I've attempted to use the extract option, which dumps forge-1.8.8-11.15.0.1655-universal.jar to my selected folder. I then, for test purposes, attempt to execute the program with the --help flag, but it appears to just instantly close. I get the same result with the installer .jar and .exe.

 

What I would like to do, ultimately, is either replicate the installation process within C# or to have my installer kick off a Forge Client Install.

 

Question-time then...

 

What is the purpose of forge-1.8.8-11.15.0.1655-universal.jar? There does not appear to be an attached GUI (double clicking does nothing) and running the program through the command line does not appear to have any results either. I can't find anything on the Wiki for this either - it mentions that "extract" is an option, but it does not elaborate further.

 

My second question is whether or not there are any command line options for installing the client. So far, the only command line options I can find are --help, --install-server, and --extract, though these are poorly documented on the wiki.

 

Lastly, has anyone else attempted to automate this process with any degree of success? I can re-write the entire installer in C# or I can fork the Java installer and trim out what I don't need, providing a surface for my C# app. However, for logging purposes, having what I need in the C# installer seems to be a better option. Food for thought.

 

Thanks,

 

Fox

Posted
  On 5/24/2016 at 4:42 PM, diesieben07 said:

Preface: making your own stuff is kinda discouraged, since forge pays for itself using the ads that are run when you download the installer.

 

Understood. I'd been wanting to limit the number steps, but having a user install the Forge client should not be too difficult. Instead, I'll either provide a method within my plugin to navigate through the webpage (.net webbrowser) so they see the ads or provide a check for the forge version to exist within .minecraft/version, just checking major version (i.e. "1.8-forge") -- if any of those exist, all is well. If not, stop the user and have them download Forge. Thanks for the help!

Posted
  On 5/24/2016 at 4:42 PM, diesieben07 said:

Preface: making your own stuff is kinda discouraged, since forge pays for itself using the ads that are run when you download the installer.

 

Understood. I'd been wanting to limit the number steps, but having a user install the Forge client should not be too difficult. Instead, I'll either provide a method within my plugin to navigate through the webpage (.net webbrowser) so they see the ads or provide a check for the forge version to exist within .minecraft/version, just checking major version (i.e. "1.8-forge") -- if any of those exist, all is well. If not, stop the user and have them download Forge. Thanks for the help!

Posted
  On 5/24/2016 at 7:20 PM, Foxtrek_64 said:
Understood. I'd been wanting to limit the number steps, but having a user install the Forge client should not be too difficult.

 

1. Go here

2. Click this button

3. Run

4. Click that button

5. ???

6. Profit

7. Forge installed

 

Installing Forge is literally the easiest it has ever been.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 5/24/2016 at 7:20 PM, Foxtrek_64 said:
Understood. I'd been wanting to limit the number steps, but having a user install the Forge client should not be too difficult.

 

1. Go here

2. Click this button

3. Run

4. Click that button

5. ???

6. Profit

7. Forge installed

 

Installing Forge is literally the easiest it has ever been.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Locking this thread.

1) As stated, ads are how we pay the bills here at Forge. So bypassing our installer/downloads is not helpful

2) Your initial post makes it extremely clear that you have spent ZERO time actually doing any research into how anything in Forge or Minecraft modding is setup. All of this is open source, you can see exactly whats going on. You can see what the different jars and options are for by just looking at the installer and the minecraft folder post install.

3) The installer can ALREADY be modified to bundle any modpacks you want, you just have to look into it. Tho again this bypasses our downloads so its discouraged.

4) Mod/ModPack installation is stupid simple, literally "Install Forge, Put mods in mods folder" you don't need a custom installer for that.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

Locking this thread.

1) As stated, ads are how we pay the bills here at Forge. So bypassing our installer/downloads is not helpful

2) Your initial post makes it extremely clear that you have spent ZERO time actually doing any research into how anything in Forge or Minecraft modding is setup. All of this is open source, you can see exactly whats going on. You can see what the different jars and options are for by just looking at the installer and the minecraft folder post install.

3) The installer can ALREADY be modified to bundle any modpacks you want, you just have to look into it. Tho again this bypasses our downloads so its discouraged.

4) Mod/ModPack installation is stupid simple, literally "Install Forge, Put mods in mods folder" you don't need a custom installer for that.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This mod lets you choose an element power, Earth, Wind, Fire, or Water. Also two secret element powers Light and Darkness. Each power gives good a bad things, Earth lets you dig through anything but ores and bedrock, Wind lets you jump high in the air every three seconds, Fir lets you throw fire balls and you are immune to any flame/lava but you can't go into water or else you take damage, Water you swim and break blocks under water quicker and you can get rid of water like a sponge but you take more damage when in fire/lava, Light makes you faster at day but slower at night you are able to throw light spears that do four hearts and can go through any armor, Darkness let's you be faster at night but slower at day mobs don't harm you but peaceful mobs run away from you you are able to spawn ink creatures around you that are like dogs but are stronger. another thing in the mod is that there are other dimensions that can get you ores to make better armor and weapons, each dimensions are are good for a certain element though each dimension has a boss depending on which dimension one dimension has more than one boss, each elements are required to defeat the bosses with each others help.
    • Read the posts above yours, it tells you exactly how to do it, instructions are the same if it's making a forge installation or a vanilla one, just make a new folder for the game directory.
    • Yes that’s the full log, I managed to get it working last night, the anvil fix mod is what was causing it to crash
    • Hey guys, i'm currently developping a mod with forge 1.12.2 2860 and i'm using optifine and gradle 4.9. The thing is i'm trying to figure out how to show the player's body in first person. So far everything's going well since i've try to use a shader. The player's body started to blink dark when using a shader. I've try a lot of shader like chocapic, zeus etc etc but still the same issue. So my question is : How should i apply the current shader to the body ? At the same time i'm also drawing a HUD so maybe it could be the problem?   Here is the issue :    And here is the code where i'm trying to display the body :    private static void renderFirstPersonBody(EntityPlayerSP player, float partialTicks) { Minecraft mc = Minecraft.getMinecraft(); GlStateManager.pushMatrix(); GlStateManager.pushAttrib(); try { // Préparation OpenGL GlStateManager.enableDepth(); GlStateManager.depthMask(true); GlStateManager.enableAlpha(); GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // Éclairage correct pour shaders GlStateManager.enableLighting(); RenderHelper.enableStandardItemLighting(); GlStateManager.enableRescaleNormal(); // Active la lightmap pour les shaders mc.entityRenderer.enableLightmap(); // Position de rendu interpolée double px = player.lastTickPosX + (player.posX - player.lastTickPosX) * partialTicks; double py = player.lastTickPosY + (player.posY - player.lastTickPosY) * partialTicks; double pz = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks; GlStateManager.translate( px - mc.getRenderManager().viewerPosX, py - mc.getRenderManager().viewerPosY, pz - mc.getRenderManager().viewerPosZ ); // Rendu du joueur sans la tête Render<?> render = mc.getRenderManager().getEntityRenderObject(player); if (render instanceof RenderPlayer) { RenderPlayer renderPlayer = (RenderPlayer) render; boolean oldHeadHidden = renderPlayer.getMainModel().bipedHead.isHidden; boolean oldHeadwearHidden = renderPlayer.getMainModel().bipedHeadwear.isHidden; renderPlayer.getMainModel().bipedHead.isHidden = true; renderPlayer.getMainModel().bipedHeadwear.isHidden = true; setArmorHeadVisibility(renderPlayer, false); renderPlayer.doRender(player, 0, 0, 0, player.rotationYaw, partialTicks); renderPlayer.getMainModel().bipedHead.isHidden = oldHeadHidden; renderPlayer.getMainModel().bipedHeadwear.isHidden = oldHeadwearHidden; setArmorHeadVisibility(renderPlayer, !oldHeadwearHidden); } // Nettoyage post rendu mc.entityRenderer.disableLightmap(); GlStateManager.disableRescaleNormal(); } catch (Exception e) { // silent fail } finally { GlStateManager.popAttrib(); GlStateManager.popMatrix(); } }   Ty for your help. 
    • Item successfully registered, but there was a problem with the texture of the item, it did not insert and has just the wrong texture.     
  • Topics

×
×
  • Create New...

Important Information

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