I have started work on adapting the factory boost system (discussed here (http://forum.simutrans.com/index.php?topic=7132.msg69543#msg69543)) from Standard into Experimental. My work so far is on the devel (https://github.com/jamespetts/simutrans-experimental/tree/devel) branch. The changes are far-reaching and complex, though, and I am getting some odd results, which I have had to fix in some cases with workarounds. I should be grateful for any pointers from those who were involved in writing this code in the first place.
Firstly, I seem to be getting frequent instances of target_factories.get_random_entry(); producing a valid entry with a NULL factory, causing crashes unless I put target_factories.get_random_entry(); in a while loop requiring it to return a valid factory before proceeding. This while loop is not necessary in Standard; yet I am not aware of any changes made to the code for populating target_factories between Standard and Experimental.
Secondly, new factories seem to be generated with implausibly high production numbers. I have not looked into this in detail, but, again, I did not think that the system for setting production numbers was much changed by Experimental.
Any assistance would be appreciated.