Jump to content


Photo

SET_2DA_ENTRY


  • Please log in to reply
43 replies to this topic

#1 Leomar

Leomar
  • Member
  • 1720 posts

Posted 15 January 2010 - 07:35 AM

After installing CtB, I've the following warning in the DEBUG file:
Dealing with TOOLTIP.2DA ...
Copying and patching 1 file ...
WARNING: Fast SET_2DA_ENTRY failed, falling back on old method...
Copied [TOOLTIP.2DA] to [override/TOOLTIP.2DA]
Appending to files ...
[./override/TOOLTIP.2DA] loaded, 61267 bytes
Appended text to [TOOLTIP.2DA]
Copying and patching 1 file ...
[./override/TOOLTIP.2DA] loaded, 64634 bytes
Copied [TOOLTIP.2DA] to [override/TOOLTIP.2DA]
Appending to files ...

WeiDU.log
// Log of Currently Installed WeiDU Mods
// The top of the file is the 'oldest' mod
// ~TP2_File~ #language_number #component_number // [Subcomponent Name -> ] Component Name [ : Version]
~TP/SETUP-TP.TP2~ #0 #0 // MKs BG2 Textpatch Revised: v3.3
~SETUP-A6XPPATCH.TP2~ #1 #0 // Erfahrungspunkte korrekt anzeigen (EXE Patch): 2
~SETUP-A6XPPATCH.TP2~ #1 #1 // Entferne 110% Massstaebe von manchen Erfahrungspunkten (EXE Patch): 2
~SETUP-A6CHARMPATCH.TP2~ #1 #0 // Konversation mit bezauberten/beherrschten Kreaturen ermoeglichen (EXE Patch): 3
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #0 // BG2 Fehlerbehebungen (Hauptteil): v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #3 // BG2 BETA Fehlerbehebungen (Hauptteil)   (schaut bitte in die Liesmich Datei!): v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #100 // Gruppe bekommt XP, wenn sie Keldorn zu Maria schickt: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #101 // Verbesserte Zauber-Animationen: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #102 // Cromwell braucht zum Schmieden wirklich einen Tag: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #103 // Unterschiedliche Benutzung des Dolches beheben: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #104 // Ghreyfains Heiliges Symbol beheben: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #106 // Riesen erhalten Abzuege, wenn sie Halblinge, Zwerge und  Gnome angreifen: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #107 // Entfernt Mehrklassen-Beschraenkung von Bogenschuetzen/ Pirschern: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #108 // Entfernt den 2. Bonus fuer den boesen Weg bei den Pruefungen der Hoelle: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #109 // Korrigiertes Verhalten beschworener Daemonen: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #110 // Zusaetzliche Korrekturen der Skripte: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #111 // Berichtigte Bardenlieder: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #112 // Magierkiller verursachen "Magie fehlwirken" im Fernkampf: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #113 // Zusaetzliche Gesinnungen korrigieren: v8 BWP Fix
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #3 #114 // Handlungsfreiheit zu Schutz vor Betaeubung aendern: v8 BWP Fix
~SETUP-TDD.TP2~ #3 #0 // Der Dunkelste Tag, v1.12: v1.12 BWP Fix
~SETUP-SOS.TP2~ #2 #0 // Shadows Over Soubar: 1.13
~SETUP-CTB.TP2~ #4 #0 // Check The Bodies: 1.12~

Greetings Leomar
A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#2 cmorgan

cmorgan
  • Modder
  • 2301 posts

Posted 15 January 2010 - 12:01 PM

Leomar, my advice is to check with the bigg, because while I believe this is a harmless cosmetic warning (it just tells you that it is using an older, slower method of setting a column entry in the TOOLTIP.2DA... it gives the information right in the warning) I could be wrong.

My initial guess is that either TDD or SOS use older code to add columns or rows to TOOLTIP.2DA, so that when CTB looks at it, things are in a format that requires WeiDU to use the older method to figure out where the SET_2DA_ENTRY is supposed to go.


