Defold 1.2.171 has been released

Release notes

This sprint we’ve fixed a sound crash, added some physics improvements, and some optimizations.

Also note that summer has started, so the tempo of support and fixes might drop a little.

iOS storyboards

We’ve added support for iOS storyboards, and we’ve added a default (black) storyboard to the new setting ios.launch_screen.
To create your own storyboard, follow the guide in the iOS manual.

EDIT: If you’re using a custom Info.plist, don’t forget to update it with this change. Note that we are no longer copying the launch images to the bundle.

Vulkan support

We’re finally ready to let you try out the new Vulkan graphics backend.
Our main goal was to support Metal for iOS/OSX, and we do that now by using MoltenVK, as a wrapper.

On Android, it also enables you to have two backends active. It first checks if Vulkan is supported, otherwise it falls back on the OpenGL backend.

Our current implementation is written to work “as before”, in the same manner as our OpenGL backend, so that no changes are needed on your part.

To enable the Vulkan support, add the extension-vulkan to your dependencies and set the property shader.output_spirv in game.project.

You can of course remove the OpenGL backend as well, to further slim down the executable size. See the manifestation tool

Engine

  • Issue-4856 - Added: Added gamepad name to input connected event
  • Issue-3771 - Added: Added support for iOS storyboard
  • Issue-4977 - Fixed: Fix bug with new Apple provisioning profile
  • Issue-3381 - Fixed: Android app AAB bundle fixes
  • Issue-4983 - Fixed: Sounds don’t crash if they have invalid bitdepth/channel countfailed message.
  • Issue-4946 - Fixed: Fixes for 3D collision/trigger event inconsistencies with 2D events
  • Issue-4934 - Fixed: Use correct box size when creating 3d physics with non unit scale
  • Issue-4953 - Fixed: Make sure scaling isn’t applied twice on 2D physics circle shapes
  • Issue-4908 - Fixed: Crash fix for loading collections with the same name
  • Issue-4882 - Fixed: Allow more than 16 collision shapes
  • Issue-3181 - Fixed: Optimized rendering of 9-sliced untextured gui boxes
  • PR #4931 - Fixed: Add missing rendering profiles for vulkan

Editor

  • PR #4978 - Fixed: Make editor report a build error on non-existent custom resource
  • PR #4935 - Fixed: Panel resize handle fixes (DEFEDIT-4875)
  • PR #4891 - Fixed: Backspace now works in editorwith shift pressed
  • PR #4905 - Fixed: Support building SPIR-V from editor (Vulkan)
  • Issue-4886 - Fixed: Set ui elements in bundle dialog to same size on different OSX systems
14 Likes

The update does not work for me. When I press “update” and then “download”, the download starts and stops at once and the “update” message appears again. Tried multiple times.

I am using 1.2.170 on Mac Catalina 10.15.2.

Could you attach the editor logs please?

No log at all

From “Help -> Show Logs”?

Sorry!

Here it is:

2020-07-20 11:50:59.275 371350 [Timer-1] INFO editor.updater - {:line 295, :message “Checking for updates”, :url “https://d.defold.com/editor2/channels/editor-alpha/update-v3.json”}
2020-07-20 11:50:59.689 371764 [Timer-1] INFO editor.updater - {:line 301, :message “New version found”, :sha1 “a98007b48691529b59fb099fc369d81518059d00”}
2020-07-20 11:51:25.792 397867 [clojure-agent-send-off-pool-14] INFO editor.updater - {:line 122, :message “Downloading update”, :url “https://d.defold.com/archive/a98007b48691529b59fb099fc369d81518059d00/editor-alpha/editor2/Defold-x86_64-darwin.zip”, :file “/private/var/folders/sp/ww4d9c_n27vds6cxkhpd0bth0000gn/T/defold-update1172897694840655661.zip”}
2020-07-20 11:51:26.031 398106 [clojure-agent-send-off-pool-14] INFO editor.updater - {:line 147, :message “Extracting update”, :dir “/Users/roccochirivi/Library/Application Support/Defold/update”}
2020-07-20 11:51:26.032 398107 [clojure-agent-send-off-pool-14] INFO editor.updater - {:line 210, :message “Update download failed”}
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:958)
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:883)
at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:621)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:295)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:218)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:201)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:162)
at editor.updater$extract_BANG_.invokeStatic(updater.clj:147)
at editor.updater$download_and_extract_BANG_$fn__74864.invoke(updater.clj:206)
at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

1 Like

Thanks!

Please try again. The update should work now.

The reason for the issue is that we now copy the release files to a different location on Amazon S3 and symlink/redirect old URLs to the new location. The editor did until this release not follow redirects which caused the update to fail.

Tried just now: closed Defold, open it again and tried the update but I see the same problem. Here the log:

2020-07-20 12:03:35.240 13544 [clojure-agent-send-off-pool-0] INFO editor.updater - {:line 210, :message “Update download failed”}
java.util.zip.ZipException: archive is not a ZIP archive
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:958)
at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:883)
at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:621)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:295)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:218)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:201)
at org.apache.commons.compress.archivers.zip.ZipFile.(ZipFile.java:162)
at editor.updater$extract_BANG_.invokeStatic(updater.clj:147)
at editor.updater$download_and_extract_BANG_$fn__74864.invoke(updater.clj:206)
at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

2 Likes

YEah, we see the same issue. We’re on it

2 Likes

Please try again. I’ve confirmed that it is working for macOS.

3 Likes

Yes! It works for me! Many thanks for your great work!

3 Likes

Something to note here: If you were using a custom Info.plist, don’t forget to update it with the Storyboard change. Your old launch images won’t get copied on 1.2.171.

2 Likes

Thanks, added an edit to the release notes.

1 Like

We’ve added a guide to storyboard creation in the iOS manual: https://defold.com/manuals/ios/#creating-a-storyboard

5 Likes

After talking to @AGulev today I realised that we didn’t announce that linear and angular velocity of dynamic collision objects are no longer read only. We made this change in 1.2.171 but it never made it into any release notes:

And the documentation wasn’t updated until this beta release:


2 Likes