Skip to content

Commit

Permalink
client-data: detect empty fields
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Dec 20, 2023
1 parent 8506fee commit 767167f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions toolbox/client-data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15393,7 +15393,7 @@ INSERT INTO `AreaTable_turtle` VALUES (3805, 33, "Zul'Aman", '', '', '', '', '',
INSERT INTO `AreaTable_turtle` VALUES (3881, 2040, "Silver Sun Mine", '', '', '', '', '', '', '', '');
INSERT INTO `AreaTable_turtle` VALUES (3882, 2040, "Citadel of the Sun", '', '', '', '', '', '', '', '');
INSERT INTO `AreaTable_turtle` VALUES (3883, 2040, "Golden Dawn Institute", '', '', '', '', '', '', '', '');
INSERT INTO `AreaTable_turtle` VALUES (3884, 0, \", '', '', '', '', '', '', '', '');
INSERT INTO `AreaTable_turtle` VALUES (3884, 0, "", '', '', '', '', '', '', '', '');
INSERT INTO `AreaTable_turtle` VALUES (4010, 15, "Mudsprocket", '', '', '', '', '', '', '', '');
INSERT INTO `AreaTable_turtle` VALUES (4011, 406, "Venture Camp", '', '', '', '', '', '', '', '');
INSERT INTO `AreaTable_turtle` VALUES (4012, 0, "Scarlet Enclave", '', '', '', '', '', '', '', '');
Expand Down Expand Up @@ -16803,7 +16803,7 @@ UPDATE `AreaTable_turtle` SET name_loc1 = "Zul'Aman" WHERE id = 3805;
UPDATE `AreaTable_turtle` SET name_loc1 = "Silver Sun Mine" WHERE id = 3881;
UPDATE `AreaTable_turtle` SET name_loc1 = "Citadel of the Sun" WHERE id = 3882;
UPDATE `AreaTable_turtle` SET name_loc1 = "Golden Dawn Institute" WHERE id = 3883;
UPDATE `AreaTable_turtle` SET name_loc1 = \" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc1 = "" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc1 = "Mudsprocket" WHERE id = 4010;
UPDATE `AreaTable_turtle` SET name_loc1 = "Venture Camp" WHERE id = 4011;
UPDATE `AreaTable_turtle` SET name_loc1 = "Scarlet Enclave" WHERE id = 4012;
Expand Down Expand Up @@ -18213,7 +18213,7 @@ UPDATE `AreaTable_turtle` SET name_loc2 = "Zul'Aman" WHERE id = 3805;
UPDATE `AreaTable_turtle` SET name_loc2 = "Silver Sun Mine" WHERE id = 3881;
UPDATE `AreaTable_turtle` SET name_loc2 = "Citadel of the Sun" WHERE id = 3882;
UPDATE `AreaTable_turtle` SET name_loc2 = "Golden Dawn Institute" WHERE id = 3883;
UPDATE `AreaTable_turtle` SET name_loc2 = \" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc2 = "" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc2 = "Mudsprocket" WHERE id = 4010;
UPDATE `AreaTable_turtle` SET name_loc2 = "Venture Camp" WHERE id = 4011;
UPDATE `AreaTable_turtle` SET name_loc2 = "Scarlet Enclave" WHERE id = 4012;
Expand Down Expand Up @@ -19623,7 +19623,7 @@ UPDATE `AreaTable_turtle` SET name_loc3 = "Zul'Aman" WHERE id = 3805;
UPDATE `AreaTable_turtle` SET name_loc3 = "Silver Sun Mine" WHERE id = 3881;
UPDATE `AreaTable_turtle` SET name_loc3 = "Citadel of the Sun" WHERE id = 3882;
UPDATE `AreaTable_turtle` SET name_loc3 = "Golden Dawn Institute" WHERE id = 3883;
UPDATE `AreaTable_turtle` SET name_loc3 = \" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc3 = "" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc3 = "Mudsprocket" WHERE id = 4010;
UPDATE `AreaTable_turtle` SET name_loc3 = "Venture Camp" WHERE id = 4011;
UPDATE `AreaTable_turtle` SET name_loc3 = "Scarlet Enclave" WHERE id = 4012;
Expand Down Expand Up @@ -21033,7 +21033,7 @@ UPDATE `AreaTable_turtle` SET name_loc4 = "Zul'Aman" WHERE id = 3805;
UPDATE `AreaTable_turtle` SET name_loc4 = "Silver Sun Mine" WHERE id = 3881;
UPDATE `AreaTable_turtle` SET name_loc4 = "Citadel of the Sun" WHERE id = 3882;
UPDATE `AreaTable_turtle` SET name_loc4 = "Golden Dawn Institute" WHERE id = 3883;
UPDATE `AreaTable_turtle` SET name_loc4 = \" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc4 = "" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc4 = "Mudsprocket" WHERE id = 4010;
UPDATE `AreaTable_turtle` SET name_loc4 = "Venture Camp" WHERE id = 4011;
UPDATE `AreaTable_turtle` SET name_loc4 = "Scarlet Enclave" WHERE id = 4012;
Expand Down Expand Up @@ -22443,7 +22443,7 @@ UPDATE `AreaTable_turtle` SET name_loc5 = "Zul'Aman" WHERE id = 3805;
UPDATE `AreaTable_turtle` SET name_loc5 = "Silver Sun Mine" WHERE id = 3881;
UPDATE `AreaTable_turtle` SET name_loc5 = "Citadel of the Sun" WHERE id = 3882;
UPDATE `AreaTable_turtle` SET name_loc5 = "Golden Dawn Institute" WHERE id = 3883;
UPDATE `AreaTable_turtle` SET name_loc5 = \" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc5 = "" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc5 = "Mudsprocket" WHERE id = 4010;
UPDATE `AreaTable_turtle` SET name_loc5 = "Venture Camp" WHERE id = 4011;
UPDATE `AreaTable_turtle` SET name_loc5 = "Scarlet Enclave" WHERE id = 4012;
Expand Down Expand Up @@ -23853,7 +23853,7 @@ UPDATE `AreaTable_turtle` SET name_loc6 = "Zul'Aman" WHERE id = 3805;
UPDATE `AreaTable_turtle` SET name_loc6 = "Silver Sun Mine" WHERE id = 3881;
UPDATE `AreaTable_turtle` SET name_loc6 = "Citadel of the Sun" WHERE id = 3882;
UPDATE `AreaTable_turtle` SET name_loc6 = "Golden Dawn Institute" WHERE id = 3883;
UPDATE `AreaTable_turtle` SET name_loc6 = \" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc6 = "" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc6 = "Mudsprocket" WHERE id = 4010;
UPDATE `AreaTable_turtle` SET name_loc6 = "Venture Camp" WHERE id = 4011;
UPDATE `AreaTable_turtle` SET name_loc6 = "Scarlet Enclave" WHERE id = 4012;
Expand Down Expand Up @@ -25263,7 +25263,7 @@ UPDATE `AreaTable_turtle` SET name_loc8 = "Zul'Aman" WHERE id = 3805;
UPDATE `AreaTable_turtle` SET name_loc8 = "Silver Sun Mine" WHERE id = 3881;
UPDATE `AreaTable_turtle` SET name_loc8 = "Citadel of the Sun" WHERE id = 3882;
UPDATE `AreaTable_turtle` SET name_loc8 = "Golden Dawn Institute" WHERE id = 3883;
UPDATE `AreaTable_turtle` SET name_loc8 = \" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc8 = "" WHERE id = 3884;
UPDATE `AreaTable_turtle` SET name_loc8 = "Mudsprocket" WHERE id = 4010;
UPDATE `AreaTable_turtle` SET name_loc8 = "Venture Camp" WHERE id = 4011;
UPDATE `AreaTable_turtle` SET name_loc8 = "Scarlet Enclave" WHERE id = 4012;
Expand Down
5 changes: 4 additions & 1 deletion toolbox/load-client-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ EOF
tail -n +2 $root/$v/$loc/AreaTable.dbc.csv | while read line; do
id=$(echo $line | cut -d , -f 1)
zoneID=$(echo $line | cut -d , -f 3)
entry=$(echo $line | cut -d , -f $(expr 12 + $dbcslot) | sed 's/""/\\"/g')
entry=$(echo $line | cut -d , -f $(expr 12 + $dbcslot))
if ! [ -z "$entry" ] && [ "$entry" != "\"\"" ]; then
entry=$(echo $entry | sed 's/""/\\"/g')
fi

# some zones must be flagged with UNUSED for some locales
unused_zones="55 276 394 407 470 474 476 696 697 698 699 1196"
Expand Down

0 comments on commit 767167f

Please sign in to comment.