I would like to migrate (rename) a surface name.

Place to get help with not working mods / modding interface.
Xeon257
Inserter
Inserter
Posts: 46
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

I would like to migrate (rename) a surface name.

Post by Xeon257 »

I wrote the migration JSON as shown below.

Code: Select all

{
  "tile":[
    ["linox-tile_linox-installation-foundation", "linox-tile_linox-foundation"],
    ["linox-tile_linox-installation-terminal-platform", "linox-tile_linox-terminal-platform"],
    ["linox-tile_linox-installation-hazard-terminal-platform", "linox-tile_linox-hazard-terminal-platform"],
    ["linox-tile_linox-installation-corridor", "linox-tile_linox-corridor"]
  ],
  "space-location":[
    ["linox-surface_linox-installation", "linox-surface_under-1"]
  ],
  "surface":[
    ["linox-surface_linox-installation", "linox-surface_under-1"]
  ]
}
The tile migration works correctly, but it seems that the surface name migration does not work.
Do you know why this happens?
I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16300
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: I would like to migrate (rename) a surface name.

Post by Rseding91 »

Which in-game thing is not being migrated that you expect to be migrated?
If you want to get ahold of me I'm almost always on Discord.
Xeon257
Inserter
Inserter
Posts: 46
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: I would like to migrate (rename) a surface name.

Post by Xeon257 »

There is a surface that already exists in save files from previous versions.

I would like to migrate its name to a different one.

Is the surface name not eligible for migration?
I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4301
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: I would like to migrate (rename) a surface name.

Post by boskid »

"surface" json migration is related to instances of SurfacePrototype and its ID's.

There are also surfaces (on which you build entities) that have their own name. That one you can chance through write to LuaSurface::name in the control stage.

Names are quite confusing here but those are 2 unrelated concepts.
Xeon257
Inserter
Inserter
Posts: 46
Joined: Wed Sep 24, 2025 6:25 pm
Contact:

Re: I would like to migrate (rename) a surface name.

Post by Xeon257 »

Thank you. It seems I was confused.
I am not able to write in English myself, so I am using ChatGPT for help. Please excuse any awkward phrasing.
Post Reply

Return to “Modding help”