-
Posts
785 -
Joined
-
Last visited
Everything posted by ItsAMysteriousYT
-
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.
-
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?
-
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
-
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
-
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
-
Display a Gui if values of IEEPs are empty ore null
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
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 -
Display a Gui if values of IEEPs are empty ore null
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Yea, im sending a setPropertiesPackage from the Gui. This is my Packet: And this is the handler: -
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!!
-
Loading .obj model crashes the game?
ItsAMysteriousYT replied to thebest108's topic in Modder Support
Please show us your OBJLoader Class, with no info we can not help you! -
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