You must be logged in to post messages.
Please login or register

Mod Design and Discussion
Moderated by Sebastien, John the Late

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: trigger compression utility
posted 08-18-17 10:30 AM CT (US)   
for aoc 1.0c and userpatch only

this dll provides a one-to-one replacement for the trigger writing functions inside the exe, plus some additional trigger compression technicles unavailable in the original editor

# installation
simply extract all files to your aok installation folder:
- \age2_x1\RICHED32.DLL
- \age2_x1\RICHED32.INI
- \trigcomp.dll
- \trigcomp.ini

# usage
run the game and open your desired scenario with the scenario editor, when saving, the game will store the triggers with the special settings specified in the trigcomp.ini file

# settings
the settings are stored inside the trigcomp.ini file. by default they are set to exactly match the original game, so you wont notice any difference until you edit them. the game reads this file everytime you save a scenario (to avoid restarting the game everytime you wish to change something)

list of settings:
- TriggerSystemVersion: 10, 11, 12, 13, 14, 15 and 16 are all the supported versions; aoc uses the latest one (16). sets the triggers storage format - the older you use, the lower will be the size of the triggers. its recomended to leave it at 16, or set to 12 if you are aiming for the best compression. by using version 12 you will lose the following data: triggers/conditions/effects displayed order (totally irrelevant when playing the scenario), flash objectives at start (not available in the scenario editor and pretty useless) and timer initial value for triggers (not available in the scenario editor and probably noone ever used it). version 10 will most likely break many of your triggers and should never be used. version 11 is the same than 12 but doesnt allow to select multiple objects and doesnt decrease triggers size further than version 12, so no point in using it
- TriggerCompression: 1 = of, 0 = off. uses a trick to reduce the size of condition/effect attributes and empty strings. no data is lost using this setting
- BurnTriggerNames - 1 = on, 0 = off. permanently deletes the names of all triggers. dont forget to make a backup first if you use this!

default settings (no difference):
- TriggerSystemVersion=16
- TriggerCompression=0
- BurnTriggerNames=0

recommended settings:
- TriggerSystemVersion=16
- TriggerCompression=1
- BurnTriggerNames=0

max (practical) compression:
- TriggerSystemVersion=12
- TriggerCompression=1
- BurnTriggerNames=1

# download
release v1.01
source code

[This message has been edited by JustTesting1234 (edited 08-18-2017 @ 10:32 AM).]

Replies:
posted 08-21-17 03:04 AM CT (US)     1 / 1  
It's pretty cool invention.

Advanced Genie Editor
Follow coding here and here.
Age of Kings Heaven » Forums » Mod Design and Discussion » trigger compression utility
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Kings Heaven | HeavenGames