Error: Cannot Open Character Object File
-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Error: Cannot Open Character Object File
I'm in the final stages of importing a character mod into overgrowth. Everything from texturing, rigging, and scripting has been completed, but I get an error when I try testing my character in overgrowth.
The model comes from the GTA San Andreas engine (DFF and TXD files), but I converted and exported it as an .OBJ file (this was the first step I took before anything else.) With all of the files compiled correctly into it's folders, I tried testing the mod in the engine, however this happened:
Could it be the settings I assigned to the model in blender that causes this error? I really want to finish this project. Any help is appreciated.
The model comes from the GTA San Andreas engine (DFF and TXD files), but I converted and exported it as an .OBJ file (this was the first step I took before anything else.) With all of the files compiled correctly into it's folders, I tried testing the mod in the engine, however this happened:
Could it be the settings I assigned to the model in blender that causes this error? I really want to finish this project. Any help is appreciated.
-
- Posts: 1451
- Joined: Sun Oct 26, 2008 8:24 pm
- Location: Sweden
- Contact:
Re: Error: Cannot Open Character Object File
Are you having issues with an actual "mod" where you place all the files in a folder under ../Overgrowth/Data/Mods/ with a mod.xml file and so on? If so, it looks like you forgot to activate the mod in the game before loading the object.
If not, there could be some issue with the model itself, for instance I think free floating vertices causes this error, and only triangles are allowed in the models or you'll get an error like this too I believe.
Does any of this help?
If not, there could be some issue with the model itself, for instance I think free floating vertices causes this error, and only triangles are allowed in the models or you'll get an error like this too I believe.
Does any of this help?
-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
I put the mod in Data/Custom. The model is made up only of triangles. I haven't noticed any loose vertices. Would you mind looking at the file, and if you can't, is there someone else I can contact who will?
-
- Posts: 66
- Joined: Wed Jan 08, 2014 8:09 pm
Re: Error: Cannot Open Character Object File
Is the .obj a single file? if they are many files it wont work, but its easy to make all of them a single file on blender
-
- Posts: 1451
- Joined: Sun Oct 26, 2008 8:24 pm
- Location: Sweden
- Contact:
Re: Error: Cannot Open Character Object File
Yeah send me the obj in a PM (you might have to zip it before sending it) and I'll see if there's something wrong with the mesh.
-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
Here's the zip:
It's one mesh.-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
Sorry, don't know how to send through DM
-
- Posts: 1451
- Joined: Sun Oct 26, 2008 8:24 pm
- Location: Sweden
- Contact:
Re: Error: Cannot Open Character Object File
The model works for me. Here are the contents of the object.xml file I used:
Code: Select all
<?xml version="1.0" ?>
<Object>
<Model>Data/Models/leo.obj</Model>
<ColorMap>Data/Textures/basic_blue_white_c.tga</ColorMap>
<NormalMap>Data/Textures/blank_TS_white_n.tga</NormalMap>
<ShaderName>envobject #TANGENT #BASE_TANGENT #KEEP_SPEC</ShaderName>
</Object>
-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
Ohhh I forgot to set the correct path for the model in the rig.xml file.
-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
I finally imported the mod into the engine. Everything works, even the custom voice. I will take the time to go beyond the automatic weights in blender. Just one problem:
It didn't look this shiny before. I don't know remember what I changed.-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
Thanks for the help by the way. It sent me in the right direction.
Re: Error: Cannot Open Character Object File
Make sure you're using an object-space normal map, not tangent space. Also make sure the colors map to the correct axes. If the color channels are mapped the wrong axes, then it will look bright in areas that are supposed to be dark, or will act like the reflected sunlight is coming from the wrong direction, etc.
Also you might need to set the color (and maybe normal map) texture's alpha channel to be black, or black/white is mapped well to match the character's UVs, otherwise the whole character might light up as if it has partial opacity on the edges, or might look shiny: https://wiki.wolfire.com/index.php/3D_Objects
Also you might need to set the color (and maybe normal map) texture's alpha channel to be black, or black/white is mapped well to match the character's UVs, otherwise the whole character might light up as if it has partial opacity on the edges, or might look shiny: https://wiki.wolfire.com/index.php/3D_Objects
-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
Merlyn I swapped the colors in the normal map, but when I forgot to put the new normal and color map into the texture folder for the mod and started up the game, the textures somehow still appear. I guess it's not the textures at fault. Confused.
-
- Posts: 9
- Joined: Sat Mar 05, 2016 12:13 am
Re: Error: Cannot Open Character Object File
anyway, here's the color texture I was trying to use:
Re: Error: Cannot Open Character Object File
The textures might still be in the game's temp files. The game converts textures to a more efficient format before using them, and puts them in that cache. The files are located under the folder described here: http://wiki.wolfire.com/index.php/How_t ... me's_cacheHybridMoment138 wrote: ↑Thu Mar 29, 2018 6:00 pmMerlyn I swapped the colors in the normal map, but when I forgot to put the new normal and color map into the texture folder for the mod and started up the game, the textures somehow still appear. I guess it's not the textures at fault. Confused.
It is possible that changes made to the base texture might not properly invalidate the cache, so you might need to wipe the temp file version out if you want to see your changes.