Jump to content

ItsAMysteriousYT

Members
  • Posts

    785
  • Joined

  • Last visited

Everything posted by ItsAMysteriousYT

  1. I do this here: public CommonHandler() { MinecraftForge.EVENT_BUS.register(this); tickrun = 0; }
  2. Okay - there you go - the git repository: https://github.com/ItsAMysterious/Real-Life-Mod-1.8
  3. I know But i did not forget it and even if i did - i changed it today. So i gonna post the code here and give you the git later. So these are the two methods that are relevant for the ieep's everything other isinside the ieep class:
  4. Hm... it sais this: remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/ItsAMysterious/Real-Life-Mod-1.8.git/''>https://github.com/ItsAMysterious/Real-Life-Mod-1.8.git/' Pushing to https://github.com/ItsAMysterious/Real-Life-Mod-1.8.git
  5. Um sorry - the push command fails. What username to use? Email or the username - botjh does not work and the password deffinitly is correct
  6. Okay - short update: I now am using an implementation of IUpdatePlayerListBox to update the IEEP's, they are loaded correctly but they are not applied to the player:/ Meaning in the SysOuts the values are correct but not in the Gui. Could it be that the values only exist on Serverside? Cuz they are only printed once from the loadNBTData method.
  7. Any idea? I tried updating to the new Forge Version but the bug still is there.
  8. This is the crash - somehow it disappears when i check if the player's gender is null instead of checking wether the players name.equals(""): But as you can see the SysOuts say that the properties are loaded correctly. But still the GuiScreen opens even if i wait a few ticks before opening it.
  9. I removed the two null checks and the game instantly crashes. So is this my fault or a bug?
  10. Ah yea okay - so i remove the null check but appart from that what could cause the problem? I checked - there are some IEEP's with the values i set before i closed the world, but somehow they are not applied to the player. I also tried opening the gui from inside of my IEEP's - same problem. What is it the point i am missing? What do i need to do so the properties are applied to the player correctly?
  11. Okay i made a mistake i know that but why excactly is it pointless? You seem to know excactly what is causing this mistake but how can i solve it.
  12. So somehow i need to get the old data and transfer it to the new - but how???
  13. Hey there - its me again... Yesterday i tried solving the weird GuiShowing problem i have mentioned in a previous post (Which somehow disappeard and does not happen to be here anymore). Well i try showing a Gui only some of the values in the ieep's of the player are null.That shouldn't be too complicated but somehow it does not work as it should - the Gui shows up every time the player joines the world even if the properties have been set previously. I made some SysOuts in the saveNBT & loadNBT Methods and in there everything is set correctly. To transfer the data from Client- to Serverside i use packethandling and neither the handler nor the packet seem to have any errors cuz the data is beeing transfered correctly. So what i am doing to bring up the Gui is i have a PlayerTickEvent in my eventhandler that looks like this: @SubscribeEvent public void updateRealLifeProps(PlayerTickEvent event) { if (RLMPlayerProps.get(event.player) != null) { tickrun++; RLMPlayerProps.get(event.player).circleOfLife(); } if(RLMPlayerProps.get(event.player).name==""){ event.player.openGui(RealLifeMod.instance, GuiModInit.ID, event.player.worldObj, 0, 0, 0); } } And i apply the RLMPlayerProps to the player in an OnEntityConstructing Event like this: @SubscribeEvent public void onEntityConstructing(EntityConstructing event) { if (event.entity instanceof EntityPlayer){ if (RLMPlayerProps.get((EntityPlayer) event.entity) == null) { RLMPlayerProps.register((EntityPlayer) event.entity); } } } I think that should work perfectly right? But it won't. The Gui is beeing opened every time i join the world even if the props of the player where loaded correctly with the names (I have SysOuts for that). I think there might be another instance of the RLMPlayerProps that is causing this bug. So why is there another instance of the IEEP's when they are only registered if they are null? Greetings ItsAMysterious PS: If you need more Code Bits - Just ask for them
  14. Im writing a Mod for a uge company for all MC-Versions the newest and the old versions, thats why i need the old workspace.
  15. Hey everyone - i am trying to set up a mcp-workspace for 1.6.4 and 1.5 but somehow it failes with this error: Now im asking if there is a possibility to download a working MCP-Environment using the new gradle system or any other way of getting an mcp workspace. Hope that somebody can help me - ItsAMysterious
  16. About the Mod: The Real Life Mod aims to bring a realistic feeling of Life into Minecraft by adding things we use every day like furniture, vehicles etc and also things we make everyday like drinking, propper sleeping, getting sick... The Mod is currently in an early alpha state so please do not get angry if you find a bug. We work on the 1.8 version which is completly recoded, better, faster, cooler and we do our best to remove every single bug. If you have any questions or suggestions, be free to leave a comment and a like below to show us what you think about this. Greetings from ItsAMysterious More detailed information can be found here: http://goo.gl/VV6axs German Modreview by ourselves: See stuff before the release in our devlog series: Reviews by other youtubers: https://www.youtube.com/embed/59ymkDwXZaE?list=PL9f4QGcDBVZqz9zqyEKBFuntVTVUkgQH2 Screenshots: Even more Screenshots : Download newest version here: http://curse.com/mc-mods/minecraft/227922-real-life-mod/2259319
  17. Short update - the handler now looks like this: I thougt - setting the name of the props directly from the player would be better than just setting them for an instance
  18. Yea, im sending a setPropertiesPackage from the Gui. This is my Packet: And this is the handler:
  19. Im trying to opena GuiScreen only when several values in my IEEP's are not set or empty. I register my IEEPs as usual in EntityConstructing event and then check using playerTickEvent wether the gui should open or not. Unfortunately thegui opens every time (But the player always is the same, i logged in to my MC-Account). Also i don't think that this is beeing caused by any saving errors in my IEEP's... This is my Code: The loadFromNBT & saveToNBT methods: The two events in my CommonHandler: Thanks in Advice & Happy New Year!!
  20. Please show us your OBJLoader Class, with no info we can not help you!
  21. Hey there,im trying to make my gui overlay a little bit more fancy. So i created a gui element that shows a specific message at a x,y position. Now i am searching for the correct way of using OpenGL to fade it in. From the point it is created a counter is running with the current tick - i wanna use this counter the first ten ticks to change the alpha value of the whole element. Which is the propper GLFunction to use? PS: I tried with GLAlphaFunction and GLBlendFunction,but these are only working if the rendered bit already has alpha
×
×
  • Create New...

Important Information

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