As I understand it, pretty .2da columns all lined up are for the modder, not the engine - this:

 abc def ghi
0 123 456 789
1 123 456 789
2 123 456 789
and this:
abc def ghi
0 123 	456 	789
1 123 456 	789
2 	123 456 	789

all end up looking the same to the engine. But to WeiDU, it makes a difference - but only as far as which method is used behind the scenes.

Edited by cmorgan, 15 January 2010 - 12:03 PM.


#3 Leomar

Leomar
  • Member
  • 1720 posts

Posted 16 January 2010 - 07:43 AM

Thanks for your answer cmorgan. As I tried to install NTotSC I've a problem with the TOOLTIP.2DA, now, and I think the problem with the SET_2DA_ENTRY has to do with it.
I reported it here: http://www.shsforums...tsc-tooltip2da/

Leomar, my advice is to check with the bigg, because while I believe this is a harmless cosmetic warning (it just tells you that it is using an older, slower method of setting a column entry in the TOOLTIP.2DA... it gives the information right in the warning) I could be wrong.

Looks like, it is not so harmless. I'll let it thebigg know.

Greetings Leomar

Edited by Leomar, 16 January 2010 - 07:51 AM.

A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#4 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 16 January 2010 - 08:23 AM

Can I see tooltip.2da (prior to installing CtB) and the relevant code?

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 cmorgan

cmorgan
  • Modder
  • 2301 posts

Posted 16 January 2010 - 08:42 AM

I can't help with the former, but the latter - Leomar, you will need to back out to before CtB and post the corresponding tooltip.2da.

From Setup-CtB.tp2, version 1.12, lines 342 - 442

PRINT ~Dealing with TOOLTIP.2DA ...~ COPY_EXISTING ~TOOLTIP.2DA~ ~override~ SET required_columns = 10 SET rows=2 SET rows_prev=0 SET col_cnt=0 WHILE "%rows%">1 BEGIN col_cnt = col_cnt + 1 rows_prev = rows COUNT_2DA_ROWS col_cnt rows END col_cnt = col_cnt - 1 SET ccc = col_cnt - 1 PATCH_IF 1 BEGIN SPRINT str_add "" SPRINT str "%ccc%" FOR(cnt="%col_cnt%"; cnt<="%required_columns%"; cnt+=1) BEGIN 	SPRINT str "%str%"^" 	%cnt%" 	SPRINT str_add "%str_add%"^" 	-1" END READ_2DA_ENTRY 0 0 3 "test" PATCH_IF( "%test%"=1 ) BEGIN 	SET_2DA_ENTRY 0 0 3 "0 	1" END PATCH_IF("%ccc%"<"%required_columns%") BEGIN 	SET_2DA_ENTRY 0 ccc ccc "%str%" 	FOR(j=1; j<="%rows_prev%"; j+=1) BEGIN 	READ_2DA_ENTRY j ccc col_cnt "last" 	SPRINT str "%last%"^"%str_add%" 	SET_2DA_ENTRY j ccc col_cnt "%str%" 	END END END BUT_ONLY_IF_IT_CHANGES APPEND ~TOOLTIP.2DA~ ~CBWTNI3a 	12048 	12072 	13073 	07571 	25934 	32393 	25960 	25944 	7783 	23358kkkkkk CBMALR1a 	26799 	26465 	20935 	20853 	23726 	40271 	29743 	29744 	-1 	-1kkkkkk CBMALR2a 	k80146 	38596 	2445 	25633 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBMALR4a 	k80147 	k80148 	k80149 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBMALR6a 	k80150 	k80151 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBCWSTFF 	k80152 	12017 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBMTDGME 	k80153 	12016 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBCHAUNT 	k80154 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBCYRICx 	22185 	12072 	49073 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CB2HCONV 	k650007 	7619 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBBK7521 	12089 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBBK7526 	12121 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBBK7534 	12083 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBBK7535 	k253 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBBK7537 	12108 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBBK7538 	12090 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBDGCONV 	k650007 	7619 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBDRDSWD 	k650284 	12094 	12026 	8786 	k32 	-1 	-1 	-1 	-1 	-1kkkkkk CBGEMSEE 	25633 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBHLD001 	25937 	12021 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBHLD002 	25875 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBLSCONV 	k650007 	7619 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBMSCONV 	k650007 	7619 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBNRTSTF 	k650451 	12089 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk CBXTLTcc 	12116 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1 	-1kkkkkk~ COPY_EXISTING ~TOOLTIP.2DA~ ~override~ //******** number of items in appended rows *** SET present_cols = 11 //********************************************* SET rows=2 SET rows_prev=0 SET col_cnt=0 WHILE "%rows%">1 BEGIN col_cnt = col_cnt + 1 rows_prev = rows COUNT_2DA_ROWS col_cnt rows END col_cnt = col_cnt - 1 SET ccc = col_cnt - 1 SPRINT str_add "" FOR(cnt="%present_cols%"; cnt<"%col_cnt%"; cnt+=1) BEGIN SPRINT str_add "%str_add%"^" 	-1" END REPLACE_TEXTUALLY ~kkkkkk~ "%str_add%" REPLACE ~k80146~ @146 REPLACE ~k80147~ @147 REPLACE ~k80148~ @148 REPLACE ~k80149~ @149 REPLACE ~k80150~ @150 REPLACE ~k80151~ @151 REPLACE ~k80152~ @650271 REPLACE ~k80153~ @153 REPLACE ~k80154~ @661025 REPLACE ~k650007~ @650007 REPLACE ~k253~	@253 REPLACE ~k650284~ @650284 REPLACE ~k32~ 	@32 REPLACE ~k650451~ @650451

