State of the Code

Re: State of the Code

Postby svenskmand » 20 Jun 2010, 20:44

andrewbuck {l Wrote}:The room attacking is now functional. The AttackableObject system ended up working almost exactly as expected and it will be easy to add to traps and doors when I get them added so that creatures will attack any enemy assets that they see (creatures, traps, doors, and rooms). The advantage to the this system is that the combat AI only has to be written once; the same code that makes a creature walk over to and hit another creature is the exact same code block which makes a creature walk over to and hit an enemy room tile. The tiles are destroyed one at a time and each has its own HP value.

Hopefully the creatures will attack other nearby creatures before they attack nearby rooms?
andrewbuck {l Wrote}:The only thing the system does not do yet is there is no concept of a "threat level" posed by the various AttackableObjects. This means that when an enemy army invades your dungeon, some of them will attack your creatures and some will attack your rooms (even though the rooms pose no immediate threat and they should therefore focus on killing your creatures first). This is something I plan to add in the future, I know how I will add it and know that it won't break the existing framework; the only reason I am not adding it now is that it is not a huge problem and although I know what to add it will be fairly tedious to set it up.

-Buck

Ahh ok, good I see you are considering the above then :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby andrewbuck » 26 Jun 2010, 23:13

I just got another commit pushed to sourceforge which adds the probability calculation to the portals. I threw in some "dummy" values for the creature alignments and the code seems to be working but someone will need to go through the level file and fill in real values for each class.

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby svenskmand » 27 Jun 2010, 21:52

Cool :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby andrewbuck » 30 Jun 2010, 03:30

I did quite a bit of playing around with the colourizeEntity() function tonight. This is the code which allows you to distinguish between your creatures and the enemy creatures by coloring certain parts of them to your "team color". I got the function mostly working, but it is not fully operational yet since it still needs to copy the pixel buffer data for the new material it creates and I haven't figured out how to do this yet. I got a commit pushed with my changes to the function but I have left it commented out where it is called since it is not entirely working yet. Also it seems to cause a crash when processing the mesh for the Wyvern. I think it is something to do with the material script for that mesh being different than the other ones, however I have not figured it out yet.

Skorpio, is the Wyvern using some different thing in its material script than the other models use?

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby Skorpio » 30 Jun 2010, 13:11

Ah, team colors. I guess you have noticed the red test team color on the orcs. It's just an additonal partially transparent texture over the normal texture. However, I have a problem with this method, because when I turn on transparency in the material scripts the texture becomes shadeless, therefore it looks a bit like it's glowing.

andrewbuck {l Wrote}:Skorpio, is the Wyvern using some different thing in its material script than the other models use?


Could you copy & paste the material script here? It should look similar to the other creature scripts.

BTW I recently made a new texture for the Wyvern, but I still need to improve it a little bit.
User avatar
Skorpio
OD Moderator
 
Posts: 775
Joined: 05 Dec 2009, 18:28

Re: State of the Code

Postby andrewbuck » 30 Jun 2010, 14:20

The wyvern was having trouble, however in the process of trying to figure it out I deleted the material scripts I had, therefore the ones I have are the ones in the OpenDungeons.zip file found on sourceforge. I think it might be due to the fact that the wyvern had normal maps, but I can't confirm this since I got rid of my material files. Hopefully I will figure it out in the future I just thought I would see if you had any ideas.

The method I am using for the team colors is the "marker color" method which uses a neon pink color that is painted onto the mesh, on any texture, to get swapped with the real color. The marker color has RGB values of (235, 20, 235). Any color which has a manhattan distance of less than 65 from this point will get subbed to a different color. The color that gets swapped in will be the team color, shifted by the difference between the target color (235, 20, 235) and the color you painted to the mesh. This will you allow you to vary the color slightly to do shading, etc, and have the team color be shaded appropriately.

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby svenskmand » 07 Jul 2010, 22:30

I just found this in the download page of the wiki
Please note that OpenDungeons does NOT compile with OGRE 1.7.0 or later, because CEGUIOGRE has been removed in that release. Use 1.6 Branch till OpenDungeons gets updated.

Then I was wondering, what will we then use to handle the GUI if CEGUI is no more?
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby andrewbuck » 07 Jul 2010, 23:15

