Mirathei
Sergeant Knight
This is a really weird phenomenon. The following is in module_items.py:
The module system compiles without any errors. I start up the mod, play for a bit, and all changes are made. I use those items above and its all good. Go to item_kinds1.txt in the mod folder, and this is the only firearm:
The mod works fine, but if I send it to a zip file and install it from the zip to my mods folder, it becomes native again, so I can't release my mods. I'm quite sure I'm looking at all the right folders.
Here's the weirdest part, though- I can replace the entire file with pure gibberish, and the mod still works fine unless I send it to a zipped folder and then unzip it again.
Anyone have any ideas what the hell is going on?
Code:
["flintlock_pistol", "Flintlock Pistol", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 230 , weight(1.5)|difficulty(0)|spd_rtng(38) | shoot_speed(160) | thrust_damage(41 ,pierce)|max_ammo(1)|accuracy(75),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["double_barrel_pistol", "Double Barrel Pistol", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 260 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(41 ,pierce)|max_ammo(2)|accuracy(75),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["double_barrel_pistol_2", "Heavy Double Barrel Pistol", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 270 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(52 ,pierce)|max_ammo(2)|accuracy(75),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["double_barrel_revolver", "Double Barrel Revolver", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 450 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(41 ,pierce)|max_ammo(12)|accuracy(75),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["four_barrel_pistol", "Four Barrel Pistol", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 280 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(41 ,pierce)|max_ammo(4)|accuracy(75),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["blunderbuss", "Blunderbuss", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 290 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(71 ,pierce)|max_ammo(1)|accuracy(65),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["khergit_pistol", "Khergit Pistol", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 300 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(41 ,pierce)|max_ammo(1)|accuracy(95),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["pepperbox_revolver", "Pepperbox Revolver", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 280 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(46 ,pierce)|max_ammo(60)|accuracy(73),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
["revolver", "Revolver", [("flintlock_pistol",0)], itp_type_pistol |itp_merchandise|itp_primary|itp_bonus_against_shield ,itcf_shoot_pistol|itcf_reload_pistol, 320 , weight(1.5)|difficulty(0)|spd_rtng(60) | shoot_speed(160) | thrust_damage(41 ,pierce)|max_ammo(60)|accuracy(75),imodbits_none,
[(ti_on_weapon_attack, [(play_sound,"snd_pistol_shot"),(position_move_x, pos1,27),(position_move_y, pos1,36),(particle_system_burst, "psys_pistol_smoke", pos1, 15),(particle_system_burst, "psys_torch_fire", pos1, 15),])]],
The module system compiles without any errors. I start up the mod, play for a bit, and all changes are made. I use those items above and its all good. Go to item_kinds1.txt in the mod folder, and this is the only firearm:
Code:
itm_flintlock_pistol Flintlock_Pistol Flintlock_Pistol 1 flintlock_pistol 0 4259856 481036795904 230 0 1.500000 100 0 0 65 0 0 38 160 0 1 297 0
1
-51.000000 4 600 1 1152921504606847038 720 2 1 27 721 2 1 36 1969 3 1008806316530991123 1 15
The mod works fine, but if I send it to a zip file and install it from the zip to my mods folder, it becomes native again, so I can't release my mods. I'm quite sure I'm looking at all the right folders.
Here's the weirdest part, though- I can replace the entire file with pure gibberish, and the mod still works fine unless I send it to a zipped folder and then unzip it again.
Anyone have any ideas what the hell is going on?