4
« on: October 15, 2012, 11:18:10 AM »
s7 bod filler
Our craft gump size is the same as osi's, so the first thing i did in bodfiller is add our shard to the end of the list of osi shard names. so it tells bodfiller to use the crafinfo.txt (not the FS version). this is better, the script now at least interacts with the craft gump, though not perfectly.
I'm using a bandana bod for my testing here. in craftinfo, it says this about bandanas:
if %1 = bandana || %1 = gzh
gosub _sub bandana gzh 1 scissors hats 2 1 1 tailoring 0 1 cloth 2
we're interested in the second line really.
bandana = item name
gzh = item type
1 = item weight
scissors = item disposal (the tool needed to recycle the item)
hats = category name
2 = category number
1 = selection number (what number the bandana is in the right hand pane)
1 = skillcount
tailoring = skillname
0 = skill value
1 = material count
cloth = material name
2 = material value
we're concerned with category number, and selection number. When i let the script try to fill the bandana sbod, it crafts shirts instead. so, looking at our menu, the category number in the left hand pane for shirts is 2, and the selection number for the right hand pane is 1. Shirts (left) is the third option down. shirt (the craftable item) in the right hand pane is the second one down.
had the script chosen the category Hats correctly, then i think it would have made bandanas, as these are the same option number in the right hand pane as shirts. to test:
if %1 = bandana || %1 = gzh
gosub _sub bandana gzh 1 scissors hats ***1*** 1 1 tailoring 0 1 cloth 2
changing the 2 to a 1 - marked here in ***.
Result: this works.
So I know that all hats in the craftinfo file need 2 changing to 1.
Pants must have been merged into the same category as shirts on osi, it's the second of the 3 numbers that needs changing for each item (starting on 0 with short pants).
Footwear's right hand pane numbers seem to be one too high for each item.
Studded Ar's left hand number should be 7, not 8.
Female Ar's left hand number should be 8, not 9.
Bone Ar's left hand number should be 9, not 10.
Chainmail and probably platemail as well must have been merged into the first category on osi. First and second numbers will need adjusting for each, sadly. Chainmail should be 2, Plate 3. etc.
Done all those changes and same crap for tinkering.
next problem is with getting the target on the open bod gump to target all the tunics or whatever to fill the bod.
Ive added the file and one more post is coming with how far ive gotten so please read throu n help me please.