OgreCrowd ported to Ogre 14

Problems building or running the engine, queries about how to use features etc.
K0b0ld
Gnoblar
Posts: 6
Joined: Fri Dec 20, 2024 6:33 pm
x 1

OgreCrowd ported to Ogre 14

Post by K0b0ld »

Hello,

I have adapted OgreCrowd (navmesh and pathfinding library) to work with Ogre 14. It's basically just replacing OIS event handlers with SDL event handlers.
I also fixed dozens of warnings caused by implicit type conversions and missing typecasts.

However, there are some "deprecated" warnings left that I'm not sure how to handle. I'm only a week into Ogre and never used an older version, so I don't know how it all evolved and how the interface changed.

Code: Select all

Ogre::SceneManager::getMovableObjectIterator          // @deprecated use getMovableObjects
Ogre::TerrainGroup::getTerrainIterator                // @deprecated use getTerrainSlots()
Ogre::ConfigFile::getSectionIterator                  // @deprecated use getSettingsBySection()
Ogre::SharedPtr<Ogre::HardwareIndexBuffer>::isNull    // @deprecated use SharedPtr::operator bool instead

The OgreCrowd demo works fine, so I assume these deprecated functions still work as intended. Anyway, I want to change them to the new style.

Would you please give me examples on how to change these iterators? Or is there some migration guide in the documentation?

Thank you in advance.

paroj
OGRE Team Member
OGRE Team Member
Posts: 2126
Joined: Sun Mar 30, 2014 2:51 pm
x 1140

Re: OgreCrowd ported to Ogre 14

Post by paroj »

did you see https://github.com/OGRECave/OgreCrowd?

it should be already working fine with Ogre 14.

K0b0ld
Gnoblar
Posts: 6
Joined: Fri Dec 20, 2024 6:33 pm
x 1

Re: OgreCrowd ported to Ogre 14

Post by K0b0ld »

paroj wrote: Sat Dec 21, 2024 12:50 pm

did you see https://github.com/OGRECave/OgreCrowd?

it should be already working fine with Ogre 14.

That's what I used. Cloned the repo two days ago.
It depends on OIS headers that it didn't find and uses OIS input events instead of SDL, so I modified it.
And it uses deprecated functions.

paroj
OGRE Team Member
OGRE Team Member
Posts: 2126
Joined: Sun Mar 30, 2014 2:51 pm
x 1140

Re: OgreCrowd ported to Ogre 14

Post by paroj »

see e.g. this commit how to replace the deprecated iterators:
https://github.com/OGRECave/ogre/commit ... 297b324acd

K0b0ld
Gnoblar
Posts: 6
Joined: Fri Dec 20, 2024 6:33 pm
x 1

Re: OgreCrowd ported to Ogre 14

Post by K0b0ld »

Thank you :)