Everything posted by Choonster
-
Runs through Eclipse fine, Running through Minecraft not working
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.
-
minecraft crash
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.
-
Forge Closes On Start Up
Upload your FML log (fml-client-latest.log) to Gist and link it here.
-
Manually placing block with forge 1.8 and/or 1.8.8
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.
-
Awarding experience on breaking blocks.
EntityPlayer#addExperience , EntityPlayer#removeExperienceLevel and EntityPlayer#addExperienceLevel allow you to add and remove XP from the player.
-
Client Crashes after short amount of time on forge server!!!
If it crashes, upload the server log (fml-server-latest.log) to Gist or Pastebin and link it here.
-
[1.8] Blocks and Items with Custom Domains
Your code looks like it should work. Is it not working? Are you getting any errors in the log?
-
[1.8] Blocks and Items with Custom Domains
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.
-
[1.8] Blocks and Items with Custom Domains
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.
-
[1.7.10] Custom Dimension Crashing the Game [SOLVED]
diesieben07 has a tutorial on the Simple Network Implementation here.
-
[1.7.10] Custom Dimension Crashing the Game [SOLVED]
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.
-
[1.7.10] Custom Dimension Crashing the Game [SOLVED]
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).
-
[1.7.10] Custom Dimension Crashing the Game [SOLVED]
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
-
[1.8] Updating Tile Entities???
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.
-
(1.7.10) Forge server software crashes on startup
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.
-
[1.7.10] Custom Dimension Crashing the Game [SOLVED]
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.
-
Updating your mod to 1.8
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).
-
Crash with arraylist [SOLVED]
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.
-
My forge crashes when finishing to load [1.7.10]
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.
-
(1.7.10) Modded minecraft crashing during startup.
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.
-
Get Error when I start server
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.
-
SERVER CRASHING ON STARTUP EVERYTIME AFTER PUTTING MODS IN MODS FOLDER!!!
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.
-
SERVER CRASHING ON STARTUP EVERYTIME AFTER PUTTING MODS IN MODS FOLDER!!!
You installed a client-only mod (Xaero's Minimap) on the server.
-
Forge 1.8 crashes when adding new recipe
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 ).
-
There was a severe problem during mod loading that has caused the game to fail
Yes. Make sure you download a 1.7.10 version, not a 1.8 version.
IPS spam blocked by CleanTalk.