Jump to content


Photo

BPv179 with WeiDU 21400


  • Please log in to reply
12 replies to this topic

#1 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 28 March 2010 - 10:01 AM

Heya :cheers:

I tried an install with all the mod installers updated to WeiDU 21400 and BPv179 stalled saying this...
Patching STATS.IDS...
Copying and patching 1 file ...
ERROR: Cannot find 167 rows with at least 2 columns.ERROR: [STATS.IDS] -> [override] Patching Failed (COPY) (Failure("Cannot Set 2DA Entry"))
Stopping installation because of error.

ERROR Installing [Big Picture AI/Enhancement Mod, version 179 weidu (beta)], rolling back to previous state
Will uninstall 118 files for [SETUP-BPV179.TP2] component 0.
Uninstalled    118 files for [SETUP-BPV179.TP2] component 0.
ERROR: Failure("Cannot Set 2DA Entry")
PLEASE email the file SETUP-BPV179.DEBUG to The BP Crew
Automatically Skipping [Big Picture AI/Enhancement Mod, version 179 weidu (beta)] because of error.
Using Language [English]
[dialog.tlk] created, 296707 string entries

NOT INSTALLED DUE TO ERRORS Big Picture AI/Enhancement Mod, version 179 weidu (beta)
As of reporting this, WeiDU 21500 is out so I dunno if there was anything buggy in 21400 that might've caused this (and subsequently fixed in 21500 :P)

Anyway, WeiDU.log before BPv179
Spoiler


Thanks for any help! :)

"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#2 horred the plague

horred the plague

    Scourge of the Seven Seas

  • Modder
  • 1899 posts

Posted 29 March 2010 - 04:32 AM

All I can say with certainty, is nothing changed in BP from before this version until now, and that it worked great in the last weidu version. Sorry, I haven't been following weidu update news.

#3 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 29 March 2010 - 07:41 AM

