Welcome to Open Carnage

A resource for Halo 1 modding and tech, with unique means of rewarding individual content creation and support. Have a wander to see why we're worth the time! EST. 2012

IceCrow14

Universal AI synchronization

14 posts in this topic

Members of Open Carnage never see off-site ads.

Hey, I am having trouble reading your script the way you wrote it (not sure how you have everything working, its just confusing to look at in general, how your matching a server bipd to something the client sees I cant warp my head around.) Anyway I'm thinking this might help you out instead of guessing the size of the object table? If not that's cool.  Also instead of calling `get_object(i)` a tone of times you could just do a `local object = get_object(i)`
 

	local object_table = 0x400506B4 -- 1.10 Client address (Not for use on dedicated server.)
	local object_count = read_word(object_table + 0x2E)
	local object_base = read_dword(object_table + 0x34)
	for i = 0,object_count-1 do
		local m_object = read_dword(object_base + i * 0xC + 0x8)
		local m_ObjectID = read_word(object_base + i * 12) * 0x10000 + i
		if read_word(mobject + 0xB4) == 0 then -- bipd
		
		end
	end

-- For the server (sapp) is mostly the same except for the object_table address which is:
	local object_table = read_dword(read_dword(sig_scan("8B0D????????8B513425FFFF00008D") + 2))

 

Share this post


Link to post
Share on other sites

Much better than other implementations I've seen! Keep it up!

IceCrow14 likes this

4VWJfoZ.gif

"You fix my mistakes is what you do." - Tucker
"You're useless." - Tucker 2 minutes later

"You're sort of cool in some ways." - 002

Share this post


Link to post
Share on other sites

The client script gives me extremely low framerate on any server I join. I get less than 1 frame per second.


08f9474ede.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.