We are still using CEGUI, ubuntu just seems to have changed their package structure around somewhat. I am not sure exactly what will have to be changed (if anything) because cmake might automatically handle this situation, or the CEGUI stuff may have been moved directly into the OGRE libs.

In any case the game seems to build fine for everyone who has tried it (I think) and so unless some problems arise I would not worry about this for now. I'm not sure what to do with the statement on the wiki though.

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby charlie » 29 Jul 2010, 12:42

Development has slowed over the summer months, eh?
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: State of the Code

Postby svenskmand » 29 Jul 2010, 13:20

Not on my part :P I am working on the alignment system :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby andrewbuck » 29 Jul 2010, 15:14

The development on the code has slowed down and that is my fault. I have been having trouble with my main development computer. I plan to reinstall it tonight so hopefully I can get back at it fairly soon here. It's also about time to start thinking about the next release as there have already been several additions to the codebase. I know we already have a couple threads for discussing releases, I think we should have a separate thread for each release, so if someone wants to start one to list what they would like to see in it that would be cool.

EDIT: I will start a thread called something like "Next release 0.4.3" since there doesn't seem to be one already.

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby andrewbuck » 31 Jul 2010, 16:31

Well, almost exactly 1 month since the last commit I got a new commit finally pushed. This one doesn't do anything to the game itself it is just porting the code over to the new systems used by the latest versions of OGRE and CEGUI. Those of you building the game yourself from the git builds will probably have to upgrade to CEGUI 0.7 which will unfortunately probably mean building it yourself again. It is unfortunate that this is the case but we would have needed to make the jump from 0.6 to 0.7 eventually so we might as well do it now and keep ahead of the curve.

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby svenskmand » 05 Sep 2010, 22:39

Any news be it good or bad :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby charlie » 07 Sep 2010, 18:43

Yes, an update would be great. This project has come so far, I hope it continues onward.
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: State of the Code

Postby svenskmand » 07 Sep 2010, 19:41

It will, I will always be here, not matter if no one else is :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby andrewbuck » 10 Sep 2010, 15:38

Hey everyone. I am still here but my progress has been slowed recently. I started school again a few weeks ago and so haven't had much time to devote to OD. Hopefully when things settle down a bit here I should have more time for development but it will be slow for the near future.

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby svenskmand » 10 Sep 2010, 16:11

Nice to hear :) What kind of school, and where, did you start on, if I may ask?
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby andrewbuck » 11 Sep 2010, 16:51

I am in Fargo, ND at North Dakota State University. I am returning to finish my Physics and Computer Science degrees.

-Buck
andrewbuck
OD Moderator
 
Posts: 563
Joined: 20 Dec 2009, 01:42

Re: State of the Code

Postby svenskmand » 11 Sep 2010, 17:19

Ok nice :)

By the way I finished the implementation of the alignment system experiments and put up a jar so people can try it out. I find it very successful and fulfills all the requirements that I put up about it :). Check it out if you find the time for it :)

Next I will begin to finish up the backstory and then think about a creature list for each faction and descriptions of them along with some images from the internet giving inspiration about how they should look. Then when I finally finish all that I will make some sketches of how they should look :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby oln » 28 Oct 2010, 11:42

