Jump to content

Malkierian

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by Malkierian

  1. I would love to have a look at it to see if I can glean anything.
  2. So this is a problem I have been dealing with since at least 1.5.2, if not sooner, and I'm hoping the community has matured enough to be able to help out with this now (couldn't back then). Anyway, I have a custom TNT block, acid TNT, that functions perfectly, and has for a long time. However, when it is activated, instead of getting the primed render texture on top of the acid TNT block texture, it becomes a white cube, and only looks like it's animated if I'm moving in the world, otherwise it's static. Here's the example: Here is all the relevant code: BlockAcidTNT EntityAcidTNTPrimed RenderAcidTNTPrimed Main mod file ClientProxy Most of the code is still the same on my repo, too, if you need to see anything else: https://github.com/Malkierian/PlasmaCraft So is there any way I can fix this, or am I going to have to remove the rendering and entity and just leave it as a block?
  3. Guess what? I found out what it was. GSON apparently is incapable of reading UTF-8. Here, I thought I was doing what I was supposed to by making sure the .info file was being saved as UTF-8, and apparently those first three identifying bytes of the file were what were causing all the ruckus... I found this out by pulling the mcmod.info file out of ForgeEssentials and opened it up with Notepad, and lo and behold the newlines weren't working there, like they usually don't, but still were in Notepad++. So I edited that file without changing encoding and it works fine now.
  4. I just don't understand it either. I went ahead and removed all of the newlines and extraneous spacing (so it was all on one line and the only spaces were in the string values), and it STILL gave me the error. I even did the extended searching in Notepad++ to find and remove any individual return or newline characters, and there weren't any, and STILL that line 1 column 5. I'm so confused...
  5. Alright, so I've been going at this for hours now. I can't seem to get FML to parse my mcmod.info file. Here it is: http://pastebin.com/jjSdUxqd I've validated it almost 10 times now, with varying arrangements of spacing, brackets, etc. Every single time, I get this error, or something like it: [19:30:37] [Client thread/ERROR] [FML]: The mcmod.info file in PlasmaCraft-0.3.5.jar cannot be parsed as valid JSON. It will be ignored com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 5 at com.google.gson.JsonParser.parse(JsonParser.java:65) ~[JsonParser.class:?] at cpw.mods.fml.common.MetadataCollection.from(MetadataCollection.java:55) [MetadataCollection.class:?] at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:53) [JarDiscoverer.class:?] at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?] at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?] at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:127) [ModDiscoverer.class:?] at cpw.mods.fml.common.Loader.identifyMods(Loader.java:347) [Loader.class:?] at cpw.mods.fml.common.Loader.loadMods(Loader.java:468) [Loader.class:?] at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) [bao.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867) [bao.class:?] at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_67] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_67] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_67] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 5 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:531) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.peek(JsonReader.java:414) ~[JsonReader.class:?] at com.google.gson.JsonParser.parse(JsonParser.java:60) ~[JsonParser.class:?] ... 17 more What the heck is going on? I've remade the file, making sure the right encoding is being used, and rewrote the file from scratch at the same time, and still no difference.
  6. OK, so I see the getItemFromBlock method, but are you saying I'm supposed to keep a custom list that is fed to the tab instead of using the one from displayReleventItems? And besides, that still doesn't explain why they're not being sorted in the order they were added. EDIT: Ohhhhhhhh, I think I get it now. The list fed to the comparator is the order you want the displayReleventItems list to be sorted by, that's why it's an explicit order. I should know better than to look at tutorials when I'm tired... Still would like to know why any of this is necessary, though, instead of it being handled automatically the way it should through the registration order...
  7. Yes, I saw that, but it doesn't say anything about sorting blocks and items in the same tab, and I tried putting the explicit thing in there and nothing changed.
  8. So I've finally been getting around to updating my mod from 1.5 to 1.7. A lot of things are going well, but for the life of me I can't get the items in my tab to sort. I've read many times that items are added to the creative tab as they're registered in the GameRegistry, but no amount of rearranging in the code changes any order in the tab. Here's my mod file: http://pastebin.com/XFdj4B4L And here's a couple screenshots of the tab: http://gyazo.com/38a1d65dc9af1ecc897df1092bb84ccd http://gyazo.com/02a4e4413e5df75bdfb80bda07497280 As you can see, the items are all jumbled up, despite being registered in a particular order. So I decided to try to sort the tab myself, but I don't know how to do a multisort with the Comparator (specifically sorting by block first, then by name or type or whatever. Right now they're not even sorted alphabetically). Is there something I'm missing that would make this easier, or do I need to custom sort it, and how would I go about doing it?
  9. ... I am flabbergasted... Thanks, diesieben07, I never would have thought of that...
  10. http://pastebin.com/9PAVTNth This is the fml-client-latest.log, minus the mentions of the registry and patch application and the mod file check (the whole log was way too big to put in pastebin). I realize the first set of errors is known, I just included all the errors I could find. My problem is, I just barely installed a fresh profile for Forge 1.7.10 using the Windows Forge installer. No extra mods, no settings changes, and when I load up the profile, everything looks fine. But then I try to start any world, or log into a Forge server, and within seconds it tells me it's shutting down the internal server, then it crashes back to the launcher. I'm using the last version of Java 7.
  11. mozziedoo, it is the responsibility of the mod maker to provide compatibility. If Forge was required to provide that for every mod, it would never get released. Now GTFO and find the mod creator to pester.
×
×
  • Create New...

Important Information

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