MichaelL. Posted June 12, 2023 Share Posted June 12, 2023 So, I'm assuming that TFP already has a script that assists with the conversion/replacement of blocks that have changed between A20 and A21 (as has done for previous version updates). Any word on the process? Link to comment Share on other sites More sharing options...
zztong Posted June 12, 2023 Share Posted June 12, 2023 (edited) My notes are: At Main Menu, F1: prefabupdater loadtable prefabupdater updateblocks The first command just needs 1-2 seconds to complete and will say nothing. The second command will do all of the POIs at once and will give you status messages. I suggest having a backup of your files. This will not correct everything, but will get most things. You're still likely to find blocks where their rotation has changed. It won't do anything related to textures that were removed from the game. Instead, you'll seemingly get some other random texture painted on blocks in their place. Once converted, if you load up a POI in the Prefab Editor and find the "missing block" block, look for warnings on the console and they'll tell you the name(s) of the missing blocks. If you have more than one you'll have to otherwise figure out what each missing block used to be. That's often easy in the context of a kitchen ("where did the stove go") but harder in other places. Edited June 12, 2023 by zztong (see edit history) 4 Link to comment Share on other sites More sharing options...
MichaelL. Posted June 12, 2023 Author Share Posted June 12, 2023 Thanks! Is it searching the LocalPrefabs and Mod's folders this time around? Link to comment Share on other sites More sharing options...
zztong Posted June 13, 2023 Share Posted June 13, 2023 18 hours ago, MichaelL. said: Thanks! Is it searching the LocalPrefabs and Mod's folders this time around? Yes, all of the above, I think. Link to comment Share on other sites More sharing options...
FranticDan Posted June 24, 2023 Share Posted June 24, 2023 Obviously there's not going to be a fix for this. But I find it strange that my custom blocks going from A20 to A21 still appear as ? blocks. Have to manually delete each one individually and replace them back. I guess once they are ? blocks, they don't remember the name ID's for those blocks Link to comment Share on other sites More sharing options...
Laz Man Posted June 24, 2023 Share Posted June 24, 2023 11 minutes ago, FranticDan said: Obviously there's not going to be a fix for this. But I find it strange that my custom blocks going from A20 to A21 still appear as ? blocks. Have to manually delete each one individually and replace them back. I guess once they are ? blocks, they don't remember the name ID's for those blocks I believe some will show in the console as warnings. You can also mass replace all of the missing blocks to air versus manually one at a time. Link to comment Share on other sites More sharing options...
FranticDan Posted June 24, 2023 Share Posted June 24, 2023 3 minutes ago, Laz Man said: I believe some will show in the console as warnings. You can also mass replace all of the missing blocks to air versus manually one at a time. For me personally, it'll be more of a hinderance to turn them into air, I'll forget where all of my custom blocks are supposed to be, and there's hundreds of them! Doing "CustomBlock" to "CustomBlock" doesn't work unfortunately Link to comment Share on other sites More sharing options...
Laz Man Posted June 24, 2023 Share Posted June 24, 2023 2 minutes ago, FranticDan said: For me personally, it'll be more of a hinderance to turn them into air, I'll forget where all of my custom blocks are supposed to be, and there's hundreds of them! Doing "CustomBlock" to "CustomBlock" doesn't work unfortunately I haven't done it myself, but I think you can update the .csv file with a list of your custom block names and tell it what you want it changed to. @MichaelL. and @zztong might know more about this. Link to comment Share on other sites More sharing options...
zztong Posted June 25, 2023 Share Posted June 25, 2023 5 hours ago, Laz Man said: I haven't done it myself, but I think you can update the .csv file with a list of your custom block names and tell it what you want it changed to. Yes, @stallionsden showed me originally. There's a feature TFP ships that they use to convert an older version's blocks to a new version's blocks. It's only needed if the block name has changed for some reason. In the game's Config folder you'll find a file called something like BlockUpdates.csv and you can make your own entries. You have to mimic the entries. I usually tack my stuff onto the end of TFP's file. I sometimes keep a copy of what I added in my modlet, but the commands won't look there to my knowledge. (I've probably never tried it.) After that, you can use these two commands in F1 at the main menu: prefabupdater loadtable prefabupdater updateblocks It doesn't give you any control over block rotations, so it cannot be used to make adjustments like that. 5 hours ago, FranticDan said: But I find it strange that my custom blocks going from A20 to A21 still appear as ? blocks. Odd, I didn't have that happen. If the block name stayed the same in both versions of your modlet then it should have been fine when you loaded the POI in the Prefab Editor. 2 Link to comment Share on other sites More sharing options...
MichaelL. Posted June 25, 2023 Author Share Posted June 25, 2023 (edited) If your old custom blocks are referring to vanilla assets/objects, they did make a tiny change to the syntax. Not sure if this is the problem in your case, but worth a try. A20: #Other/Items? A21: @:Other/items/ Edited June 25, 2023 by MichaelL. (see edit history) 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now