04-22-2015, 09:21 PM 
		
	
	
		I have a feeling vanilla doesn't handle half-slabs while pathfinding, either. That's why there are the "mob-safe door" designs.
	
	
	
	
	
| 
					PathFinder status
				 | 
| 
		
		
		04-22-2015, 09:21 PM 
		
	 
		I have a feeling vanilla doesn't handle half-slabs while pathfinding, either. That's why there are the "mob-safe door" designs.
	 
		
		
		04-22-2015, 09:35 PM 
		
	 
		Couple of minor comments: - We've moved over to c++11 fully now so std::unordered_map should be in std rather than std::tr1. - You might want to use std::priority_queue rather than the custom linked list you've created. That would hopefully allow you to make cPathPoint into a value type and reduce the number of memory allocations. 
		
		
		04-22-2015, 09:40 PM 
(This post was last modified: 04-22-2015, 09:44 PM by LogicParrot.)
		
	 
		@worktycho, I am using a priority_queue. Perhaps you're looking at the old code? I removed the old branch to avoid further confusion. I am awaiting input regarding the inerface I proposed here. 
		
		
		04-22-2015, 09:53 PM 
		
	 
		
		
		04-22-2015, 09:59 PM 
		
	 
		The interface looks good, only I'd expect it to be used as a value type rather than a reference type, so no new.
	 
		
		
		04-22-2015, 10:10 PM 
(This post was last modified: 04-22-2015, 10:19 PM by LogicParrot.)
		
	 (04-22-2015, 09:59 PM)worktycho Wrote: The interface looks good, only I'd expect it to be used as a value type rather than a reference type, so no new. Updated the usage example. Better wrap vector<Vector3d>* with a path class, the user might be interested in knowing path length, etc. is querying cWorld for blocks expensive? should I cache the state of blocks inside the pathFinder? (Whether they're solid or not) 
		
		
		04-22-2015, 10:35 PM 
(This post was last modified: 04-22-2015, 10:40 PM by LogicParrot.)
		
	 
		I am having trouble compiling MCServer/master, I may have missed something. What are the steps? Roughly I did: clone > cmake > initialize submodules > make Code: I am having trouble compiling MCServer/master, I may have missed something.
		
		
		04-22-2015, 10:45 PM 
		
	 
		You first initialize the submodule and then you use cmake.
	 
		
		
		04-22-2015, 10:46 PM 
		
	 
		You're using libstdc++ 4.7, we require 4.8 with a recommendation on 4.9 now, or use a stable version of libc++. The easiest thing to do is upgrade to gcc 4.9
	 
		
		
		04-22-2015, 10:53 PM 
		
	 
		gcc 4.9 is not available in Debian Wheezy(7), which is what I'm using. I am seriously paranoid about mixing Jessie and Wheezy packages. Do you have any proposals? | 
| 
					« Next Oldest | Next Newest »
				 |