I think the forum software cleans up some spacing, because that looks a good deal neater set of columns then when it iopes up in N++ or Crimson...

edit: great. Codebox just ran it into one line. I will try again. and then NOT EDIT it!!!!

Edited by cmorgan, 16 January 2010 - 11:37 AM.


#6 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 16 January 2010 - 08:56 AM

use [ code ].

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.


#7 cmorgan

cmorgan
  • Modder
  • 2301 posts

Posted 16 January 2010 - 11:38 AM

heh.

Just did an edit to put it in [ code ] , and it reformatted it into a single line again... should have left well enough alone :D

#8 Hoppy

Hoppy

    Mage Hunter

  • Member
  • 2107 posts

Posted 16 January 2010 - 02:58 PM

heh.

Just did an edit to put it in [ code ] , and it reformatted it into a single line again... should have left well enough alone :D



Hi cmorgan and thanks for helping out old friend 8). I am not sure what you had before you edited your post if I wrap the TP2 code as a code snippet so I did it here. It looks just like the TP2 as far as spacing (Tab, 2 Tabs). Colors are fun but not done on purpose by me.

I think since TDD and SoS had inter-compatibility code by King Diamond to work together with each other and CtB and RoT, they probably aren't doing anything significantly different to patch and add columns to the TOOLTIP.2da. This could be coming out entirely different with the Weidu changes since the code is the same from 1.11 and previous versions which had no problem with other mods.

PRINT ~Dealing with TOOLTIP.2DA ...~

COPY_EXISTING ~TOOLTIP.2DA~ ~override~
 SET required_columns = 10
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 PATCH_IF 1 BEGIN
   SPRINT str_add ""
   SPRINT str "%ccc%"
   FOR(cnt="%col_cnt%"; cnt<="%required_columns%"; cnt+=1) BEGIN
     SPRINT str "%str%"^"          %cnt%"
     SPRINT str_add "%str_add%"^"         -1"
   END

   READ_2DA_ENTRY 0 0 3 "test"
   PATCH_IF( "%test%"=1 ) BEGIN
     SET_2DA_ENTRY 0 0 3 "0                  1"
   END

   PATCH_IF("%ccc%"<"%required_columns%") BEGIN
     SET_2DA_ENTRY 0 ccc ccc "%str%"

     FOR(j=1; j<="%rows_prev%"; j+=1) BEGIN
       READ_2DA_ENTRY j ccc col_cnt "last"
       SPRINT str "%last%"^"%str_add%"
       SET_2DA_ENTRY j ccc col_cnt "%str%"
     END
   END
 END