Thanks for looking at this :cheers: the bigg mentioned something about writing out of bounds and stuff here... and WeiDU 21500 gives the same error :(

It'd probably best to see if someone else gets this same error or if this is a one-off case for me :)

"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#4 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 29 March 2010 - 07:45 AM

It's a write out of bounds that previous versions of WeiDU didn't notice.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#5 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 29 March 2010 - 08:30 AM

Relevant code that fubars from the .tp2 :P

COPY_EXISTING ~STATS.IDS~ ~override~
 SET_2DA_ENTRY 0 0 1 ~1~   //that's a trick for WeiDU to handle row numbers properly - removes all leading empty rows
 COUNT_2DA_ROWS 2 "rows_cnt"
 FOR( cnt=1; cnt<"%rows_cnt%"+1; cnt=cnt+1 ) BEGIN
   READ_2DA_ENTRY (cnt+0xffffffff) 0 2 "id"
   PATCH_IF( "%id%" = 109 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_HALLOW~
   END
   PATCH_IF( "%id%" = 110 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_ARMOR_OF_FAITH~
   END
   PATCH_IF( "%id%" = 116 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_SPELL_DEFLECTION~                          
   END                                                                 
   PATCH_IF( "%id%" = 117 ) BEGIN                 
     SET_2DA_ENTRY cnt 1 2 ~PROTECTION_FROM_EVIL~
   END                                                                 
   PATCH_IF( "%id%" = 118 ) BEGIN                 
     SET_2DA_ENTRY cnt 1 2 ~TRUE_SIGHT~
   END                                                         
   PATCH_IF( "%id%" = 119 ) BEGIN                 
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_CHAOTIC_COMMANDS~        
   END                                                  
   PATCH_IF( "%id%" = 120 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_INSECT_PLAGUE~
   END
   PATCH_IF( "%id%" = 121 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_BLADE_BARRIER~        
   END
   PATCH_IF( "%id%" = 122 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_PHYSICAL_MIRROR~        
   END                                                                      
   PATCH_IF( "%id%" = 123 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_SHIELD_OF_THE_ARCHONS~
   END                                                                      
   PATCH_IF( "%id%" = 124 ) BEGIN                 
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_REGENERATION~        
   END                                                                
   PATCH_IF( "%id%" = 125 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_FIRE_SHIELD~
   END
   PATCH_IF( "%id%" = 126 ) BEGIN                 
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_PROTECTION_FROM_MAGIC_ENERGY~
   END                                                                   
   PATCH_IF( "%id%" = 127 ) BEGIN                 
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_MISLEAD~        
   END
   PATCH_IF( "%id%" = 128 ) BEGIN                 
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_PROTECTION_FROM_MAGIC_WEAPONS~
   END
   PATCH_IF( "%id%" = 129 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_SPELL_TURNING~
   END
   PATCH_IF( "%id%" = 130 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_PROTECTION_FROM_THE_ELEMENTS~
   END
   PATCH_IF( "%id%" = 131 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_FREE_ACTION~
   END
   PATCH_IF( "%id%" = 132 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_KHELBANS_WARDING_WHIP~
   END
   PATCH_IF( "%id%" = 133 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~CLERIC_DEFENSIVE_HARMONY~
   END
   PATCH_IF( "%id%" = 134 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~LEVELDRAIN~
   END
   PATCH_IF( "%id%" = 156 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~SCRIPTINGSTATE1~
   END
   PATCH_IF( "%id%" = 157 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~SCRIPTINGSTATE2~
   END
   PATCH_IF( "%id%" = 158 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~SCRIPTINGSTATE3~
   END
   PATCH_IF( "%id%" = 159 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~SCRIPTINGSTATE4~
   END
   PATCH_IF( "%id%" = 160 ) BEGIN                        
     SET_2DA_ENTRY cnt 1 2 ~SCRIPTINGSTATE5~                  
   END                                                         
   PATCH_IF( "%id%" = 161 ) BEGIN                             
     SET_2DA_ENTRY cnt 1 2 ~SCRIPTINGSTATE6~
   END
   PATCH_IF( "%id%" = 162 ) BEGIN                           
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_SPELL_IMMUNITY~                  
   END
   PATCH_IF( "%id%" = 163 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_PROTECTION_FROM_ENERGY~
   END
   PATCH_IF( "%id%" = 164 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_SPELL_TRAP~
   END
   PATCH_IF( "%id%" = 165 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_IMPROVED_ALACRITY~
   END
   PATCH_IF( "%id%" = 176 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_PROTECTION_FROM_PETRIFICATION~
   END
   PATCH_IF( "%id%" = 177 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_SPELL_SHIELD~
   END
   PATCH_IF( "%id%" = 178 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_RESIST_FEAR~
   END
   PATCH_IF( "%id%" = 179 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_PROTECTION_FROM_NORMAL_MISSILES~
   END
   PATCH_IF( "%id%" = 180 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_GREATER_MALISON~
   END
   PATCH_IF( "%id%" = 181 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_PROTECTION_FROM_NORMAL_WEAPONS~
   END
   PATCH_IF( "%id%" = 182 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~WIZARD_TENSERS_TRANSFORMATION~
   END
   PATCH_IF( "%id%" = 200 ) BEGIN
     SET_2DA_ENTRY cnt 1 2 ~LEVELDRAIN_WRONG~
   END
 END
BUT_ONLY_IF_IT_CHANGES

APPEND ~STATS.IDS~ ~176 WIZARD_PROTECTION_FROM_PETRIFICATION~ UNLESS ~WIZARD_PROTECTION_FROM_PETRIFICATION~
APPEND ~STATS.IDS~ ~177 WIZARD_SPELL_SHIELD~ UNLESS ~WIZARD_SPELL_SHIELD~
APPEND ~STATS.IDS~ ~178 WIZARD_RESIST_FEAR~ UNLESS ~WIZARD_RESIST_FEAR~
APPEND ~STATS.IDS~ ~179 WIZARD_PROTECTION_FROM_NORMAL_MISSILES~ UNLESS ~WIZARD_PROTECTION_FROM_NORMAL_MISSILES~
APPEND ~STATS.IDS~ ~180 WIZARD_GREATER_MALISON~ UNLESS ~WIZARD_GREATER_MALISON~
APPEND ~STATS.IDS~ ~181 WIZARD_PROTECTION_FROM_NORMAL_WEAPONS~ UNLESS ~WIZARD_PROTECTION_FROM_NORMAL_WEAPONS~
APPEND ~STATS.IDS~ ~182 WIZARD_TENSERS_TRANSFORMATION~ UNLESS ~WIZARD_TENSERS_TRANSFORMATION~
... probably the first SET_2DA_ENTRY but ... I'm probably being stupid :lol:

"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#6 -Fennek-

-Fennek-
  • Guest

Posted 30 March 2010 - 02:10 AM

(Just to mention this: We get the same error at Kerzenburg.)

#7 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 31 March 2010 - 02:54 AM

Well, clearly someone needs to mess with the code until it works (not me - too many other things to do :P). I don't think it was like it was working before, so it's not like this WeiDU hosed it - it just wasn't being reported as an error before. So it might've seemed like it worked.

This is a bit perplexing though:
ERROR: Cannot find 167 rows with at least 2 columns.
I don't know why it needs to find that many rows from the given code. Offhand, "cnt" might be off by 1 or something, dunno. 2DAs are a pain.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#8 maximus2001

maximus2001
  • Member
  • 525 posts

Posted 31 March 2010 - 08:35 AM

I'm getting the same error as well. (have weidu 215)

Patching STATS.IDS...
Copying and patching 1 file ...
ERROR: Cannot find 167 rows with at least 2 columns.ERROR: [STATS.IDS] -> [override] Patching Failed (COPY) (Failure("Cannot Set 2DA Entry"))
Stopping installation because of error.

ERROR Installing [Big Picture AI/Enhancement Mod, version 179 weidu (beta)], rolling back to previous state
Will uninstall 412 files for [SETUP-BPV179.TP2] component 0.
Uninstalled 412 files for [SETUP-BPV179.TP2] component 0.
ERROR: Failure("Cannot Set 2DA Entry")
PLEASE email the file SETUP-BPV179.DEBUG to The BP Crew
Automatically Skipping [Big Picture AI/Enhancement Mod, version 179 weidu (beta)] because of error.

Attached File  BiG World Debug.rar   255.53K   451 downloads

Attached File  SETUP-BPV179.rar   17.18K   579 downloads

Attached File  SETUP-BPSERIES.rar   6.35K   438 downloads this also failed because bp didn't install.

#9 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 31 March 2010 - 09:20 PM

Well, not sure if it's the best way but one way to fix it is to replace this code in Setup-BPv179.tp2:
COPY_EXISTING ~STATS.IDS~ ~override~
  SET_2DA_ENTRY 0 0 1 ~1~   //that's a trick for WeiDU to handle row numbers properly - removes all leading empty rows
  COUNT_2DA_ROWS 2 "rows_cnt"
  FOR( cnt=1; cnt<"%rows_cnt%"+1; cnt=cnt+1 ) BEGIN
    READ_2DA_ENTRY (cnt+0xffffffff) 0 2 "id"
With this:
COPY_EXISTING ~STATS.IDS~ ~override~
  SET_2DA_ENTRY 0 0 1 ~1~   //that's a trick for WeiDU to handle row numbers properly - removes all leading empty rows
  COUNT_2DA_ROWS 2 "rows_cnt"
  FOR( cnt=0; cnt<rows_cnt; cnt=cnt+1 ) BEGIN
    READ_2DA_ENTRY cnt 0 2 "id"
So did this actually work in previous WeiDUs or did it just generate a crapload of parse errors? That wouldn't've prevented it from installing of course. It just would've made a lot of script blocks invalid.

Edit: changed a line

Edited by Miloch, 31 March 2010 - 09:49 PM.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#10 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 01 April 2010 - 03:12 AM

I'll confirm that this works :) BPv179 can now be installed fine :D Thanks a lot Miloch! :coolthumb:

So did this actually work in previous WeiDUs or did it just generate a crapload of parse errors? That wouldn't've prevented it from installing of course. It just would've made a lot of script blocks invalid.

Well, it didn't generate any errors during installation in earlier WeiDUs :unsure:

Anyway, attaching the fixed .tp2 :)

Attached Files


"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod


#11 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 01 April 2010 - 03:57 AM

It would've generated warnings.

Italian users: help test the Stivan NPC!

Author or Co-Author: WeiDU - Widescreen - Generalized Biffing - Refinements - TB#Tweaks - IWD2Tweaks - TB#Characters - Traify Tool - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics - Nalia Mod - Nvidia Fix
Code dumps: Detect custom secondary types - Stutter Investigator

If possible, send diffs, translations and other contributions using Git.


#12 horred the plague

horred the plague

    Scourge of the Seven Seas

  • Modder
  • 1899 posts

Posted 01 April 2010 - 04:22 AM

I guess a new version will have to come out sooner, instead of later, thanks to this.

#13 Chevalier

Chevalier

    Knight of the Realms

  • Modder
  • 2405 posts

Posted 01 April 2010 - 04:59 AM

BPv179f has been uploaded!

I Ride for the King!


a.k.a. Chev