Jump to content


Photo

'Create a Hero' crash upon adding upgrades

cah create a hero upgrade rotwk

  • Please log in to reply
1 reply to this topic

#1 The Rational Stoic

The Rational Stoic
  • Members
  • 6 posts

Posted 14 June 2020 - 06:17 PM

Hello,

 

I have a problem with adding an upgrade for a new faction for Rise of the Witch King. I have added new factions already, also with their own faction upgrades. When I try to add another upgrade now however, the game crashes when I want to open the create a hero from the main menu. The upgrade is:

 

"

Upgrade Upgrade_IronHillsFaction
 DisplayName = UPGRADE:IronHillsFaction
 Type  = PLAYER
End

"

 

In short:

- I have added upgrades in the upgrade.ini file already for other factions.

- When I try to add any new upgrade, the game crashes upon opening the create a hero from main menu

 

When I remove this upgrade, the game works fine. When I add this upgrade to the upgrade.ini, the game crashes. I have checked, this upgrade doesn't exist or isn't used anywhere else in my code or in the code of the game itself.

Does anyone have any ideas on how to solve this issue? Any help at all is welcome.

 

Kind regards

 

 



#2 The Rational Stoic

The Rational Stoic
  • Members
  • 6 posts

Posted 08 February 2021 - 03:59 PM

Update:

 

I have found that there is still some mystery in the upgrade.ini file for me. I have also found that this upgrade.ini file is the source of many crashes in my different attempts at making a mod.

Apparently, when I add upgrades after the "CreateAHeroUpgrades.inc" line in the code, I can only add so many upgrades. When I add more, the game crashes for not recognising the upgrades at the bottom of my upgrade.ini file.

Also, when I add upgrades in front of the line "CreateAHeroUpgrades.inc" in the upgrade.ini file, the game crashes in the Create A Hero menu. Possibly because the game no longer recognises the CreateAHeroUpgrades.inc upgrades. 

 

My question then becomes: does RotWK only allow for a certain number of upgrades in the upgrade.ini file? And if so, how can I work around this issue and still add more upgrades?

I see in other mods that they have achieved to add more upgrades, so I should be able to do so too...

 

The issue seems to be related to the problem described in this article: Optimizing Upgrade.ini to avoid crahes\bugs - The 3rd Age - BFME Multiplayer, Modding and Mapping

I however am sure that I will need to cross the limit, since upgrades that I add sometimes have strange build times or build costs. 

 

Does anyone know if this limit of upgrades can be increased? If so, how?


Edited by The Rational Stoic, 08 February 2021 - 04:13 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users