New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ror ignore terrains with PSSM shadow support #435

Closed
Speciesx opened this Issue Sep 6, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@Speciesx
Contributor

Speciesx commented Sep 6, 2015

STR:

  • Add terrains with PSSM shadow support
  • Clear cache
  • Start ror

Terrains with PSSM shadow support will not listed in terrain loader.

18:14:46: Adding archive c:\users\xxxx\docume1\rigs of rods 0.4\terrains\d3_dega1.zip (hash: 7A77B0C5E12FC937694B9ECF178AB64FD69EEB46) (No Compression)
18:14:46: Loading c:\users\xxxx\docume
1\rigs of rods 0.4\terrains\d3_dega1.zip
18:14:46: Creating resource group General-102
18:14:46: Added resource location 'c:\users\xxxx\docume1\rigs of rods 0.4\terrains\d3_dega1.zip' of type 'Zip' to resource group 'General-102'
18:14:46: Initialising resource group General-102
18:14:46: Parsing scripts for resource group General-102
18:14:46: Parsing script snow-alpha.program
18:14:46: Parsing script baja_gate1.material
18:14:46: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource managed_mats.material in resource group General-102 or any other group. in ResourceGroupManager::openResource at C:\data\codehg\dependencies\src\Ogre\ogre_src_v1-8-1\OgreMain\src\OgreResourceGroupManager.cpp (line 756)
18:14:46: error while loading single Zip: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource managed_mats.material in resource group General-102 or any other group. in ResourceGroupManager::openResource at C:\data\codehg\dependencies\src\Ogre\ogre_src_v1-8-1\OgreMain\src\OgreResourceGroupManager.cpp (line 756)
18:14:46: error opening archive 'c:\users\xxxx\docume
1\rigs of rods 0.4\terrains\d3_dega1.zip'. Is it corrupt? Ignoring that archive ...
18:14:46: trying to continue ...

@Hiradur Hiradur added the bug label Oct 18, 2015

@Hiradur

This comment has been minimized.

Show comment
Hide comment
@Hiradur

Hiradur Oct 24, 2015

Contributor

can you link an example terrain?

Contributor

Hiradur commented Oct 24, 2015

can you link an example terrain?

@Speciesx

This comment has been minimized.

Show comment
Hide comment
@only-a-ptr

This comment has been minimized.

Show comment
Hide comment
@only-a-ptr

only-a-ptr Oct 30, 2015

Member

@Speciesx Check that your RoR/resources/managed_materials directory contains managed_mats.material.

It does exist in upstream: https://github.com/RigsOfRods/rigs-of-rods/tree/master/bin/resources/managed_materials

Also, the upstream code does load it: https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/main_sim/MainThread.cpp#L1509

Additionally, post whole RoR.log please, there's a part which lists all resource groups - I want to see if ManagedMats is in there.

Member

only-a-ptr commented Oct 30, 2015

@Speciesx Check that your RoR/resources/managed_materials directory contains managed_mats.material.

It does exist in upstream: https://github.com/RigsOfRods/rigs-of-rods/tree/master/bin/resources/managed_materials

Also, the upstream code does load it: https://github.com/RigsOfRods/rigs-of-rods/blob/master/source/main/main_sim/MainThread.cpp#L1509

Additionally, post whole RoR.log please, there's a part which lists all resource groups - I want to see if ManagedMats is in there.

@only-a-ptr only-a-ptr self-assigned this Oct 30, 2015

@only-a-ptr

This comment has been minimized.

Show comment
Hide comment
@only-a-ptr

only-a-ptr Oct 30, 2015

Member

Umm... I think I know where's the problem ... the cache gets refreshed before resources/managed_materials is loaded. Upon cache refresh, the map is added to OGRE resource system -> materials are parsed, dependency on managed_mats.material is unresolved -> RoR thinks that the missing material is a map author's mistake -> BOOM.

Member

only-a-ptr commented Oct 30, 2015

Umm... I think I know where's the problem ... the cache gets refreshed before resources/managed_materials is loaded. Upon cache refresh, the map is added to OGRE resource system -> materials are parsed, dependency on managed_mats.material is unresolved -> RoR thinks that the missing material is a map author's mistake -> BOOM.

only-a-ptr added a commit to only-a-ptr/rigs-of-rods that referenced this issue Nov 19, 2015

[fix RigsOfRods#435] Terrains using managed_mats.material work again.
The problem was cache regen: ManagedMaterial resources were not loaded during cache regen and OGRE resource system threw Exceptions due to unresolved material links.
Quick solution: Init ManagedMaterials before regening cache!
@only-a-ptr

This comment has been minimized.

Show comment
Hide comment
@only-a-ptr

only-a-ptr Nov 19, 2015

Member

Fixed.

Member

only-a-ptr commented Nov 19, 2015

Fixed.

@only-a-ptr only-a-ptr closed this Nov 19, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment