2nd PRIZE WINNER = UFO: Afterlight Resource Scrambler 1.2

Description

This is the version 1.2 of a resource scrambler for the game UFO: Afterlight. It will create a mod with modified locations of resources.<br /><br />Changes in v1.2:<br />- Code reworked from scratch. Was too messy for proper implementation of new improvements.<br />- Removed the implementation of switches and other command-line options. I've opted to focus on building editable configuration files.<br />- Hardcoded the pre-assigning of minimum resources. Will eventually become editable via configuration files.<br />- Hardcoded a maximum density of resources per distance group while assigning new resources. Will also eventually become editable via configuration files.<br /><br />Changes in v1.1:<br />- Made the output vfs file optional.<br />- Many internal code restructuring for easier later recoding.<br />- First optional switch added '--fuel:'<br />- Modified 'TSLcoor.cfg' to remove redundant data (faster loading of the file)<br /><br />Requirements: The tool requires the presence of these 4 cfg files included in the zip:<br />- resource.cfg (Contains the number of mines available per class and type)<br />- basedistance.cfg (Contains the list of territories with their Id number and their distance from the player's base)<br />- TSLcoor.cfg (Contains a list of coordinates for each 'slottype' that exists in all the territories) [Last modified in v1.1]<br />- territory.cfg (merely a copy of the game's territory.txt)<br /><br />Usage: alrs<br /><br />IMPORTANT NOTE A: Currently, the tool has no vfs packing module so it will try to call for UFOvfs.exe (Altar's tool) or vfstool.exe (Sigget's tool) once it's generated the files for the mod. If you use another tool for this then you can manually pack the folder the tool creates, called 'alrs'.<br />IMPORTANT NOTE B: Always extract all the files from the zip even when 'upgrading' as the format of the cfg files may change making old ones incompatible with newer binaries and viceversa.<br /><br />Restrictions:<br />1) Will only shuffle resources. Gates and excavation sites remain in their places.<br />2) The mine longitude and lattitude coordinates remain the same as the original mine.<br />3) Major and Minor resources are shuffled separately.<br />4) Resources are shuffled in territories that have resources to begin with in the original files. This and the previous restriction means that any territory that had a mine in the original game setup will still have a mine of the same class (Major/Minor) but there's a chance it will have a different type of resource (Fuel, Metal, Chemicals, etc...)<br />5) The global count for each resource is the same as in the original game setup<br />6) The tool lacks a vfs packer module, so a 3rd party vfs packer will be needed (vfstool, ufovfs, etc...)<br /><br />Validation checks and limits:<br />1) [v1.0] After shuffling, the tool checks that territories within the different fuel level radius have enough fuel to reach the next fuel level for further UFO flight. [Removed - Check point 4]<br />2) [v1.0] There's a couple of territories that have both a Major and Minor resource mines, because of the way one of the files is structured, the tool will check that these mines always have different resource types. [Removed - Check point 5]<br />3) [v1.1] After shuffling and before the minimum fuel check the tool check that the total fuel available in a distance area is no greater than apr


File Details

Filesize 1 MB
Author Kret
Version 1.2
Downloads 159

Game Card

UFO Afterlight Box
Developer: ALTAR Games
Publisher: TopWare Interactive
Released:2007

Databank

UFO Series

Purchasing Options