Jump to content

Recommended Posts

Posted (edited)

I get this with my command /tpdim. I was trying to teleport the entity horse to another dimension the issue is the cheat system for the server thinks the horse should be at the orignal location after manually teleporting the horse and the player to the new location.

Steps to reproduce:
ride a horse
/tpdim @e[type=horse] ~ ~ ~100 0
have the console spit out vehicle moved too quickly or horse moved too quickly and sometimes the teleport doesn't even work

Code:
Command class 
EntityUtil.teleportEntity:

 

how should I fix it where is the vehicle of the player captured coords or whatever so I can say this is the new coords to the player vehicle.

Attempt fix one failed due to packet sending in previous coords. If you look at the network class of the player on process vechile move it checks current and packet coords the client is sending previous coords and screwing everything up. it can be reproduced on regular teleport command
 

	/**
	 * work around for the shitty cheat detection system in vanilla
	 */
	public static void captureCoords(EntityPlayerMP player)
	{
		try
		{
			NetHandlerPlayServer connection = player.connection;
			FieldAcess.capture.invoke(connection);
			
			Entity lowest = player.getLowestRidingEntity();
			
			ReflectionUtil.setObject(connection, null, NetHandlerPlayServer.class, "lowestRiddenEnt");
			
			if(lowest == null)
				lowest = player;
			ReflectionUtil.setObject(connection, lowest.posX, NetHandlerPlayServer.class, FieldAcess.lowestRiddenX);
			ReflectionUtil.setObject(connection, lowest.posY, NetHandlerPlayServer.class, FieldAcess.lowestRiddenY);
			ReflectionUtil.setObject(connection, lowest.posZ, NetHandlerPlayServer.class, FieldAcess.lowestRiddenZ);
			
			ReflectionUtil.setObject(connection, lowest.posX, NetHandlerPlayServer.class, FieldAcess.lowestRiddenX1);
			ReflectionUtil.setObject(connection, lowest.posY, NetHandlerPlayServer.class, FieldAcess.lowestRiddenY1);
			ReflectionUtil.setObject(connection, lowest.posZ, NetHandlerPlayServer.class, FieldAcess.lowestRiddenZ1);
		}
		catch(Throwable t)
		{
			t.printStackTrace();
		}
	}

 

Edited by jredfox
Posted

seems like it's a packet issue with the client the fix for this is asm if anything since there are no work arounds the check just needs to be remvoed

Posted
On 5/24/2018 at 1:46 PM, jredfox said:

seems like it's a packet issue with the client the fix for this is asm if anything since there are no work arounds the check just needs to be remvoed

Do you have a GitHub? From your posts you appear to be doing some pretty crazy stuff to poor Minecraft and I’m wondering what the entire project looks like

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)
10 hours ago, Cadiboo said:

Do you have a GitHub? From your posts you appear to be doing some pretty crazy stuff to poor Minecraft and I’m wondering what the entire project looks like

yes they are pretty advanced if you take a look at the links it's part of the github respiratory feel free to use Evil Notch Lib in your own mods via dependency. If you take a look at FeildAcess.java it shows you how to use MCPMappings Api which you give a class and deob field name then it will produce the right string based on the dev environment 

It appears it's the client that's the issue client is like here is old coords server says new coords don't match packet try and freak out. Even draconic evolution has this issue as well as vanilla. The proper fix would be to disable the checks on server side for good on both the vehicles the horses and the players. Of course leaving old checks like flying though. As for now I am leaving EvilNotch Lib ASM free right now but, if you want to get in on this and help me that would be great just msg me

Edited by jredfox

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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