BUT_ONLY_IF_IT_CHANGES

APPEND ~TOOLTIP.2DA~
~CBWTNI3a          12048        12072       13073      07571      25934      32393      25960      25944      7783       23358kkkkkk
CBMALR1a          26799        26465       20935      20853      23726      40271      29743      29744      -1         -1kkkkkk
CBMALR2a          k80146        38596       2445       25633      -1         -1         -1         -1         -1         -1kkkkkk
CBMALR4a          k80147        k80148       k80149      -1         -1         -1         -1         -1         -1         -1kkkkkk
CBMALR6a          k80150        k80151       -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBCWSTFF          k80152        12017       -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBMTDGME          k80153        12016       -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBCHAUNT          k80154        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBCYRICx          22185        12072       49073      -1         -1         -1         -1         -1         -1         -1kkkkkk
CB2HCONV          k650007        7619        -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBBK7521          12089        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBBK7526          12121        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBBK7534          12083        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBBK7535          k253        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBBK7537          12108        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBBK7538          12090        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBDGCONV          k650007        7619        -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBDRDSWD          k650284        12094       12026      8786       k32      -1         -1         -1         -1         -1kkkkkk
CBGEMSEE          25633        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBHLD001          25937        12021       -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBHLD002          25875        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBLSCONV          k650007        7619        -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBMSCONV          k650007        7619        -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBNRTSTF          k650451        12089       -1         -1         -1         -1         -1         -1         -1         -1kkkkkk
CBXTLTcc          12116        -1          -1         -1         -1         -1         -1         -1         -1         -1kkkkkk~

COPY_EXISTING ~TOOLTIP.2DA~ ~override~
 //******** number of items in appended rows ***
 SET present_cols = 11
 //*********************************************
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 SPRINT str_add ""
 FOR(cnt="%present_cols%"; cnt<"%col_cnt%"; cnt+=1) BEGIN
   SPRINT str_add "%str_add%"^"         -1"
 END
 REPLACE_TEXTUALLY ~kkkkkk~ "%str_add%"
 REPLACE ~k80146~  @146
 REPLACE ~k80147~  @147
 REPLACE ~k80148~  @148
 REPLACE ~k80149~  @149
 REPLACE ~k80150~  @150
 REPLACE ~k80151~  @151
 REPLACE ~k80152~  @650271
 REPLACE ~k80153~  @153
 REPLACE ~k80154~  @661025
 REPLACE ~k650007~ @650007
 REPLACE ~k253~    @253
 REPLACE ~k650284~ @650284
 REPLACE ~k32~     @32
 REPLACE ~k650451~ @650451

Edited by Hoppy, 16 January 2010 - 03:20 PM.

?May God defend me from my friends; I can defend myself from my enemies.? - Voltaire

"If you think that a size of the mod indicates an amount of bugs that it introduces and their severity you're totally wrong...
Try not to use next time a load of shitty "super-mega-improving-tweaking-revising" small mods that you have installed and try to meet Wulfgar once again."
- King Diamond


Posted Image The Definitive Guide to Trolls

"Finding food and a place to sleep is your own business. I imagine Paul the Cat should have some fun with you, too" - Potencius in The Darkest Day
"You have been warned, little bastard!" -Khelben to a young <CHARNAME>in Check the Bodies
There are those who will snivel, and offer nothing in return except criticism, meanwhile never lifting a finger to do other than to cut other peoples labor down simply for the fact that they lack the capability to put anything of their own together. -erebusant

#9 Mike1072

Mike1072
  • Modder
  • 539 posts

Posted 16 January 2010 - 05:01 PM

I happen to have a BWP standard installation for debugging purposes, and taking a look at tooltip.2da... it's really messed up, and this results in nothing getting their proper tooltips in-game. This is because mods aren't on the same page about how many columns the file has.

