Commit Graph

1698 Commits

Author SHA1 Message Date
tobspr 8c57137b82 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-09-28 10:54:23 +02:00
tobspr 4f6d9785c1 Add final shapes and upgrades until tier 20 2020-09-28 10:54:21 +02:00
LeopoldTal b9b8592a07
Build, sign, notarise, & upload on OS X (#687)
* sign & notarise darwin package

* upload bundle as github release

* allow unsigned build and full build with release

* deref darwin bundle symlinks only when building on win32

Windows [mangles symlinks](https://github.com/electron/electron-packager/issues/71). Currently we work around this by placing several copies of the frameworks in OS X app bundles (see 1e5aa3867d). However:

- This is invalid: the framework toplevel must [only contain symlinks](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html). `codesign` [refuses to sign](https://stackoverflow.com/questions/25969946/osx-10-9-5-code-signing-v2-signing-a-framework-with-bundle-format-is-ambiguou) this invalid structure.

- It seriously bloats the bundle.

Since there's no fix for the Windows misbehaviour, keep the workaround, but only when cross-building on win32 for darwin; and log a warning.
2020-09-27 23:14:43 +02:00
tobspr d27e9226be Re-balance, fixes, etc etc 2020-09-27 22:22:05 +02:00
Galo223344 62c0c45505
Better spanish translation (#683)
Same but removed a space
2020-09-24 17:44:46 +02:00
tobspr f584d9d93e Further fixes found during testing, update local config 2020-09-24 17:43:50 +02:00
tobspr 7cd1ee22fd Further fixes 2020-09-24 17:14:15 +02:00
tobspr a4b46f8527 Further adjustments 2020-09-24 16:37:44 +02:00
tobspr d4dd30857e Further pre-release adjustments 2020-09-24 16:12:05 +02:00
tobspr 1ecc2ebb5d Minor adjustments and fixes 2020-09-24 14:59:15 +02:00
tobspr 085c942e37 Define testing criterias 2020-09-24 13:10:40 +02:00
tobspr c54ec9fd2a Restructure buildings 2020-09-24 12:53:40 +02:00
tobspr 0202387739 More tips 2020-09-23 23:01:45 +02:00
tobspr da4c7971e5 Fix outdated resource 2020-09-23 16:25:53 +02:00
tobspr fd77ba135a Fix markers and translation 2020-09-23 16:24:10 +02:00
tobspr e040a47195 Update regular layer building descriptions, update artwork 2020-09-23 15:20:12 +02:00
tobspr 1f12e755a9 Load css resources async, improve building descriptions 2020-09-23 11:14:35 +02:00
tobspr 9881bd6799 Update toolbar 2020-09-23 09:24:25 +02:00
tobspr f8371a96cf Make the storage its own building, add sanity checks 2020-09-23 08:59:39 +02:00
tobspr 47b26f4779 Fix typos 2020-09-23 08:28:07 +02:00
tobspr 62865334fe Update tips 2020-09-22 20:25:30 +02:00
tobspr 05847add71 Re-balance 2020-09-22 20:21:09 +02:00
tobspr 091ffd1031 Make chained miner default and the only option after unlocking it 2020-09-22 19:31:40 +02:00
tobspr c6eb1dad04 Rebalance the whole game, rename splitter -> balancer 2020-09-22 14:47:59 +02:00
tobspr b0058cb59b Adjust item size 2020-09-22 11:21:45 +02:00
tobspr 1ec8b4fe28 Only render shapes in map overview 2020-09-22 11:21:18 +02:00
tobspr 607fd15a18 Improve overlay transition on low performance setups 2020-09-22 10:54:51 +02:00
tobspr fae67bb7b2 Merge branch 'master' of https://github.com/tobspr/shapez.io 2020-09-22 10:50:38 +02:00
tobspr 5f2cf4e589 Improve color rendering performance 2020-09-22 10:50:36 +02:00
przemko07 ea3cad0e37
Use same scale for Atlas as zoomLvl (#680)
Scale 1 is never gonnna be saved as screenshot. for most image exports 0.5 is used. chunkScale is determining that.
2020-09-22 10:32:13 +02:00
tobspr 0274597a1c Fix tslint 2020-09-22 10:31:47 +02:00
Thiseas C. Lamnidis 9d69aa50ec
Added greek translation (#679) 2020-09-22 10:31:17 +02:00
tobspr afa08b06dc Vastly improve underground belt performance 2020-09-22 10:29:04 +02:00
tobspr 9075841768 Migrate old savegames 2020-09-22 09:32:31 +02:00
tobspr 665360c5a5 Add more tips 2020-09-21 18:36:33 +02:00
tobspr 0ca623f24e Fix reader throughput 2020-09-21 18:32:26 +02:00
tobspr ad3be750fc Fix mouse pan 2020-09-21 18:17:55 +02:00
Exund cceffc1832
Fix camera pan (#673)
* Fix some literal edge cases

* Fixed for fullscreen
2020-09-21 18:16:36 +02:00
Exund b32ae43464
Fix 180° rotater not renamed everywhere (#675)
* Fixed atlas and buildingSpeed

* Revert atlas.json changes
2020-09-21 18:15:30 +02:00
tobspr 4636080dd7 Huge performance improvements 2020-09-21 18:09:27 +02:00
tobspr 2ac570f6d8 Fix belt paths not rendering 2020-09-21 18:07:47 +02:00
LeopoldTal ff2274f671
fix size overflow when building sounds (#676)
Building the standalone with V8 v8 (Node v14) fails at step `sounds.musicHQ`, either by running out of memory or with the error "Invalid string length". Building with V8 v7 (Node v12) succeeds.

This is because `gulp-cache` builds a 994-MB string when [stringifying file contents](https://github.com/jgable/gulp-cache/blob/master/src/task-proxy.js#L262) to cache them. V8 v8 [limits string length to around 537 MB](https://github.com/v8/v8/blob/master/src/objects/string.h#L384), and thus cannot represent this string. (V8 v7 allows around 1074 MB, which is why the build passes on Node v12.)

But [`theme-full.mp3`](https://github.com/tobspr/shapez.io/blob/master/res_raw/sounds/music/theme-full.mp3) is only 79 MB: how did we get 1250% overhead?

Unlike plaintext files, binary files are read as buffers, but [by default](https://github.com/jgable/gulp-cache/blob/master/src/index.js#L46) `gulp-cache` stringifies them naively, producing the extremely inefficient representation:

````
[
  {
    "cwd": "/Users/tobspr/shapez.io/gulp",
    "base": "/Users/tobspr/shapez.io/res_raw/sounds/music",
    "contents": {
      "type": "Buffer",
      "data": [
        73,
        68,
        51,
        4,
        0,
        0,
…etc.
````

Fortunately, `gulp-cache` [can read base64-encoded cache files](https://github.com/jgable/gulp-cache/blob/master/src/index.js#L26).

Instead of using the default file transform function, **pass a `value` option to base64-encode the file contents**. This results in only 33% overhead on cache file size (106 MB for the largest file).

This has multiple benefits:

- Fixes the build failure
- Requires less memory (from 6 GB down to < 1 GB on my machine)
- When cache files are found, the `sounds.musicHQ` is much faster (from ~30 s down to ~4 s on my machine)
- Smaller cache files on disk
2020-09-21 08:37:50 +02:00
Exund c4f2379010
Refactor entity cloning (#671) 2020-09-19 21:41:48 +02:00
tobspr 1f3991301d Fix miner highlight 2020-09-19 21:40:42 +02:00
tobspr 54f1c1dc93 Update changelog 2020-09-19 21:05:03 +02:00
tobspr 7def60c050 Fix belt planner placing down once a dialog pops up 2020-09-19 21:04:41 +02:00
tobspr 749383a318 Update changelog 2020-09-19 20:59:56 +02:00
tobspr 24eb060000 Fix mouse panning 2020-09-19 20:57:20 +02:00
tobspr ed32238412 Allow toggling units in the statistics dialog 2020-09-19 20:51:47 +02:00
tobspr fbff0a0ad4 Allow to pan the map with the mouse by moving the cursor to the edges of the screen 2020-09-19 20:30:35 +02:00