Jump to content

Recommended Posts

There is a strange shadow cast from a cap I added in, i'm pretty sure it's my config.cpp. It only seems to be present when there is only one character in the editor. It also throws various errors like the one below but with different endings after the '.'.

Here are some screenshots: https://imgur.com/a/S3yC7UB

Here is the section within config.cpp:

	class Headgear_Base_F;
	class Headgear_H_Cap;
	class SAR_Cap: Headgear_H_Cap
    {
		author = "baconbore";
        displayName = "Custom Cap";
        picture = "";
        model = "\A3\Characters_F\Common\capb";
        hiddenSelections[] = {"camo"};
        hiddenSelectionsTextures[] = {"\MyAddon\Data\cap_SAR.paa"};
        hiddenSelectionsMaterials[] = {"\A3\Characters_F\Common\data\capb.rvmat"};
        class ItemInfo: HeadgearItem
        {
            mass = 4;
            allowedSlots[] = {901,605};
            uniformModel = "\A3\Characters_F\Common\capb";
            modelSides[] = {3,1};
            hiddenSelections[] = {"camo"};
            armor = "0";
        };
    };
	

Any replies are appreciated.

Cheers

Share this post


Link to post
Share on other sites

The shadow is not your config. Its the model.

Your shadow lod needs to be triangulated (CTRL+A to select all, then press '/') AND fully closed (Structure > Topology > Find Non Closed) then close the holes....

Also, sharpen all the faces in the shadow LOD.

 

The config error is a new one on me...

Share this post


Link to post
Share on other sites

Thanks for your reply,

I have not touched the model... I used the default bohemia cap "\A3\Characters_F\Common\capb", so shouldn't it keep all the default settings other than the ones I have changed in the config?

I also ommited this:

    class Headgear_Base_F: ItemCore 
    { 
        class ItemInfo; 
    }; 

and replaced it with:

class HeadgearItem;

at the start of the helmet config as I could not get multiple classes of helmet to work with the code above. Is this an issue?

 

Thanks 🙂

Share this post


Link to post
Share on other sites
44 minutes ago, felipechapmanfromm said:

...I used the default bohemia cap "\A3\Characters_F\Common\capb"...

Yeah, I only just noticed that. Its weird because that shadow streaking is usually caused by the problem I outlined in my previous reply, and with it being an official model with a new skin I'm at a loss as to the cause :shrug:

Share this post


Link to post
Share on other sites

Seems like I have fixed the shadow issue. I just removed this line:

hiddenSelectionsMaterials[] = {"\A3\Characters_F\Common\data\capb.rvmat"};

I get this error when I add the cap in the editor, any insight into this?

 

Cheers

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×