NPC-System "IrrSteer" (svn)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
3D Ace
Posts: 66
Joined: Sun Oct 04, 2009 8:47 am
Location: Swakopmund, Namibia
Contact:

Post by 3D Ace »

Hey i wanted to do this! :o 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
Image
gingerheadman
Posts: 18
Joined: Sat Oct 03, 2009 7:14 am
Location: Brisbane, Australia
Contact:

Post by gingerheadman »

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:

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’
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.
My website - Miscreant Software
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

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, unfortunately I don't know your directory structure... :lol:
gingerheadman wrote:then I had to rename every instance of <Irrlicht.h> to <irrlicht.h>
yes, Linux uses case sensitive pathes and file names (Windows doesn't)...
gingerheadman wrote:Now when I try to compile it I get these errors:
ohh, sorry, I thought I updated this for the download... :oops:
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
and others where defined like this

Code: Select all

Vec3 position(); // get
Vec3 setPosition(Vec 3p); // set
so I changed them all to be more constantly... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
gingerheadman
Posts: 18
Joined: Sat Oct 03, 2009 7:14 am
Location: Brisbane, Australia
Contact:

Post by gingerheadman »

Thanks a lot for that :D. I'm testing it out now.
My website - Miscreant Software
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

main post updated... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

I'm planning on creating an rts test sometime in the future, this looks like a perfect fit :) I'll be sure to download it
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

I just started a forum as a project page (see main post) !!! 8)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
3D Ace
Posts: 66
Joined: Sun Oct 04, 2009 8:47 am
Location: Swakopmund, Namibia
Contact:

Post by 3D Ace »

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
Image
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

I don't know what you mean by "loose" files. I use TortoiseSVN, a graphical SVN client for Windows.
TheQuestion = 2B || !2B
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

On SourceForge (or more exactly, on every SN that has ViewVC installed) you can also browse the directory you want and get a tar ball of all files. Just in case you don't want the update possibility of SVN.
3D Ace
Posts: 66
Joined: Sun Oct 04, 2009 8:47 am
Location: Swakopmund, Namibia
Contact:

Post by 3D Ace »

Hey thanks Halifax, TortoiseSVN is awesome. Dont know why i didn't see it before. Thanks. :D 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.
Everything is possible, IF you know how.
Checkout my website for my upcoming game.(Currently on hold!)
http://www.projectbattle360.webege.com
Image
Mani2010
Posts: 107
Joined: Sat Jan 16, 2010 4:35 pm
Location: London,UK
Contact:

Post by Mani2010 »

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

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)

any idea why your version with the irrlicht potimisations doesn't build?
Mani2010
Posts: 107
Joined: Sat Jan 16, 2010 4:35 pm
Location: London,UK
Contact:

Post by Mani2010 »

*Bump* still stuck on this, any help?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

sorry, I have no clue :shock:

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... :cry:
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Mani2010
Posts: 107
Joined: Sat Jan 16, 2010 4:35 pm
Location: London,UK
Contact:

Post by Mani2010 »

no probs, i'll start with opensteer instead
Post Reply