NPC-System "IrrSteer" (svn)
Hey i wanted to do this! Seems like u beat me too it. But you have come quite a bit further than me. Great work.
Everything is possible, IF you know how.
Checkout my website for my upcoming game.(Currently on hold!)
http://www.projectbattle360.webege.com
Checkout my website for my upcoming game.(Currently on hold!)
http://www.projectbattle360.webege.com
-
- Posts: 18
- Joined: Sat Oct 03, 2009 7:14 am
- Location: Brisbane, Australia
- Contact:
I've run into a bit of trouble compiling this on Linux. First, I had to edit the search directories in the Code::Blocks project to match where the files are stored on my system, then I had to rename every instance of <Irrlicht.h> to <irrlicht.h> and then I added tecan's modifications to osClock.cpp.
Now when I try to compile it I get these errors:
I'm sure if I had any knowledge of OpenSteer I could fix the problem myself but unfortunately I have no idea why this problem is happening.
BTW I ran the example program on a Windows machine and it is awesome. If I can get this working on Linux I will definitely be using it in my current Irrlicht project.
Now when I try to compile it I get these errors:
Code: Select all
Compiling: source/osPolylineSegmentedPath.cpp
include/osQueryPathAlike.h: In static member function ‘static void OpenSteer::PointToPathAlikeMapping<PathAlike, Mapping, BaseDataExtractionPolicy>::map(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathMapping, BaseDataExtractionPolicy = OpenSteer::PointToPathAlikeBaseDataExtractionPolicy<OpenSteer::PolylineSegmentedPath>]’:
include/osQueryPathAlike.h:142: instantiated from ‘void OpenSteer::mapPointToPathAlike(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathMapping]’
/home/rory/Programming/irrlicht-1.6/irrOpenSteer/source/osPolylineSegmentedPath.cpp:341: instantiated from here
include/osQueryPathAlike.h:119: error: ‘class OpenSteer::PointToPathMapping’ has no member named ‘radius’
include/osQueryPathAlike.h: In static member function ‘static void OpenSteer::PointToPathAlikeMapping<PathAlike, Mapping, BaseDataExtractionPolicy>::map(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathDistanceMapping, BaseDataExtractionPolicy = OpenSteer::PointToPathAlikeBaseDataExtractionPolicy<OpenSteer::PolylineSegmentedPath>]’:
include/osQueryPathAlike.h:142: instantiated from ‘void OpenSteer::mapPointToPathAlike(const PathAlike&, const OpenSteer::Vec3&, Mapping&) [with PathAlike = OpenSteer::PolylineSegmentedPath, Mapping = OpenSteer::PointToPathDistanceMapping]’
/home/rory/Programming/irrlicht-1.6/irrOpenSteer/source/osPolylineSegmentedPath.cpp:361: instantiated from here
include/osQueryPathAlike.h:119: error: ‘class OpenSteer::PointToPathDistanceMapping’ has no member named ‘radius’
BTW I ran the example program on a Windows machine and it is awesome. If I can get this working on Linux I will definitely be using it in my current Irrlicht project.
My website - Miscreant Software
yes, unfortunately I don't know your directory structure...gingerheadman wrote:First, I had to edit the search directories in the Code::Blocks project to match where the files are stored on my system,
yes, Linux uses case sensitive pathes and file names (Windows doesn't)...gingerheadman wrote:then I had to rename every instance of <Irrlicht.h> to <irrlicht.h>
ohh, sorry, I thought I updated this for the download...gingerheadman wrote:Now when I try to compile it I get these errors:
I updated the download and now it should be solved...
so either download the new version, or change those radius calls into setRadius...
this was one think that was very annoying with OpenSteer...
some set/get functions where defined like this:
Code: Select all
Vec3 size(); // get
Vec3 size(Vec3 s); // set
Code: Select all
Vec3 position(); // get
Vec3 setPosition(Vec 3p); // set
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 18
- Joined: Sat Oct 03, 2009 7:14 am
- Location: Brisbane, Australia
- Contact:
main post updated...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
I just started a forum as a project page (see main post) !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
I kinda dislike SVN's cause they consist of so many "loose" files. Is there some kinda tool to download this projects files all at once. I already tried several svn tools but none of really worked. Does anyone have a link to a usefull svn tool?
Everything is possible, IF you know how.
Checkout my website for my upcoming game.(Currently on hold!)
http://www.projectbattle360.webege.com
Checkout my website for my upcoming game.(Currently on hold!)
http://www.projectbattle360.webege.com
I don't know what you mean by "loose" files. I use TortoiseSVN, a graphical SVN client for Windows.
TheQuestion = 2B || !2B
Hey thanks Halifax, TortoiseSVN is awesome. Dont know why i didn't see it before. Thanks. By the way with loose i mean that they have to be individually downloaded instead of being in one easy zip.
Hybrid not all SN's have tarball download options.
Hybrid not all SN's have tarball download options.
Everything is possible, IF you know how.
Checkout my website for my upcoming game.(Currently on hold!)
http://www.projectbattle360.webege.com
Checkout my website for my upcoming game.(Currently on hold!)
http://www.projectbattle360.webege.com
Hi Acki,
i got the latest from your svn repository. I tried building my own OpenSteer lib( static and dll ) with your irrlicht optimisations but had these problems with the lines in osSimpleVehicle.h...
it seems to be to do with the typedefs but i download opensteer from the opensteer website and it works fine.
I am using VSC++ 2008 and created my own project file to build your version of OpenSteer.
\ossimplevehicle.h(44) : error C2143: syntax error : missing ';' before '<'
ossimplevehicle.h(49) : error C2955: 'OpenSteer::SteerLibraryMixin' : use of class template requires template argument list
ossteerlibrary.h(47) : see declaration of 'OpenSteer::SteerLibraryMixin'
ossimplevehicle.h(187) : fatal error C1903: unable to recover from previous error(s); stopping compilation
any idea why your version with the irrlicht potimisations doesn't build?
i got the latest from your svn repository. I tried building my own OpenSteer lib( static and dll ) with your irrlicht optimisations but had these problems with the lines in osSimpleVehicle.h...
it seems to be to do with the typedefs but i download opensteer from the opensteer website and it works fine.
I am using VSC++ 2008 and created my own project file to build your version of OpenSteer.
\ossimplevehicle.h(44) : error C2143: syntax error : missing ';' before '<'
ossimplevehicle.h(49) : error C2955: 'OpenSteer::SteerLibraryMixin' : use of class template requires template argument list
ossteerlibrary.h(47) : see declaration of 'OpenSteer::SteerLibraryMixin'
ossimplevehicle.h(187) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Code: Select all
//! namespace OpenSteer
namespace OpenSteer{
//! SimpleVehicle_1 adds concrete LocalSpace methods to AbstractVehicle
typedef LocalSpaceMixin<AbstractVehicle> SimpleVehicle_1;
//! SimpleVehicle_2 adds concrete annotation methods to SimpleVehicle_1
typedef AnnotationMixin<SimpleVehicle_1> SimpleVehicle_2;
//! SimpleVehicle_3 adds concrete steering methods to SimpleVehicle_2
typedef SteerLibraryMixin<SimpleVehicle_2> SimpleVehicle_3;
// SimpleVehicle adds concrete vehicle methods to SimpleVehicle_3
class SimpleVehicle : public SimpleVehicle_3{
private:
float _mass; // mass (defaults to unity so acceleration=force)
sorry, I have no clue
it works perfectly with MinGW/GCC (Code::Blocks) and I never had this problem...
and bc I don't use MSVC++ I can't test it with this IDE, sorry...
it works perfectly with MinGW/GCC (Code::Blocks) and I never had this problem...
and bc I don't use MSVC++ I can't test it with this IDE, sorry...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java