The faction installer is something being worked on to expand the coverage of a potential future custom battle pack by allowing for an AUH faction to be inserted into any mod of choice fairly simply(for the end user, not so much for me) to be pitted against other mods' factions. Currently writing it in Python which I don't have a hell of a lot of experience in, so kind of feeling my way around as I go.
Functions Required
Each file that governs the adding of a faction needs to be read and edited to insert the new faction/s. Some files have different needs in this respect for the most efficiency.
Folders
- Check to insure each of: /text, /models_strat/textures, /loading_screen/symbols, /unit_models, /unit_sprites, /menu, ui/unit, ui/unit_info, ui/captain banners ... exist, if not create them.
descr_cultures
- Check culture types available to append faction entry, if file doesn't exist assume vanilla cultures
descr_religions
- Check religion types available to append faction entry, if file doesn't exist assume vanilla religions
descr_sm_factions
- Insure the file exists, if it doesn't throw up incompatibility
- Check for # of faction entries to insure there's room to add factions
- Check the number of factions available in custom battles and prompt the ability to set one to No if full
- Utilize a standard_index and logo_index utilized by another faction in the mod being written to
- Append faction entries
descr_banners_new
- Append with banner entries and add banner files or copy from a pre-existing faction
descr_character
- Create junk entries as faction is not to be enabled on the campaign map, requires insertion within file scheme
descr_lbc_db
- Append faction entry
descr_model_strat
- Create junk entries corresponding to descr_character entries
descr_names
- Append faction names entries
names
- Append faction names string entries
expanded
- Append faction string entries
campaign_descriptions
- Append faction string entries
descr_offmap_models
- Append faction entry
descr_faction_movies
- Append faction entry
descr_win_conditions
- Append faction entry
descr_sounds_music_types
- Add faction to factions line of first entry
descr_strat
- Add faction name to end unplayable list
export_descr_unit
- Insure the file exists, if it doesn't throw up incompatibility
- Check file for # of unit entries to insure there's room under 500 to add the units.
- Cope with commented out entries so they aren't counted
- Append unit entries to end of file
- Modify entries or use separate entries in a list array to conform to a few of the more popular mods stat systems
battle_models.modelsdb
- Determine unit count at top of file
- Add unit and mount entries, mounts need to be inserted below other mount entries
- Append unit count to previous + # units added
descr_skeleton
- Need to figure out a way to tie this in with the bmdb to insure the animation lines work. Possibly append, if doesn't exist then copy vanilla and append.
FILES
- Add unit model/texture/sprite files, logo files, and any other non-junk referenced files
- Something has to be done about the effects file
GUI
- Tie functions into GUI
- Start by prompting for a selection of mods from list or Other to take any special tweaks
- Throw up interactive error reports and resolution options
BACKUP
- Backup previous files to *_auh.bak
- Include uninstallation procedure






Reply With Quote