I got some issues with compiling the source from the latest git on Ubuntu 10.10, seems like there is some circular dependency issue. (Adding #include <vector> to files didn't help)
http://pastebin.com/L0tJMAjC
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: State of the Code

Postby svenskmand » 28 Oct 2010, 14:27

It is ok for you to submit the error message here in a code tag. I have put it here for everybody's convenience
{l Code}: {l Select All Code}
oln@oln-laptop:/media/edisk1/opendungeons/opendungeons/opendungeons$ cmake .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- checking for one of the modules 'OIS'
--   libraries : OIS from /usr/lib
--   includes  : /usr/include/OIS
-- checking for one of the modules 'OGRE'
--   libraries : OgreMain;pthread from /usr/local/lib
--   includes  : /usr/local/include;/usr/local/include/OGRE
CMake Warning (dev) at src/CMakeLists.txt:41 (FIND_PACKAGE):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /media/edisk1/opendungeons/opendungeons/opendungeons/cmake/modules/FindOGRE.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- checking for one of the modules 'CEGUI'
--   libraries : CEGUIBase from /usr/lib
--   includes  : /usr/include/CEGUI
CMake Warning (dev) at src/CMakeLists.txt:41 (FIND_PACKAGE):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /media/edisk1/opendungeons/opendungeons/opendungeons/cmake/modules/FindCEGUI.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- checking for one of the modules 'CEGUI-OGRE'
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
Package 'CEGUI-OGRE' requires 'OGRE = 1.6.4' but version of OGRE is 1.7.1
You may find new versions of OGRE at http://www.ogre3d.org
--   libraries :  from /usr/lib
--   includes  :
CMake Warning (dev) at src/CMakeLists.txt:41 (FIND_PACKAGE):
  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH
  and POP.  Run "cmake --help-policy CMP0011" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The included script

    /media/edisk1/opendungeons/opendungeons/opendungeons/cmake/modules/FindCEGUIOGRE.cmake

  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for
  compatibility, so the effects are applied to the including context.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /media/edisk1/opendungeons/opendungeons/opendungeons


oln@oln-laptop:/media/edisk1/opendungeons/opendungeons/opendungeons$ make
Scanning dependencies of target copy-config
[  0%] Generating plugins.cfg
make[2]: Circular resources.cfg <- resources.cfg dependency dropped.
make[2]: Circular media.cfg <- media.cfg dependency dropped.
[  8%] Built target copy-config
Scanning dependencies of target copy-media
[ 11%] Built target copy-media
Scanning dependencies of target MapEditor
[ 14%] Building CXX object src/CMakeFiles/MapEditor.dir/ButtonHandlers.o
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:20,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:7,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Room.h:20: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Room.h:20: error: expected ‘,’ or ‘...’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Room.h:54: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Room.h:54: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Room.h:59,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:20,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:7,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomQuarters.h:19: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomQuarters.h:19: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomQuarters.h:28: error: ISO C++ forbids declaration of ‘map’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomQuarters.h:28: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomQuarters.h:29: error: ISO C++ forbids declaration of ‘map’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomQuarters.h:29: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Room.h:60,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:20,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:7,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomTreasury.h:38: error: ISO C++ forbids declaration of ‘map’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomTreasury.h:38: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomTreasury.h:39: error: ISO C++ forbids declaration of ‘map’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/RoomTreasury.h:39: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:7,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:76: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:76: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:102: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:102: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:103: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:103: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:105: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Tile.h:105: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:16,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Player.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:10: error: expected initializer before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:22: error: ‘FieldType’ has not been declared
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:22: error: ISO C++ forbids declaration of ‘iterator’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:22: error: expected ‘;’ before ‘begin’
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:23: error: ‘FieldType’ has not been declared
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:23: error: ISO C++ forbids declaration of ‘iterator’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:23: error: expected ‘;’ before ‘end’
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Field.h:38: error: ‘FieldType’ does not name a type
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Player.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:64: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:64: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:65: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:65: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:66: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:66: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:67: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:67: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:68: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:68: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:69: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:69: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:71: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:71: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:72: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:72: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Player.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:73: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:73: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:74: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:74: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:75: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:75: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:76: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:76: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:82: error: reference to ‘list’ is ambiguous
/usr/local/include/OGRE/OgrePrerequisites.h:477: error: candidates are: template<class T, class A> struct Ogre::list
/usr/include/c++/4.4/bits/stl_list.h:417: error:                 template<class _Tp, class _Alloc> class std::list
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:82: error: ‘list’ has not been declared
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:82: error: expected ‘,’ or ‘...’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:105: error: ISO C++ forbids declaration of ‘deque’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:105: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:118: error: ISO C++ forbids declaration of ‘deque’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:118: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:124: error: ISO C++ forbids declaration of ‘list’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Creature.h:124: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Player.h:9,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Seat.h:52: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Seat.h:52: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Seat.h:54: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Seat.h:54: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Seat.h:56: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Seat.h:56: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:8,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Player.h:48: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Player.h:48: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:9,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:14: error: expected initializer before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:38: error: ‘TileMap_t’ has not been declared
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:38: error: ISO C++ forbids declaration of ‘iterator’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:38: error: expected ‘;’ before ‘firstTile’
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:39: error: ‘TileMap_t’ has not been declared
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:39: error: ISO C++ forbids declaration of ‘iterator’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:39: error: expected ‘;’ before ‘lastTile’
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:41: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:41: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:42: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:42: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:43: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:43: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:72: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:72: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:73: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:73: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:113: error: ISO C++ forbids declaration of ‘list’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:113: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:114: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:114: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:115: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:115: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:116: error: ISO C++ forbids declaration of ‘list’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:116: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:117: error: reference to ‘list’ is ambiguous
/usr/local/include/OGRE/OgrePrerequisites.h:477: error: candidates are: template<class T, class A> struct Ogre::list
/usr/include/c++/4.4/bits/stl_list.h:417: error:                 template<class _Tp, class _Alloc> class std::list
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:117: error: ‘list’ has not been declared
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:117: error: expected ‘,’ or ‘...’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:118: error: reference to ‘list’ is ambiguous
/usr/local/include/OGRE/OgrePrerequisites.h:477: error: candidates are: template<class T, class A> struct Ogre::list
/usr/include/c++/4.4/bits/stl_list.h:417: error:                 template<class _Tp, class _Alloc> class std::list
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:118: error: ‘list’ has not been declared
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:118: error: expected ‘,’ or ‘...’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:133: error: ISO C++ forbids declaration of ‘list’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:133: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:134: error: ISO C++ forbids declaration of ‘list’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:134: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:136: error: ISO C++ forbids declaration of ‘deque’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:136: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:147: error: ISO C++ forbids declaration of ‘map’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:147: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:149: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:149: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:150: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:150: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:152: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:152: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:153: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:153: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:154: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:154: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:155: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:155: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:156: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:156: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:157: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:157: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:158: error: ISO C++ forbids declaration of ‘vector’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:158: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:162: error: ISO C++ forbids declaration of ‘map’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:162: error: expected ‘;’ before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:163: error: ISO C++ forbids declaration of ‘map’ with no type
/media/edisk1/opendungeons/opendungeons/opendungeons/include/GameMap.h:163: error: expected ‘;’ before ‘<’ token
In file included from /media/edisk1/opendungeons/opendungeons/opendungeons/include/ButtonHandlers.h:6,
                 from /media/edisk1/opendungeons/opendungeons/opendungeons/src/ButtonHandlers.cpp:1:
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:19: error: expected initializer before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:24: error: expected initializer before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:25: error: expected initializer before ‘<’ token
/media/edisk1/opendungeons/opendungeons/opendungeons/include/Globals.h:41: error: expected initializer before ‘<’ token
make[2]: *** [src/CMakeFiles/MapEditor.dir/ButtonHandlers.o] Error 1
make[1]: *** [src/CMakeFiles/MapEditor.dir/all] Error 2
make: *** [all] Error 2

I remember that Andrew (our programmer) mentioned that he upgraded the code to use the latest version of CEGUI, but that it required a manual compilation and installation of it, that is the CEGUI from apt-get would not work. But I do not know if this is causing the problem. I have wrote to Andrew so he will hopefully be here soon, then he can get you up to speed on the code :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: State of the Code

Postby oln » 28 Oct 2010, 16:41

It could be a cause (or could give errors that will be shown if this is resolved), if the cegui includes includes vector, but it looks to me as there is some issue with circular dependencies, which could behave differently depending on the compiler. Maybe forward-declaring vector some places would do the trick.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: State of the Code

Postby KroArtem » 28 Oct 2010, 19:26

A quick reply : if you need to update Cegui to 0.7.2 version under Ubuntu, you may use this ppa:
https://launchpad.net/~andrewfenn/+archive/ogredev
KroArtem
 
Posts: 375
Joined: 26 Aug 2010, 19:04

Re: State of the Code

Postby oln » 28 Oct 2010, 20:37

Updating CEGUI / Ogre did not fix the issue, (though got rid of the cmake warnings), though looking at the code I suppose it may be necessary to have the newer versions anyway.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: State of the Code

Postby oln » 28 Oct 2010, 21:03

It seems that there is some issue with the using statements in the header files, prefixing the stl-classes with std:: made the individual errors go away. It might be an idea to not use "using" statements and instead use prefixes, especially in headers, as it generally is a bad idea. http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.5 OGRE also typedefs some of the classes from stl into Ogre equivalents, which makes the compiler confused when using the "using"-statements.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Who is online

Users browsing this forum: No registered users and 1 guest

cron