Error: Cannot Open Character Object File

Post Reply
HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Error: Cannot Open Character Object File

Post by HybridMoment138 » Sun Mar 25, 2018 3:22 pm

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:
Capture.JPG
Capture.JPG (29.83 KiB) Viewed 4379 times
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.

User avatar
Silverfish
Posts: 1451
Joined: Sun Oct 26, 2008 8:24 pm
Location: Sweden
Contact:

Re: Error: Cannot Open Character Object File

Post by Silverfish » Mon Mar 26, 2018 3:46 am

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?

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Mon Mar 26, 2018 6:58 pm

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?

User avatar
edoantonioco
Posts: 66
Joined: Wed Jan 08, 2014 8:09 pm

Re: Error: Cannot Open Character Object File

Post by edoantonioco » Mon Mar 26, 2018 9:52 pm

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

User avatar
Silverfish
Posts: 1451
Joined: Sun Oct 26, 2008 8:24 pm
Location: Sweden
Contact:

Re: Error: Cannot Open Character Object File

Post by Silverfish » Tue Mar 27, 2018 1:42 am

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.

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Tue Mar 27, 2018 6:07 am

Here's the zip:
leo.zip
(57.5 KiB) Downloaded 66 times
It's one mesh.

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Tue Mar 27, 2018 6:13 am

Sorry, don't know how to send through DM

User avatar
Silverfish
Posts: 1451
Joined: Sun Oct 26, 2008 8:24 pm
Location: Sweden
Contact:

Re: Error: Cannot Open Character Object File

Post by Silverfish » Wed Mar 28, 2018 2:10 am

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>
Attachments
Overgrowth_2018-03-28_09-08-09.png

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Wed Mar 28, 2018 9:25 am

Ohhh I forgot to set the correct path for the model in the rig.xml file. :D

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Wed Mar 28, 2018 3:48 pm

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:
20180328164442_1.jpg
It didn't look this shiny before. I don't know remember what I changed.

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Wed Mar 28, 2018 3:49 pm

Thanks for the help by the way. It sent me in the right direction.

merlyn
Posts: 373
Joined: Fri Aug 26, 2016 2:41 pm
Contact:

Re: Error: Cannot Open Character Object File

Post by merlyn » Wed Mar 28, 2018 5:37 pm

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

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Thu Mar 29, 2018 6:00 pm

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.

HybridMoment138
Posts: 9
Joined: Sat Mar 05, 2016 12:13 am

Re: Error: Cannot Open Character Object File

Post by HybridMoment138 » Thu Mar 29, 2018 8:49 pm

anyway, here's the color texture I was trying to use:
leo.png
leo.png (121.73 KiB) Viewed 4318 times

merlyn
Posts: 373
Joined: Fri Aug 26, 2016 2:41 pm
Contact:

Re: Error: Cannot Open Character Object File

Post by merlyn » Fri Mar 30, 2018 4:19 pm

HybridMoment138 wrote:
Thu Mar 29, 2018 6:00 pm
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.
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_cache

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.

Post Reply