Rastor Posted March 20, 2006 Share Posted March 20, 2006 Anyone know why the following won't work? COPY ~AbyStore/r#asdemn.sto~ ~override~ // Abysima's Store SAY NAME2 @31 ADD_STORE_ITEM ~R#ASOSWD~ #1 #0 #0 ~IDENTIFIED&UNSTEALABLE~ #1 ADD_STORE_ITEM ~R#ASPCHN~ #1 #0 #0 ~IDENTIFIED&UNSTEALABLE~ #1 ADD_STORE_ITEM ~R#ASSHLD~ #1 #0 #0 ~IDENTIFIED&UNSTEALABLE~ #1 ADD_STORE_ITEM ~R#ASGCLK~ #1 #0 #0 ~IDENTIFIED&UNSTEALABLE~ #1 ADD_STORE_ITEM ~R#ASMGAU~ #1 #0 #0 ~IDENTIFIED&UNSTEALABLE~ #1 ADD_STORE_ITEM ~R#ASMSTF~ #1 #0 #0 ~IDENTIFIED&UNSTEALABLE~ #1 ADD_STORE_ITEM ~R#ASHALB~ #1 #0 #0 ~IDENTIFIED&UNSTEALABLE~ #1 From the .DEBUG file: WeiDU v 185 Log C:\Program Files\Black Isle\BGII - SoA\setup-AbyStore.exe [./CHITIN.KEY] loaded, 590551 bytes [./CHITIN.KEY] 182 BIFFs, 41793 resources [dialog.tlk] loaded, 8980709 bytes [dialog.tlk] 75865 string entries [./Autorun.ini] loaded, 1452 bytes [./baldur.ini] loaded, 2175 bytes Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD1\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD2\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD2\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD3\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD4\] Possible HD/CD Path: [C:\Program Files\Black Isle\BGII - SoA\CD5\] [./Keymap.ini] loaded, 5615 bytes [./Mplaynow.ini] loaded, 230 bytes [dialog.tlk] claims to be writeable. [dialog.tlk] claims to be a regular file. [WeiDU.log] parsed [ABYSTORE/ABYSTORE.TP2] parsed Choose your language: 0 [English] 1 [Polish] 2 [Russian (by AERIE.ru)] 3 [French] 4 [Italian (by Ilot)] [English] has 1 top-level TRA files [AbyStore/english/abysetup.tra] parsed [AbyStore/english/abysetup.tra] has 32 translation strings BANTERPACK/SETUP-BANTERPACK.TP2 0 0 Installed BANTERPACK/SETUP-BANTERPACK.TP2 0 2 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 0 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 2 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 8 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 10 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 0 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 1 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 2 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 3 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 4 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 5 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 6 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 7 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 8 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 9 Installed ALLISON/SETUP-ALLISON.TP2 0 0 Installed Install Component [Unusual Oddities Shop] [Y]es or [N]o or [Q]uit? Installing [Unusual Oddities Shop] Copying 1 file ... BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD5\/data/Items.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD4\/data/Items.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD3\/data/Items.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD2\/data/Items.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD2\/data/Items.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD1\/data/Items.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\/data/Items.bif] [C:\Program Files\Black Isle\BGII - SoA\/data/Items.bif] 659688 bytes, 1990 files, 0 tilesets Copied [SW1H01.ITM] to [override/r#abystore.rpgd] Copying and patching 1 file ... [AbyStore/r#asoswd.itm] loaded, 266 bytes Copied [AbyStore/r#asoswd.itm] to [override/r#asoswd.itm] Copying and patching 1 file ... [AbyStore/r#aspchn.itm] loaded, 354 bytes Copied [AbyStore/r#aspchn.itm] to [override/r#aspchn.itm] Copying and patching 1 file ... [AbyStore/r#asshld.itm] loaded, 306 bytes Copied [AbyStore/r#asshld.itm] to [override/r#asshld.itm] Copying and patching 1 file ... [AbyStore/r#asgclk.itm] loaded, 354 bytes Copied [AbyStore/r#asgclk.itm] to [override/r#asgclk.itm] Copying and patching 1 file ... [AbyStore/r#asmgau.itm] loaded, 210 bytes Copied [AbyStore/r#asmgau.itm] to [override/r#asmgau.itm] Copying and patching 1 file ... [AbyStore/r#asmstf.itm] loaded, 314 bytes Copied [AbyStore/r#asmstf.itm] to [override/r#asmstf.itm] Copying and patching 1 file ... [AbyStore/r#ashalb.itm] loaded, 458 bytes Copied [AbyStore/r#ashalb.itm] to [override/r#ashalb.itm] Copying and patching 1 file ... [AbyStore/r#asdemn.cre] loaded, 1076 bytes Copied [AbyStore/r#asdemn.cre] to [override/r#asdemn.cre] Compiling 1 dialogue file ... [AbyStore/english/abysima.TRA] parsed [AbyStore/english/abysima.TRA] has 16 translation strings [./override/TRIGGER.IDS] loaded, 7725 bytes [TRIGGER.IDS] parsed [./override/ACTION.IDS] loaded, 13073 bytes [ACTION.IDS] parsed [./override/OBJECT.IDS] loaded, 1735 bytes [OBJECT.IDS] parsed [AbyStore/abysima.d] parsed Processing 1 dialogues/scripts ... Adding R#ASDEMN to internal list of available DLGs [R#ASDEMN.DLG] saved 5 states, 13 trans, 2 strig, 0 ttrig, 3 actions Extending game scripts ... [AbyStore/AbyArea.baf] loaded, 163 bytes [AbyStore/AbyArea.baf] parsed BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD5\/data/Scripts.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD4\/data/Scripts.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD3\/data/Scripts.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD2\/data/Scripts.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD2\/data/Scripts.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\CD1\/data/Scripts.bif] BIFF may be in hard-drive CD-path [C:\Program Files\Black Isle\BGII - SoA\/data/Scripts.bif] [C:\Program Files\Black Isle\BGII - SoA\/data/Scripts.bif] 6510477 bytes, 2825 files, 0 tilesets [AR0300.bcs] parsed Extended script [AR0300.bcs] with [AbyStore/AbyArea.baf] Copying and patching 1 file ... [AbyStore/r#asdemn.sto] loaded, 168 bytes ERROR: [AbyStore/r#asdemn.sto] -> [override] Patching Failed (COPY) (Invalid_argument("String.sub")) Stopping installation because of error. ERROR Installing [Unusual Oddities Shop], rolling back to previous state [AbyStore/backup/0/UNSETSTR.0] SET_STRING uninstall info not found [AbyStore/backup/0/UNINSTALL.0] loaded, 243 bytes Will uninstall 11 files for [ABYSTORE/ABYSTORE.TP2] component 0. Deleting [override/AR0300.bcs] (to restore original game condition) Deleting [override/R#ASDEMN.dlg] (to restore original game condition) Deleting [override/r#asdemn.cre] (to restore original game condition) Deleting [override/r#ashalb.itm] (to restore original game condition) Deleting [override/r#asmstf.itm] (to restore original game condition) Deleting [override/r#asmgau.itm] (to restore original game condition) Deleting [override/r#asgclk.itm] (to restore original game condition) Deleting [override/r#asshld.itm] (to restore original game condition) Deleting [override/r#aspchn.itm] (to restore original game condition) Deleting [override/r#asoswd.itm] (to restore original game condition) Deleting [override/r#abystore.rpgd] (to restore original game condition) Uninstalled 11 files for [ABYSTORE/ABYSTORE.TP2] component 0. BANTERPACK/SETUP-BANTERPACK.TP2 0 0 Installed BANTERPACK/SETUP-BANTERPACK.TP2 0 2 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 0 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 2 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 8 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 10 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 0 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 1 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 2 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 3 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 4 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 5 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 6 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 7 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 8 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 9 Installed ALLISON/SETUP-ALLISON.TP2 0 0 Installed ERROR: Invalid_argument("String.sub") PLEASE email the file SETUP-ABYSTORE.DEBUG to Rastor <rastor@rpgdungeon.net> [English] has 1 top-level TRA files [AbyStore/english/abysetup.tra] parsed [AbyStore/english/abysetup.tra] has 32 translation strings Install Component [Unusual Oddities Shop] [Y]es or [N]o or [Q]uit? Saving This Log: BANTERPACK/SETUP-BANTERPACK.TP2 0 0 Installed BANTERPACK/SETUP-BANTERPACK.TP2 0 2 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 0 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 2 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 8 Installed NPCFLIRT/SETUP-NPCFLIRT.TP2 0 10 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 0 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 1 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 2 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 3 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 4 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 5 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 6 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 7 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 8 Installed PHAERE_PORTS/PHAERE_PORTS.TP2 0 9 Installed ALLISON/SETUP-ALLISON.TP2 0 0 Installed [BANTERPACK/SETUP-BANTERPACK.TP2] parsed [banterpack/english/setup.tra] parsed [banterpack/english/setup.tra] has 14 translation strings [banterpack/english/setup.tra] parsed [banterpack/english/setup.tra] has 14 translation strings [NPCFLIRT/SETUP-NPCFLIRT.TP2] parsed [npcflirt/english/setup.tra] parsed [npcflirt/english/setup.tra] has 24 translation strings [npcflirt/english/setup.tra] parsed [npcflirt/english/setup.tra] has 24 translation strings [npcflirt/english/setup.tra] parsed [npcflirt/english/setup.tra] has 24 translation strings [npcflirt/english/setup.tra] parsed [npcflirt/english/setup.tra] has 24 translation strings [PHAERE_PORTS/PHAERE_PORTS.TP2] parsed [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [phaere_ports/english/setup.tra] parsed [phaere_ports/english/setup.tra] has 12 translation strings [ALLISON/SETUP-ALLISON.TP2] parsed [allison/english/setup.tra] parsed [allison/english/setup.tra] has 5 translation strings 3441 characters, 30 entries added to DIALOG.TLK [dialog.tlk] created, 75895 string entries WeiDU Timings adding translation strings 0.000 parsing .d files 0.000 AT_* 0.000 parsing .tp2 files 0.000 READ_* 0.000 load TLK 0.000 marshal DLG 0.000 process .D files 0.000 resolve labels 0.000 find local string 0.000 parsing .tra files 0.000 parsing .log files 0.000 resolve strings 0.000 PATCH_IF 0.000 BUT_ONLY 0.000 process_patch2 0.000 parsing .baf files 0.000 strings to add 0.000 eval_pe 0.000 unmarshal BIFF 0.010 parsing .ids files 0.020 marsmahl BCS 0.020 parsing .bcs files 0.020 tp2 uninstall 0.030 saving files 0.070 COPY 0.091 unmarshal KEY 0.140 COMPILE 0.140 EXTEND_* 0.151 unmarshal TLK 0.321 add strings to TLK 0.330 marshal and save TLK 0.391 loading files 0.510 TOTAL 2.244 Executing: [start AbyStore/readme-AbyStore.html] Could anyone help me out? Link to comment
the bigg Posted March 20, 2006 Share Posted March 20, 2006 Ten bucks that said store is invalid. Link to comment
Guest Rastor_as_Guest Posted March 21, 2006 Share Posted March 21, 2006 DLTCEP says that it's perfectly fine. Link to comment
Avenger Posted March 22, 2006 Share Posted March 22, 2006 Why that (Invalid_argument("String.sub")) ? Doesn't seem to be a bad store, more like a bad tp2 syntax? Link to comment
the bigg Posted March 22, 2006 Share Posted March 22, 2006 DLTCEP says that it's perfectly fine. <{POST_SNAPBACK}> DLTCEP is just a big POS. Does the original store work in game? Does your patch work with v191? if it doesn't work with v191 either, can you try to install the mod with --debug-ocaml? Invalid_argument usually happens if it tries to split a string out of bounds (IE, if it's long 10 and it tries to read from 20 to 30). Link to comment
devSin Posted March 22, 2006 Share Posted March 22, 2006 I think it usually crops up with actions that don't do higher-level bounds-checking. It was all the rage back when Wes' didn't do any bounds-checking at all. DLTCEP may like it if it doesn't have any items and such, even though the offsets may be wrong. Send your store to bigg, in case WeiDU is choking on "shell" stores that don't have any extended structures (i.e., all the offsets are the same), or with stores that don't have any existing items. Link to comment
Rastor Posted March 23, 2006 Author Share Posted March 23, 2006 Yep. WeiDU v191 does not like stores with no items in it. This is really something that should be fixed in a later release. I'll try adding items to it with DLTCEP and see if that helps. Link to comment
Guest bigg_at_work Posted March 23, 2006 Share Posted March 23, 2006 Yep. WeiDU v191 does not like stores with no items in it. This is really something that should be fixed in a later release. I'll try adding items to it with DLTCEP and see if that helps. <{POST_SNAPBACK}> Underrepresented items from Weimer installs just fine with v191 and has empty store patching. Could you send your store file at thebigg@spellholdstudios.net? Link to comment
Guest Bigg at school Posted March 23, 2006 Share Posted March 23, 2006 Nevermind, it's already there Link to comment
the bigg Posted March 23, 2006 Share Posted March 23, 2006 You owe me those then bucks. Your .sto file has the items for sale section after the items that will be bought (while it should be the reverse). Write 0x9C to offset 0x34 (which ATM contains 0xA8) for a uber-quick fix. Link to comment
Guest Rastor_as_Guest Posted March 23, 2006 Share Posted March 23, 2006 Then the problem is with DLTCEP making the store. *wonders if it would be easier to just make his own modding tools* Link to comment
Avenger Posted March 23, 2006 Share Posted March 23, 2006 Well the game doesn't care about the order. But i can swap it, as the original stores are truly created that way. Link to comment
Avenger Posted March 23, 2006 Share Posted March 23, 2006 The original order is this: 1. drinks 2. stored items 3. spells 4. itemtypes dltcep saves them in the order of: 1. drinks 2. spells 3. itemtypes 4. stored items the game saves them in this order: 1. stored items 2. itemtypes 3. drinks 4. spells Only weidu complained so far So, if there are drinks/spells in the store too, weidu would still screw the store (well, it won't because you don't patch saved games yet) regardless how dltcep saves it. While i can significantly mitigate the problem by changing dltcep to save items like the original world editor, the right way of fixing this would be to fix add_store_item Link to comment
devSin Posted March 23, 2006 Share Posted March 23, 2006 Indeed. As long as there aren't overlapping structures or invalid offsets, the order shouldn't matter, and WeiDU shouldn't fail. DLTCEP really should save stores in the default BioWare order, however. So you both need to fix things. Link to comment
the bigg Posted March 23, 2006 Share Posted March 23, 2006 Indeed. As long as there aren't overlapping structures or invalid offsets, the order shouldn't matter, and WeiDU shouldn't fail. <{POST_SNAPBACK}> Thank you, now I need to find a cliff to jump off from. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.