Awesome! I would love to know how you figured that out. I can get to the main menu and hit new game and edit map! But now it's crashing just after showing the map.
- {l Code}: {l Select All Code}
Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
*** ERROR: Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
in valgrind
- {l Code}: {l Select All Code}
Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
*** ERROR: Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
==17845== Thread 13:
==17845== Invalid read of size 8
==17845== at 0x567037: queueServerNotification(ServerNotification*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x581190: MovableGameEntity::setAnimationState(std::string const&, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x581491: MovableGameEntity::clearDestinations() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x581938: MovableGameEntity::setWalkPath(std::list<Tile*, std::allocator<Tile*> >, unsigned int, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x55E182: Creature::doTurn() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x567FFD: GameMap::creatureDoTurnHelperThread(void*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x6451E99: start_thread (pthread_create.c:308)
==17845== by 0x6F70CCC: clone (clone.S:112)
==17845== Address 0x178 is not stack'd, malloc'd or (recently) free'd
==17845==
==17845==
==17845== Process terminating with default action of signal 11 (SIGSEGV)
==17845== Access not within mapped region at address 0x178
==17845== at 0x567037: queueServerNotification(ServerNotification*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x581190: MovableGameEntity::setAnimationState(std::string const&, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x581491: MovableGameEntity::clearDestinations() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x581938: MovableGameEntity::setWalkPath(std::list<Tile*, std::allocator<Tile*> >, unsigned int, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x55E182: Creature::doTurn() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x567FFD: GameMap::creatureDoTurnHelperThread(void*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845== by 0x6451E99: start_thread (pthread_create.c:308)
==17845== by 0x6F70CCC: clone (clone.S:112)
==17845== If you believe this happened as a result of a stack
==17845== overflow in your program's main thread (unlikely but
==17845== possible), you can try to increase the size of the
==17845== main thread stack using the --main-stacksize= flag.
==17845== The main thread stack size used in this run was 8388608.
==17845==
==17845== HEAP SUMMARY:
==17845== in use at exit: 143,442,051 bytes in 689,474 blocks
==17845== total heap usage: 1,411,106 allocs, 721,632 frees, 316,390,414 bytes allocated
==17845==
==17845== LEAK SUMMARY:
==17845== definitely lost: 17,928 bytes in 103 blocks
==17845== indirectly lost: 110,315 bytes in 286 blocks
==17845== possibly lost: 96,656,335 bytes in 341,281 blocks
==17845== still reachable: 46,657,473 bytes in 347,804 blocks
==17845== suppressed: 0 bytes in 0 blocks
==17845== Rerun with --leak-check=full to see details of leaked memory
==17845==
==17845== For counts of detected and suppressed errors, rerun with: -v
==17845== Use --track-origins=yes to see where uninitialised values come from
==17845== ERROR SUMMARY: 833 errors from 19 contexts (suppressed: 0 from 0) Killed
I know from reading through the tile code files that the file name is constructed. Is it possible there is a bug in it?
Also I'm making a list for changes to cmake so go ahead and keep telling me stuff. this is what I have so far:
* cmake needs version checks for prerequisits added
* cmake needs to move dictionary from OD main dir to the build directory
Finally I have a cal test tomorrow so I can't work on anything else today or tomorrow. I'll probably be back on friday.