Jump to content

telinc1

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by telinc1

  1. My problem is pretty simple. Seeing as the item methods in DungeonHooks are deprecated, that means that they will be eventually removed, so I want to port to ChestGenHooks, but I'm having trouble.

     

    This is my current method:

        public static void addDungeonItems() {
            ChestGenHooks chestGenHooksDungeon = ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST);
            
            // Mega Adamant Blocks in dungeons
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.megaAdamant), 55, 1, 3));
    
            // Tomatoes and Peppers in dugeons
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.tomato), 95, 3, 4));
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.pepper), 95, 3, 4));
    
            // Adamant in dungeons
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.adamant), 30, 3, 5));
        }

    Using this, the game crashes when it generates a dungeon. Crash report

     

    I also found that I can use this (bold part is what's changed from previous method):

        public static void addDungeonItems() {
            ChestGenHooks chestGenHooksDungeon = new ChestGenHooks(ChestGenHooks.DUNGEON_CHEST); // Changed line, note from OP
            
            // Mega Adamant Blocks in dungeons
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.megaAdamant), 55, 1, 3));
    
            // Tomatoes and Peppers in dugeons
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.tomato), 95, 3, 4));
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.pepper), 95, 3, 4));
    
            // Adamant in dungeons
            chestGenHooksDungeon.addItem(new WeightedRandomChestContent(new ItemStack(TelicraftMain.adamant), 30, 3, 5));
        }

    Using this, the game doesn't crash but no items get generated. Can somebody explain to me how to use ChestGenHooks? Thanks in advance!

     

    -Telinc1

  2. This is my first released content-adding mod! It's called Telicraft, TeliMod before 2 or 3 months. It adds a new ore and a bunch of other things to Minecraft. It requires Forge and ForgeModLoader.

     

    Downloads

    WARNING: YOU NEED TELINCCORE!

     

    [1.4.6] Telicraft Beta 3.5.0 Universal*

    [1.4.6] Telicraft Source

    [1.4.6] Telicraft API

     

    *Due to my limited amount of RAM, universal means "server starts up without errors and can be connected to".

     

    Installation

    1. Open your minecraft.jar/minecraft_server.jar and ensure Forge is installed. A really cheap way of doing it is checking if the cpw folder exists.

    2. Go to your "mods" folder. It is lcoated in your root directory, "%appdata%/.minecraft" for clients.

    3. Add Telicraft's .jar in there. Also add TelincCore, that's highly required.

    4. Launch Minecraft / the server and see if everything's working! If not, check "Reporting a bug".

     

    Reporting a bug

    1. Make sure you're using the latest Forge for the Minecraft version you're running.

    2. Make sure you have the latest version of Telicraft.

    3. Scroll through the "Issues" tab on GitHub and the "Known bugs" section of this post.

    3a. If the bug is visual, tell me what happened and the exact steps to reproduce it.

    3b. If the bug crashes the game, tell me how to reproduce it and include the crash report or you ForgeModLoader-client-0.log file. "black screen" is not enough.

    3c. If the bug involves something not working or acting weirdly include what it is and exact steps to reproduce.

     

    Known bugs

    1. The Primed Meteor Bomb doesn't render properly.

    2. The /telicraft-petrifylook command doesn't write to config.

    3. The Adamant Furnace's superheat acts a little bit strangely.

     

    Blocks

    To be written.

     

    Items

    To be written.

     

    Recipes

    To be written.

     

    Buildcraft Integration

    If you have Buildcraft installed, the following will be added:

    1. Facades for some of the blocks, Advanced Crafting Table missing.

    2. Triggers for Gates.

    2a. Adamant Furnace: "Furnace is in superheat mode", "Furnace Safe", "Furnace Hot", "Furnace Dangerous", "No heat"

    2b. Alarm: "Alarm active"

     

    Not Enough Item Integration

    If you have NEI installed, you will get the following:

    1. Item Subset for Telicraft, type "@Telicraft" in search box to display only blocks & items from Telicraft.

    2. Recipe viewers for the Sharpener and Advanced Crafting Table.

     

    Miscellaneous

    I want to thank you for using this mod. Any feedback is welcome. If I forgot anything, please tell me!

    -Telinc1

  3. You are creating blocks before IDs are generated.

     

    You have to do any block = new BlockYours(id) after the id was correctly assigned.

    sorry i dont understand what you mean?

    Basically what he's saying is that you set the ID variables after registring the blocks, meaning that you are "creating" the blocks before setting the IDs, thus resulting in their IDs being 0. The fix is kind of complicated, but I will try to explain it.

     

    Basically, remove the "public final static Block" before the variables and do "public static Block compactdirt;" before all the methods, but still in the "public class compactblocks". After that, move the setting of the variables (compactdirt = new compactdirt...) in the method marked with @Init. If you don't understand, write.

  4. Well, I have tried everything, but nothing's working. Here's my problem: I'm creating a custom explosive, and it's all working, but when I ignite it, a white box jumps up and disappears. Here are the relevant files: Pastebin link

     

    I don't know what I'm doing wrong, as I copied the TNT classes. Can anyone help me? Thanks in advance!

  5. Hooray, my first submitted mod! TelincCore is my core mod. It will be required for all the mods I will release, but can also be used by you! It comes with several function to assist you and a few classes to make your mods smaller. Information about the mod itself and all of its functions and classes can found at Telinc's Mods Wiki.

     

    [1.4.6] TelincCore Universal

    [1.4.6] TelincCore Source - Not available yet, sorry

     

    [1.3.2] [Forge 303] TelincCore Universal

    [1.3.2] [Forge 303] TelincCore Source

     

    Installation

    1. Open up you minecraft.jar/minecraft_server.jar (Minecraft Server.exe can't be modified to my knowledge)

    2. Make sure Minecraft Forge is installed. A cheap way of doing it is checking if the folder "cpw" is present.

    3. If you don't have a mods folder in your .minecraft/server directory, create it or boot up the game/server.

    4. Put TelincCore's universal .JAR in there. Don't extract it!

    5. Launch Minecraft/the server and see if everything's working!

     

    Reporting a bug

    To deal with a bug, I need the following info:

     

    Does the bug crash the game/server, or is a method/class not working?

     

    I also need:

    If it crashes: Exact steps for reproducing and a crash report (if available).

    Not working method/class: The method or class that fails to work. If it works and it stops, exact steps to reproduce.

     

    And finally: Does the bug only happen on the client, only happen on the server, or on both?

     

    Frequently Asked Questions

    Q: How do I install TelincCore on a server?

    A: It's the same as installing it on a client.

     

    Q: My game crashes! fix ur mod ya idiot its nyat warking

    A: See: Reporting a bug

    A2: See: Installation

     

    Q: How do I add this to my mod?

    A: Go to the wiki (linked above) and search for the text "check out this page". It should be a link to the tutorials.

     

    Q: The wiki is invalid/doesn't contain any information about a given subject!

    A: For the first case, feel free to edit it. For the second case, let me know and I will add it!

  6. Its referenced in your mod somewhere. You'll have to find it, we're not gunna dig around your code telepathically for you..

    Strange, but right after I ran a global search for the class, the problem fixed itself and then I just needed to play around with ModLoader.addArmor(); to make it work and the server is okay. Or at least the test server only... I will see about the real one. But thanks anyways.

  7. You have a hard reference to a client only class, namely WorldClient, remove that hard reference...

    Well, I searched around all files from project Minecraft and the only place I found "WorldClient" was on line 29 at cpw.mods.fml.common.modloader.BaseModProxy:

    import net.minecraft.src.WorldClient;

     

    Where else could this thing be?

  8. Well, I have a nasty problem. From Eclipse and go to Run -> Server the Minecraft Server opens, but it prints out the following error:

     

    [sEVERE] Encountered an unexpected exception NoClassDefFoundError

    java.lang.NoClassDefFoundError: net/minecraft/src/WorldClient

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Unknown Source)

    at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:305)

    at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:255)

    at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:349)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

    at com.google.common.eventbus.EventBus.post(EventBus.java:268)

    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:124)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)

    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)

    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)

    at com.google.common.eventbus.EventBus.post(EventBus.java:268)

    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:81)

    at cpw.mods.fml.common.Loader.loadMods(Loader.java:458)

    at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:80)

    at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:352)

    at net.minecraft.src.DedicatedServer.startServer(DedicatedServer.java:49)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:415)

    at net.minecraft.src.ThreadServerApplication.run(ThreadServerApplication.java:17)

    Caused by: java.lang.ClassNotFoundException: net.minecraft.src.WorldClient

    at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:125)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    at java.lang.ClassLoader.loadClass(Unknown Source)

    ... 31 more

    Caused by: java.lang.NullPointerException

    at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:119)

    ... 33 more

     

     

     

    And it fails to run. I'm sure it's a problem from my mod, but I have no idea how to fix it. Any help is appriciated, thanks in advance!

     

    P.S.: This also happens if I decompile, reobfuscate and put it on a normal server.

  9. Really, really sorry for multiple threads sharing the same theme, but I need some help.

     

    Let me get straight to the problem. On lines 495 and 496 in my main file (TelicraftMain.java) I have:

    AchievementPage telicraftAP = new AchievementPage("Telicraft", test1, test1);
    AchievementPage.registerAchievementPage(telicraftAP);

     

    Now, all of this works except for one problem. When I click on the button to change the achievement page, the GUI is all white. Here's what I mean:

     

    Tab "Minecraft":

    width=800 height=4769ZViV.png?1 [/img]

     

    Tab "Telicraft":

    width=800 height=476I9RR2.png?1 [/img]

     

    So, how do I resolve this? Thanks in advance!

  10. I'm trying to make achievements. I now get everything except for one part: using your own textures. For example, if I do this:

    public static Achievement notForKids = (new Achievement(1001, "notForKids", 2, 5, testBlock, AchievementList.openInventory)).registerAchievement();

     

    The game crashes with the following log: http://pastebin.com/qjC1q7kh

     

    But if I replace "testBlock" with "Block.tnt", or "Item.swordDiamond" it works. So, my question should be obvious. How do I use my own textures on achievements?

×
×
  • Create New...

Important Information

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