kt0 said:Less than a week I'd think, but it'll probably come with similar caveats to the item script. Enough people have asked recently that I'm starting work this evening.
The M&B Repository has been updated since 2009 (surprise) and the linking system changed. The links to kt0's various contributions have been updated, but the tools may not work with current versions.Knight Inquisitor said:Please, man, re-upload it. All your stuff are broken links ( and also for this 2's: "kt0's troop script"; "kz0's ParyScript")
removeList = []
removeList.append(",,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,\n")
removeList.append("0,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,\n")
removeList.append("0,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,\n")
removeList.append("2,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,\n")
removeList.append("1,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,\n")
print "starting..."
print
print
f = open("item_kinds1_native.csv", 'r') #the csv file that items2csv.rb created
fout = open("item_kinds1_native_new.csv", 'w') #you will need to make this file the source file for csv2tuples.rb
f.readline()
for line in f:
#print line
if removeList.count(line) == 0:
fout.write(line)
f.close()
fout.close()
print
print
print "stopping"
,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,
0,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,
0,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,
removeList.append("2,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,\n")
removeList.append("1,,0,0,imodbits_none,0,0.0000,0,0,0,0,0,0,0,0,0,0,,,0,\n")
The offending parts of the itm are in bold.["steppe_horse","Steppe Horse", [("steppe_horse",0)], itp_merchandise|itp_type_horse, 0, 192,abundance(80)|hit_points(120)|body_armor(10)|difficulty(2)|horse_speed(40)|horse_maneuver(51)|horse_charge(|horse_scale(9,imodbits_horse_basic, [], [fac_kingdom_2, fac_kingdom_3]],
elsif ITP_TYPE_BODY_ARMOR == item_type || ITP_TYPE_LEG_ARMOR == item_type
elsif ITP_TYPE_BODY_ARMOR == item_type || ITP_TYPE_FOOT_ARMOR == item_type
printf( "\tWARNING: got {itp_doesnt_cover_hair|itp_covers_legs} on a non-armor piece (%s)\n", $item_type_array[itemp_type] )
printf( "\tWARNING: got {itp_doesnt_cover_hair|itp_covers_legs} on a non-armor piece (%s)\n", $item_type_array[item_type] )
$item_type_flags_hash[ ITP_SPEAR ] = "itp_spear"
$item_type_flags_hash[ ITP_SPEAR ] = "itp_default_ammo" #change. in warband, itp_spear is obsolete and repalced by itp_default_ammo. see header items