[15.19] [Harkonnen] Blueprint string speakers have the wrong instrument

This subforum contains all the issues which we already resolved.
User avatar
mentlerd
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jun 09, 2017 10:15 am
Contact:

[15.19] [Harkonnen] Blueprint string speakers have the wrong instrument

Post by mentlerd »

In the 15.19 update, a new instrument was added to the programmable speakers. Blueprint strings created before the update import with the wrong speaker instrument, altough savegames, and blueprints stored in the ingame blueprint book have been migrated correctly.

This is the exact same music machine, exported in the indicated version. 15.19 does not import the 15.18 export correctly:
[15.18] export: https://pastebin.com/raw/mmwKeKC8
[15.19] export: https://pastebin.com/raw/3DEaQD4t
Rseding91
Factorio Staff
Factorio Staff
Posts: 14316
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [15.19] Blueprint string speakers have the wrong instrument

Post by Rseding91 »

Blueprint strings don't migrate between game version. They work for the version they're created in and may work for future versions but it's not guaranteed.

If you want the strings in the current version of the game you'll need to import them in an older version and re-export them.
If you want to get ahold of me I'm almost always on Discord.
Harkonnen
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Sep 02, 2016 9:23 am
Contact:

Re: [15.19] Blueprint string speakers have the wrong instrument

Post by Harkonnen »

This happens because new 'Alarms' section was added and instrument was referred as just an integer. Also blueprint strings have no version information for us to react on, so we can properly load old saves, but not blueprint strings. We will review instruments situation since this is a very unpleasant thing, sorry for that :( for now your best bet is to load blueprint string with old version, save game, load game with new version, and create new altered blueprint string.
User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [15.19] Blueprint string speakers have the wrong instrument

Post by TruePikachu »

Also blueprint strings have no version information for us to react on
IIRC the "version" field in the JSON encodes the writing game's version number across four 16-bit words (with the first being zero, and the last being a revision for the actual version; ignoring it, one gets the actual game's version number)

Code: Select all

...ancer","version":64424706048},"ind...
64424706048 = 0x0000000F00030000 -> 0x0000 0x000F 0x0003 0x0000 -> 0.15.3.0
Rseding91
Factorio Staff
Factorio Staff
Posts: 14316
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [15.19] Blueprint string speakers have the wrong instrument

Post by Rseding91 »

TruePikachu wrote:
Also blueprint strings have no version information for us to react on
IIRC the "version" field in the JSON encodes the writing game's version number across four 16-bit words (with the first being zero, and the last being a revision for the actual version; ignoring it, one gets the actual game's version number)

Code: Select all

...ancer","version":64424706048},"ind...
64424706048 = 0x0000000F00030000 -> 0x0000 0x000F 0x0003 0x0000 -> 0.15.3.0
Talking it over internally we also decided that we aren't going to do blueprint-string migrations as to do that correctly would bloat all blueprint strings by an additional 20 KB of text for even the smallest string. It would also duplicate a massive portion of the games loading code and was deemed not worth it.

As it is, blueprint strings are only officially supported in the version they're created. Past that they may or may not work depending on other game changes/mod changes you've done.
If you want to get ahold of me I'm almost always on Discord.
Harkonnen
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Sep 02, 2016 9:23 am
Contact:

Re: [15.19] Blueprint string speakers have the wrong instrument

Post by Harkonnen »

I've detected a bunch of programmable speaker blueprint strings roaming the internet, so that is now fixed for 0.15.22
Post Reply

Return to “Resolved Problems and Bugs”