"Nothing" (custom) technology modifier needs dynamism

Post Reply
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 582
Joined: Tue May 19, 2015 1:56 am
Contact:

"Nothing" (custom) technology modifier needs dynamism

Post by Reika »

By that I mean that it needs to support having numbers and other variables inlined (the "__1__" thing), not just "effect key" which can only ever map to a static string. Without this it is basically worthless, as the only way to show the effect is to hardcode things in the lang files, which is impossible in the case of configurable values or automatic calculation.
Image

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: "Nothing" (custom) technology modifier needs dynamism

Post by Rseding91 »

Just put the description in the description of the technology. The effect portion isn't needed when you're doing all of the logic script side anyway.

The description can be set in the data script to what ever you want.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: "Nothing" (custom) technology modifier needs dynamism

Post by Mooncat »

I think he meant this:
"effect_key" of "nothing" tech modifier accepts LocalisedStr

Currently only string is accepted. Giving it a localised string will throw error.

User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 582
Joined: Tue May 19, 2015 1:56 am
Contact:

Re: "Nothing" (custom) technology modifier needs dynamism

Post by Reika »

Mooncat wrote:I think he meant this:
"effect_key" of "nothing" tech modifier accepts LocalisedStr

Currently only string is accepted. Giving it a localised string will throw error.
Yes, that is what I mean.
Rseding91 wrote:Just put the description in the description of the technology. The effect portion isn't needed when you're doing all of the logic script side anyway.

The description can be set in the data script to what ever you want.
If you want an effect like vanilla has (eg "Turret Range: +1"), then doing it in the description is not an option.
Image

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: "Nothing" (custom) technology modifier needs dynamism

Post by Rseding91 »

I changed it for 0.16 so it's a localized string.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: "Nothing" (custom) technology modifier needs dynamism

Post by Mooncat »

Thanks <3

Post Reply

Return to “Implemented mod requests”