You broke the code transfer from other versions

#1 - Oct. 21, 2020, 12:01 p.m.
Blizzard Post

When you changed the code structure of “is button held” and “color” in the Play/Create effect rules you also broke the ability to transfer code from other versions. Because when I paste code with the old version of “is button held” it says there is an error. And that means I will have to check my 10k lines of code and modify it manually so I can implement the new features you added. Please just make it so its compatible with the older code like you did when you changed how the code looked in the editor (the C++ code design update).

Forum Avatar
Overwatch Developer
#6 - Oct. 22, 2020, 12:41 a.m.
Blizzard Post

Hi! I’m going to copy-paste a relevant comment I made over in another thread on the Workshop Discussion section.

There are some complications with the added support of Button Values and Color Values. For anything loaded internally within the game (codes, presets, etc.) we can do the script fixups internally, so everything remains backwards compatible. So if you normally operate using the saved presets or codes, you should be good and won’t need to do anything!

Unfortunately, the copy-paste text system was not backwards compatible with this fixup. So if you normally paste in text files, you’ll have to do some manual fixups yourself (e.g. Red -> Color(Red), Interact -> Button(Interact)). While this isn’t great, we’re hoping that the added flexibility and options will be well worth the minor, one-time, inconvenience for our text-based users. Our goal is never to break stuff if we can help it. But for this case, we’re hoping it’s ok for the greater good of Workshop.