Commit graph

40 commits

Author SHA1 Message Date
turleypol
bce1154d7a
ClangTidy readability-else-after-return (#857)
* trigger tidy

* Automated clang-tidy change: readability-else-after-return

* compile test

* rerun

* Automated clang-tidy change: readability-else-after-return

* trigger..

* Automated clang-tidy change: readability-else-after-return

* manually removed a few

* Automated clang-tidy change: readability-else-after-return

* removed duplicate code

* fix remaining warnings

* fixed scope

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-18 09:35:52 +01:00
turleypol
21577d8e5b
Clang Tidy concat namespaces (#855)
* tidy

* Automated clang-tidy change: modernize-concat-nested-namespaces

* compile test

* fix namespace

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-17 10:30:21 +01:00
turleypol
c882c42a31
misc clang-tidy (#853)
* trigger tidy

* Automated clang-tidy change: modernize-use-equals-delete,modernize-make-shared,modernize-make-unique,modernize-use-constraints,readability-container-size-empty,modernize-redundant-void-arg,modernize-use-emplace

* removed non needed macros

* missed to disable tidy build

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-16 12:22:43 +00:00
turleypol
bc9064c338
Clang Tidy default constructor (#852)
* trigger clang tidy

* Automated clang-tidy change: modernize-use-equals-default

* compile test

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-15 22:31:14 +01:00
Reloecc
d0df64becf
DiscardedWaterTiles config for uoconvert (#830) (#831)
Added uoconvert.cfg element StaticOptions extended by DiscardedWaterTiles. Lists
the tiles that will be discarded during the processing of solid statics, where
the map is at or below the same Z level as the static, allowing boats to bump
into shores. Defaults to tiles in the range from 0x1796 to 0x17B2 if not present
in the config file.
2025-12-14 17:55:55 +01:00
turleypol
fb3faddeae
use c++20 (#799)
* use c++20
* increased used clang version
* compiler report and logfacility use now compile time formatting, which
means that the formatstring gets checked at compile time. (which found 2 errors)
adapted a few places since report only accepts formatting arguments
adapted a few places with logging since char[] is compile time
formatting and string or chr* is runtime formatting
* use std::ranges instead of boost
* disabled pragma_assume vs specific macro (I guess noone cares)
* needed to fix ancient ms exception code
* modernized SpinLock
* removed unused code in ECompile
* replaced std::filesystem::path::u8string with string. It now returns an actual u8string type
* cleanup layers.h added the defines for other layers which where before
  only defined in the pkt
* osmod::OpenConnection and HTTPRequest cleanup: early outs, dont check for pChild which is
  only needed for startscript and placed suspend at the very last
  position

* fix warning

* rebuild cache with new compiler version

* define c++ standard for external libs where possible

* added fixme
2025-08-01 21:40:10 +02:00
Kevin Eady
d03e1c80b6
uoconvert improvements for supporting MultiCollections.uop (#776)
- Add uoconvert support for MultiCollection.uop
- Allow multiple elements in MultiTypes and Mounts in uoconvert.cfg
- Simplify entries in uoconvert.cfg to remove House and Stairs properties in the MultiTypes element
2025-04-15 12:03:35 +02:00
turleypol
7e07fbe33a
moved polcfg to plib (#732)
removed unused remainings of incremential save
2024-11-03 14:37:38 +01:00
turleypol
9d2bf0ec60
replaced all uppercase hex formatting with lowercase variant (#645) 2024-05-05 09:13:12 +02:00
turleypol
d848deae18
POLLOG* macros use the new formatting (#598)
* POLLOG* macros use the new formatting
removed all old logging functions

* removed old fmt lib from everything except StreamWriter
removed unneeded functions

* fixed review comments
2024-01-16 17:55:42 +01:00
turleypol
0e675c516a
use new formatter for ERROR_PRINT, added ERROR_PRINTLN (#595)
* use new formatter for ERROR_PRINT, added ERROR_PRINTLN

* remove old log define

* fix comments
2024-01-12 06:51:44 +01:00
turleypol
43b776b94d
New format lib version (#592)
* renamed include guard to be able to use both format lib versions in
parallel

* build Fmt lib and link it into clib

* use std::string instead of format Writer for logging
added variant "2" for logging with new fmt lib

* use new logging variant for two logs

* always add \n to flush log, lets see if the assumption holds

* use new lib for tostring

* replaced all INFO_PRINTS in clib

* formatter for Token, BObject and BObjectImp

* started with bsccript

* use function instead of actual object for logging

* remaining bscript, started plib

* logvariant without newline added, more template magic

* format support for base types, added test for format padding
new version for fdump

* chanhed ecompile/runecl fixed compilation with ESCRIPT_PROFILE

* rewrite INFO_PRINT in plib,poltool/uoconvert/uotool

* replaced remaining INFO_PRINTS, renamed macros INFO_PRINT for logging
without newline, INFO_PRINTLN for newline addition.
Replaced also INFO_PRINT_TRACE and renamed it to INFO_PRINTLN_TRACE

* gitignore for fmt lib

* cleanup vim leftovers
2024-01-10 18:29:10 +01:00
Fernando Rozenblit
4ac5eac48f
Uoconvert improvements 3 (#561)
---------

Co-authored-by: Kevin Eady <8634912+KevinEady@users.noreply.github.com>
2023-11-23 01:15:52 +01:00
Admin-Yukiko
fcadf1428f
Added to uoconvert: Surface the partial hue flag in tiles.cfg for art that has the flag et in tiledata, eg. PartialHue 1. (#473)
Co-authored-by: Admin-Yukiko <hopelivesproject@gmail.com>
2022-08-26 08:18:42 +02:00
turleypol
fe301c82ea
Misc test preparation improvements and fixes (#196)
* uodir parameter for uoconvert tiles/landtiles/multis
limit decay sleeptime to 500ms
exit_code cannot be "fixed" with a later call
2020-08-09 15:10:52 +02:00
Kevin Eady
162f9b1dce fix loop, namespace, trimming 2020-01-12 19:56:27 +01:00
Kevin Eady
74666b02a6 Read pol.cfg UoDataFileRoot from Windows Registry 2020-01-12 19:42:16 +01:00
Admin\Me
65b0f29a90 Added: uoconvert.exe will now surface the AnimID for equippables to tiles.cfg. This can be used to look-up the gump pic for wearables that are displayed on the paper doll. Add this number to 50000 for male gumpart or 60000 for female gump art. The resulting number will be the gump art that is displayed in the paper doll. 2019-02-02 02:57:43 -06:00
Fernando Rozenblit
50341fa6f2 It's starting to look more civilized :P 2019-01-23 01:04:38 +01:00
Fernando Rozenblit
8479fadc0f More uoconvert cleanup 2019-01-23 00:06:05 +01:00
Fernando Rozenblit
563c53f534 Removing dead code 2019-01-22 23:51:51 +01:00
Fernando Rozenblit
474b08141d Starting cleanup of uoconvert's code 2019-01-22 23:51:19 +01:00
turleypol
25dae4fc21 fixed namespaces of moved files 2018-12-22 00:32:47 +01:00
turleypol
e1b14dcd00 moved polfile/uofile files into plib to cleanup atleast a bit the
compile dependencies
2018-12-21 20:27:05 +01:00
turleypol
0d4cca785d cleanup of compilerspecifics, ancient compilers arent supported.
ran tidy to use bools instead of ints
2018-11-03 13:14:53 +01:00
turleypol
a5e6206164 Added cmake option to run clang-tidy
used everywhere nullptr
2018-10-09 16:36:35 +02:00
turleypol
f28e4d65ef Fixed compiler warnings 2018-03-18 16:57:00 +01:00
Fernando Rozenblit
a6dcfd4e92 Secret conversion function was failing to compile on linux... 2018-02-26 23:34:33 +01:00
Fernando Rozenblit
4fd9572b75 Finished docs for UOP support in uoconvert. UOP files will be used by default. 2018-02-26 23:04:48 +01:00
Fernando Rozenblit
5116f85acc UOP is mostly done. Needs some documentation and changelogs, but would be enough for testing now. 2018-02-20 00:59:33 +01:00
Fernando Rozenblit
0cb233172b Moved uop handling to plib and started refactoring old map-handling code 2018-02-19 21:31:52 +01:00
Fernando Rozenblit
8de691745c Added a simple command ("uoptomul") to test out the uop parsing. It takes "mapid" as a parameter and converts the "map[mapid]LegacyMUL.uop" to "map[mapid].mul". I'll probably move it into uotool later ;) 2018-02-19 18:35:20 +01:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
frozenblit
b52cc332b8 Uoconvert was ignoring the pol.cfg values for MaxTileID
This code really needs some refactoring...!! The change works because a
default value is set for max_tile_id when starting uoconvert.
2016-10-14 11:17:45 +02:00
turley
189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
turley
0293599380 Corrected some virtual overrides, re-activated corresponding warning.
Plus some other warning corrections
2015-12-26 17:39:58 +01:00
turley
44d1a2d37d Corrected uoconvert parameter parse 2015-12-25 14:13:37 +01:00
frozenblit
b3b9bb1fb6 Removing dependence on useless includes.
Preparing to reorganize the uofile code by removing useless includes
from the rest ;)
2015-12-04 00:50:14 +01:00
Thomas Volkert
7c2016ff25 Fixed uoconvert 2015-11-14 11:39:26 +01:00
Thomas Volkert
4ddca6cda3 Added uoconvert to the build process 2015-11-14 00:25:39 +01:00