intercept: guide problems and errors (collective thread)

Used: VS 2017 Library: Intercept 0.8.0.430 - Static

1. thing intercept::sqf::disable_ai(follower_unit, intercept::sqf::ai_behaviour_types::TARGET); ai_behaviour_types is undefined… -> because the release was outdated and the guide used not the master

2. thing Also the DllMain is in the default project already in the dllmain.cpp file and is not needed in the Hello_Intercept.cpp (https://github.com/intercept/intercept/wiki/Windows-Environment-Setup-and-Sample-Client-Installation#hello_interceptcpp):

// Normal Windows DLL junk...
BOOL APIENTRY DllMain(HMODULE hModule,
	DWORD  ul_reason_for_call,
	LPVOID lpReserved
)
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
		break;
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}

3. thing VS2017 Enterprise has CMake version 3.7 and for making CMAKE on intercept you need 3.8 so the: https://github.com/intercept/intercept/wiki/Building-and-installing-Intercept-from-source Information to make that with VS2017 is not valid atm. -> update 2 of vs2017 fix this

4. thing In this guide (https://github.com/intercept/intercept/wiki/Windows-Environment-Setup-and-Sample-Client-Installation#create-the-intercept-client-addon) there are some ; missing at all classes after class Intercept (3 ; after }) -> fixed

5. thing in the guide (https://github.com/intercept/intercept/wiki/Registered-Functions#examples) is the thing outdated: intercept::types::__internal::GameDataType::STRING must be: intercept::types::GameDataType::STRING under unary and binary is (https://github.com/intercept/intercept/wiki/Registered-Functions#examples): types::GameDataType::STRING but need to be (develop branch): intercept::types::GameDataType::STRING

6. thing in the guide (https://github.com/intercept/intercept/wiki/Registered-Functions#examples) is the old register function: intercept::client::host::functions.register_sqf_function_nular must be: intercept::client::host::registerFunction now it is under (https://github.com/intercept/intercept/wiki/Registered-Functions#examples): intercept::client::host::register_sqf_function( but it need to be (develop branch): intercept::client::host::registerFunction(

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

Use an older revision of the wiki page. Here you can find the code that is compatible with what you have downloaded: https://github.com/intercept/intercept/wiki/Windows-Environment-Setup-and-Sample-Client-Installation/787aea698bf6b5cab73234202f8b0daba85785d1#hello_interceptcpp

In general, I’d say that the wiki pages should pertain to the official releases and not development branches. I realize that everyone will now jump on me and say that it’s not an officially official release, but it’s still the “oficiallest” official release that is available so I still think that the wiki pages should be modified 😛