Skip to content

PyBlock machine localised_name incorrectly concatenates alt name with base name instead of replacing it #1497

Description

@lycc193bp

Mod source

Factorio Mod Portal

Operating system

=Windows 10

What kind of issue is this?

  • Compatibility
  • Locale (names, descriptions, unknown keys)
  • Graphical
  • Crash
  • Progression
  • Balance
  • Pypostprocessing failure
  • Other

What is the problem?

The code that applies alternate localised names to pyblock machines uses a concatenation localised string pattern. This does not match the intended behavior — it joins the alternate name and the original vanilla entity name together, rather than using the alternate name as a replacement.

{ "", "entity-name-alt." .. entity, "entity-name." .. entity }

Why did this commit turn replacement into concatenation

Steps to reproduce

Enable disable-pyblock-fun-names in pyblock startup config

Additional context

Image

Log file

No response

Metadata

Metadata

Assignees

Labels

minorThe universe is safe... for now.mod:pyblock

Type

Fields

No fields configured for Bug.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions