Hi all,
I was just trying to 'import' the units.txt-file into an excel-file to be able to have an easier overview over the different values. I did it because of the discussion in DESIGN: Armor and HP's. I must admit I am still having a headache to finish it.
My idea, which I would like to propose (and I would be willing to create it) is instead of having the till now structure in the units.txt file changing it to a more moder and user-friendly version, based on Excel.
So instead of really changing it by hand, we could do it via Excel. The changes for this to implement (me thinks) shall be easy.
The file shall be saved as csv, all entries ,even if empty would have a comma-delimiter, so making it easier to check afterwards. This would also allow to re-import into Excel, although I would suggest to have just one master-template (as I said I would be willing to create it, so that you would just select (like: Yes/no, or a value).
Example:
So instead of looking like this:
## UNIT 0
UNIT_ABOLITIONIST {
Description DESCRIPTION_UNIT_ABOLITIONIST
DefaultIcon ICON_UNIT_ABOLITIONIST
DefaultSprite SPRITE_ABOLITIONIST
Category UNIT_CATEGORY_SPECIAL
Attack 0
Defense 10
ZBRangeAttack 0
Firepower 1
Armor 1
MaxHP 10
ShieldCost 540
PowerPoints 250
ShieldHunger 5
FoodHunger 0
MaxMovePoints 300
VisionRange 1
EnableAdvance ADVANCE_CLASSICAL_EDUCATION
ActiveDefenseRange 0
LossMoveToDmgNone
MaxFuel 0
IgnoreZOC
NoZoc
CanBeExpelled
CantCaptureCity
NoSlaves
IsSpecialForces
Civilian
SoundSelect1 SOUND_SELECT1_ABOLITIONIST
SoundSelect2 SOUND_SELECT2_ABOLITIONIST
SoundMove SOUND_MOVE_ABOLITIONIST
SoundAcknowledge SOUND_ACKNOWLEDGE_ABOLITIONIST
SoundCantMove SOUND_CANTMOVE_ABOLITIONIST
SoundAttack SOUND_ATTACK_ABOLITIONIST
SoundWork SOUND_WORK_ABOLITIONIST
SoundVictory SOUND_VICTORY_ABOLITIONIST
SoundDeath SOUND_DEATH_ABOLITIONIST
CanSee: Standard
CanSee: Stealth
MovementType: Land
MovementType: Mountain
Size: Small
VisionClass: Stealth
SlaveUprising {
Sound SOUND_ID_SLAVE_UPRISING
Effect SPECEFFECT_SLAVE_UPRISING
}
UndergroundRailway {
Chance 0.75
DeathChance 0.5
Sound SOUND_ID_UNDERGROUND_RAILWAY
Effect SPECEFFECT_UNDERGROUND_RAILWAY
}
}
################################################## ##########
It would be looking like this:
##_UNIT_0;UNIT_ABOLITIONIST;{;Description;DESCRIPT ION_UNIT_ABOLITIONIST;DefaultIcon;ICON_UNIT_ABOLIT IONIST;DefaultSprite;SPRITE_ABOLITIONIST;Category; ;UNIT_CATEGORY_SPECIAL;Attack;0;Defense;10;ZBRange Attack;0;Firepower;1;Armor;1;MaxHP;10;ShieldCost;5 40;PowerPoints;250;ShieldHunger;5;FoodHunger;0;Max MovePoints;300;VisionRange;1;EnableAdvance;ADVANCE _CLASSICAL_EDUCATION;ActiveDefenseRange;0;LossMove ToDmgNone;MaxFuel;0;IgnoreZOC;NoZoc;CanBeExpelled; CantCaptureCity;NoSlaves;IsSpecialForces;Civilian; SoundSelect1;SOUND_SELECT1_ABOLITIONIST;SoundSelec t2;SOUND_SELECT2_ABOLITIONIST;SoundMove;SOUND_MOVE _ABOLITIONIST;SoundAcknowledge;SOUND_ACKNOWLEDGE_A BOLITIONIST;SoundCantMove;SOUND_CANTMOVE_ABOLITION IST;SoundAttack;SOUND_ATTACK_ABOLITIONIST;SoundWor k;SOUND_WORK_ABOLITIONIST;SoundVictory;SOUND_VICTO RY_ABOLITIONIST;SoundDeath;SOUND_DEATH_ABOLITIONIS T;CanSee:;Standard;CanSee:;Stealth;MovementType:;L and;MovementType:;Mountain;Size:;Small;VisionClass :;Stealth;SlaveUprising;{;;;;Sound;SOUND_ID_SLAVE_ UPRISING;;;;Effect;SPECEFFECT_SLAVE_UPRISING;};Und ergroundRailway;{;;;;Chance;0.75;;;;DeathChance;0. 5;;;;Sound;SOUND_ID_UNDERGROUND_RAILWAY;;;;Effect; SPECEFFECT_UNDERGROUND_RAILWAY;};};;
Actually a few commas missing, as I said still working on. And it doesn't appear correctly, everything shall be in one line , whatever....I hope you get my idea anyway.
For purpose I didn't open a poll as I am not 100% sure, if it would take a lot of effort to change it, if it is possible and if we want to do it. As I said, I would do the excel-sheet. If for any reason CTP2 can not read such a long line, there would be another possibilty to translate all commas into 0d0a (CR/LF) sequence with either a hex-editor or an external program (would need to be writen in any language).
Attahced is my pure excel-file so that people get a better idea. I will update it once I got further.
I was just trying to 'import' the units.txt-file into an excel-file to be able to have an easier overview over the different values. I did it because of the discussion in DESIGN: Armor and HP's. I must admit I am still having a headache to finish it.
My idea, which I would like to propose (and I would be willing to create it) is instead of having the till now structure in the units.txt file changing it to a more moder and user-friendly version, based on Excel.
So instead of really changing it by hand, we could do it via Excel. The changes for this to implement (me thinks) shall be easy.
The file shall be saved as csv, all entries ,even if empty would have a comma-delimiter, so making it easier to check afterwards. This would also allow to re-import into Excel, although I would suggest to have just one master-template (as I said I would be willing to create it, so that you would just select (like: Yes/no, or a value).
Example:
So instead of looking like this:
## UNIT 0
UNIT_ABOLITIONIST {
Description DESCRIPTION_UNIT_ABOLITIONIST
DefaultIcon ICON_UNIT_ABOLITIONIST
DefaultSprite SPRITE_ABOLITIONIST
Category UNIT_CATEGORY_SPECIAL
Attack 0
Defense 10
ZBRangeAttack 0
Firepower 1
Armor 1
MaxHP 10
ShieldCost 540
PowerPoints 250
ShieldHunger 5
FoodHunger 0
MaxMovePoints 300
VisionRange 1
EnableAdvance ADVANCE_CLASSICAL_EDUCATION
ActiveDefenseRange 0
LossMoveToDmgNone
MaxFuel 0
IgnoreZOC
NoZoc
CanBeExpelled
CantCaptureCity
NoSlaves
IsSpecialForces
Civilian
SoundSelect1 SOUND_SELECT1_ABOLITIONIST
SoundSelect2 SOUND_SELECT2_ABOLITIONIST
SoundMove SOUND_MOVE_ABOLITIONIST
SoundAcknowledge SOUND_ACKNOWLEDGE_ABOLITIONIST
SoundCantMove SOUND_CANTMOVE_ABOLITIONIST
SoundAttack SOUND_ATTACK_ABOLITIONIST
SoundWork SOUND_WORK_ABOLITIONIST
SoundVictory SOUND_VICTORY_ABOLITIONIST
SoundDeath SOUND_DEATH_ABOLITIONIST
CanSee: Standard
CanSee: Stealth
MovementType: Land
MovementType: Mountain
Size: Small
VisionClass: Stealth
SlaveUprising {
Sound SOUND_ID_SLAVE_UPRISING
Effect SPECEFFECT_SLAVE_UPRISING
}
UndergroundRailway {
Chance 0.75
DeathChance 0.5
Sound SOUND_ID_UNDERGROUND_RAILWAY
Effect SPECEFFECT_UNDERGROUND_RAILWAY
}
}
################################################## ##########
It would be looking like this:
##_UNIT_0;UNIT_ABOLITIONIST;{;Description;DESCRIPT ION_UNIT_ABOLITIONIST;DefaultIcon;ICON_UNIT_ABOLIT IONIST;DefaultSprite;SPRITE_ABOLITIONIST;Category; ;UNIT_CATEGORY_SPECIAL;Attack;0;Defense;10;ZBRange Attack;0;Firepower;1;Armor;1;MaxHP;10;ShieldCost;5 40;PowerPoints;250;ShieldHunger;5;FoodHunger;0;Max MovePoints;300;VisionRange;1;EnableAdvance;ADVANCE _CLASSICAL_EDUCATION;ActiveDefenseRange;0;LossMove ToDmgNone;MaxFuel;0;IgnoreZOC;NoZoc;CanBeExpelled; CantCaptureCity;NoSlaves;IsSpecialForces;Civilian; SoundSelect1;SOUND_SELECT1_ABOLITIONIST;SoundSelec t2;SOUND_SELECT2_ABOLITIONIST;SoundMove;SOUND_MOVE _ABOLITIONIST;SoundAcknowledge;SOUND_ACKNOWLEDGE_A BOLITIONIST;SoundCantMove;SOUND_CANTMOVE_ABOLITION IST;SoundAttack;SOUND_ATTACK_ABOLITIONIST;SoundWor k;SOUND_WORK_ABOLITIONIST;SoundVictory;SOUND_VICTO RY_ABOLITIONIST;SoundDeath;SOUND_DEATH_ABOLITIONIS T;CanSee:;Standard;CanSee:;Stealth;MovementType:;L and;MovementType:;Mountain;Size:;Small;VisionClass :;Stealth;SlaveUprising;{;;;;Sound;SOUND_ID_SLAVE_ UPRISING;;;;Effect;SPECEFFECT_SLAVE_UPRISING;};Und ergroundRailway;{;;;;Chance;0.75;;;;DeathChance;0. 5;;;;Sound;SOUND_ID_UNDERGROUND_RAILWAY;;;;Effect; SPECEFFECT_UNDERGROUND_RAILWAY;};};;
Actually a few commas missing, as I said still working on. And it doesn't appear correctly, everything shall be in one line , whatever....I hope you get my idea anyway.
For purpose I didn't open a poll as I am not 100% sure, if it would take a lot of effort to change it, if it is possible and if we want to do it. As I said, I would do the excel-sheet. If for any reason CTP2 can not read such a long line, there would be another possibilty to translate all commas into 0d0a (CR/LF) sequence with either a hex-editor or an external program (would need to be writen in any language).
Attahced is my pure excel-file so that people get a better idea. I will update it once I got further.
Comment