Commit Graph

8 Commits

Author SHA1 Message Date
Ghom
3a8592d258 Improves mob resizing (and UpdatePaths). (#75892) 2023-06-08 11:59:30 -06:00
AnturK
9d19d0dcc9 Makes update paths remove keys left after merging. (#66916)
Fixes #66914
2022-05-13 07:55:11 -07:00
AnturK
3a5050a8d9 Adds deletion functionality to update paths script. (#66506)
Sometimes actually needed in the update scripts but wasn't supported properly.
2022-05-03 00:56:16 -07:00
MrMelbert
f9d2cfb966 Adds support for simple subtype repathing for UpdatePaths scripts (#66469) 2022-04-24 21:32:43 -07:00
esainane
def9f08b4b UpdatePaths: Handle lists containing strings (#62595)
* UpdatePaths: Handle lists containing strings

The split_re regex considers two alternatives when splitting out property
values.
The first alternative, "(?:.+?)" looks for a value that starts and
ends with a double quote, containing any characters between, but using
the smallest length possible.
The second alternative, [^";]* looks for a value that does not contain
any double quotes or semicolons.

Neither of these cases will handle a value such as network = list("fsc");

To handle this case without a major rewrite, the second alternative is
updated to [^"][^;]+ which looks for a value that does not start with a
double quote and does not contain a semicolon.

* UpdatePaths Support @OLD;... too

This strips the trailing semicolon, if present, which it will be if
you're overriding an old value after specifying @OLD.

* UpdatePaths: Handle single char case

Whoops
2021-11-17 09:38:32 +13:00
Fikou
f6dfc68360 repaths plasteel tiles to iron (#56644)
Repaths plasteel tiles and turfs to iron. We're in too deep to back out now
2021-02-06 13:53:08 -08:00
AnturK
a1c11adb41 Aquarium fish improvements (#56573)
Co-authored-by: coiax <yellowbounder@gmail.com>
Co-authored-by: Mothblocks <35135081+Jared-Fogle@users.noreply.github.com>
2021-02-04 00:55:18 -08:00
Tad Hardesty
67b4aa190e Use portable Python for map merge hooks, other tools (#55658)
* Add tools/bootstrap/python

* Add dependencies.sh entry for Python

* Use bootstrapped Python for HitboxExpander

* Use bootstrapped Python when installing hooks

Also:
- Adds tools/hooks/Uninstall.bat
- Removes the need to re-run Install.bat when a .hook file changes

Python path temporarily includes tools/mapmerge2 as before:
- PYTHONPATH in tools/hooks/python.sh handles Linux/virtualenv
- python36._pth handles Windows portable

* Move DMI merge driver to its own directory

* Use bootstrapped Python for makeChangelog.bat

* Set window title in bootstrap PS scripts

* Use slashes in hook paths

* Use relative imports in mapmerge2

* Use bootstrapped Python for mapmerge

* Update mapmerge2 readme

* Skip non-3way conflicts

* Fix relative path issue in posthoc merger

* Add missing call and %* to .bat files

* When installing hooks, don't uninstall them all first

* Make dependencies.sh POSIX

* Move update_paths.py to its own folder

* Use line buffering for Python stdout/stderr

It was switching to fully-buffered mode due to being piped, meaning we
wouldn't see output until the script ended. This is undesirable.

* Use new path to dmi.test in CI suite

* Validate system Python version in bootstrap script

* Add install advice to bootstrap script

* Update path to requirements.txt in CI

* Add upgrader for existing installations
2020-12-22 22:22:15 +01:00