cypher2012 Posted December 4, 2017 Share Posted December 4, 2017 Has anyone been able to compile NifLib recently? I've been trying to compile in visual studio 2015 with no luck. I want to write some tools, but I need to figure out how to compile niflib. Link to comment Share on other sites More sharing options...
cypher2012 Posted December 5, 2017 Author Share Posted December 5, 2017 So I managed to compile Niflib and create a new project using the library. I had to download the 'develop' branch on Git. Not the master. It also needed to be compiled in Visual Studio Express 2005. I'm running in to problems using the code. 'ReadHeaderInfo' keeps crashing. #include <iostream> #include <string> #include <niflib.h> void Run(std::string sFileName) { Niflib::NifInfo TestNifInfo; TestNifInfo = Niflib::ReadHeaderInfo(sFileName); } int main() { std::string sFileName = "test2.nif"; int iVersion = Niflib::GetNifVersion(sFileName); if(iVersion != Niflib::VER_INVALID) { if(iVersion == Niflib::VER_20_2_0_7) { std::cout << "Found a valid Fallout 4 file!" << std::endl; Run(sFileName); } else { std::cout << "NIF is not a Fallout 4 file!" << std::endl; } } else { std::cout << "File was not a valid NIF file!" << std::endl; } std::cin.get(); } Link to comment Share on other sites More sharing options...
zilav Posted December 5, 2017 Share Posted December 5, 2017 You'd better join the NifTools Discord server to get help with such stuff, Nexus is the wrong place. Link to comment Share on other sites More sharing options...
cypher2012 Posted December 6, 2017 Author Share Posted December 6, 2017 You'd better join the NifTools Discord server to get help with such stuff, Nexus is the wrong place.Good shout. I wasn't really sure where to go. Git hub page is dead! I'll go check out discord :) Link to comment Share on other sites More sharing options...
Recommended Posts