Author Topic: Fonline SDK Code Completion?  (Read 2099 times)

Fonline SDK Code Completion?
« on: April 04, 2016, 01:25:02 am »
Howdy lads.

Was looking over the Fonline tutorials, for setting up the ol' computer for scripting, but the only tutorial for getting code completion, is for Fonline: Reloaded and Codeblocks.

So aye. Any chance of gettin' a lil' help on implementing this fer the Fonline TLA SDK?

Re: Fonline SDK Code Completion?
« Reply #1 on: April 04, 2016, 06:34:19 pm »
What exactly do you want?

Re: Fonline SDK Code Completion?
« Reply #2 on: April 05, 2016, 03:13:56 am »
If you take a gander over here, http://fodev.net/forum/index.php/topic,29789.msg260874.html#msg260874 the thread details on how to add code completion to an IDE, for the Fonline Reloaded SDK. However, it is incompatible with the official Fonline SDK (TLA), as stated by the thread author.

What I want ta do, is chuck in the same code completion to an IDE (doesn't have to be Code Blocks, I have Visual Studio 2013), but for the official SDK.

Probably should have clarified in me first post, me apologies.

Re: Fonline SDK Code Completion?
« Reply #3 on: April 05, 2016, 03:27:54 am »
Put this into your _define.fos

Code: [Select]
#ifdef _MSC_VER
#ifdef __FONLINE_SOLUTION__
// here we put whatever will make intellisense smarter
// it is advisable to comment out these lines while running ProjectCreator to reduce the processing time
#ifdef __SERVER
#include "intellisense.h"
#endif
#ifdef __CLIENT
#include "intellisense_client.h"
#endif
#ifdef __MAPPER
#include "intellisense_mapper.h"
#endif
#define import extern
#define interface class
#define private
#endif
#endif

Re: Fonline SDK Code Completion?
« Reply #4 on: April 05, 2016, 03:28:44 am »
Then generate your intellisense files following

http://fodev.net/forum/index.php?topic=28456.0

Re: Fonline SDK Code Completion?
« Reply #5 on: April 08, 2016, 05:49:51 pm »
Woops, sorry for the late reply. Been busy getting to grips with Presonus Studio One. I'll go take a gander at the thread. Much obliged.