Blank Affiliations file

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
Post Reply
User avatar
Animal31
Fourth Line
Posts: 441
Joined: Tue Sep 27, 2011 2:54 am
Favourite Team: Abbotsford Heat

Blank Affiliations file

Post by Animal31 »

I deleted my Affiliations file, and gave it a new blank file, and it loads in game properly, all affiliations gone

but the problem is that the pre game editor wont load, so I cant add new ones

does anyone have a process or a work around that doesnt involve editing every affiliation to two random teams that dont exist?
User avatar
archibalduk
TBL Admin Team
Posts: 20373
Joined: Tue Jul 06, 2004 8:44 pm
Custom Rank: Seaside + Fruit Juice Mode
Favourite Team: Guildford (EPL) / Invicta (NIHL)
Location: United Kingdom
Contact:

Re: Blank Affiliations file

Post by archibalduk »

I'm thinking it could be one of two things:

1) Did you update index.dat after you created the blank file? If not, download the Index Updater, place it in the same folder as your DB and run it (using the Run as Admin setting if you're in C:\Program Files\...etc).

2) If the above doesn't work, it'll be because the editor doesn't like there being zero records (I found the same issue if I try deleting all staff and/or all players - hence my Blank DB includes a couple of existing staff). You'll need to add one record to the affiliations file in order for the Editor to be happy. In which case, try the following:

2a) Download this and replace your existing affiliations.dat file with it.This is something I have made just now (and so I haven't tested it), but it should give you just the one affiliation. Hopefully this should be enough to get your DB loaded in the Editor. You can then change it to whatever you want.

2) Run the Index Updater as mentioned in 1) above. This will ensure index.dat is correct (as this needs to be updated whenever you manually add/remove records from a DB dat file).
User avatar
Animal31
Fourth Line
Posts: 441
Joined: Tue Sep 27, 2011 2:54 am
Favourite Team: Abbotsford Heat

Re: Blank Affiliations file

Post by Animal31 »

Yeah, I ran the indexer

And yeah that worked

You should put it in the Blank database folder when you get a chance, this could be useful to have, thanks
Post Reply