Jump to content

Colecf

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Colecf

  1. Finalized the code and created a pull request on github. https://github.com/MinecraftForge/MinecraftForge/pull/742
  2. I know this has been suggested before, but I'd like a way to make an options screen for my mod. Something like Options > Mod options > mod name. I made a rough implementation attached below. (It doesn't scroll if there's enough mods that use it) It requires a tweak to GuiOptions (Unless there's some other way of doing it) In initGui(): this.buttonList.add(new GuiButton(9001, this.width/2-155+160, this.height / 6 -12 + 24*3, 150, 20, "Mod options")); In actionPerformed() if (par1GuiButton.id == 9001) { this.mc.gameSettings.saveOptions(); GuiModOptions.getInstance().parentScreen = this; this.mc.displayGuiScreen(GuiModOptions.getInstance()); } A mod can register an options page like this: GuiModOptions.addOptionPage("Button title", guiScreenWithParentSubclass); Screenshots here Since attachments aren't working: GuiModOptions GuiScreenWithParent
  3. Figured it out, somehow the owner for mcp/conf was root instead of me. I chown -R'ed that (-R was neccicary, there was another subfolder with the same problem) and got another error with RXTXcomm.jar, which I had really messed up permissions for that I fixed. Now it works. Not sure how mcp/conf was messed up, I just downloaded it and then ran install.sh.
  4. I'm trying to install minecraft forge, which I've done before, but for some reason when I run install.sh I get this error: ~/code/forge1.4.6-controller$ ./install.sh ================ Forge ModLoader Setup Start =================== MCP Detected already, not downloading Setting up MCP Restoring commands.py backup patching file commands.py Commands patch applied successfully Traceback (most recent call last): File "install.py", line 49, in <module> main(os.path.abspath('mcp')) File "install.py", line 18, in main setup_mcp(fml_dir, mcp_dir, True) File "/Users/Cole/code/forge1.4.6-controller/fml/fml.py", line 694, in setup_mcp shutil.rmtree(mcp_conf) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 249, in rmtree onerror(os.remove, fullname, sys.exc_info()) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 247, in rmtree os.remove(fullname) OSError: [Errno 13] Permission denied: '/Users/Cole/code/forge1.4.6-controller/mcp/conf/astyle.cfg' ~/code/forge1.4.6-controller$ MCP refuses to be run as root, so that's not an option. The file is there, and I haven't opened it or anything. The permissions on it are -rw-rw-r-- 1 root admin, like most everything else in the folder. What am I doing wrong? This is on forge 6.5.0.489
×
×
  • Create New...

Important Information

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