Commit Graph

16 Commits

Author SHA1 Message Date
Pieter-Jan Briers bebc077fcc
MapRenderer code fixes (#38357)
* Fix MapRenderer integration test usage to properly show output.

Added an ITestContextLike interface that can be used to properly run the integration test infrastructure OUTSIDE A TEST.

* Use System.Test.Json instead of Newtonsoft.Json for MapRenderer

* Fix map renderer JSON output being broken

I love not testing or even reading the surrounding code.

* Fix un-reusable integration instances getting leaked.

The pair state was always getting set to Ready even if the instance was killed, meaning it was getting put back into the pool even if killed.

* Mark map renderer integration instances as destructive to avoid memory leak.

* Fix file specification handling.

Map file specification is now backwards compatible again (loose filename match to search prototypes). It also supports proper direct OS filename arguments. The former is the fallback scenario is extremely important for the map server still.

Cleaned up the way that target map files are passed through the application, so mixed file/prototype specifications are now handled properly (which can be caused by the fallback behavior).

Fixes JSON data export to use the proper user-facing map name. This only works if a prototype ID is specified *or* the legacy file behavior is used.

Restructured MapPainter into an instance that has multiple functions called on it, so not all data has to be passed through a single Paint() call.

Clean up the godawful map/grid detection code. Now we just load both in a single call, because yes you can do that. This relies on LogOrphanedGrids = false in the map loader options, which I think is fine for our purposes.

Improved error handling in much of the program.

* Fix duplicate map names in map renderer output

I'm not sure *what* this output is used for, but I'm sure having it duplicated per grid isn't intentional.

* Make maprenderer command line parsing bail on unknown - options

* Fix incorrect docs for --viewer maprenderer argument

It doesn't change directory layout

* Fix parallax layer specification to not use imgur as a fucking CDN

Files are now copied to a separate folder _parallax, and these files are referenced by the parallax configuration.

Parallax data is only output when instructed to via --parallax.

This will break parallax on current map server builds, but it should be graceful. Also, that's fucking good considering we shouldn't be using imgur links. Purge it.

* Fix incorrect assert in test pair clean return

* Restore other map viewer parallax layers, fix attribution.

* This isn't a valid copyright statement but the validator forces me to enter something here.
2025-06-26 14:47:39 +02:00
Vlad d9542ae700
Map renderer rework (#37306)
* Update TilePainter.cs

* Add support for custom offsets, grid files, and markers

* Dynamic file category handling
2025-05-12 00:06:09 +10:00
Morb 4692d3ae48
Remove test maps from MapRender (#32649)
Remove test map prototypes from render list
2025-04-17 20:34:41 +10:00
Leon Friedrich 6e83c4d570
Update component query benchmarks (#27967)
* Add more component query benchmarks.

* Rename benchmark
2024-05-19 11:55:10 +10:00
Visne 3c667b6f7e
Remove obsolete TestPair.Pair (#19496) 2023-08-25 10:56:51 +10:00
TemporalOroboros 7cdc7ab972
Fix warnings in MapRenderer module (#17865) 2023-08-08 11:07:08 +10:00
Leon Friedrich 9c84108672
Change default test pooling options. (#18732) 2023-08-06 12:30:28 +10:00
Leon Friedrich d58786faf4
Remove PoolSettings.ExtraPrototypes option (#18678) 2023-08-05 14:16:48 +10:00
Julian Giebel ac99f4dd5e
Map renderer file name option (#12463)
* Add option for supplying map names instead of ids as argument

* Allow options to be used with the map selector
2022-11-08 08:03:34 -06:00
Mervill 920fde469d
QoL for the MapRenderer tool (#11921) 2022-10-15 00:10:53 +02:00
DrSmugleaf b62ee2b1b4
Add selecting maps to render when running MapRenderer, fix rendering multiple maps (#11783) 2022-10-09 16:36:18 +11:00
Julian Giebel 1390cd4019
Add webp and json generation options to the map renderer (#10367) 2022-08-13 22:50:03 -07:00
20kdc 0b613821be
Make the MapRenderer CLI usable, since all the bot apparatus was commented out anyway (#7669) 2022-04-28 21:55:51 +10:00
Moony b73621587a
Map renderer now supports large sprites and rotations. (#6938) 2022-03-01 17:23:28 -07:00
Kara D ee4c5559a3
Fix map renderer for multi-grid maps 2022-02-06 21:45:37 -07:00
Javier Guardia Fernández c30c8020e8
Add a map renderer (#3613)
Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2022-01-07 18:54:06 +01:00