Commit Graph

33 Commits

Author SHA1 Message Date
Alex 'Avunia' Takiya
bea83b2999 [MANUAL MIRROR] Use portable Python for map merge hooks, other tools / Add .dmm merge driver (#2681)
* Use portable Python for map merge hooks, other tools (#55658)

* Add .dmm merge driver (#55699)

This is kind of a prototype. It only fully handles a few situations, 
and doesn't produce particularly easy-to-read conflict markers when it 
fails. I hope that it can be useful at least some of the time, can be 
improved over time, and that the lessons learned can influence a future 
interactive GUI conflict resolver (integrated into StrongDMM?). In the 
worst case, one can fall back to the tried and true "manually re-do one 
side's changes" strategy. 

**Automatic use**: In `tools/hooks/`, run `Install.bat`

**Manual use**, for Git GUIs that don't run merge drivers: while a 
merge is in progress, in `tools/mapmerge2/`, double-click `Resolve Map 
Conflicts.bat`

This PR also removes the error-prone "Prepare Maps.bat" / 
"mapmerge.bat" workflow. Those who aren't using the hooks should 
instead use `Run Before Committing.bat` before committing. First-time 
contributors who opened a PR without map merging can be advised to run 
`I Forgot To Map Merge.bat`.

* Fix loose double-quot in tradership_faction.dmm

Co-authored-by: Tad Hardesty <tad@platymuus.com>
2021-01-14 16:52:24 +01:00
SkyratBot
fc4353c695 [MIRROR] Optimize mapmerge's DMM.generate_new_key method (#2638)
* Optimize mapmerge's DMM.generate_new_key method (#56068)

Tested on #55867, takes the merge driver's runtime from 148.1s to 4.8s

* Optimize mapmerge's DMM.generate_new_key method

Co-authored-by: Tad Hardesty <tad@platymuus.com>
2021-01-12 01:44:56 +01:00
SkyratBot
d7f054b035 [MIRROR] Refactors monkeys into a species (#2379)
* Refactors monkeys into a species

* aaa

Co-authored-by: Qustinnus <Floydje123@hotmail.com>
Co-authored-by: Azarak <azarak10@gmail.com>
2020-12-31 21:08:07 +01:00
SkyratBot
bb7f23fa99 [MIRROR] removes astplate flooring, adds it to turfs2decals script (#964)
* removes astplate flooring, adds it to turfs2decals script (#53868)

* removes astplate flooring, adds it to turfs2decals script

Co-authored-by: Fikou <piotrbryla@onet.pl>
2020-09-24 20:32:57 +02:00
SkyratBot
5cf715300d [MIRROR] Fix quote handling in dmi.py script and add it to CI (#799)
* Fix quote handling in dmi.py script and add it to CI (#53669)

* Handle escape sequences in .dmi metadata

* Improve dmi.py self-test functionality

* Add dmi self-test to CI

* Install requirements for CI

* Fix quote handling in dmi.py script and add it to CI

Co-authored-by: Tad Hardesty <tad@platymuus.com>
2020-09-14 11:22:18 +02:00
SkyratBot
c147e6bdfe [MIRROR] Pillow update (#369)
* Merge pull request #52971 from spookydonut/pillow

Pillow update

* Pillow update

Co-authored-by: nemvar <47324920+nemvar@users.noreply.github.com>
2020-08-17 14:50:59 +02:00
Tad Hardesty
4b6c2fd8ca Upgrade pip Pillow dependency to v7.1.0 (#52550) 2020-07-27 22:48:25 -04:00
spookydonut
6ab79efdf8 Update pillow to 7.0.0 2020-03-05 14:17:56 +08:00
Tad Hardesty
bff3dad979 Upgrade pygit2 dependency to v1.0.1 (#48693) 2020-01-10 20:43:00 +11:00
Arkatos
849ff29efb More duplicates removed, the rest of items fron issue fixed 2020-01-08 18:26:59 +01:00
TheVekter
da2b817e44 [READY] Moves Genetics to the Science department and makes Gen… (#48397)
* great googly moogly it's all gone to shit

* Fixed geneticist ID, moved in job list

* This is what I get for not building

* Fixed HUD sprite

* Finalized move to R&D code areas and updated sprites

* Mapping fixes on Meta

* Boxstation's turn and some Meta fixes

* Fixing map conflicts

* Moves genetics to science

SQUASHED:

great googly moogly it's all gone to shit

Fixed geneticist ID, moved in job list

This is what I get for not building

Fixed HUD sprite

Finalized move to R&D code areas and updated sprites

Mapping fixes on Meta

Boxstation's turn and some Meta fixes

Fixing map conflicts

* lmao travis

* okay you can pass travis this time

* DeltaStation changes

* lmao access bullshit

* Kilo also a few code/sprite fixes

* Pubbystation

* Removed gondolas because people hate fun
2020-01-02 06:15:35 -08:00
dependabot[bot]
b647d6eda4 Bump pillow from 5.1.0 to 6.2.0 in /tools/mapmerge2 (#47319)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 5.1.0 to 6.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/5.1.0...6.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-22 18:24:21 -07:00
Cameron!
86ee8d0917 Fixes Medical Doctors and Quartermasters spawning with the wrong uniforms (#45640)
Fixes Medical Doctors and Quartermasters spawning with the wrong uniforms
2019-07-31 18:45:11 -07:00
Rob Bailey
6a26744d83 Clothing /under repath (#45548)
About The Pull Request

repaths clothing/under to be more sane
Also fixed a couple of bugs relating to pathing being incorrect, and modified a couple of bad descriptions and names
Also adds a map path updating script, which also helps show the full repath.
Why It's Good For The Game

improves maintainability, makes mapping easier, stages for a clothing dmi split
Changelog

cl
refactor: repathed all under clothing, keep an eye out for errors
/cl
2019-07-30 19:20:21 +12:00
Tad Hardesty
8a365096bd Convert icons to RGBA in the icon merger (#44890)
* Mark dmi.merge and pre-commit.hook executable

* Convert icons to RGBA when merging
2019-07-03 19:38:09 +12:00
Tad Hardesty
48b42a9247 Fix mapmerge misreading maps with two columns per block 2019-04-14 18:18:52 -07:00
Tad Hardesty
1569642728 Fix incorrect APC pixel offsets in maps (#43539)
* Add additional functionality and logging to update paths script

* Fix incorrect APC pixel offsets
2019-04-11 10:47:30 +02:00
Tad Hardesty
bda114a536 Update pygit2 version to 0.27.2 2019-01-10 13:46:35 -08:00
WJohn
c3ad5fbd24 Fix shuttle rotation of decal corners (#42261)
Had to touch a lot of maps because their directions were wrong in the icons
file, so when I changed those every map that had these needed updating. I've
added a script called cornersfix to mapmerge2/map_scripts for downstream
servers.
2019-01-09 12:55:15 -08:00
Tad Hardesty
6a83eddc47 Ignore carriage returns in map files when mapmerging 2018-10-04 14:58:27 -07:00
WJohn
e54f1d5342 The great floor tile purge (#40065)
* Converts all colored plasteel tiles to turf decals.

* Removes now deprecated floor icons and paths.

* Hotfixes on three maps.

* Moves script to its own folder.

* Fixes wild west.

* Fixes holodeck

* Fixes eye rape bug.

* Fixes meta and lavaland biodome ruin having some missing textures.
2018-09-05 22:14:31 +03:00
Tad Hardesty
93186dc3ce Allow duplicate outputs in the path updater (#40072) 2018-09-04 15:26:34 -04:00
Tad Hardesty
df1098f6d9 Re-add script for updating map paths (#39907)
* Re-add script for updating map paths

* Handle duplicate values
2018-09-02 22:45:55 +02:00
Tad Hardesty
141f558102 Fix atom ordering problem in map files (#39889)
Fixes a major mapping error introduced in #39816 and adds handling to the map merger to prevent it from happening again.

Keys need to be ordered movables, then turf(s), then area, otherwise our map reader acts weird. In-game this manifests as floor being placed in the dirt's underlays, such that after floor is crowbarred to plating the floor is still visually present (this is how I noticed the problem).

Fixes #39888.

Some map files still have stacked turfs. Our map reader supports this but it tends to cause other problems (e.g. atmos) so I'll try to look at those in the future.

X=$(find _maps -name '*.dmm'); tools/hooks/python.sh -m convert $X
2018-08-25 17:48:24 +12:00
Tad Hardesty
5e20350374 Skip the map merger on merge commits (#39495) 2018-07-31 19:35:10 -04:00
Tad Hardesty
5bff724287 Fix typo in Python dependencies file (#38080) 2018-05-27 02:43:37 +03:00
Tad Hardesty
2106e3a1b2 Add a Python script to fix DMI conflicts
It hooks into git as a merge driver and automatically runs with merges.
It prints a log of what it did, and if any specific states are
conflicted it indicates them and does not mark the merge as successful.
The conflicting icon can then be opened in DreamMaker and the
conflicting states resolved there.
2018-05-21 15:37:52 -07:00
Dax Dupont
d55c1d7aad Fixes omega detective office + prepare_maps change (#36691)
* Fixes Omega Detectives office

* Mentions mapmerge isntead of run map merge
2018-03-25 16:52:14 -04:00
Jordan Brown
85c5a20e75 Removes Map Merge 1 (#35511)
* Removes Map Merge 1

* Add Prepare Maps.bat to mapmerge2
2018-02-11 14:03:29 -05:00
Tad Hardesty
0822afc05a Fix map keys overflowing earlier than expected 2018-01-29 23:26:25 -08:00
Tad Hardesty
60b39f9e39 Add READMEs to hooks and mapmerge2 directories (#34511) 2018-01-18 22:26:36 -05:00
Tad Hardesty
28436f36b5 Fix the batch file method of mapmerge2 and save a .before (#34361) 2018-01-12 10:43:06 -05:00
Tad Hardesty
9639061433 Add a new and improved mapmerge (#33869)
Key benefits of the new mapmerge include: multi-Z support, effective
reuse of deleted keys, automatic handling of key overflow, and utilizing
a git pre-commit hook to eliminate the need to run batch files manually.
2017-12-28 16:01:34 -05:00