Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Choonster

Moderators
  • Joined

  • Last visited

Everything posted by Choonster

  1. Logs are saved in {MinecraftDirectory}\logs. {MinecraftDirectory} is the directory you've set as the value of minecraft.runDir in your build.gradle script, usually eclipse or run. fml-client-latest.log is the latest client log.
  2. A mod (Mo' Furnaces Mod?) is trying to register an entity (Cobalt Katana) with an invalid ID (the maximum ID is 255). If you've set this ID in a config file, change it to a valid ID; otherwise report this to the author. You can also tell them that they shouldn't be using global entity IDs, especially if the entity doesn't need a spawn egg.
  3. Upload your FML log (fml-client-latest.log) to Gist and link it here.
  4. If you're trying to do something like placing a block in response to a keypress (or something Minecraft sees as a keypress), you need to send a packet to the server and run the action on the server side. Even in single-player, there's a server thread running in the background that's in charge of the game. If you only perform an action in the client thread, any changes you make will be overwritten by the server's values. diesieben07 has a tutorial on the Simple Network Implementation (used to send packets between the client and server) here.
  5. EntityPlayer#addExperience , EntityPlayer#removeExperienceLevel and EntityPlayer#addExperienceLevel allow you to add and remove XP from the player.
  6. If it crashes, upload the server log (fml-server-latest.log) to Gist or Pastebin and link it here.
  7. Your code looks like it should work. Is it not working? Are you getting any errors in the log?
  8. Use Item.getItemFromBlock to get the Item form of a Block when registering your models (or at any other time). If block.domain isn't your mod ID, GameRegistry.findItem(block.domain, block.name) will return null (because there's no item registered for that domain and name). Your current model registration code should work with this change.
  9. I don't think there's any way to register blocks/items with a domain other than your mod ID, but there's nothing stopping you from using models/textures from some other domain. GameData#addPrefix is only called when registering blocks/items, it's not used for models/textures.
  10. diesieben07 has a tutorial on the Simple Network Implementation here.
  11. There's no built-in config syncing mechanism, but you can send a packet from the server with its configuration options when a client joins and then apply these on the client. You'll need to unregister the previous provider/dimension IDs and register the new ones. I'm not entirely sure what the problem is there. Do the ResourceLocation paths exactly match the paths on disk (including capitalisation)? Try removing the leading slash from the paths.
  12. Where are you calling Dimension.registerWorldProvider and Dimension.registerDimensions from? Even if you used the stable_12 mappings, you'd still need to provide both the SRG and MCP names of any method/field you access via reflection. The only time you can use a single name is when the method/field has no MCP name (so it appears as func_2234_b / field_1212_a even in the development environment).
  13. You can update your mappings like that, but a couple of names of widely-used methods/fields have changed since 1.7.10's default mappings versions; so you need to fix your code to use the new names. Most deobfuscated builds of 1.7.10 mods are built for the older mappings, so they won't work properly with the new mappings unless you recompile them yourself. One way around this is to use manually recompiled deobfuscated builds of CodeChickenLib and CodeChickenCore and obfuscated builds of all other mods, which CodeChickenCore will deobfuscate at runtime. If you reference a field/method directly in your code, ForgeGradle will automatically reobfuscate it for you when you build your mod. It's only when dealing with reflection that you need to use both names, since ForgeGradle can't reobfuscate reflection calls. Instead of using this: ReflectionHelper.getPrivateValue(RenderGlobal.class, renderGlobal, "starGLCallList") // Only MCP name Use this: ReflectionHelper.getPrivateValue(RenderGlobal.class, renderGlobal, "starGLCallList", "field_72772_v") // MCP and SRG names
  14. Oh lovely -- I recently wrote a mod using that list-box interface in Forge build 1450, so it will need to change when I move to the next recommended build (which I can now see at 1563). Thanks for the warning. I thought it an odd dependency at the time, so I like the change. The change is only in 1.8.8, not newer versions of 1.8 like 1563.
  15. The Lord of the Rings Mod isn't registering its items properly (the author should fix this), but I don't think that's the cause of the crash. Something is happening after dimension 101 starts loading that prevents the server from starting, but I can't see any indication in the log of what this is.
  16. You're trying to access the RenderGlobal#starGLCallList field via reflection, but there's no field with that name in the obfuscated client; the field has an SRG name instead. You need to try both the MCP and SRG names of a field/method when using reflection. ReflectionHelper accounts for this by accepting multiple names for a field/method and trying each one until it finds one that works. You can find the SRG name of a field/method using the MCP mapping CSV files. The default 1.7.10 mappings can be found in ~/.gradle/caches/minecraft/net/minecraftforge/forge/<forge_version>/unpacked/conf, the default 1.8 mappings and any manually-specified mappings can be found in ~/.gradle/caches/minecraft/de/oceanlabs/mcp/<mappings_channel>/<mappings_version> (replace ~ with %USERPROFILE% on Windows). You can also download mappings from the MCPBot website.
  17. Im not the smartest, so im just trying to clarify something. but for this part of the code you input your .json file locations, correct? So you might replace "different" with "ModID:Cobblestone.json" and "variant" with "ModID:Cobblestone_mossy.json". I just want to make sure so im not missing anything. The strings passed to ModelBakery.addVariantName are the names of the item models (without extensions) to load. If you pass the string "ModID:Cobblestone" , it will load the model file assets/modid/model/item/Cobblestone.json. Side note: You don't need to explicitly create an array when calling vararg methods like ModelBakery.addVariantName . Simply pass the values and Java will create an array for you (this is the whole point of vararg methods).
  18. ArrayList#indexOf will return -1 if the list doesn't contain the element. Calling ArrayList#remove with -1 will throw an exception (as you've seen). You need to figure out why bookmarkKeys doesn't contain the return value of getNotesKey() or at least correctly handle the list not containing the element.
  19. Aroma 1997's Dimensional World is configured to use the same dimension ID as another mod's dimension. Edit the config file and change the ID to one that's not in use.
  20. Most mods will list their dependencies on their website/forum thread. If a mod depends on a different version of another mod than the one you have installed, it will simply crash (either because its specified dependencies aren't present or because the version you have installed does something differently to the version it requires). If a mod's dependencies aren't present, the log will tell you the name of the mod and the names/versions of the missing dependencies and the crash report will tell you the names/versions of the missing dependencies.
  21. It's an error with Project: Red, though I'm not sure what the cause is. Try asking in the mod's Minecraft Forum thread.
  22. Most Forge mods are universal, so they can be installed on both sides (and usually require this); but some are client-only or server-only, so they won't work if you install them on the wrong side.
  23. You installed a client-only mod (Xaero's Minimap) on the server.
  24. Use Gist/Pastebin to post logs and individual classes or GitHub/BitBucket to host entire projects. This is line 243 of CraftingManager : Character character = (Character)recipeComponents[i]; You passed an instance of BasicItem where a Character / char was expected. GameRegistry.addRecipe expects up to three strings describing the recipe's shape, then a character and Item , Block or ItemStack for each ingredient (in that order). To see how vanilla adds its shaped recipes, look for usages of CraftingManager#addRecipe (which is indirectly called by GameRegistry.addRecipe ).
  25. Yes. Make sure you download a 1.7.10 version, not a 1.8 version.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.