Everything posted by lukas2005
- 
	
		
		[SOLVED] am i able to create 3 jars (one for each os linux64, mac, win32)
		
		Solved this by adding this to my build.gradle (at the end)
 - 
	
		
		how can i embed a dependancy from maven
		
		i tried to do this using embed 'group:artifact:version' thing from here https://github.com/MinecraftForge/ForgeGradle/wiki/Dependencies but got this error:
 - 
	
		
		[SOLVED] am i able to create 3 jars (one for each os linux64, mac, win32)
		
		Hello i have a very heavy dependency in my mod (about 150 mb in size) but i am able to shrink it to 51 mb if i will make diffrent jars for diffrent os'es now how do i automate this because i arelady know how to just dumbly put selected jars into my output jar
 - 
	
		
		is there any way to conver SoundEvents.RECORDS_CAT to resource location?
		
		just like in the topic what i have tried so far: public File getSoundResourceAsFile(ResourceLocation resource) throws IOException { String[] splitRes = resource.getResourcePath().split("[.]"); ResourceLocation resourceLocation = ((ItemRecord) Items.RECORD_CAT).getRecordResource(resource.getResourcePath()); SoundEventAccessor sound = Minecraft.getMinecraft().getSoundHandler().getSound() // Whats the substitute for this?? ResourceLocation resourceLocationFile = sound.func_148720_g().getSoundPoolEntryLocation(); // And this? InputStream inputStream = Minecraft.getMinecraft().getResourceManager().getResource(resourceLocationFile).getInputStream(); return streamToFile(inputStream, Files.createTempFile("tmp", "."+splitRes[splitRes.length-1]).toFile()); }
 - 
	
		
		Scamming Site / Cloned Website
		
		you can write to google to remove the webpage from search results
 - 
	
		
		[1.11.2] get the mc window position
		
		ok thanks
 - 
	
		
		[1.11.2] get the mc window position
		
		Hello i would like to get position of minecraft window on screen. Does anyone here have any ideas how to do that?
 - 
	
		
		[1.11.2][SOLVED] gradlew setupDecompWorkspace fails
		
		Thank you
 - 
	
		
		[1.11.2][SOLVED] gradlew setupDecompWorkspace fails
		
		Hello today when i ran gradlew setupDecompWorkspace on my brand new project i've got this error: Can someone help me? PS i tried downloading gradle fromwebite and adding it to path - same results
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		3. Because registry needs to store instances of cameras so that i can reference them by their uuid 4. i are lady fixed that 5. camera is so you can plant it somewhere so and then other players cant see it while you can watch them using monitor
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		fixed that and still nothing
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		https://github.com/lukas2005/Spy-Mod/blob/master/src/main/java/io/github/lukas2005/spymod/Network/CameraRegistryChangeMessage.java#L105
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		but it does not get called and i dont know why!
 - 
	
		
		Custom Capability without Storage
		
		i think yes but im not sure if it crashes try returning empty NBTTagCompound
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		What about WorldEvent.Save? (see https://github.com/lukas2005/Spy-Mod/commit/bb83d4d746a239b5aca2e53b15658ce50878b115) im just worried that the registry and world saved data instances are gonna be trashed before it will get saved
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		Because i need data about cameras on both server and client
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		ok heres the link https://github.com/lukas2005/Spy-Mod
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		Ok i removed the markDirty call from all methods except my sync packet handler and added a constructor with String and still the same i think that i will just create a Github Repo instead of posting walls of code here
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		bump
 - 
	
		
		Which version should I upgrade my 1.7.10 mod to?
		
		i would suggest going to 1.11.2 and then later when many people will be playing 1.12 upgrade again
 - 
	
		
		Random Forge Crash
		
		In your log Heres the answer
 - 
	
		
		[1.12] (How) can I process one type of packet before another?
		
		Maybe try using other event (i'm not sure wich one...) or maybe try instead of iterating over all entitis iterating only on all players or make it so that it breaks block that is in front of player also consider changing the handler and packet so that it does not send the data about the exact block pos it has to break but for example a uuid of player that needs to have a block broken because cheaters/hackers/whatever may change these values there is a golden rule in networking: never trust the client
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		i arelady did that markDirty does gets called but those other 2 func dont
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		Ok now i did it but it does not save/load even added prints in writeNBT readNBT and markDirty functions looks like writeNBT and readNBT are not called shloud i call them manually??
 - 
	
		
		[1.11.2] Using WorldSavedData
		
		Ok one thing how shloud i get world instance from my Camera class?
 
IPS spam blocked by CleanTalk.