Intellisense not works

tomneo2000

19-09-2009 06:37:30

I know this question asked before but i still can't not find the correct answer.
I use BloodyMess 1.5.5 but i got the problem when i need Intellisense.

When i code this first "->" Intellisense is working well(Intellisense works fine for this line of code)
mCube = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Real3(0, 40, 0), "cube.1m.mesh");

After that, i do it again "->" Intellisense is not working anymore even close vs2005 or delete .ncb, also Intellisense not works after this code
mCubeTwo = mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Real3(20, 45, 0), "cube.1m.mesh");

Does anyone have the same problem and solved.
I have tried to use Git version but have same problem.
Anyone suggest me to use other version like bleeding?
Why Nxogre has less tutorial how do you guys know how to use it?

Buy the way when i am compiling NxOgre and OGRE3DRenderSystem i got error but someone say it doesn't matter

compiling NxOgre i got

1>系統找不到指定的路徑。(this is say System can't find specific path)
1>複製了 0 個檔案。(this is say copy 0 file)
1>Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."


compiling OGRE3DRenderSystem i got same error

1>系統找不到指定的路徑。
1>複製了 0 個檔案。
1>Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."

Vectrex

19-09-2009 07:18:36

eh, just buy Visual Assist. The built in VS intelli is pretty bad. VA's intelli is really good and has a manual reparse option if anything goes wrong.

tomneo2000

19-09-2009 08:09:43

When i use Visuall Assist X even worst

mWorld=NxOgre::World::createWorld();

NxOgre::SceneDescription sceneDesc;
sceneDesc.mGravity = NxOgre::Real3(0, -9.8f, 0);

sceneDesc.???????????(Intellisense not works)

I think it is because BloodyMess.
Ogre always work fine.

I also find out a problem, if i use namespace NxOgre, then replace "NxOgre::SceneDescription sceneDesc;" to "SceneDescription sceneDesc;". When i type this " sceneDesc."the "."(Intellisense) works fine.
If i don't use namespace NxOgre, in the first, i type this "NxOgre::SceneDescription sceneDesc;" and then " sceneDesc." the "."(Intellisense) not working.
Another situation is that not use namespace NxOgre and then replace NxOgre::SceneDescription sceneDesc; to "SceneDescription sceneDesc;", when i compile it, i got error say unidentifier.

Why?

tomneo2000

19-09-2009 11:34:04

Perhaps this might post before, ok i know there is a big problem with Intellisense using NxOgre so i search and asked for help but i found visual studios Intellisense is bad, so i use "Visual Assist X" instead of visual studio's Intellisense. Unfortunately, i still got the same problem and even worse. For example, i type "." and "->" member function list or members not jump out(What i am saying, you can see the picture below). It really happen to some people who use visual studio's Intellisense even people who use Visual Assist X (like me). Anyway, i solved problem by modify .H and .cpp files. Now i just tell you how i did. If you have problem as same as me, then you can do what i did.

Some time Intellisense just not working right?



PS:This might not be a best solution, but this is working for me. So far, i got no problem:

First, few conditions i have to say:
1. You have already install Visual Assist X.
2. You have SDK of BloodyMess. (NxOgre
)

Sorry about my poor English.

Now, fellow step:

Before you start, please look the tutorial about how to compile and setup NxOgre(BloodyMess) for your project
http://www.ogre3d.org/wiki/index.php/BloodyMess_Tutorial_1

1. Go to directory has BloodyMess which you downloaded and unzip to, then go to build/source/

2. If you are now in that directory, you will see a lot of header and cpp files. Ok now select those header and cpp files have Nx begin(What i mean is selecting header and cpp files have name Nx in the begin for example, NxOgre.h NxOgreActor.cpp see it is begin with Nx)

3. Open those file with visual studio, then click Edit->Find and Replace->Quick Replace, in pop window at "Find what" punch in NxOgre_Namespace and in "Replace with" punch in NxOgre. Finally at "Look in" select "All open documents". Press "Replace All" button.

4. Ok now go to directory build/msvc/ and open your version solution like me i use vs2005 i have to open NxOgre.VC8.sln

5. Compile NxOgre and OGRE3DRenderSystem(for Directx user) GLUTRenderSystem(for OpenGL user). In sdk folder you will see header, lib and dll files.

6. Now in your project you have to set your project include to sdk folder lib.

7. you should no problem when you punch in "." ,"->" and "::" with Visual Assist X

If you still have problem or don't know please download the BloodyMess i have done and you just need to compile(what i mean is after you download and unzip go to step 4 and fellow)

download link is herehttp://www.badongo.com/file/17290509

If i am wrong please correct me or better way to do please tell me and share

betajaen

19-09-2009 12:21:37

___TOPIC MERGED___

Why have you spend three topics on this "problem"?

Yes, I am aware that sometimes Intellisense goes a little funny. But the solution is to press Ctrl+Space or (Ctrl+J) to re-pop up the window, otherwise delete the ncb file of your project again.

I've also made some changes to the Git repo to remove some of the templates, and replace the NxOgre_Namespace with NxOgre. However since all of these problems are from legal C++, there was no reason to change them.

tomneo2000

19-09-2009 13:01:04

___TOPIC MERGED___

Why have you spend three topics on this "problem"?

Yes, I am aware that sometimes Intellisense goes a little funny. But the solution is to press Ctrl+Space or (Ctrl+J) to re-pop up the window, otherwise delete the ncb file of your project again.

I've also made some changes to the Git repo to remove some of the templates, and replace the NxOgre_Namespace with NxOgre. However since all of these problems are from legal C++, there was no reason to change them.




Sorry, about last post i thought it is new topic not in this topic so please delete it.

spacegaier

19-09-2009 13:13:31

If this is really stopping you, you could try it the VisualStudio 2010 Beta. On the main Ogre forum there was a thread (in fact several) discussing the VS Intellisense and it was said why this feature sometimes has problem to run properly. The new VS (2010) is however said to solve this problem.

You could also try to add the paths to the NxOgre source to the Vc++ directories in VS.

betajaen

19-09-2009 13:17:14

I should point out.

I'm probably uses NxOgre the most, and I don't get intellisense problems with it in VS2008. It does go a little flakey if I'm working with templates or macros, but is all the case with most code, and if you think NxOgre is "bad", then you should try boost. I'm lucky to get the boost namespace appearing, rather than the actual classes.

spacegaier

19-09-2009 13:20:35

Can only second betajaen. NxOgre + Intellisense work like a charm on my machine too (VisualStudio 2008 Professional).

tomneo2000

19-09-2009 17:56:56

Wow i only can say you guys are lucky but not for me. I think Nxogre is really good to use and thats why i keep asking and researching.
I cant use vs 2008 or higher version because my friend use vs2005 and we are trying to make RTS game so if one of us use different version then everything might mess up you know visual studio is so restricted.

thank for help me but i found a way to use NxOgre Visual Assist X and modify NxOge's .H and .cpp files so far working well.

spacegaier

19-09-2009 18:20:25

Why doesn't your friend upgrade then as well? Also I don't really see that much problems using different versions, especially if you are using some kind subversion, that will keep your code synchronised (can recommend AnkhSVN = free VisualStudio SVN plugin).

thank for help me but i found a way to use NxOgre Visual Assist X and modify NxOge's .H and .cpp files so far working well.
What about letting us know how you made it work, so that others can try it too if needed?

tomneo2000

19-09-2009 19:21:04


What about letting us know how you made it work, so that others can try it too if needed?


I already post it .

betajaen

19-09-2009 20:03:04


What about letting us know how you made it work, so that others can try it too if needed?


i already post it see back few reply the topic is See this if you have problem with IntelliSense with NxOgre
the one post with picture


You've posted it twice, and twice I've deleted your post. Keep your intellisense problems in here only, otherwise your going to confuse the newbies who will later find this thread in a search.