Neirai the Forgiven Joined Aug 5, 2013 Messages 1,049 Location Canada Dec 28, 2014 #1 Hey all. I'm working on an idea for Archaeology. I'm wondering what code is already in place for the way that Artifacts are placed on maps. Any information would be awesome.
Hey all. I'm working on an idea for Archaeology. I'm wondering what code is already in place for the way that Artifacts are placed on maps. Any information would be awesome.
PawelS Ancient Druid Joined Dec 11, 2003 Messages 2,811 Location Poland Dec 28, 2014 #2 CvGame.cpp void CvGame::SpawnArchaeologySitesHistorically()
whoward69 DLL Minion Joined May 30, 2011 Messages 8,729 Location Near Portsmouth, UK Dec 29, 2014 #3 Another good place to start is CvLuaPlot.cpp, and follow the following API methods into the source Code: Method(GetArchaeologyArtifactType); Method(GetArchaeologyArtifactEra); Method(GetArchaeologyArtifactPlayer1); Method(GetArchaeologyArtifactPlayer2); Method(GetArchaeologyArtifactWork); Method(HasWrittenArtifact); If you grab the source for my DLL and start in the same file, you'll also find Code: #if defined(MOD_API_LUA_EXTENSIONS) Method(SetArchaeologicalRecord); Method(AddArchaeologicalRecord); #endif which implement the missing "setters" for the Firaxis provided "getters" HTH W
Another good place to start is CvLuaPlot.cpp, and follow the following API methods into the source Code: Method(GetArchaeologyArtifactType); Method(GetArchaeologyArtifactEra); Method(GetArchaeologyArtifactPlayer1); Method(GetArchaeologyArtifactPlayer2); Method(GetArchaeologyArtifactWork); Method(HasWrittenArtifact); If you grab the source for my DLL and start in the same file, you'll also find Code: #if defined(MOD_API_LUA_EXTENSIONS) Method(SetArchaeologicalRecord); Method(AddArchaeologicalRecord); #endif which implement the missing "setters" for the Firaxis provided "getters" HTH W
Neirai the Forgiven Joined Aug 5, 2013 Messages 1,049 Location Canada Jan 1, 2015 #4 Thanks, guys... this gave me all the info I needed.