From 4c65a8fd8700df648c7027fcc7a94bb9dd2c50ec Mon Sep 17 00:00:00 2001 From: Charlie Whitfield Date: Fri, 27 Dec 2024 13:24:32 -0500 Subject: [PATCH 1/2] Update copyright for 2025 --- LICENSE.txt | 2 +- editor_import_plugin.gd | 2 +- editor_plugin.gd | 2 +- table_data.gd | 2 +- table_modding.gd | 2 +- table_postprocessor.gd | 2 +- table_resource.gd | 2 +- tables_plugin_utils.gd | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index a836fe5..718438d 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright 2017-2024 Charlie Whitfield; I, Voyager is a registered trademark of Charlie Whitfield in the US +Copyright 2017-2025 Charlie Whitfield; I, Voyager is a registered trademark of Charlie Whitfield in the US Apache License Version 2.0, January 2004 diff --git a/editor_import_plugin.gd b/editor_import_plugin.gd index 0c7e5bb..c01d01f 100644 --- a/editor_import_plugin.gd +++ b/editor_import_plugin.gd @@ -2,7 +2,7 @@ # This file is part of I, Voyager # https://ivoyager.dev # ***************************************************************************** -# Copyright 2017-2024 Charlie Whitfield +# Copyright 2017-2025 Charlie Whitfield # I, Voyager is a registered trademark of Charlie Whitfield in the US # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/editor_plugin.gd b/editor_plugin.gd index 965ee12..0f3d728 100644 --- a/editor_plugin.gd +++ b/editor_plugin.gd @@ -2,7 +2,7 @@ # This file is part of I, Voyager # https://ivoyager.dev # ***************************************************************************** -# Copyright 2017-2024 Charlie Whitfield +# Copyright 2017-2025 Charlie Whitfield # I, Voyager is a registered trademark of Charlie Whitfield in the US # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/table_data.gd b/table_data.gd index a60787d..7e61f6e 100644 --- a/table_data.gd +++ b/table_data.gd @@ -2,7 +2,7 @@ # This file is part of I, Voyager # https://ivoyager.dev # ***************************************************************************** -# Copyright 2017-2024 Charlie Whitfield +# Copyright 2017-2025 Charlie Whitfield # I, Voyager is a registered trademark of Charlie Whitfield in the US # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/table_modding.gd b/table_modding.gd index a243515..bcf6940 100644 --- a/table_modding.gd +++ b/table_modding.gd @@ -2,7 +2,7 @@ # This file is part of I, Voyager # https://ivoyager.dev # ***************************************************************************** -# Copyright 2017-2024 Charlie Whitfield +# Copyright 2017-2025 Charlie Whitfield # I, Voyager is a registered trademark of Charlie Whitfield in the US # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/table_postprocessor.gd b/table_postprocessor.gd index 6cd0fe2..1a2eeb3 100644 --- a/table_postprocessor.gd +++ b/table_postprocessor.gd @@ -2,7 +2,7 @@ # This file is part of I, Voyager # https://ivoyager.dev # ***************************************************************************** -# Copyright 2017-2024 Charlie Whitfield +# Copyright 2017-2025 Charlie Whitfield # I, Voyager is a registered trademark of Charlie Whitfield in the US # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/table_resource.gd b/table_resource.gd index 87f75e5..279b2b2 100644 --- a/table_resource.gd +++ b/table_resource.gd @@ -2,7 +2,7 @@ # This file is part of I, Voyager # https://ivoyager.dev # ***************************************************************************** -# Copyright 2017-2024 Charlie Whitfield +# Copyright 2017-2025 Charlie Whitfield # I, Voyager is a registered trademark of Charlie Whitfield in the US # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tables_plugin_utils.gd b/tables_plugin_utils.gd index f9b1ff8..3d78901 100644 --- a/tables_plugin_utils.gd +++ b/tables_plugin_utils.gd @@ -2,7 +2,7 @@ # This file is part of I, Voyager # https://ivoyager.dev # ***************************************************************************** -# Copyright 2017-2024 Charlie Whitfield +# Copyright 2017-2025 Charlie Whitfield # I, Voyager is a registered trademark of Charlie Whitfield in the US # # Licensed under the Apache License, Version 2.0 (the "License"); From 1cea343b1f6536318eda4d256a3374f83cb57dd4 Mon Sep 17 00:00:00 2001 From: Charlie Whitfield Date: Tue, 7 Jan 2025 10:49:57 -0500 Subject: [PATCH 2/2] Bump v0.0.1 with readme, changelog updates --- CHANGELOG.md | 9 +++++---- README.md | 14 +++++++------- plugin.cfg | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8d1841..951bc68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,13 @@ # Changelog -File format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +This file documents changes to [ivoyager_tables](https://github.com/ivoyager/ivoyager_tables). +File format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## v0.0.1 - 2024-12-20 +## v0.0.1 - 2025-01-07 Developed using Godot 4.3. -This plugin resulted from splitting plugin 'ivoyager_table_importer' into two plugins, 'ivoyager_tables' and 'ivoyager_units'. +This plugin resulted from splitting the now-depreciated [Table Importer](https://github.com/ivoyager/ivoyager_table_importer) (v0.0.9) into two plugins: [Tables](https://github.com/ivoyager/ivoyager_tables) (v0.0.1) and [Units](https://github.com/ivoyager/ivoyager_units) (v0.0.1). -v0.0.1 is almost a 'drop-in' replacement for ''ivoyager_table_importer' v0.0.9. The main breaking change is in the method signature for postprocess_tables(). The order is changed and you now MUST supply a unit coversion method (you probably want the one in the 'Units' plugin). +v0.0.1 is almost a "drop-in" replacement for ivoyager_table_importer v0.0.9. The main breaking change is in the method signature for postprocess_tables(). The order is changed and you now MUST supply a unit coversion method (you probably want the one in the ivoyager_units plugin). diff --git a/README.md b/README.md index 8c6df7f..f691968 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # I, Voyager - Tables -TL;DR: This Godot Editor plugin imports tables like [this](https://github.com/ivoyager/ivoyager/blob/master/data/solar_system/planets.tsv) and provides access to processed, statically typed data. It can impute defaults, convert floats by specified units, prefix text, convert text enumerations to integers, and more! +TL;DR: This Godot Editor plugin imports tables like [this](https://github.com/ivoyager/ivoyager_core/blob/master/data/solar_system/planets.tsv) and provides access to processed, statically typed data. It can impute defaults, convert floats by specified units, prefix text, convert text enumerations to integers, and more! This plugin works best in combination with our [Units](https://github.com/ivoyager/ivoyager_units) plugin. You can use it without that plugin, but you will need to supply your own unit coversion method to use any units functionality. @@ -69,13 +69,13 @@ For debugging or work-in-progress, you can prevent any imported table from being #### Comments -Any line starting with "#" is ignored. Additionally, entire columns are ignored if the column "field" name begins with "#". +Any line starting with "#" is ignored. Additionally, entire columns are ignored if the column field name begins with "#". #### General Cell Processing -All cells are stripped of double-quotes if they enclose the cell on both sides. These are silently added by some editors. +All cells are stripped of double-quotes if they enclose the cell on both sides (these are silently added by some editors). -Spaces are edge-stripped from cells and cell elements. ("Cell element" refers to comma- or semicolon-delimited data within cells of certain types, such as VECTORx, COLOR, and ARRAY[xxxx]). +Spaces are edge-stripped from cells and cell elements ("cell element" refers to comma- or semicolon-delimited data within cells of certain types, such as VECTORx, COLOR, and ARRAY[xxxx]). #### Data Types @@ -118,7 +118,7 @@ Most .csv/.tsv file editors will "interpret" and change (i.e., corrupt) table da ## DB_ENTITIES Format -[Example Table](https://github.com/ivoyager/ivoyager/blob/master/data/solar_system/planets.tsv) +[Example Table](https://github.com/ivoyager/ivoyager_core/blob/master/data/solar_system/planets.tsv) Optional specifier: `@DB_ENTITIES[=]` (table_name defaults to the base file name) Optional directive: `@DONT_PARSE` @@ -135,7 +135,7 @@ After field names and before data, tables can have the following header rows in * `Type` (required): See data types above. * `Default` (optional): Default values must be empty or follow Type rules above. If non-empty, this value is imputed for any empty cells in the column. * `Unit` (optional; FLOAT fields only): The data processor recognizes a broad set of unit symbols (mostly but not all SI) and, by default, converts table floats to SI base units in the postprocessed "internal" data. Default unit conversions are defined by "unit_multipliers" and "unit_lambdas" dictionaries [here](https://github.com/ivoyager/ivoyager_table_importer/blob/master/singletons/units.gd). Unit symbols and/or internal representation can be changed by specifying replacement conversion dictionaries in the `postprocess_tables()` call. -* `Prefix` (optional; STRING, STRING_NAME and INT fields only): Prefixes any non-empty cells and `Default` (if specified) with provided prefix text. To prefix the column 0 implicit "name" field, use `Prefix/`. E.g., we use `Prefix/PLANET_` in [planets.tsv](https://github.com/ivoyager/ivoyager/blob/master/data/solar_system/planets.tsv) to prefix all entity names with "PLANET_". +* `Prefix` (optional; STRING, STRING_NAME and INT fields only): Prefixes any non-empty cells and `Default` (if specified) with provided prefix text. To prefix the column 0 implicit "name" field, use `Prefix/`. E.g., we use `Prefix/PLANET_` in [planets.tsv](https://github.com/ivoyager/ivoyager_core/blob/master/data/solar_system/planets.tsv) to prefix all entity names with "PLANET_". #### Entity Names @@ -181,7 +181,7 @@ As for DB_ENTITIES, you can obtain row_number from the "enumerations" dictionary ## WIKI_LOOKUP Format -[Example Table](https://github.com/ivoyager/ivoyager/blob/master/data/solar_system/wiki_extras.tsv) +[Example Table](https://github.com/ivoyager/ivoyager_core/blob/master/data/solar_system/wiki_extras.tsv) Required specifier: `@WIKI_LOOKUP[=]` (table_name defaults to the base file name) Optional directive: `@DONT_PARSE` diff --git a/plugin.cfg b/plugin.cfg index 98a33dd..b385c32 100644 --- a/plugin.cfg +++ b/plugin.cfg @@ -3,5 +3,5 @@ name="I, Voyager - Tables" description="Imports formatted .tsv tables and provides access to processed, statically typed data. Data processing imputes defaults, prefixes strings, converts floats by specified units, and converts text enumerations to integers (enumerations can be project or table-defined), ... amongst other things" author="Charlie Whitfield" -version="v0.0.1.dev" +version="v0.0.1" script="editor_plugin.gd"