Jump to content

p455w0rd

Forge Modder
  • Posts

    61
  • Joined

  • Last visited

Everything posted by p455w0rd

  1. btw, this is AE2's packet handling system..I've just adapted it
  2. Yeah, figured someone would want more info..finally pushed it to github @ https://github.com/p455w0rd/WirelessCraftingTerminal - this code is super messy atm cuz of changes i made mid-way that i still have to clean up..to answer your question, it's all handler in net.p455w0rd.wirelesscraftingterminal.core.sync.network.NetworkHandler which is register in main mod file @ net.p455w0rd.wirelesscraftingterminal.common.WirelessCraftingTerminal thx Draco
  3. Well, the gui Open find via Keybind, but only when it is the currently selected item in hotbar. I need to to be opened whenever the player presses corresponding keybind. Project @ GitHub: https://github.com/p455w0rd/WirelessCraftingTerminal I did try replacing KeyInputEvent with ClientTickEvent and responding only on Phase.END, and it does open the Gui, but it seems only for a single tick before closing. If you want more of the code I can provide it, but there is a lot and I figured this would be enough to figure out where I'm going wrong. The container/gui are fine since they open fine via right-click and via keybind when the item is the current player#getHeldItem. I have tested this using deobf server/client as well as single player with same result.
  4. Thanks for saving me once again ..I had actuallly tried setting them in the constructor prior to this but it did some funny things..I don't know why I thought setting them private would do anything, but it seemed to work oddly enough. I have updated my drawTexturedModalRect from here and it has fixed my issues with the bg texture. I was so certain it was to do with the order in which I was adding slots...just needed you to take my blinders off. =D
  5. So I'm having a weird issue and it's inconsistent. I've scoured google and these forums to no avail. I posted a video here of what I'm experiencing to help visualize it. Pastebin of the code: http://pastebin.com/J0eVqLJa It appears in the video that I am pressing "Q", though all I am doing is clicking the items. There is some code in here that is just for testing, like the diamond referenced in SlotItemInv.java..that's just for testing as I haven't created the actual item i'll be using yet and doesn't affect the issue at hand, so please look past that stuff..
  6. thx for posting your solution wants help...but not willing to himself..nice
  7. DERP...i was calling the method via string, so the string wasn't obfuscated..specifically on line 42 of EntityLivingBaseHandler.java: https://github.com/p455w0rd/MobXPDropMod/blob/master/main/java/net/p455w0rd/mobxpdropmod/EntityLivingBaseHandler.java#L42 Just took me a min..sorry for wasting time and thanks for putting up with me
  8. I was wondering that when I searched the csv file and didn't find it..figured i had an outdated file or something..sweet..at least now I know..thanks!
  9. Ok, so I've read a ton of posts on this subject and the majority of ppl weren't using gradle to build their jars. I am using gradlew build from cmd line. The weird thing is that I have built jars before based on tutorials and they worked. I'm thinking it may be something to do with access transformers, but I'm not sure. I have confirmed that the minecraft/forge versions match up. Directory structure is correct. Basically it's saying that the method getExperiencePoints() doesn't exist. But it definitely does and at least the method that's being called inside my code is public. I make a call to set the private method in EntityPlayer accessible..so I do believe it should..crazy part is that it works from the eclipse "Run", but after compilation, it derps Crash Report: crash-2015-05-07_15.34.14-client.txt Jar File: MobXPDropMod-0.1.jar Threw it up on GitHub so viewing the code is easier: https://github.com/p455w0rd/MobXPDropMod/tree/master
×
×
  • Create New...

Important Information

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