I'll be recoding IR's slashing halberds component in the next few days, and will probably create a function to add stuff to the file in a more foolproof way (and fix it if it was previously broken).

Edited by Mike1072, 16 January 2010 - 05:03 PM.


#10 -Guest-

-Guest-
  • Guest

Posted 16 January 2010 - 06:40 PM

Leomar, my advice is to check with the bigg, because while I believe this is a harmless cosmetic warning (it just tells you that it is using an older, slower method of setting a column entry in the TOOLTIP.2DA... it gives the information right in the warning) I could be wrong.

Wes had some ideas for legitimate ways the fallback would occur IIRC, but in the real world, this usually happens because of bad row or column values passed in. I.e., this is a bug or compatibility issue in the mod, and the 2DA will probably have messed up rows/columns.

#11 cmorgan

cmorgan
  • Modder
  • 2301 posts

Posted 16 January 2010 - 08:57 PM

I just took a moment to mentally picture what it would take to make a truly self-repairing set of .2da files... heh.

#12 Leomar

Leomar
  • Member
  • 1720 posts

Posted 17 January 2010 - 04:13 AM

Can I see tooltip.2da (prior to installing CtB) and the relevant code?

I've done a change-log for tooltip.2da.

[WeiDU.exe] WeiDU version 21300
[WeiDU.exe] Using scripting style "BG2"
override/tooltip.2da bg2fixpack/backup/0/tooltip.2da
override/tooltip.2da bg2fixpack/backup/3/tooltip.2da
override/TOOLTIP.2DA TDD/backup/0/TOOLTIP.2DA
override/TOOLTIP.2DA
override/TOOLTIP.2DA

Mods affecting TOOLTIP.2DA:
00000: ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ 3 0 // BG2 Fehlerbehebungen (Hauptteil)
00001: ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ 3 3 // BG2 BETA Fehlerbehebungen (Hauptteil)   (schaut bitte in die Liesmich Datei!)
00002: ~SETUP-TDD.TP2~ 3 0 // Der Dunkelste Tag, v1.12
00003: /* from game biffs */ ~SETUP-SOS.TP2~ 2 0 // Shadows Over Soubar
00004: /* from game biffs */ ~SETUP-CTB.TP2~ 4 0 // Check The Bodies

Attached are the tooltip.2da's which the change-log created. I hope that helps a little bit. And I've used WeiDU v213 for the installation.

Greetings Leomar

Attached Files


A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#13 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 17 January 2010 - 05:07 AM

The zip only contains the versions of tooltip.2da including the changes up to b2fixpack (no thanks to the pants-on-head retarded biffing that Big Mods use). Can I see TDD and SoS's tooltip.2da-related code too?

Edited by the bigg, 17 January 2010 - 05:08 AM.

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.


#14 Leomar

Leomar
  • Member
  • 1720 posts

Posted 17 January 2010 - 08:13 AM

Can I see TDD and SoS's tooltip.2da-related code too?

From TDD:
COPY_EXISTING ~TOOLTIP.2DA~ ~override~
//********* input parameter ************
 SET required_columns = 6
//**************************************
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 PATCH_IF 1 BEGIN
   SPRINT str_add ""
   SPRINT str ~%ccc%~
   FOR(cnt="%col_cnt%"; cnt<="%required_columns%"; cnt+=1) BEGIN
     SPRINT str "%str%"^"          %cnt%"
     SPRINT str_add "%str_add%"^"         -1"
   END

   READ_2DA_ENTRY 0 0 3 "test"
   PATCH_IF( "%test%"=1 ) BEGIN
     SET_2DA_ENTRY 0 0 3 "0                  1"
   END

   PATCH_IF("%ccc%"<"%required_columns%") BEGIN
     SET_2DA_ENTRY 0 ccc ccc "%str%"

     FOR(j=1; j<="%rows_prev%"; j+=1) BEGIN
       READ_2DA_ENTRY j ccc col_cnt "last"
       SPRINT str "%last%"^"%str_add%"
       SET_2DA_ENTRY j ccc col_cnt "%str%"
     END
   END
 END
