Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

mnn

Members
  • Content Count

    298
  • Joined

  • Last visited

Community Reputation

76 Excellent

About mnn

  • Rank
    Diamond Finder

Converted

  • Gender
    Male
  • URL
    http://366.hopto.org/blog/
  1. That's unfortunate nobody provides support for Forge Gradle. I kinda wonder why Forge moved to it when there's no help even with trivial tasks like this one. Alrighty then, time to hack together some script to repack jars - it will be ugly, but at least working...
  2. Glad to see some tutorials in Scala . I found a bug and some cosmetic blemishes. Highlighted version on gist github - https://gist.github.com/mnn/57cc01980312289f39e9 (it's a working Scala script). import scala.runtime.ScalaRunTime.stringOf import scala.collection.JavaConverters._ // stuff for verifying results, skip to case defs (comment -- 1 --) def doVerify[A](name: String, origRes: A, myRes: A) { val equals = origRes match { case a: Array[_] => a.sameElements(myRes.asInstanceOf[Array[_]]) case _ => origRes.equals(myRes) } if (equals) println(s"Case '$name' fine:
  3. I would like to have a second (obfuscated) jar generated from certain packages. I have almost no experiences with Gradle (but I guess this is rather Forge Gradle question, because I don't know where/how obfuscation is going on). How to achieve this? I tried looking for some Forge Gradle documentation, but without luck. PS: I found some examples of generating API and dev (not obfuscated) jars, but not a one with obfuscated stuff.
  4. Update: in older version 1060 it's working fine - full log at eclipse\logs\fml-client-latest.log . In version 1121 (recommended build) it seems to be broken (fixing transformer crash hasn't change a thing). "Solving" the issue by outputting all to info level feels very dirty, but I don't have a slightest idea how to fix it :'(.
  5. I can't find location of full logs (it used to be in mcp\jars\ForgeModLoader-client-0.log ). I saw some references to fml-client/server-latest.log on this forum, I found only eclipse\logs\latest.log and it's just a copy of console output (no more detailed levels). What needs to be setup to get those full logs or where are they hidden (search for *.log was fruitless)? Or another possibility, FML isn't logging from start so crash on transformer results in no detailed logs?
  6. The penalty is not always high as shown for example here. Also if reflection is used not that often (e.g. few calls after an entity spawn or after world is created) it really doesn't matter what technique is used (but ATs are more difficult to setup and can change a lot in future versions, just as changed now with gradle).
  7. I'm curious where in JavaDocs is this described, because my local Forge sources look like this (load event, #1060): /* * Forge Mod Loader * Copyright (c) 2012-2013 cpw. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * Contributors: * cpw - implementation */ package cpw.mods.fml.common.event; import cpw.mods.fml.common.LoaderState.ModState; public class FMLInitializationEven
  8. This mod can be combined with some on-crash-restart script/app (e.g. MineStart). But yes, if you're looking for auto-restart then this mod isn't doing that exactly - it's supposed to be part of an "on demand" service. This mod handles auto-shuttingdown, but if you want players to be able to start server, you have to add another part - in OP is a link to the blog post which describes already working solution (the "starting" part there is a simple web page in php).
  9. Any news about this problem? Current "solution" - double compilation (with tossing away errors) is not optimal.
  10. It should be simple - make a new ItemStack with head item. Modify NBT of this ItemStack . Add a recipe in which this ItemStack will be an output.
  11. I'm totally ignoring your crafting system and writing it from a perspective of vanilla crafting (if you are doing it same/similar way all of this should apply). To make a recipe you implement IRecipe and register it - e.g. GameRegistry.addRecipe(new MyRecipe(params)) . In this custom recipe you can specify what is a result of crafting depending on a current crafting matrix (input items = ItemStacks). Then you simply copy generic crafting result and add/modify needed NBT tags. example I haven't tried it, but if you override public Icon getIconIndex(ItemStack par1ItemStack)
  12. I think even using the other FML loader you still need to add zips/jars to the classpath. I'm curious why the urlclassloader isn't working (the snippet in the answer expects jar/zip file, not a directory - that can be otained e.g. new File("dirPath").listFiles() ). Do you have good path? Do you have properly organized insides of the jar/zip?
  13. Do you set internal name - e.g. via setUnlocalizedName ? It should be unique for every item (and by that internal name it also maps translations - the names shown in-game).
  14. That is strange, I'm using virtually same code (isn't the getMinecraft() redundant?) and it spawns particles normally.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.