woah holy cow, im an idiot by not carefully reading the module.ini comments i was using load_resource thanks a lotNPC99 said:Use load_mod_resource = hand_crossbows in your mod's module.ini file and put the brf file in your mod's resource folder.
Str1k3r said:Have some problems with this OSP in Native.
Load hand_crossbows.brf in Resource folder of my native's copy, activate brf-file in module.ini, add new items in items_kinds1.txt, add number of items +3, change some their stats in ItemEditor and start new game.
Warband show error about CommonRes Folder, and I added archive there too. Everything is OK now, game is starting and I can play, but when i try see new crossbows ingame - it is crashing. Crashing when I try to enter in player inventory, in Rivacheg's chest, in weapon's market.
Str1k3r said:Have some problems with this OSP in Native.
Load hand_crossbows.brf in Resource folder of my native's copy, activate brf-file in module.ini, add new items in items_kinds1.txt, add number of items +3, change some their stats in ItemEditor and start new game.
Warband show error about CommonRes Folder, and I added archive there too. Everything is OK now, game is starting and I can play, but when i try see new crossbows ingame - it is crashing. Crashing when I try to enter in player inventory, in Rivacheg's chest, in weapon's market.
NPC99 said:Use load_mod_resource = hand_crossbows in your mod's module.ini file and put the brf file in your mod's resource folder.
SaskyGames said:That doesn't solve anything,the crossbows are loaded properly to the game,but crash the game whenever they appear for the players eyes.
I've installed it 100% properly,i'm not new to modding warband
edit:
Also,when i try to click the crossbow_a in the Morgh's editor,it's called Hand_Crossbow as ID,and Hand_Crossbows as item name,plural is 1 so i guess its an error in the .txt code + it gives me an error when i click on it that says : "Error #13 occured in function "ShowItem" type mismatch .The program tried to assign a value to a variable which wasn't designed to handle the value. Maybe the data in a file is damaged (also wrong order or else) "
+ it has no mesh in the Meshes(1) window
itm_hand_crossbow_a Hand_Crossbow Hand_Crossbow 1 hand_crossbow_a 0 4259849 2684813312 525 131082 1.000000 100 0 0 0 0 0 85 60 0 1 311 0
0
0
itm_hand_crossbow_b Hand_Crossbow Hand_Crossbow 1 hand_crossbow_b 0 4259849 2684813312 525 131082 1.000000 100 0 0 0 0 0 85 60 0 1 321 0
0
0
itm_hand_bolts Pocket_Bolts Pocket_Bolts 4 hand_bolt 0 hand_bolt 1152921504606846976 flying_missile 2305843009213693952 bolt_bag_b 3458764513820540928 16842758 1879048192 600 4398046511112 2.500000 20 0 0 0 0 0 0 0 63 40 270 0
0
0
Hernanxd16 said:I added them with MS and this is the compiled code, try with this in the .txt. Although, I would recommend you to use MS if you can.
Code:itm_hand_crossbow_a Hand_Crossbow Hand_Crossbow 1 hand_crossbow_a 0 4259849 2684813312 525 131082 1.000000 100 0 0 0 0 0 85 60 0 1 311 0 0 0 itm_hand_crossbow_b Hand_Crossbow Hand_Crossbow 1 hand_crossbow_b 0 4259849 2684813312 525 131082 1.000000 100 0 0 0 0 0 85 60 0 1 321 0 0 0 itm_hand_bolts Pocket_Bolts Pocket_Bolts 4 hand_bolt 0 hand_bolt 1152921504606846976 flying_missile 2305843009213693952 bolt_bag_b 3458764513820540928 16842758 1879048192 600 4398046511112 2.500000 20 0 0 0 0 0 0 0 63 40 270 0 0 0
Str1k3r said:Your code is working. No mistakes and crushes, thanks. Can I copy it on russian forums with your name?
["hand_crossbow_a","Hand_Crossbow", [("hand_crossbow_a", 0)], itp_type_crossbow|itp_merchandise|itp_primary, itcf_shoot_pistol|itcf_carry_pistol_front_left,525, weight(1)|abundance(100)|spd_rtng(85)|shoot_speed(60)|max_ammo(1)|thrust_damage(55, pierce), imodbits_crossbow, []],
["hand_crossbow_b","Hand_Crossbow", [("hand_crossbow_b", 0)], itp_type_crossbow|itp_merchandise|itp_primary, itcf_shoot_pistol|itcf_carry_pistol_front_left,525, weight(1)|abundance(100)|spd_rtng(85)|shoot_speed(60)|max_ammo(1)|thrust_damage(65, pierce), imodbits_crossbow, []],
["hand_bolts","Pocket_Bolts", [("hand_bolt", 0),("flying_missile", ixmesh_flying_ammo),("bolt_bag_b", ixmesh_carry)], itp_type_bolts|itp_merchandise|itp_covers_legs|itp_doesnt_cover_hair, itcf_carry_quiver_right_vertical,600, weight(2.5)|abundance(20)|weapon_length(63)|max_ammo(40)|thrust_damage(14, pierce), imodbits_missile, []],