OpenXcom Forum
Modding => Work In Progress => Topic started by: Nord on November 23, 2016, 04:57:04 pm
-
Well, i have a nev tftd spritesheet (unfinished), and want to try to set him as none armor. So, i take code from xcom2 core and change spritename:
armors: #done
- type: STR_NONE_UC
spriteSheet: TDXCOM1.PCK #here it is
spriteInv: MAN_0
storeItem: STR_NONE
corpseItem: STR_CORPSE
frontArmor: 12
sideArmor: 8
rearArmor: 5
underArmor: 2
damageModifier:
- 1.0
- 1.0
- 1.0
- 1.0
- 1.0
- 1.0
- 1.0
- 1.6
- 1.5
- 1.0
loftemps: 3
drawingRoutine: 13
spriteFaceGroup: 14
spriteFaceColor: [160, 160, 64, 160, 160, 64, 160, 160] #M0 F0 M1 F1 M2 F2 M3 F3
spriteHairGroup: 4
spriteHairColor: [130, 160, 201, 130, 64, 198, 160, 64] #M0 F0 M1 F1 M2 F2 M3 F3
After that, i add in extrasprites rulfile:
- type: TDXCOM1.PCK
width: 256
height: 1520
subX: 32
subY: 40
files:
0: Resources/TDXCOM1.png
Then try to load tactical game with that mod, and got a crash.
Question: what am i doing wrong?
-
does the comment actually exist in your ruleset or did you only add that for the post?
-
You mean (#here it is)? Yes, i added it only in post.
-
i'm not sure then, as far as i can see, the code is clean.
check your log file, see if it has any light to shed on the subject.
-
Strange, but when i create new armor set (not a replacement), all works fine.
-
Have you tried deleting the origonal armor before remaking it?
armors:
- delete: STR_NONE_UC
- type: STR_NONE_UC
spriteSheet: TDXCOM1.PCK #here it is
spriteInv: MAN_0
storeItem: STR_NONE
corpseItem: STR_CORPSE
frontArmor: 12
sideArmor: 8
rearArmor: 5
underArmor: 2
damageModifier:
- 1.0
- 1.0
- 1.0
- 1.0
- 1.0
- 1.0
- 1.0
- 1.6
- 1.5
- 1.0
loftemps: 3
drawingRoutine: 13
spriteFaceGroup: 14
spriteFaceColor: [160, 160, 64, 160, 160, 64, 160, 160] #M0 F0 M1 F1 M2 F2 M3 F3
spriteHairGroup: 4
spriteHairColor: [130, 160, 201, 130, 64, 198, 160, 64] #M0 F0 M1 F1 M2 F2 M3 F3