Jump to content

libarclite

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by libarclite

  1. This works for me. Any advice on how to package the mod-specific en_US.lang file? I've been able to put this file in eclipse/assets/<modid>/lang/en_US.lang And see correctly localized strings. but I'm at a loss for where to put it within my mod's jar file.
  2. My mod serializes sub-volumes as JSON data, in effect 3D copy & paste. I wrote my mod for 1.6.4 and so used blockId values to represent serialized blocks. Now that I've mostly ported to 1.7.2, I'm sticking with blockIds for backward compatibility. I found a way to obtain the blockId for a Block using the block registry. I'll post more details if there's interest.
  3. Well, I might look into implementing this myself. I've used BCEL for various other projects, so undoing my changes as a post-process might be doable. I would be interested to learn more about the new process, and would like to contribute.
  4. Indeed. So simple. I was importing the project into a separate workspace. That was the cause of my sound problems.
  5. Since eclipse is so powerful for refactoring, I'm tempted to manually deobfuscate methods as I discover what they do. However, I would like to provide a bread crumb for the reobfuscation process to use when I want to deploy my mod. Has anybody ever considered using Java annotations to leave such a breadcrumb? Something like: @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Breadcrumb { /** * The unique mod identifier for this mod */ String obfuscatedName(); } Then when you rename a method, you'd write: @Breadcrumb(obfuscatedName = "func_149711_c") public Block setHardness(float hardness) { ... } Thoughts?
  6. I'm finding this really helpful: bbdiff forge/mcp/src/minecraft/net/minecraft/world/World.java MinecraftForge/eclipse/Forge/src/main/java/net/minecraft/world/World.java Diffing the older sources against the new ones. This tells me that World.getBlockId() now maps to World.func_147439_a(), which now returns a Block. What's the best way to contribute these findings to mcp?
  7. I'm puzzled, because the contents of forge-1.7.2-10.12.0.985-src/eclipse/assets is: find sounds/mob/spider sounds/mob/spider sounds/mob/spider/death.ogg sounds/mob/spider/say1.ogg sounds/mob/spider/say2.ogg sounds/mob/spider/say3.ogg sounds/mob/spider/say4.ogg sounds/mob/spider/step1.ogg sounds/mob/spider/step2.ogg sounds/mob/spider/step3.ogg sounds/mob/spider/step4.ogg What am I missing?
  8. On OSX, I've noticed that when running I hear no sounds, but see lots of messages on the console like this: [22:57:55] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.cow.say [22:57:55] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.spider.say [22:57:55] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.spider.step [22:57:55] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.cow.step [22:57:56] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:mob.spider.step I'd like to understand how to fix this.
  9. In the 1.6.4 code, I could change a block at a chunk coordinate like this: world.setBlock(pt.posX, pt.posY, pt.posZ, blockID, 0, 3); How do I do this in the 1.7.2 world?
  10. I've seen code examples like this in other forum posts: Item.field_150901_e.func_148756_a(...); I'm assuming (hoping) that there will eventually be a version of the code that provides an unobfuscated name for this method, like in the 1.6.4 version of Forge. Until that time, I'm going to be writing some adapter methods to insulate my code from these names. Thanks in advance.
  11. I added the following to the VM args to load a regular complexity world: -Xmx1G I believe that's what the standard launcher uses.
  12. Thanks for this thread. This got me past the same error on OSX. I can now run with the example mode in a test world. Note, I did have to increase the default memory to 1G by adding: -Xmx1G to the VM arguments.
  13. I'm getting the same results with forge-1.7.2-10.12.0.982-src. I followed the tutorial eclipse setup instructions, and created the client and server configurations, and got the following console output: [11:23:16] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [11:23:16] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [11:23:16] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [11:23:16] [main/INFO]: Forge Mod Loader version 7.2.30.982 for Minecraft 1.7.2 loading [11:23:16] [main/INFO]: Java is Java HotSpot 64-Bit Server VM, version 1.6.0_65, running on Mac OS X:x86_64:10.9.1, installed at /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home [11:23:16] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [11:23:16] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [11:23:16] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [11:23:16] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [11:23:16] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [11:23:16] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [11:23:16] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [11:23:17] [main/ERROR]: The minecraft jar file:/Volumes/Users/libarclite/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982-mcp.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [11:23:17] [main/ERROR]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [11:23:17] [main/ERROR]: Technical information: ClientBrandRetriever was at jar:file:/Volumes/Users/libarclite/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982-mcp.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [11:23:17] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing [11:23:17] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [11:23:17] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [11:23:17] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main} [11:23:18] [main/ERROR]: Unable to launch java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_65] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_65] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: joptsimple.MissingRequiredOptionException: Missing required option(s) ['accessToken'] at joptsimple.OptionParser.ensureRequiredOptions(OptionParser.java:447) ~[OptionParser.class:?] at joptsimple.OptionParser.parse(OptionParser.java:437) ~[OptionParser.class:?] at net.minecraft.client.main.Main.main(Main.java:44) ~[Main.class:?] ... 6 more To get this to build, I did have to muck around with build/unpacked/dev.json, as I reported in another thread. Could this be the cause? I'm running with JDK 1.6 on the Mac, using Mavericks 10.9.1.
  14. Thanks @mabrowning, I was able to kick it by editing the build/unpacked/dev.json file, changing "2.9.1-nightly-20131017" to "2.9.1". Strangely, after the build succeeded, the file reverted to those values, but I think the lwjgl libraries were downloaded from somewhere else. Is there a cleaner way to fix this for OSX? Many thanks.
  15. Attempted to import forge-1.7.2-10.12.0.982-src using the gradle eclipse plugin as well, and got exactly the same problem. The plugin popped up a dialog with the same error message: Could not GET 'https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.8-bin.zip'.
  16. Attempting to build ExampleMod included with forge-1.7.2-10.12.0.982-src, following the tutorial instructions I tried: gradle --info setupDevWorkspace and got the following error messages: Starting Build Settings evaluated using empty settings script. Projects loaded. Root project using build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle'. Included projects: [root project 'forge-1.7.2-10.12.0.982-src'] Evaluating root project 'forge-1.7.2-10.12.0.982-src' using build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle'. Compiling build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle' using StatementExtractingScriptTransformer. Compiling build file '/private/var/tmp/forge-1.7.2-10.12.0.982-src/build.gradle' using BuildScriptTransformer. **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn Resolving: MCP Data version : {MCP_VERSION} Resolved: MCP Data version : unknown MCP Data version : unknown **************************** Resolving: {BUILD_DIR}/unpacked/dev.json Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/dev.json Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.minecraft.net/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982.pom] Resolving: {CACHE_DIR}/minecraft/net/minecraftforge/forge/{API_VERSION}/forge-{API_VERSION}-fmlinjected.jar Resolved: /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982-fmlinjected.jar Resolving: {BUILD_DIR}/sources/java Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/sources/java Resolving: {CACHE_DIR}/minecraft/net/minecraftforge/forge/{API_VERSION}/forge-{API_VERSION}-mcp.jar Resolved: /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982-mcp.jar All projects evaluated. Resolving: {BUILD_DIR}/unpacked/conf/packaged.srg Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/packaged.srg Resolving: {BUILD_DIR}/unpacked/mappings/methods.csv Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/mappings/methods.csv Resolving: {BUILD_DIR}/unpacked/mappings/fields.csv Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/mappings/fields.csv Resolving: /Volumes/Users/beard/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forge/1.7.2-10.12.0.982/15bef93585b8a794365162090d6f5951814197cd/forge-1.7.2-10.12.0.982-userdev.jar Resolved: /Volumes/Users/beard/.gradle/caches/modules-2/files-2.1/net.minecraftforge/forge/1.7.2-10.12.0.982/15bef93585b8a794365162090d6f5951814197cd/forge-1.7.2-10.12.0.982-userdev.jar Resolving: {CACHE_DIR}/minecraft/net/minecraftforge/forge/{API_VERSION}/forge-{API_VERSION}.jar Resolved: /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.982/forge-1.7.2-10.12.0.982.jar Resolving: {BUILD_DIR}/unpacked/conf/packaged.exc Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/packaged.exc Resolving: {BUILD_DIR}/unpacked/conf/exceptor.json Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/exceptor.json Resolving: {BUILD_DIR}/unpacked/conf/notch-mcp.srg Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/notch-mcp.srg Resolving: {BUILD_DIR}/unpacked/src/main/resources/fml_at.cfg Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/src/main/resources/fml_at.cfg Resolving: {BUILD_DIR}/unpacked/src/main/resources/forge_at.cfg Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/src/main/resources/forge_at.cfg Resolving: {BUILD_DIR}/unpacked/src/main/resources Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/src/main/resources Resolving: {CACHE_DIR}/minecraft/net/minecraft/minecraft_merged/{MC_VERSION}/minecraft_merged-{MC_VERSION}.jar Resolved: /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraft/minecraft_merged/1.7.2/minecraft_merged-1.7.2.jar Resolving: {BUILD_DIR}/unpacked/devbinpatches.pack.lzma Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/devbinpatches.pack.lzma Resolving: {BUILD_DIR}/unpacked/binaries.jar Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/binaries.jar Resolving: {CACHE_DIR}/minecraft/net/minecraft/minecraft_server/{MC_VERSION}/minecraft_server-{MC_VERSION}.jar Resolved: /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraft/minecraft_server/1.7.2/minecraft_server-1.7.2.jar Resolving: {CACHE_DIR}/minecraft/net/minecraft/minecraft/{MC_VERSION}/minecraft-{MC_VERSION}.jar Resolved: /Volumes/Users/beard/.gradle/caches/minecraft/net/minecraft/minecraft/1.7.2/minecraft-1.7.2.jar Resolving: {BUILD_DIR}/unpacked/conf/mcp_merge.cfg Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/conf/mcp_merge.cfg Selected primary task 'setupDevWorkspace' Tasks to be executed: [task ':extractUserDev', task ':getAssetsIndex', task ':getAssets', task ':copyAssets', task ':downloadClient', task ':downloadServer', task ':mergeJars', task ':applyBinPatches', task ':downloadMcpTools', task ':genSrgs', task ':deobfBinJar', task ':extractNatives', task ':setupDevWorkspace'] :extractUserDev (Thread[main,5,main]) started. :extractUserDev Executing task ':extractUserDev' (up-to-date check took 0.0 secs) due to: Task has not declared any outputs. Resolving: {BUILD_DIR}/unpacked Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked Resolving: {BUILD_DIR}/unpacked/dev.json Resolved: /private/var/tmp/forge-1.7.2-10.12.0.982-src/build/unpacked/dev.json Cached resource is up-to-date (lastModified: Tue Nov 26 08:00:19 PST 2013). [HTTP: https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom]'>https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom] Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml] Resource missing. [HTTP GET: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml] Resource missing. [HTTP GET: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.pom] Resource missing. [HTTP HEAD: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.jar] Resource missing. [HTTP GET: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml] Resource missing. [HTTP GET: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.pom] Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/parent-2.9.1-SNAPSHOT.jar] Resource missing. [HTTP HEAD: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom] Resource missing. [HTTP HEAD: http://files.minecraftforge.net/maven/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017-natives-osx.jar] Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom] Resource missing. [HTTP HEAD: http://repo1.maven.org/maven2/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017-natives-osx.jar] :extractUserDev FAILED :extractUserDev (Thread[main,5,main]) completed. Took 3.071 secs. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':extractUserDev'. > Could not resolve all dependencies for configuration ':minecraftNatives'. > Could not resolve org.lwjgl.lwjgl:lwjgl-platform:2.9.1-nightly-20131017. Required by: com.yourname.modid:forge-1.7.2-10.12.0.982-src:1.0 > Could not parse POM https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.1-nightly-20131017/lwjgl-platform-2.9.1-nightly-20131017.pom > Could not resolve org.lwjgl.lwjgl:parent:2.9.1-SNAPSHOT. > Unable to load Maven meta-data from https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml. > Could not GET 'https://libraries.minecraft.net/org/lwjgl/lwjgl/parent/2.9.1-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden * Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. BUILD FAILED Total time: 10.337 secs Stopped 0 compiler daemon(s). The tutorial did say this was untested on OSX. Any advice for how to proceed?
×
×
  • Create New...

Important Information

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