BUT_ONLY_IF_IT_CHANGES

APPEND ~TOOLTIP.2DA~ ~ARQUINXX          15527        15529       -1         -1         -1         -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~BEARKNFX          15527        15529       -1         -1         -1         -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~POLAW4A           66666666        77777777       88888888      88888880      88888881      88888882kkkkkk~
APPEND ~TOOLTIP.2DA~ ~ARDEADX           77777772        -1          -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~EREBOS            66666660        77777773       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~GHARBOOT          77777774        -1          -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~HEAVENST          66666661        77777775       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~KIBADAY           66666662        77777776       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~KIBAXX            66666662        77777776       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~LV16ROB           66666663        77777778       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~MHSWD             66666664        77777779       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~MISTY             77777780        77777781       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~MITALBRE          66666665        77777782       77777783       88888883       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~MOONLITE          66666667        77777784       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~MOORSX            66666668        77777785       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~QUAKEHAM          66666669        77777786       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~QUOST             66666670        77777787       77777788       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~ROBE2             77777789        77777790       -1       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~STAFDRAG          66666671        77777791       77777792       88888884       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~STAFFBES          66666672        77777778       77777793       -1       -1       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~TYRANT            66666673        77777794       77777795       -1       -1       -1kkkkkk~


COPY_EXISTING ~TOOLTIP.2DA~ ~override~
 //******** number of items in appended rows ***
 SET present_cols = 7
 //*********************************************
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 SPRINT str_add ""
 FOR(cnt="%present_cols%"; cnt<"%col_cnt%"; cnt+=1) BEGIN
   SPRINT str_add "%str_add%"^"         -1"
 END
 REPLACE_TEXTUALLY ~kkkkkk~ "%str_add%"

 REPLACE ~66666666~ @20035
 REPLACE ~77777777~ @20036
 REPLACE ~88888888~ @20037
 REPLACE ~88888880~ @20038
 REPLACE ~88888881~ @20039
 REPLACE ~88888882~ @20040

 REPLACE ~77777772~ @20041

 REPLACE ~66666660~ @20042
 REPLACE ~77777773~ @20043

 REPLACE ~77777774~ @20044

 REPLACE ~66666661~ @20045
 REPLACE ~77777775~ @20046

 REPLACE ~66666662~ @20047
 REPLACE ~77777776~ @20048

 REPLACE ~66666663~ @20049
 REPLACE ~77777778~ @20050

 REPLACE ~66666664~ @20051
 REPLACE ~77777779~ @20052

 REPLACE ~77777780~ @20053
 REPLACE ~77777781~ @20054

 REPLACE ~66666665~ @20055
 REPLACE ~77777782~ @20056
 REPLACE ~77777783~ @20057
 REPLACE ~88888883~ @20058

 REPLACE ~66666667~ @20059
 REPLACE ~77777784~ @20060

 REPLACE ~66666668~ @20061
 REPLACE ~77777785~ @20062

 REPLACE ~66666669~ @20063
 REPLACE ~77777786~ @20064

 REPLACE ~66666670~ @20065
 REPLACE ~77777787~ @20066
 REPLACE ~77777788~ @20067

 REPLACE ~77777789~ @20068
 REPLACE ~77777790~ @20069

 REPLACE ~66666671~ @20070
 REPLACE ~77777791~ @20071
 REPLACE ~77777792~ @20072
 REPLACE ~88888884~ @20073

 REPLACE ~66666672~ @20074
 REPLACE ~77777793~ @20075

 REPLACE ~66666673~ @20076
 REPLACE ~77777794~ @20077
 REPLACE ~77777795~ @20078
