# Defold 1.2.125 has been released

**URL:** <https://forum.defold.com/t/defold-1-2-125-has-been-released/18768>\
**Category:** Release notes\
**Created:** [April 9, 2018, 11:54am UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768 "2018-04-09T11:54:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [April 9, 2018, 11:54am UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/1 "2018-04-09T11:54:02Z")

</div>

# Defold 1.2.125

This release fixes a number of issues and bugs. A rendering artefact seen in Safari versions \>11.0.1 is fixed, a hard crash when number of touch inputs exceeded the supported number is also fixed. The default render script has been updated with useful projection helper functions, and calling gui.stop\_particlefx on a particlefx gui node will now have the same behaviour as calling particlefx.stop on a gameobject component. Better link errors for native extension on Win32 was also added, along with a number of smaller fixes.

The native extension server has also been updated with more descriptive error messages for various situations.

# Engine

- `DEF-3185` - **Added** : Added projection helper functions to the default render script
- `DEF-3061` - **Fixed** : HTML5 rendering issue for Safari.
- `DEF-3209` - **Fixed** : Multitouch crash on iOS when using more than supported number of touches.
- `DEF-3206` - **Fixed** : Stopping all playing particlefx on a single particlefx GUI node.
- `DEF-3233` - **Fixed** : iOS11: App now requests priority over system gestures (i.e. touches at edges)
- `DEF-3217` - **Fixed** : The SIGABRT signal will now generate a \_crash log.
- `DEF-3215` - **Fixed** : dmLog\* functions on iOS now use NSLog.
- `DEF-3162` - **Fixed** : Changed what part of the script filepath is reported on Lua errors.
- `DEF-3184` - **Fixed** : Improved link errors for native extensions on Win32.
- `DEF-3197` - **Fixed** : Resource hashes does not include the factory base path.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [April 9, 2018, 11:54am UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/2 "2018-04-09T11:54:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![giordano.ricciardi](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/giordano.ricciardi/32/7649_2.png) [@giordano.ricciardi](https://forum.defold.com/u/giordano.ricciardi)\
**Post date:** [April 9, 2018, 12:08pm UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/3 "2018-04-09T12:08:50Z")

</div>

> [@Mathias\_Westerdahl](#):
>
> DEF-3185 - Added: Added projection helper functions to the default render script

Cool! Can we have more details please? Thanks.

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [April 9, 2018, 12:31pm UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/4 "2018-04-09T12:31:52Z")

</div>

It includes three helper functions:

```lua
fixed_projection(near, far, zoom)
fixed_fit_projection(near, far)
stretch_projection(near, far)

```

Stretch is the default. If you want to change it, copy the renderer from builtins and change a line in the render script update():

```lua
   ...
   render.set_projection(fixed_fit_projection(-1, 1))
  -- render.set_projection(stretch_projection(-1, 1))
   ...

```

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [April 9, 2018, 12:32pm UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/5 "2018-04-09T12:32:47Z")

</div>

If you need to alter projection in runtime you can easily add code to the render script on\_message() and send messages to “@render:” to do what you need.

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [April 9, 2018, 2:02pm UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/6 "2018-04-09T14:02:13Z")

</div>

> [@Mathias\_Westerdahl](#):
>
> DEF-3162 - Fixed: Changed what part of the script filepath is reported on Lua errors.

what does it mean?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [April 9, 2018, 2:13pm UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/7 "2018-04-09T14:13:50Z")

</div>

It means that upon a Lua error, the output filename will show the last 60 characters (as opposed to the first 60 characters). It will help when pinpointing what script file caused an error.

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [April 9, 2018, 3:04pm UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/8 "2018-04-09T15:04:36Z")

</div>

> [@Mathias\_Westerdahl](#):
>
> It means that upon a Lua error, the output filename will show the last 60 characters (as opposed to the first 60 characters). It will help when pinpointing what script file caused an error.

Thank you.

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [April 10, 2018, 12:19am UTC](https://forum.defold.com/t/defold-1-2-125-has-been-released/18768/9 "2018-04-10T00:19:31Z")

</div>

Could this be included in next update?

> [@Needing to click twice on the HTML5 game canvas to make clicks register (DEF-3198) (SOLVED)](https://forum.defold.com/t/needing-to-click-twice-on-the-html5-game-canvas-to-make-clicks-register-def-3198/18141/3):
>
> Awesome! Here is a temporary patch for anyone releasing a Facebook Instant Game soon. Search the exported .js and replace the only document.activeElement==Module[“canvas”] with true
