Logo Platform
logo amplifiers simplified

[KI]Cannot load mod

Reply
Copied to clipboard!
2 years ago
Aug 2, 2022, 4:26:20 AM

When I load my mod, the game crashed. The diagnosis is attached.

How can I fix this?


Updated 2 years ago.
0Send private message
2 years ago
Aug 2, 2022, 9:02:36 AM

Hi, thank you for your report.


We are sorry that you are experiencing a crash, we are aware of the issue. 


As workaround you can manually delete the mods that you have installed. The default locations are:

 - C:\Users\YOURUSERNAME\Documents\Humankind\mod.io\cache\mods

 - C:\Users\YOURUSERNAME \Documents\Humankind\Community


Thanks again and sorry for the incovenience.

Updated 2 years ago.
0Send private message
2 years ago
Aug 2, 2022, 9:32:04 AM
Cimiur wrote:

Hi, thank you for your report.


We are sorry that you are experiencing a crash, we are aware of the issue. 


As workaround you can manually delete the mods that you have installed. The default locations are:

 - C:\Users\YOURUSERNAME\Documents\Humankind\mod.io\cache\mods

 - C:\Users\YOURUSERNAME \Documents\Humankind\Community


Thanks again and sorry for the incovenience.

I made my own mod, and I want to test it

0Send private message
2 years ago
Aug 2, 2022, 9:57:55 AM

I see. We used to have an issue with mods when launching the game.


Is your mod available on mod.io? can you tell me which one it is so we can try to investigate further?


Could you also provide us the diagnostics file and the player logs, please?


Thanks again!

Updated 2 years ago.
0Send private message
2 years ago
Aug 2, 2022, 7:26:10 PM

I am not wangxs, but here is a mod which does a same category error, only the parameter flags differ. File 1 includes the mod for loading ingame and the diagnostics. All other files also have the unityexport package.

File 1: Error_Effectmapper.zip

Screenshots:


Yes the pathing and validation does not make sense (i can just use the normal descriptor and not the synergy), I deliberately made it like this to showcase the issue.


The issue is, the game tries to make the default effectmapper for the path and effect. But it fails. The error tells missing key localizations for the different parameter flags, which do not help and is likely wrong. In this case the error description should 1) tell you the problematic descriptor and 2) the correct error. If you add the effectmapper and use legal parameter flags or use a custom effect text the error goes away and the mod loads


File 2: Bug Effectmapper_Resolve.zip


In addition, if any bug happens which causes the game to crash or unload the mod, the game will also add the very first SynergyDefinition of the game according to structure hierarchy (in this case Swahili_Emblematic; File 3)

If you actually remove the descriptor from the definition of swahili, the game will complain about the next SynergyDefinition (in that case Swahili_Harbour; File 4)). This entry around the Swahili is somehow totally misplaced since there is no change to it and the game should not have an issue with it to begin with since it complains the descriptors is found already in another synergy. You can do this again and again (the removal of the descriptor from the synergydefinition) and the next definition as error will show up.


File 3: Swahili_Move 1.zip

File 4: Swahili_Move 2.zip


My guess, there is somewhere a null reference where it should not be (would have been checked before) and it is caused because some index value unintentionally shifted maybe?


Suggested Improvements: 

1) if a descriptors makes an error, it should be named. same with other elements like definitions, descriptormappers, etc.

2) if you use illegal parameter flags in DescriptorMapper, which are not there it tells you which flags are illegal, but not the descriptor or the mapper name where this is used (makes finding it maybe difficult).

Updated 2 years ago.
0Send private message
2 years ago
Aug 3, 2022, 2:36:00 AM
shakee wrote:

I am not wangxs, but here is a mod which does a same category error, only the parameter flags differ. File 1 includes the mod for loading ingame and the diagnostics. All other files also have the unityexport package.

File 1: Error_Effectmapper.zip

Screenshots:


Yes the pathing and validation does not make sense (i can just use the normal descriptor and not the synergy), I deliberately made it like this to showcase the issue.


The issue is, the game tries to make the default effectmapper for the path and effect. But it fails. The error tells missing key localizations for the different parameter flags, which do not help and is likely wrong. In this case the error description should 1) tell you the problematic descriptor and 2) the correct error. If you add the effectmapper and use legal parameter flags or use a custom effect text the error goes away and the mod loads


File 2: Bug Effectmapper_Resolve.zip


In addition, if any bug happens which causes the game to crash or unload the mod, the game will also add the very first SynergyDefinition of the game according to structure hierarchy (in this case Swahili_Emblematic; File 3)

If you actually remove the descriptor from the definition of swahili, the game will complain about the next SynergyDefinition (in that case Swahili_Harbour; File 4)). This entry around the Swahili is somehow totally misplaced since there is no change to it and the game should not have an issue with it to begin with since it complains the descriptors is found already in another synergy. You can do this again and again (the removal of the descriptor from the synergydefinition) and the next definition as error will show up.


File 3: Swahili_Move 1.zip

File 4: Swahili_Move 2.zip


My guess, there is somewhere a null reference where it should not be (would have been checked before) and it is caused because some index value unintentionally shifted maybe?


Suggested Improvements: 

1) if a descriptors makes an error, it should be named. same with other elements like definitions, descriptormappers, etc.

2) if you use illegal parameter flags in DescriptorMapper, which are not there it tells you which flags are illegal, but not the descriptor or the mapper name where this is used (makes finding it maybe difficult).

Many thanks to shakee boss!

I've checked each Descriptor last night and finally found the reason.

The new Ethiopians' LT has a DescriptorMapper and I did not notice this.

Now the bug has been fixed!

0Send private message
?

Click here to login

Reply
Comment