Native LSP 3D Art Native Onehanded Crossbows

Users who are viewing this thread

NPC99

Baron
M&BWBWF&SVC
Use load_mod_resource = hand_crossbows in your mod's module.ini file and put the brf file in your mod's resource folder.
 

asierus

Regular
WF&SM&BWB
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.
  woah holy cow, im an idiot by not carefully reading the module.ini comments i was using load_resource  :sad: thanks a lot:smile:
 

Maroon

Grandmaster Knight
WBWF&SNW
Glad you got it sorted out! Be careful with editing/adding stuff in CommonRes though. Changing something in CommonRes will have an effect on all mods, not just the one you're editing something for!
 

Str1k3r

Recruit
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.
 

SaskyGames

Regular
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.

Guess i'm not the only one with this problem,i ditched the mod long ago thinking nobody else had this issue. I can confirm,that after i added everything correctly to the game (didn't neeed to put anything in CommonRes though ) every time i was about to see the crossbows inside the inventory the game would crash
 

Hernanxd16

Knight at Arms
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

Regular
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
 

Hernanxd16

Knight at Arms
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

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
 

SaskyGames

Regular
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


Shave my beard off with a razor! That appears to have done it for me,everything works well without crashing or any other issues,thank You very much for that :grin:
 

Str1k3r

Recruit
Your code is working. No mistakes and crushes, thanks. Can I copy it on russian forums with your name?
 

Hernanxd16

Knight at Arms
Str1k3r said:
Your code is working. No mistakes and crushes, thanks. Can I copy it on russian forums with your name?

Sure, no problem, I only removed an animation from the crossbows and changed the inventory mesh of the bolts in the Module System and compile it again. Here is the fixed code for the MS if you need it:

Code:
["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, []],
 

Maroon

Grandmaster Knight
WBWF&SNW
Thanks guys, I updated the item_kinds.txt code in the main body as well. I personally never do txt edits so I was not aware it was faulty code.
 

SaskyGames

Regular
You should add a space :
HEREitm_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


Because if someone tries to directly copy that into their item_kinds.txt they are gonna get an error :grin:
 

Maroon

Grandmaster Knight
WBWF&SNW
Huh, for some reason the code blocks on the forums do not like starting with a single space. If I add a second space, they both show up, but a single space does not. I've added a second one now, hope that works better.
 
Top Bottom