From SoS:
APPEND ~TOOLTIP.2DA~ ~CBCL001           66666666        77777777        -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBCL006           66666660        77777770       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBCL016           66666661        77777771       77777772kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBCL028           66666662        77777773       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBCL034           77777774        -1          -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBCL035           77777775        77777776       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBCL043           77777778        77777779       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBCL057           77777780        -1          -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBDMNSTF          66666663        77777781       77777782kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBHBLFET          66666664        77777783       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBHBSLDR          66666665        77777784       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBHBSLDV          66666667        77777785       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBHBSLSK          66666668        77777786       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBHBSLSN          66666669        77777787       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBHBSLZP          66666670        77777776       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBRJR005          77777788        77777776       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBRJR009          66666671        77777789       -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBRJR011          66666672        -1             -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBRJR020          77777790        77777791       77777792kkkkkk~
APPEND ~TOOLTIP.2DA~ ~CBSTFSKL          66666673        77777793       77777794kkkkkk~

COPY_EXISTING ~TOOLTIP.2DA~ ~override~
 //******** number of items in appended rows ***
 SET present_cols = 4
 //*********************************************
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 SPRINT str_add ""
 FOR(cnt="%present_cols%"; cnt<"%col_cnt%"; cnt+=1) BEGIN
   SPRINT str_add "%str_add%"^"         -1"
 END
 REPLACE_TEXTUALLY ~kkkkkk~ "%str_add%"

 REPLACE ~66666666~ @20028
 REPLACE ~77777777~ @20029

 REPLACE ~66666660~ @20030
 REPLACE ~77777770~ @20031

 REPLACE ~66666661~ @20032
 REPLACE ~77777771~ @20033
 REPLACE ~77777772~ @20034

 REPLACE ~66666662~ @20035
 REPLACE ~77777773~ @20036

 REPLACE ~77777774~ @20037
 REPLACE ~77777775~ @20038
 REPLACE ~77777776~ @20039
 REPLACE ~77777778~ @20040
 REPLACE ~77777779~ @20041
 REPLACE ~77777780~ @20042

 REPLACE ~66666663~ @20043
 REPLACE ~77777781~ @20044
 REPLACE ~77777782~ @20045

 REPLACE ~66666664~ @20046
 REPLACE ~77777783~ @20047

 REPLACE ~66666665~ @20048
 REPLACE ~77777784~ @20049

 REPLACE ~66666667~ @20050
 REPLACE ~77777785~ @20051

 REPLACE ~66666668~ @20052
 REPLACE ~77777786~ @20053

 REPLACE ~66666669~ @20054
 REPLACE ~77777787~ @20055

 REPLACE ~66666670~ @20056

 REPLACE ~77777788~ @20057

 REPLACE ~66666671~ @20058
 REPLACE ~77777789~ @20059

 REPLACE ~66666672~ @20060

 REPLACE ~77777790~ @20061
 REPLACE ~77777791~ @20062
 REPLACE ~77777792~ @20063

 REPLACE ~66666673~ @20064
 REPLACE ~77777793~ @20065
 REPLACE ~77777794~ @20066
Greetings Leomar
A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#15 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 17 January 2010 - 09:02 AM

What went off inside my head.

This is a test case for the "fallback to old method' behavior. SET_2DA_ENTRY row col min_col value will give that warning without explicitly failing, independently of the value of col, if #(rows with >= min_col cells) == row. The file is unchanged.
BEGIN ~test case~
<<<<<<<< 2da
a b c
1 2 3
>>>>>>>> 
COPY ~2da~ ~2da~
  SET_2DA_ENTRY 2 5 3 ~4 5~

Since I'm not familiar with the mods involved, I can't say if this is what causes the problems in NTotSC.

Edited by the bigg, 17 January 2010 - 09:15 AM.

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.


#16 Leomar

Leomar
  • Member
  • 1720 posts

Posted 18 January 2010 - 04:22 AM

Here is the tooltip.2da section of NTotSC:
PRINT ~Dealing with TOOLTIP.2DA ...~

