Commit Graph

529 Commits

Author SHA1 Message Date
Aleksej Komarov
96d53c0f8b Downgrade Juke to 0.8.1 (#61110)
A light version of the revert to help builds work on TGS3.

(TGS3 builds were locking up on live, causing servers to be unable to testmerge or update things because of something to do with the recent juke build. I don't into the build tool, otherwise I'd be more clear)
2021-08-30 23:14:08 -07:00
mokulus
e6e38ec4e5 Exit on DreamMaker warnings in CI Windows build (#61025)
Added an option to tools/build/build to treat DreamMaker warnings as errors. Enabled this option only for Windows Build (tools/ci/build.ps1).

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2021-08-26 12:08:26 +03:00
Aleksej Komarov
a7753ad6fd Juke Build 0.9.0 (#61005)
* Juke Build 0.9.0

* Fix a small bug with build.js

* Distill cmds

* Return sonar

* Revert those build.cmd changes

* Some improvements

* Treat all sonar warnings as errors because they should fail the sonar target

* Do not clean up bootstrap cache because it locks up on removing it
2021-08-25 16:09:00 +02:00
EOBGames
b08632353c [MDB IGNORE] Eliminates Toxins (#60619)
Repaths everything referring to "toxins" while actually meaning either the room in science or plasma gas. While this PR might be disrespectful to our forefathers, given this is (I believe) a holdover from as far back as the Exadv1 days, this has constantly irked me since I started working with the code. None of the player-facing stuff has referred to plasma as toxin since before 4407 hit, besides the Toxins Lab, and yet all of the type-paths are still pointing at toxins, making it a nightmare to search for in a map editor, and making the code needlessly easy to confuse with that of toxin damage. So this just fires it into the sun.

Anything relating to Toxins, the science subdepartment, now makes reference to Ordnance instead. This felt fitting enough given the focus of the subdepartment is around the creation of and testing of explosives.
Anything relating to plasma gas has, fittingly, been made to refer to plasma gas.

Edit: Ah yes, I feel I should probably apologise off the bat for the size of this PR- the code touched is mostly atmos machinery and simplemobs, a few sprites here and there, and of course the station maps + a few offstation maps.

Makes the code more legible and makes mapping less painful.

(The payment has been made)
2021-08-17 11:49:47 -07:00
Aleksej Komarov
ad3ef5c803 Juke Build 0.8.1 Hotfix 1 (#60897)
* Juke Build 0.8.1 Hotfix 1

* Do not restore Yarn cache on just DM build
2021-08-16 20:58:28 +03:00
Aleksej Komarov
9bbabfe36b tgui maintenance chores (#60859)
## About The Pull Request

**Upgrades:**

- Yarn 3.0
- TypeScript 4.3
- Sass 1.37
  - Required some refactoring of `/` into `math.div()` in CSS

**Dependency removals:**

- Removed ESM package, see: https://github.com/standard-things/esm/pull/902

I initially thought it was impossible to stop relying on this package, but fortunately, ES module support in Node 12+ now comes standard and I only had to convert the very few external module imports to `require()` (because Yarn PnP).

I also moved `logging.js` directly into `tgui-dev-server` package, because that's where it is used. One less internal dependency.

**Sidegrades:**

- Removed creation of a common tgui chunk, because in practice it creates unnecessary complexity (devs sometimes get a white screen due to this chunk being invalid) and doesn't really save that much data on CDN, and **definitely** doesn't make tgui load faster.

I think that is all. I tested it a bit and everything seemingly works.
2021-08-16 12:21:45 -04:00
Aleksej Komarov
a7de4870ac Use experimental modules flag for Node before 12.22.4 (#60891) 2021-08-16 18:56:54 +03:00
Aleksej Komarov
e5ae0667bf Juke Build 0.8.1 (#60404) 2021-08-15 15:17:11 -07:00
Kyle Spier-Swenson
c61a80b26c Add tgsv4 file to check for deps before launching the server (#60829)
Workaround for needing libssl2 in a docker image that doesn't come with it until we make this proper.
2021-08-14 23:04:55 -07:00
NamelessFairy
c17da35970 Fixes an issue with changelog generation where the default lines would be included in the logs (#60736)
* In theory this should fix a bug MSO had in coderbus

* Apparently I am a very stupid cat
2021-08-08 12:05:13 -07:00
Letter N
08a7b9d9fd Fixes mapmerge (#60143)
Fixes a condition where mapmerge would fail converting/detecting non tgm maps
2021-07-11 23:16:30 -07:00
Aleksej Komarov
6eacbde24f Stop compiling DM if compiler outputs are locked. (#60022)
Basically, saves developer's time by yelling that the compiler can't write to dmb/rsc, because they are locked by Dream Daemon.

Added myself as a code owner for /tools/build.
2021-07-07 01:01:46 +01:00
oranges
3801c24229 Update rust-g version to latest release (#59863)
* Update rust version to latest release

This should fix the fact our docker build has been failing for the past
10 days

* Make wget not be quite so noisy
2021-06-29 01:44:43 -07:00
dragomagol
2303f6a892 Remove yellow siding tiles (#59820)
They're only used at Centcom, and we have decals now to do what these tiles do.
2021-06-27 19:12:50 +01:00
Aleksej Komarov
f59adc2537 Juke Build 0.4.0 (#59796)
Updated Juke Build to version 0.4.0
Main new feature: dependsOn, inputs, outputs, and onlyWhen fields now all accept a function of format ({ get }) => ..., and all of them can be async. This means that you can easily parametrize every part of the build.
Added references to Juke Build to README in the build folder
2021-06-25 13:29:36 -03:00
Watermelon914
d42bf33df6 Minimum compiler version update (#59771)
Updates the minimum compiler version to 514.1556
Additionally implements `as anything` in parts that requested it with a warning
2021-06-23 12:51:41 -04:00
Jordan Brown
a2750dc376 Delete tools/LinuxOneShot directory (#59654)
No bandwidth to keep this up to date, the scripts @MrStonedOne and @bobbahbrown are probably better
2021-06-16 13:25:06 +12:00
Aleksej Komarov
d200efc293 Juke Build Hotfix 2 - PreCompile script compatibility (#59649)
* Juke Build Hotfix 2 - PreCompile script compatibility

* Pass arguments from bat to build.js

* Pass arguments in BUILD.bat as well

* Quick tweak
2021-06-14 09:30:59 +12:00
Aleksej Komarov
280882b549 Juke Build Hotfix 1 (#59643)
* Juke Build Fix

* More fixes
2021-06-13 17:00:04 +02:00
Aleksej Komarov
b06d238de9 Juke Build (#59390) 2021-06-13 00:15:51 -07:00
NamelessFairy
3d9180c33f Adds content expansion PR type (#59152)
* Adds content and "jobtent" PR tags

* Adds Semicolons

* Changes temporary GBP value for jobtent to -2

* Renames content to expansion

* Updates PR to follow ninjanomnom's guidelines
2021-06-12 14:11:48 -04:00
dependabot[bot]
a47ba689f7 Bump pillow from 8.1.1 to 8.2.0 in /tools (#59598)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 8.1.1 to 8.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/8.1.1...8.2.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-11 16:46:55 +12:00
AnturK
5b912dbe5f Switches CI to 514 (#59186)
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
2021-05-20 02:38:50 -07:00
Timberpoes
0964976685 Revert "Builds SDMM for CI instead of using releases. (#58963)" (#59035)
This reverts commit 308be58017.
2021-05-10 20:02:08 -07:00
AnturK
308be58017 Builds SDMM for CI instead of using releases. (#58963) 2021-05-10 18:09:50 -07:00
Fikou
c0f9d2e7e8 [READY] Tile Reskinning 2: Epic Winaloo (#58801)
extends the tile reskinning functionality to iron, bronze, plastitanium, carpet and pod floors
makes a bit of tile code better
moves some paths around, like elevator shafts being plating instead of floor
adds rotating as a tile reskinning function available on chapel or side floors for example

lets players customize any rooms they would want much more than it is possible now, allowing for more creativity
2021-05-01 02:20:45 -07:00
tralezab
743c5f44c6 Close every issue made by ZeWaka (#58701)
sure whatever i totally know what im doing
2021-04-27 16:51:37 +03:00
Celotajs
76fb2e1712 Convert changelog to TGUI (#58593)
This pull request converts the changelog to TGUI. 
Note: Old unused changelog files will be automatically removed on the next changelog run
Why It's Good For The Game

More consistent UI, ability to view all historic logs.
Changelog

cl Celotajs
refactor: Converted the changelog popup to TGUI
/cl
2021-04-27 08:41:56 +12:00
Jonathan Rubenstein
89b8d584b1 Add "Except DM" build mode to build.js (#58245) 2021-04-10 15:10:52 -07:00
ZeWaka
8a14af7bce Deletes duplicate export property (#58212) 2021-04-08 00:07:09 -07:00
Jordan Brown
3669cbee6d Fix PreCompile.bat failing with spaced paths (#58184)
* Fix PreCompile.bat failing with spaced paths

* Undo spacification
2021-04-07 04:54:53 -07:00
ZeWaka
0b6ce0627f Deletes unreachable line for tools/dmi (#58213)
Resolves #58211
2021-04-07 22:50:33 +12:00
Bobbahbrown
4a388fd7ae Add youtube-dl to tgs4 precompile scripts for Linux (windows users on suspicious individuals watch) (#58135)
Adds the ability for the TGS4 precompile script on Linux platforms to resolve the youtube-dl dependency. This essentially is for Docker deployments, but can also apply to regular TGS4 deployments as well.
2021-04-06 14:55:57 -04:00
Bobbahbrown
f12b6ffc39 Add extools compilation to the TGS4 precompile scripts for linux (#58113) 2021-04-03 00:41:01 -07:00
Bobbahbrown
a7a88a8cc4 Update dependencies installed for TGSv4 precompile scripts (#58108)
* add libssl1.1

* i was told to add myself to this as well
2021-04-02 13:15:51 +13:00
Aleksej Komarov
29556e879b Upgrade tgui dependencies, make yarn task skippable (#58081)
* Upgrade tgui dependencies, make yarn task skippable

* Use a phony target to avoid double rebuilds
2021-04-01 11:00:35 +02:00
dependabot[bot]
76aaca5c26 Bump pyyaml from 5.3.1 to 5.4 in /tools (#57956)
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.3.1 to 5.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/5.3.1...5.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-27 00:06:36 -07:00
Cyprex
687a1c05df Add note about rust-g for building on Linux (#57622)
This PR adds a minor note about needing to compile rust-g to Linux building instructions. I'm not sure if this is the appropriate place for it, but I don't see a better place to put it.
2021-03-26 10:10:28 +13:00
Mothblocks
a6280d2e39 Create explicit warning if not building with CBT (#57931)
Adds a new CBT define which is automatically created when building. If this define is absent, the build will fail.

This is what Cyberboss tried to do with USE_BUILD_BAT_INSTEAD_OF_DREAM_MAKER.dm, but couldn't.

The reasoning behind this is CBT is already a requirement to build a fresh project, otherwise the tgui bundle files won't exist. This gives a readable error to go along with that. However, you can currently build once then just use Dream Maker. This is a footgun - not only are we already adding new things to CBT like tgfont which will fail later on, but also it will create weird scenarios when we add tasks to CBT that don't immediately fail if not ran, or otherwise create out of sync builds.

Also replaces rmSync with unlinkSync, which works on older Node versions.

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2021-03-25 18:48:07 +02:00
Aleksej Komarov
8080a5132c tgui: ESLint and VSCode settings improvements (#57905)
Added column 80 rulers to all javascript and scss files.
    Added a "prettier" config to have sensible defaults for those who prefer to use it.
    Added RadarJS (fork of SonarQube's SonarJS). Launchable only via bin/tgui --lint-harder for now.
    Disabled ESLint rule for parens around arrow function arguments, because in TypeScript they're pretty much always required, and I don't want to replace it throughout the codebase.
    Removed unused javascript extensions from tooling (jsx, mjs).
2021-03-23 23:35:19 +00:00
dependabot[bot]
0c44a62712 Bump pillow from 7.2.0 to 8.1.1 in /tools (#57906)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 7.2.0 to 8.1.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/7.2.0...8.1.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 03:58:36 +02:00
AnturK
2e205388f7 Fixes TGS compiles on windows. (#57834)
Batch quotes strike again.
2021-03-19 18:55:59 +00:00
AnturK
7fef33c459 Adds easy to extend custom svg font. (#57717)
Just throw in svgs into tgui/packages/tgfont/icons directory and you can use them in tgui with tg- prefix.

Co-authored-by: Style Mistake <stylemistake@gmail.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
2021-03-18 15:20:59 +02:00
AnturK
3d19fd4edf Fixes build script failing properly on windows. (#57623) 2021-03-11 19:46:06 +02:00
Timberpoes
8ddc681116 Remove tweak, add qol (#57509) 2021-03-07 22:00:42 -08:00
Aleksej Komarov
9c9cdfac8a Check node version in CBT (#57461) 2021-03-06 14:42:37 -08:00
Mothblocks
99075269ff Remove the PR balances part of the webhook (#57299)
The action has been working fine, and every bug its had has been solved not with disabling it, but with me resolving it. There's no reason to keep around the old system anymore. Viva la actions.
2021-03-02 18:21:07 -05:00
AnturK
df610c66a5 Fixes build destructuring false (#57287) 2021-02-28 13:21:04 -05:00
Aleksej Komarov
c474392ff3 More robust checking of DM paths (#57277) 2021-02-28 14:41:39 +01:00
Aleksej Komarov
21d5a65346 Fix a number of build issues (#57251)
* Fix finding of dreamseeker instances and not die on cache copy failures

* Upgrade dependencies, resolve webpack dependencies explicitly

* Preload tgui asset to fix reloading of a not yet sent tgui asset

* Rewrite node bootstrap and DM build task

* Redundant array accessor

* Add install-state.gz to tgui build dependencies

* Update build.js

* Use a proper dmlang vscode var
2021-02-28 14:24:34 +01:00