setasohjirosan
11-02-2008 17:48:01
When i try to run the demo i get this error
1>------ Build started: Project: Demo_oSceneLoader, Configuration: Release Win32 ------
1>Linking...
1>LINK : fatal error LNK1181: cannot open input file '..\obj\Release\OgreOSMScene.obj'
1>Build log was saved at "file://h:\ogre\ogreaddons\OgreNewt\demos\oSceneLoader_demo_dagon\obj\Release\BuildLog.htm"
1>Demo_oSceneLoader - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Ogre only lets you have one copy of a material script running at a time, and automaticly loads all material scripts in the dir's listed in your resource.cfg file.
Your error is because Ogre found duplicate materials. It's one of the few things that can be annoying but does force some disciplin and name your materials properly.
If your loading multiple scenes into your app it can be quite easy to get duplicate materials, especially if they are from your common repetoir.
By default ofusion saves all material scripts into a single file that bears the same name as your OSM.
If you have saved multiple scenes to the same dir, like different versions, each one will have its own material file, and duplicate materials if they contain the same media. Thats the easiest way to end up with dupes.
I often wish that Ogre would ignore dupes and just display the last one it loaded.
setasohjirosan
11-02-2008 18:54:12
thanks dude, you seem to know your stuff, I keep getting my app crashing and the it is pissing me off because i can't see any clear instructions on how to compile link and run the demo so that i can get a base to start from.
The demo gives me the above error, and my app just crashes with no error warning.
says loading "game_world.osm"
then crashes.. woot, i can't figure out what the problem is, can you PLEASE tell me how the resource.cfg file should be if there are any special commands or how code should look to load an osm scene. cus it's driving me nuts,
Lioric
11-02-2008 21:44:49
For the error posted above, you need to remove the .cpp file (referenced in the linker message) from your solution and then add it again from the correct folder where it is in your machine
This is because you are compiling the demo application using different paths than the default ogre sdk
setasohjirosan
12-02-2008 08:14:56
Thank you, you were right it has fixed all of my problems, both of you. Your help is very much appreciated

now i can get back to creating my game.
Thanks again