[0.15.9] Lua API doc mistakes

This subforum contains all the issues which we already resolved.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

[0.15.9] Lua API doc mistakes

Post by daniel34 »

Trying to change the technology price multiplier using Lua I found the following:
  • technology_price_multiplier can be read/written using DifficultySettings, this is missing from the documentation.
  • Accessing game.map_settings.difficulty_settings.xyz doesn't work (unknown path difficulty_settings) although difficulty_settings is defined in the map-settings.lua. This should be clarified in the documentation or map-settings.lua file, or access to it should be allowed.
Second issue:
  • The help function (Common.html#Common.help) is listed in a lot of classes throughout the API and is always declared as read-only string property although it is in fact a function that returns a string.
quick links: log file | graphical issues | wiki
Rseding91
Factorio Staff
Factorio Staff
Posts: 16007
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.9] Lua API doc mistakes

Post by Rseding91 »

Thanks for the report. I've fixed the first 2 things - difficulty_settings has to be changed through game.difficulty_settings due to how it changes the game massively when altered - which is why it's not available in map_settings.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16007
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.9] Lua API doc mistakes

Post by Rseding91 »

The help function is also now fixed for 0.15.10.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”