Jump to content


Photo

Help with TeamBG item creation tutorial


  • Please log in to reply
5 replies to this topic

#1 Geoff the Barbarian

Geoff the Barbarian
  • Member
  • 7 posts

Posted 10 December 2003 - 11:55 AM

First, thanks to SimDing0 for taking the time to write the tutorial for creating a store item!

Second, I hope I am posting this in the right place...

I would love to write a full-blown mod but doubt that I have the time or attention span. But I am sick of BG2 inventory management. So I want to make a few limitless bag items and have them be available in the Adventurers Mart.

This is my first attempt at screwing around with the IE. I have some ideas for some other things I'd like to try but first I have to at least be able to make an item!

There are a couple of things I am not clear about from the tutorial.

When using the IDU to create the DLG file, the tutorial refers to adding text for the "second level". This is adding an Option, right? Also, when I use IDU to analyze my saved DLG file, it tells me that I have Option 0 and am executing Action 0.

I looked at some other DLG files for stores and they have the action string as StartStore("STOBELTP",LastTalkedToBy) but the tutorial has it as StartStoreStartStore("STOBELTP",LastTalkedToBy()). I tried it with and without the doubled-up StartStore and also with and without the function parentheses on LastTalkedToBy, but I still can't create a DLG file that has an action other than 0.

Maybe this refers to a zero-offset array or collection and is perfectly fine - but it seems odd. Are these supposed to be zero-offset?

My biggest problem is with the ITEMDIAL.2DA file. I don't have one. Nor can I find one using WinBif. Nor do I have any file anywhere in my BG2 folder system that contains both "label" and "file". I tried making one from scratch but it made BG2 throw an unhandled error and bomb. I tried a couple of other versions, BG2 no longer bombs, but I am only guessing what is supposed to go in what column, the string values in the tutorial are run together on the web page - I cannot tell where the padding spaces are supposed to be between columns. I am guessing that "LABEL" is the header for the second column and "FILE" for the third but this is just a guess, and I may have them in the wrong character position even if I have them in the right order.

My item works, kind of. I can create it with CLUAConsole, and it appears in my inventory. If I double click it, it is indeed an item container, and I can put things in and take them out without issue (so far anyway). The labels on the item container store page are all correct. I can drag-and-drop stuff in and it goes in. All good.

But if I right-click the item, I get the correct image and text but the button that is supposed to say "Open Container" instead says "Enough of this. It is time for you to D" and pressing the button does not open the container. Since I don't have it working correctly I am concerned that I will corrupt my game files if I continue using it. And I don't want to "D" even if it is my time.

I deleted the DLG and 2DA files and got the same results. I assume that my bad 2DA file is keeping BG2 from finding my DLG file.

BTW - the files BAG02.ITM and BAG02.STO will not exist as separate files for people who have not already been mucking about in them. I eventually found Winbif on the TeamBG site and figured out that I needed to use it to extract BAG02.itm and BAG02.sto from the main BIF files. Not particularly difficult, but you might want to mention this in the Tutorial.

Thanks in advance, just for the tutorial. Bonus thanks to whomever takes the time to read this and reply too!

#2 Geoff the Barbarian

Geoff the Barbarian
  • Member
  • 7 posts

Posted 14 December 2003 - 12:09 PM

Lots of views but no replies. Hmm.

Did I post this in the right place?
Did I ask the question in such a way that you all can tell what I need?

#3 Kismet

Kismet

    Mild Thang

  • Member
  • 348 posts

Posted 15 December 2003 - 01:03 PM

I think you'll have a hard time finding people here who use IDU or who would encourage the use of IDU.

I believe WeiDU has an ADD_STORE_ITEM feature, although the last time I looked it was undocumented so you'd have to read the thread about it: http://www.shsforums...?showtopic=4425

#4 Geoff the Barbarian

Geoff the Barbarian
  • Member
  • 7 posts

Posted 16 December 2003 - 10:23 AM

Thanks for the reply Kismet!

Maybe what I really need is a good "modding-for-dummies" overview kind of thing.

Does such a thing exist?

#5 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 16 December 2003 - 10:29 AM

Try reading some of the stuff at http://www.spellhold...?page=tutorials and http://tutorials.teambg.net.
Check out BG1Tutu.

#6 Geoff the Barbarian

Geoff the Barbarian
  • Member
  • 7 posts

Posted 16 December 2003 - 04:23 PM

Try reading some of the stuff at http://www.spellhold...?page=tutorials and http://tutorials.teambg.net.


Aaaarrrgg the vicious circle! This is how I came across the store-item container tutorial in the first place!

Maybe starting over is a good idea though.