-
So as I aid I am trying to create my animations.I redid the animations of the regular ones.
I then added the "CurlTransit,CurlIdle"
Right at the end of the "Fall" animations it just says "Error:Check Python console" or something like that.
I check to see if I had spelled the animations wrong.Nothing,Redid it again.Same error.
I did this like 5 times and it still says this stupid error.I think I may have to reinstall freking python .__.
-
Is this error occuring inside Blender or some other 3D program?
-
It's known to be in Blender 2.49
-
Does this happen when you are posing the bones? When you add, remove, or overwrite keyframes? When you play the animation?
Does Blender crash after you get the error?
-
It happens right when it exports the skeleton
It doesn't crash when it happens
-
You are using the Ogre exporter plugin when exporting, correct? I don't use the old version of Blender for my meshes, but is there a python script that you are required to put into Blender's python files? If there is, I would double check to make sure you put the script in the right place.
That's all I can think of right now. I don't have access to my computer at the moment to help you out better.
-
Yes I do have Ogre Exporter
I also do have the Python script too in order for the exporter to work correctly
And I am not sure If I am suppose to do that
-
Here's some instructions I found on the Ogre website for installing the exporter.
Copy ogremeshesexporter.py and subfolders to the path ...\blender\.blender\scripts.
Note: .blender for Blender 2.49b (latest stable) on Windows 7 is located in C:\Users\<name>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts
Install Python. This is not needed for Blender itself, but for the exporter script. Choose the same Python version that is used as Base for your Blender version (you'll see it when you start Blender).
If you haven't placed the python script (ogremeshesexporter.py) into the specified location, then I would do that. It's not python itself, just the script for the Ogre exporter.
If you have, then your other problem might be the version of python that you installed. I believe the version of python you need for Blender 2.49 will be specified in the black box that pops up before Blender starts. If you need to, take a screenshot of the black box if it disappears (again, I don't use version 2.49 so I don't know everything about it).
EDIT: Nevermind about finding it. I just looked it up. The version of python that Blender 2.49b uses is 2.6.2.
If you don't have that version, you can download it here: http://www.python.org/download/releases/2.6.2/ (http://www.python.org/download/releases/2.6.2/)
If you do have that version... Did you change the install location when installing python or blender instead of using the default locations?
-
I do have the correct python for the animation.
When I installed it all I did was put in "C:"for both Python and Blender.I made separate folders for python and blender.
-
Hm... I'm not entirely sure then... The error doesn't say anything else? I think when it says check python console, it might have more information on what's going on.
If I had my computer I would be able to help you further. >< I'll at least have access to my computer again in 4 hours or so. And I'm going to lose internet access in a little bit so I wont be able to help you until then...
-
Sorry for the double post.
Well, I have my computer now. I can't seem to find any information on how to fix this. If reinstalling python didn't help at all and you haven't solved your problem yet, would you be willing to pm me a download of your .blend file with your animations? I want to see if I can export it using the same versions as you without any errors. Maybe then I can figure out what is going on.
-
Sorry for the late post!
I can PM you my animations.Plz note they are kinda crappy but tried mah best xD
-
I know I pm'ed this to you already, but I thought I would leave it here for anyone else who comes across this issue.
The error that shows up in the Python Console is "ValueError: matrix does not have an inverse." I was not able to find any solution to fix this error (and I also couldn't find anything wrong with the .blend file itself that would cause this error). The only solution that is given on other forums is to simply update Blender. So... Allow me to help you guys get it set up.
Programs And Tools You'll Need
Blender
The latest version of Blender (http://www.blender.org/download/)
Blender2Ogre
blender2ogre-0.6.0.zip (https://code.google.com/p/blender2ogre/downloads/detail?name=blender2ogre-0.6.0.zip&can=2&q=)
OgreXmlConverter
OgreCommandLineTools for Windows (http://sourceforge.net/projects/ogre/files/ogre-tools/1.7.2/OgreCommandLineTools_1.7.2.zip/download)
OgreCommandLineTools for Mac (http://sourceforge.net/project/downloading.php?groupname=ogre&filename=OgreEihortToolsOSX_1.4.0.zip&use_mirror=switch)
Getting Everything Set Up
Unfortunately, I have never used a Mac, and therefore I will not be able to help any Mac users get everything installed with proper instructions. Please try your best to translate my instructions for Windows users into the equivalent for your Mac.
Go ahead and install the latest version of Blender to your computer if you don't already have it.
Next, go to where you downloaded blender2ogre and OgreCommandLineTools. Simply double click on the blender2ogre-0.6.0 folder to open it. Inside there is a file called "io_export_oreDotScene.py." Copy the file and open up a new explorer window to find Blender. Blender's default install location should be in "C:/Program Files." Go into the following folders and paste it inside the addons folder: "Blender Foundation > Blender > 2.76 > scripts > addons"
Go back to the folder where you downloaded everything and right click on OgreCommandLineTools_1.7.2, then select "Extract All..." A new window should pop up asking you where to extract the files. Extract the files in your "C:/Program Files" folder where Blender was installed. If you installed Blender in a different folder, then extract it in that same folder where you put Blender. Before you extract it, make sure the destination says "C:\Program Files\OgreCommandLineTools_1.7.2" If it does not say the last part after Program Files, then go ahead and type it in. This will create a new folder to put everything you're extracting into.
Now that all of the programs and files you've downloaded are in the right place, go ahead and open up Blender. Before you do anything, go to: "File > User Preferences" (or press ctrl+alt+u). A new window pop up, and at the very top of this window, go to the "Addons" tab. Then click on the top left underneath all of the tabs, type "ogre" into the search bar. There should be one addon listed on the right called "Import-Export: OGRE Exporter (.scene, .mesh, .skeleton) and RealXTend (.txml)." Click on the little box on the far right of the addon. This will check the box and turn the addon text from gray to black. This means that the addon has been enabled. Next, go to the bottom right of the window and press the "Save User Settings" button. If you forget to press this button, you will have to re-enable this addon every single time you close and re-open Blender.
Putting Your New Animations Into The Game
Go to "File > Export > Ogre3D" inside of Blender to export your modified skeleton. The ogre export settings are on the right under "Export Ogre." If you can't see it, scroll down a bit in that right panel. Check or uncheck whatever you need. Just make sure that you have "Export Meshes" and "Armature Animation" checked. You may or may not get a bunch of different mesh and skeleton files, but don't worry. The only file you need is fbody.skeleton.xml or cbody.skeleton.xml (whichever model you're editing) and you can delete the rest (not your .blend files though). Next, open the folder to OgreCommandLineTools and drag your file on top of OgreXMLConverter. You should get a new file called fbody.skeleton or cbody.skeleton. Make sure to backup the original .skeleton files by copying them and pasting them into whatever folder you want (especially one you will remember) anywhere on your computer. Then, just take your exported .skeleton file, copy/paste or drag it into the models folder, and replace the original file with your new file.
And you're done. Your new animations should be in the game.
Note: The Action Editor panel is now called Dope Sheet, and you need to have Action Editor selected in the other menu on the Dope Sheet panel bar.