erobert Posted March 29, 2013 Report Share Posted March 29, 2013 Hello, this is my first post and would like to start by thanking every one who's worked on the game thus far. The games quality surprises me I've only now found the game.With that said, I'm a web developer in my day job and would like to contribute some of my time to the AI of troop movements. There seems to be a great lack in documentation for those of us who'd like to get our feet wet with the games core functionality.I'd like to know where and how I should start making my modifications to the game. I've downloaded the source files and have the test version running on my machine. If I want to pick apart the existing AI path-finding code for units and boats, should I make a mod to do this or change the games core files? I assume I can change this code without needing to recompile? Also, where are such core files even if I am to use them in a mod? There doesn't seem to be a file structure map to give me any idea what is what.Any help you can provide would be greatly appreciated.-erobert 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted March 29, 2013 Report Share Posted March 29, 2013 is very outdated somethings. but f you ask they reply you fast. don't discourage, and try use the last version of game, the SVN Quote Link to comment Share on other sites More sharing options...
zoot Posted March 29, 2013 Report Share Posted March 29, 2013 Hi Erobert. Some links:http://trac.wildfiregames.com/wiki/GettingStartedhttp://trac.wildfiregames.com/wiki/Modding_GuideIf you want to contribute to the mainline of development, you will either modify the engine (otherwise known as Pyrogenesis) or the so-called "public" mod (the default mod shipping with releases, otherwise known as 0 A.D.). If you want to make changes to pathfinding, you have to modify the engine: https://github.com/0ad/0ad/blob/master/source/simulation2/components/CCmpPathfinder.cpp Making changes to this file does require a recompile, since it's done in C++. However, the pathfinder is subject to change in the future, so don't rely on it being stable.If you are making an actual mod, as opposed to contributing to the mainline development, you can't really change the pathfinder, since its a core engine feature. 1 Quote Link to comment Share on other sites More sharing options...
fabio Posted March 29, 2013 Report Share Posted March 29, 2013 There are already two open tickets (#1756, #930) with pathfinder performance improvements. Before attempting to mod the current pathfinder those two will probably need to be finished and applied. Quote Link to comment Share on other sites More sharing options...
erobert Posted March 30, 2013 Author Report Share Posted March 30, 2013 Thanks for all your help. I'm overwhelmed by the size of this project, but I've been able to get into the pathfinding code and play around with it, making small changes to to figure out whats what. Thanks for your time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.