Jump to content

BuddingDev

Members
  • Posts

    237
  • Joined

  • Last visited

Everything posted by BuddingDev

  1. Now here is an interesting question: What if a [stroke]noob[/stroke] newbie called setLightValue(100F)? How will Minecraft react?
  2. I know there is a setLightValue stuff in the class block. I know the minimum is always zero (kind of common sense) But anyone know what exactly does "Light level 15" translate into code?
  3. *Maybe this post needs to be redirected.* I have been around forge when i started playing modded minecraft about 1 year ago. That was 1.6.4 stuff. Then, as minecraft migrated into the currently-mainstream 1.7, I noticed that Forge had introduced a new button in the game pause menu. Namely, a new button "Mod Options" shared the 'area' with Vanilla "Options" button. Inside the "Menu", there are only Test 1, TEST 2, DISABLED and nothing else. So I wanna ask: 1. What is "Mod Options" in Pause Menu? (and maybe some background stories here?) 2. If possible, how to use it? (like there is a hidden class and with that you get access to the "Menu"?)
  4. Oops. Really. @Instance is not used except the main mod class. Thanks!
  5. Hope someone can interpret this! ---- Minecraft Crash Report ---- // On the bright side, I bought you a teddy bear! Time: ... Description: Initializing game java.lang.IllegalArgumentException: Can not set static com.wwy.me3.Alpha.Globals field com.wwy.me3.Alpha.Globals.instance to com.wwy.me3.Alpha.Main at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168) at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(UnsafeStaticObjectFieldAccessorImpl.java:79) at java.lang.reflect.Field.set(Field.java:741) at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:407) at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:338) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:493) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.loadMods(Loader.java:492) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168) at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(UnsafeStaticObjectFieldAccessorImpl.java:79) at java.lang.reflect.Field.set(Field.java:741) at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:407) at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:338) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:493) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.loadMods(Loader.java:492) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) at GradleStart.main(GradleStart.java:45) -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 152732712 bytes (145 MB) / 246415360 bytes (235 MB) up to 932184064 bytes (889 MB) JVM Flags: 0 total; AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.85.1277 Minecraft Forge 10.13.2.1277 5 mods loaded, 5 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{7.10.85.1277} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1277.jar) Unloaded->Constructed Forge{10.13.2.1277} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1277.jar) Unloaded->Constructed me3{1.0.0} [Mass Effect 3 Parody] (bin) Unloaded->Errored examplemod{1.0} [Example Mod] (bin) Unloaded->Constructed Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.3958, Intel GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1) I am trying to make a global field, so that every code can access frequently used functions fast. In case someone wants to have a look on the specified class: package com.wwy.me3.Alpha; import cpw.mods.fml.common.Mod.Instance; import net.minecraft.client.Minecraft; public class Globals { @Instance public static Globals instance = new Globals(); public void printMessageToPlayer(String In){ Minecraft.getMinecraft().thePlayer.sendChatMessage(In); return; }; }
  6. Pardon me for my unclear question. See this page: http://bedrockminer.jimdo.com/modding-tutorials/basic-modding/basic-modfile/ Then I saw "whatever data structures you care about" Then I recall my custom-made LocationInfo type which looks like 1.8 BlockPos (and 1.7 dont have this) Then I got a error log that I cannot interpret. Then I thought is this related to something I did not do to tell Minecraft that there is a new type called LocationInfo? Considering there is help here, I then decided to post here. My conclusion is that something has to be done before Minecraft can understand my custom type.
  7. Init method of main class: "... Do your mod setup. Build whatever data structures you care about. Register recipes.... " Quote from Bedrockminer's 1.7.10 modding tut code comments
  8. Now I am quite experienced with modding. How to register Data types made to simplify things in the Init method?
  9. I actually digged into the pigman code, and Thanks for the guidance!!!
  10. So everything that look similarly should be aware of this method? Like Vec3? I dont see fromPool() .. ?
  11. So after some tries I think I pinpointed my problem with TileEntities... It is not about my understanding. It is something with AABB. How do I properly assign a AABB "(how do you call it here?)" without making a null pointer? I dont see anything similar to new AABB();
  12. WARNING: EXTREME NOOB CONTENT AHEAD WARNING: EXTREME NOOB CONTENT AHEAD WARNING: EXTREME NOOB CONTENT AHEAD I realised I forgot to change TileEntity stuff into TileEntityRadar stuff. Sorry for causing this trouble! Anyways I learnt some extra stuff which I was not expected to see. Thanks for that!!!
  13. By the way, why cant I look at the member variables / NBT from the block's code?
  14. Oh, and (I am 1.7.10) What is NetworkManager.getNbtCompound() in 1.7.10? EDIT: Oh, it is actually a non-recognisable func_148857_g();
  15. I will check them out
  16. I am starting to think: Can a block "look into" its TileEntity instance? It would be good so that we dont have to use those 'packets'. (Heard about it.)
  17. Well, I am planning it to activate when a player right click on it. So everyone coming by can have a look at its status.
  18. So: This newb requests a summarised answer. This newb wants a block that only checks if there are nearby entities. If there is some, this newb wants the block to print its location and the count of entities. This newb wants just that.
  19. int RadarRange; Range of radar (in blocks) RadarRangeHoriz and RadarRangeHorizontal is same (did not clean up) the same applies to RadarRangeVerti public void updateRadar(int range) {...} called every tick from mother TE class. is it possible tha there is problem in line 39-41? Line 50: DEBUG use only public boolean getDanger() {...} and public int getEntityCount() {...} called when nessesary from mother TE class to collect info EDIT: The code may be messy, but I am trying to list out everything I was doing before simplifying the code into smaller functions. (and also try to construct a usable class.)
  20. If you really want that stacktrace... (The "problem" was resolved (EDIT: thanks diesieben for the help!!!), but there is another one.) There is another problem: I intended to use some DIY funcs to print info for either debug or implementation. But it seems the Detection / TE cant print them properly. I mean, everytime it would just be like Radar at 0 0 0 detects 0 (this is OK) nearby. I am not testing this at the origin point. Detection: http://pastebin.com/aysAtXB1 TE: http://pastebin.com/RsJU4NBv BTW, why there was 503 error just now?
  21. (I actually stumbled upon the idea to mimic the vanilla spawner code and came up with this.) The stacktrace: "Something must be wrong with the AABB algorithm in the TE / Detection class."
  22. I dont know if this works (cause I am still 1.7.10) but: world.spawnEntityInWorld(new EntityBoat(World Object, X position, Y position, Z position)) If you are not sure, just find a java file, and add "extends EntityBoat" (I suppose it is EntityBoat) after "public class (name)" and ctrl+click Then find the EntityBoat constructor.
  23. Oh. So it is so simple. (Before I started modding myself, I played with so many mods, and sometimes it suddenly returned Crashed: Ticking Stuff) (Then I would be so scared ,I coundnt understand such jibberish b4 (the stuff is "Ticking Entity" )) (And finally I understands it)
  24. I still dont know if I am able to make a truly working TE. When it ticks, it crashes. Something bad must lie within the AABB checking. (Refer to the source pasted above, will you?)
  25. Oh... Which registry this time?
×
×
  • Create New...

Important Information

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