EHM Editor v2: Development thread

Discuss all aspects of editing the data and databases in EHM here. Have a question about the EHM Editor, EHM Assistant, editing the .cfg files, hex editing the .dat or .db files? Want to tweak the EHM exe file to change league rules/structure, start date etc? This is the place!
Forum rules
This is the forum to discuss all aspects of editing the EHM data and tweaking the game.

Have a bug or feature request for the EHM Editor? Post them in the EHM Editor thread. Please start a new thread or post in another thread if you have a question about how to use the EHM Editor.

Given the large number of questions on similar topics, we ask that you start a new thread for a new question unless you can locate a similar question in an existing thread. This will hopefully ensure that similar questions do not get buried in large threads.

Useful links: EHM 1 Assistant (Download) | EHM 1 Editor (Download) | EHM 1 Editor Tutorials | Editing Rules & Structures Guide | Converting EHM 2004 / 2005 DBs to EHM 1 | Converting an EHM 2007 DB to EHM 1 | Extra_config.cfg | Import_config.cfg | Player Roles
User avatar
archibalduk
TBL Admin Team
Posts: 20372
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

EHM Editor v2: Development thread

Post by archibalduk »

P.s. I can't remember if saving is still disabled in v2 but if it's not, please don't click Save in v2. It'll corrupt your database.
User avatar
archibalduk
TBL Admin Team
Posts: 20372
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

EHM Editor v2: Development thread

Post by archibalduk »

This is probably of limited interest but Alpha.3 of EHM Editor v2.0.0 is now available here: https://github.com/archibalduk/Eastside ... lpha.3.zip

Three really important points to flag:
  • Whatever you do, DO NOT CLICK ON SAVE OR SAVE AS. It will likely irretrievably corrupt your database. Please only use the Editor for viewing/exporting/testing.
  • The Editor takes a few seconds to load. I need to look into why this is. It will either be because of the new theme manager which applies the light/dark mode style or because the Editor now includes the Chromium web engine (see point below). I'll see if I can add a splash screen whilst the Editor loads up.
  • The Editor is now packaged with the Chromium webengine as this is used to generate the PDF Database Report mentioned below. Essentially the Editor generates the report in html/css which is then printed to PDF using Chromium. This has substantially increased the overall size of the Editor to just over 100mb.
A lot has changed since the release of Alpha.2 back in March 2022. I've tried to put together a summary of the main changes below. A lot of work has been on behind-the-scenes stuff which I haven't included below.

KNOWN ISSUES
  • The Playable Leagues screen has not yet been implemented and it currently lists lots of zeros;
  • Dark mode is working but needs polishing;
  • There's still an issue with dates when importing spreadsheets. I think this is due to a difference between Windows 10 and 11;
  • Mass editing large volumes of Staff data is still slow;
  • Certain input tables require polishing/tidying. Their design is partly dependant on how I end up laying out the Playable Leagues editing screen; and
  • Rebuilding the database doesn't yet update UIDs which means Flags and the list of divisions in Schedule Templates go out of sync.
SUMMARY OF CHANGES

General
  • Dark mode is working but needs polishing;
  • General performance improvements when rebuilding the database (multi-threading);
  • Implemented caching of certain dynamically created fields (e.g. draft and league rights filtering of staff) which substantially improves filtering performance);
  • Database Report/Guide PDF generation via Database -> Database Report. This generates what is intended to be reference guide for the database. Currently it creates a section detailing nation-by-nation data (e.g. player/non-player counts and league lists) and I want to eventually include league and team/depth chart sections. The formatting/layout is a work in progress;
  • Various user interface tweaks; and
  • Various minor bugfixes and a crash fix.
File / Spreadsheet Handling
  • Version 1.5 database format is supported;
  • Database and spreadsheet files can be dragged and dropped into the Editor;
  • Databases can be closed and a new one opened in the Editor;
  • Multiple instances of the Editor can be run at the same time without conflict;
  • The entire database can be loaded and saved;
  • Minor performance improvements when exporting to csv (multi-threading);
  • Csv spreadsheets can be imported using Utf-8 (this must be enabled via File -> Settings;
  • Csv importing automatically detects Utf-8 when importing; and
  • Csv supports text qualifiers in order to allow commas or semi-colons in text without breaking the column layout.
Editing
  • Added all editing screens other than Playable Leagues (aka Rules & Structures);
  • All filters from Editor v1 are implemented (e.g. draft and league rights filtering of staff);
  • All mass editors from Editor v1.1.8 are implemented;
  • Most database validation functions from Editor v1 are implemented other than in respect of UIDs; and
  • Club competitions include assigned club counts and assigned club filtering.
Post Reply