kadir.basol Posted February 26, 2012 Share Posted February 26, 2012 Hello , is there any IDE that has autocomplete on unigine? Link to comment
manguste Posted March 1, 2012 Share Posted March 1, 2012 From our side, no, but check this thread: Latest version of uniginescript.h (code completion support for uniginescript) Link to comment
danni.coy Posted March 2, 2012 Share Posted March 2, 2012 Here's a newer version... This one is set up for KDevelop (Which I fully reccomend by the way)... If you want it to work more generally try replacing #ifdef IN_IDE_PARSER with #ifndef IN_UNIGINE and then run unigine with --extern_define IN_UNIGINE some IDEs like eclipse let you add files with linking to them in the project so you may not need to do this. Check your editors documentation - but the above trick will work for anything. uniginescript.h 2 Link to comment
andrzej.koloska Posted March 2, 2012 Share Posted March 2, 2012 I know that it's newbie question but I'm not an programmer, but I would love to check how unigine script is working: - How can I configure kdevelop project to use with unigine script project. I know that there is an .h file but how to use it? :) Link to comment
danni.coy Posted March 5, 2012 Share Posted March 5, 2012 place the file somewhere in your Unigine data folder. (for this example the scripts folder) create a new project in KDevelop in your Unigine Data folder Project -> Open / Import Project choose a .cpp file or .h file (in this example level.cpp where level is the name of a level you have created) Add the following to the top of the file #include <scripts/uniginescript.h> KDevelop will draw a squiggly red line under this line and will if you mouse over you will get a tooltip explaining that it cannot find the file. At the bottom of the tooltip there is a button that opens a menu. The menu will have one item Add Custom Include Path . click on this At the bottom of this dialog there is a place to put custom include paths. You need to enter the location of your data folder from the root of the filesystem to data/ (in my case) /home/danni/projects/ai3d/UnigineSDK-binary-2012-02-26/ai3drealtime-4.3/data/ . Typically you can copy this path from the storage path entry at the top. if I haven't left anything out, you should be good to go 1 Link to comment
kadir.basol Posted March 6, 2012 Author Share Posted March 6, 2012 I think KDevelop is not cross platform really. Your Engine is really great and cross platform but i think your IDE also should be cross platform too... Please look at my suggestion here: https://developer.unigine.com/forum/topic/1213-auto-complete-with-eclipse-plugin/ Eclipse is Cross platform as your engine does. Link to comment
kadir.basol Posted March 6, 2012 Author Share Posted March 6, 2012 maybe netbeans also : http://netbeans.org/community/magazine/html/03/schliemann/ please read article... Link to comment
danni.coy Posted March 7, 2012 Share Posted March 7, 2012 I think KDevelop is not cross platform really. Your Engine is really great and cross platform but i think your IDE also should be cross platform too... Please look at my suggestion here: https://developer.un...eclipse-plugin/ Eclipse is Cross platform as your engine does. KDevelop is just happens to be what I use; I wrote the uniginescript.h file so I could have autocomplete in it. Andrzej asked me how to set up KDevelop hence the instructions. You can use just about any other IDE with a small amount of work which you would know if you read my earlier posts. I think that eclipse allows you to add files to a project without having to explicitly include them you might need to remove the #ifdef IN_IDE_PARSER and #endif lines This is only a hunch since I don't use eclipse myself. Link to comment
Recommended Posts