2) is there any possibility to add the combat knife as standalone weapon? i only found it inside the war package, which adds alot stuff, which is all not translated in german language.
Adding that weapon alone is not that difficult a little troublesome but it can be done,
You need:
Sprites: bigobs, handobs and floorobs
They all have to be introduced into the game via the ruleset.
Then you need to again modify the ruleset to allow introduce this weapon, you need to define the weapon, give it an ufopedia which links to the language file. Then in the language file you need to create an article.
This is the way i did it,
In the items section of the ruleset add
- type: STR_COMBAT_KNIFE
size: 0.1
costBuy: 100
costSell: 50
weight: 4
bigSprite: 57 https://this is your bigobs sprite the number can change if you add other sprites
floorSprite: 73
handSprite: 128
hitSound: 39
hitAnimation: 0
power: 60
damageType: 7
accuracyMelee: 80
tuMelee: 12
battleType: 3
twoHanded: false
invWidth: 1
invHeight: 2
armor: 12
Since this weapon is not part of research tree you can skip the research and manufacture sections
Then create a link in the ufopedia section:
- id: STR_COMBAT_KNIFE
type_id: 4
section: STR_WEAPONS_AND_EQUIPMENT https://this section tells where the weapon is classified in your ufopedia
text: STR_COMBAT_KNIFE_UFOPEDIA https://this one is the article and creates a link to your language file.
Finally go to your language file create an entry follow the proper format
STR_COMBAT_KNIFE_UFOPEDIA: My awesome knife
I hope that helps a little.
PS> I am just learning also
EDIT: Almost forgot you need to add the sprites
- type: BIGOBS.PCK
singleImage: true https://this is because you are adding a single image if not you will have to enter width and height of the sprite sheet
subX: 32 https:// your sprite X
subY: 49 https:// your sprite Y
files:
57: Resources/.../Combatknife.png https://Assuming your file is called combatknife.png and the location of your file.
- type: FLOOROB.PCK
files:
73: Resources/.../CombatKnife.gif
- type: HANDOB.PCK
width: 256 https:// This are my values your may differ
height: 40
subX: 32
subY: 40
files:
128: Resources/.../CombatKnife.png