Help for a mod that enables resources to change beakers, gold etc with buildings

SaibotLieh, I want to do exactly the same as you. Luckily I found this thread (someone on main board pointed me here) before I got too far in. It is not easy to read the code just like that without knowing the structure or having any documentation.

Can you post another .zip with your final solution?
 
Somehow it seems that my debug.dll was flawed, I just couldn't get the debug modus to work in the described way. Good news is that I found the bug and it had nothing to do with the BonusCommerceModifier code. I had inplented the code into a mod of which I though that it was running okay. The mod gives the possibility to add resources to civics. This is an old modification from TheLopez http://forums.civfanatics.com/showthread.php?t=172405&highlight=Civics+Resources . Shortly before implenting the BonusCommerceModifier I had added 3 "slaves" resources to slavery, but didn't gave that resource any function. Looks like the AI can't handle such resources well. After removing these resources everything runs with no problems again, but I still have to finish one game to be sure.
I have attached the current version of the BonusCommerceModifier, all changes in the code are marked with "BCM". I have changed the market, grocer and bank to have their gold output increase modified by some resources.
 

Attachments

  • BonusCommerceModifier.zip
    1.9 MB · Views: 54
Somehow it seems that my debug.dll was flawed, I just couldn't get the debug modus to work in the described way. Good news is that I found the bug and it had nothing to do with the BonusCommerceModifier code. I had inplented the code into a mod of which I though that it was running okay. The mod gives the possibility to add resources to civics. This is an old modification from TheLopez http://forums.civfanatics.com/showthread.php?t=172405&highlight=Civics+Resources . Shortly before implenting the BonusCommerceModifier I had added 3 "slaves" resources to slavery, but didn't gave that resource any function. Looks like the AI can't handle such resources well. After removing these resources everything runs with no problems again, but I still have to finish one game to be sure.
I have attached the current version of the BonusCommerceModifier, all changes in the code are marked with "BCM". I have changed the market, grocer and bank to have their gold output increase modified by some resources.

Perfect! You have saved me so much time and effort!
Btw, this was my original thread from general board (Im new here, so picked the wrong board): http://forums.civfanatics.com/showthread.php?t=337375

This modification is so fundamental and important that it should have been in the official BtS mod - IMO.
 
Top Bottom