• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

GetHelpTextForBuilding - compatibility problem

DonQuiche

Emperor
Joined
May 23, 2011
Messages
1,122
Hello Thalassicus! Long time no see...

Recently, in mod Unofficial patch 2.5 GK (v1), and file 2_ModTools_Trunk\AutoTips\InfoToolTipInclude.lua, you replaced the GetHelpTextForBuilding function with a home-brewed one.

The problem is that your new function takes different inputs than the standard ones. As a result, any mod relying on GetHelpTextForBuilding (such as IGE) will fail.

Couldn't you instead rename your custom function with a custom name and reintroduce the original function (or turn it into a wrapper around your new function, doesn't matter as long as it returns a suitable help text)?

I could just have copied/pasted the standard function to IGE to circumvent the problem but in my humble opinion it would just be better if your mod was keeping things as compatible as possible, hence why I choose to first discuss the problem with you.
 
Good to see you again! :goodjob:

Thanks for bringing this up. My mistake! You're absolutely right, and your solution will work. I did something similar for other functions in the file. I'll get an immediate hotfix out by the end of the day.
 
Thank you for the quick reply and nice to hear that, Thalassicus. :goodjob:

So it means I do not have to release anything and I can go back to my crypt to sleep. Great! People, wake me up no next bug. :D

Zzzz. Zzzzzz.
 
@Thalassicus
Thanks, for the up-coming fix and for the understanding. Looking forward to the hotfix update - got an interesting game in progress....
 
Back
Top Bottom