As a gesture towards being open-source, I thought I'd try to keep the actual sourcecode for IWD-in-BG2 somewhere accessible.
Unless you are seriously interested in how IWD-in-BG2 works, READ NO FURTHER. This version is not relevant even for people who want to help test the mod.
IWD-in-BG2 works like this. (It's not far off how BGTUTU works.)
1) start with a copy of BG2, with the IWD-in-BG2 folder as a subfolder.
2) run the get_iwd_resources batch file. Cam wrote this, and I've lightly modified it. It grabs all the IWD resources from an install of IWD and dumps them somewhere accessible. It also uses BGT voodoo I don't understand to convert the tilesets to be BG2-friendly.
3) run setup-iwd_in_bg2 as a weidu mod. (I haven't packaged a copy of weidu, so you need to add a local one) and install all components.
It's also helpful to think of setup-iwd_in_bg2 as having several components:
(a) the core contents of setup-iwd_in_bg2.tp2, which do most of the processing. The early part of this was based on Cam's version but most of it is mine.
(b) the convert_pro macro. This converts projectiles to the BG2 format. Nythrun wrote the core, I added various bells and whistles.
© the david_itm_spl macro. This converts the spells and items - it's based on Cam's original macro but it's been fairly heavily modified and expanded.
As well as actually running the conversion, setup-iwd_in_bg2 creates (via component 10000) a list of all IWD resources that are simply copied over, as well as where they're copied to and (in a few cases) what they're renamed to.
The actual version of IWD-in-BG2 I distribute is actually more like EasyTUTU than BG1TUTU. It contains a copy of every file modified by setup-iwd_in_bg2: that is, it contains the override directory (prior to that directory being biffed by component 5000 of setup-iwd_in_bg2), and the folders iwd_in_bg2/biff/X, where X=gen_cre, X=dv_cre, or X=cre_ini. It also contains the above list of files to copy over.
When the distributed version runs, it clones a new copy of BG2 and then copies over all required IWD resources, as specified in the list. Then it dumps the modified files into the relevant places. Finally, it runs those few components of setup-iwd_in_bg2 that aren't replicated by the above process (the most obvious one is the animation converter).
In any case, the sourcecode is here for anyone interested. I say again, REALLY only look if you want to poke around in the code. This is a copy of my local version; it isn't even tested as working elsewhere.
To generate the executable, you have to run the sourcecode version and install all components except 1000 and 5000. Then you need to use the results to update the executable. (It should be fairly self-explanatory from the executable how to do this; basically, copy over setup-iwd_in_bg2.tp2, override, gen_cre, and biff-file-list.2da.)
Unfortunately the sourcecode for versions 3, 5 and 6 is lost. (It's faintly possible someone other than me has a copy of the v5 sourcecode; let me know, if so. 3 and 5 are permanently lost as a consequence of bad backup habits on my part.) I can supply the sourcecode for version 4 on request; for versions 1 and 2 there is no distinction between sourcecode and executable.
IWD-in-BG2 sourcecode
Started by DavidW, Dec 29 2011 05:40 PM
No replies to this topic
#1
Posted 29 December 2011 - 05:40 PM
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