COPY_EXISTING ~TOOLTIP.2DA~ ~override~
 SET required_columns = 6
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 PATCH_IF 1 BEGIN
   SPRINT str_add ""
   SPRINT str "%ccc%"
   FOR(cnt="%col_cnt%"; cnt<="%required_columns%"; cnt+=1) BEGIN
     SPRINT str "%str%"^"          %cnt%"
     SPRINT str_add "%str_add%"^"         -1"
   END
   
   READ_2DA_ENTRY 0 0 3 "test"
   PATCH_IF( "%test%"=1 ) BEGIN
     SET_2DA_ENTRY 0 0 3 "0                  1"
   END

   PATCH_IF("%ccc%"<"%required_columns%") BEGIN
     SET_2DA_ENTRY 0 ccc ccc "%str%"

     FOR(j=1; j<="%rows_prev%"; j+=1) BEGIN
       READ_2DA_ENTRY j ccc col_cnt "last"
       SPRINT str "%last%"^"%str_add%"
       SET_2DA_ENTRY j ccc col_cnt "%str%"
     END
   END
 END
BUT_ONLY_IF_IT_CHANGES


APPEND ~TOOLTIP.2DA~ ~NTBLUN06          66666666        66666660       -1         -1         -1         -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~NTBLUN07          66666666        66666660       -1         -1         -1         -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~NTROBE01          12082        12022       -1         -1         -1         -1kkkkkk~
APPEND ~TOOLTIP.2DA~ ~NTSTAFF2          66666661     12131       12129      12041      12116      12117kkkkkk~



COPY_EXISTING ~TOOLTIP.2DA~ ~override~
 //******** number of items in appended rows ***
 SET present_cols = 7
 //*********************************************
 SET rows=2
 SET rows_prev=0
 SET col_cnt=0
 WHILE "%rows%">1 BEGIN
   col_cnt = col_cnt + 1
   rows_prev = rows
   COUNT_2DA_ROWS col_cnt rows
 END
 col_cnt = col_cnt - 1
 SET ccc = col_cnt - 1

 SPRINT str_add ""
 FOR(cnt="%present_cols%"; cnt<"%col_cnt%"; cnt+=1) BEGIN
   SPRINT str_add "%str_add%"^"         -1"
 END
 REPLACE_TEXTUALLY ~kkkkkk~ "%str_add%"

 REPLACE ~66666666~ @25
 REPLACE ~66666660~ @50
 REPLACE ~66666661~ @177
And this was the error message of NTotSC:
Dealing with TOOLTIP.2DA ...
Copying and patching 1 file ...
ERROR: cannot convert %test% or %%test%% to an integer
ERROR: [TOOLTIP.2DA] -> [override] Patching Failed (COPY) (Failure("int_of_string"))
Stopping installation because of error.
Should I test something for you with installing these mods?

By the way, has someone else tried to install CtB with WeiDU v213 and can confirm this warning? And the error message of NTotSC?

Greetings Leomar

Edited by Leomar, 18 January 2010 - 04:23 AM.

A Megamod does not mean that you can play all of the mods or all of their content,
but you have more choices or paths through the game.
- Chevalier

BiG World Project - Big Baldur's Gate World

#17 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 18 January 2010 - 04:45 AM

I've tried NTotSC with 21300 recently and I didn't get any errors :unsure: (didn't check for warnings though :P)

Point to be noted though I didn't use Exnem's Vault in that install ;)

Edited by Lollorian, 18 January 2010 - 04:46 AM.

"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


#18 Chevalier

Chevalier

    Knight of the Realms

  • Modder
  • 2405 posts

Posted 18 January 2010 - 04:48 AM

I think Exnem's Vault should be removed from the BWP.

I Ride for the King!


a.k.a. Chev


#19 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 18 January 2010 - 04:49 AM

And I concur :coolthumb: (breaks REEVOR in ALL my installs :angry:)

"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


#20 the bigg

the bigg

    2083 is a prime number.

  • Modder
  • 3331 posts

Posted 18 January 2010 - 05:00 AM

I could install NTotSC's code too. Either way, the CtB warning results in that SET_2DA_ENTRY being a simple no_action().

Your NTotSC error is because your tooltip.2da was malformed by something else. Use Lollorian's tp2s to disable biffing, install up to NTotSC excluded and --change-log it. OK, so exnem being broken is not weidu's fault.

Edited by the bigg, 18 January 2010 - 05:06 AM.

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.