mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-04-26 00:32:20 -05:00
switch exp tables to csv format
This commit is contained in:
parent
98305cda18
commit
57280da3e4
|
|
@ -159,7 +159,7 @@ e32324642d5ec29155743970ac8bc14dd74f63e1 *res/prebuilt/poketool/trgra/trfgra.nar
|
|||
1f8689cbc763d9efedac9e6f12e940dbd361f7a9 *res/pokemon/pl_personal.narc
|
||||
7755e3a884a11b098122ca9dd656223fd4b02dd0 *res/pokemon/evo.narc
|
||||
fbbf1287b2ac10c5212be0e4a69461507e860005 *res/prebuilt/poketool/personal/growtbl.narc
|
||||
fbbf1287b2ac10c5212be0e4a69461507e860005 *res/prebuilt/poketool/personal/pl_growtbl.narc
|
||||
fbbf1287b2ac10c5212be0e4a69461507e860005 *res/pokemon/pl_growtbl.narc
|
||||
de5c1035595e3cb52990b183497e513246bd0efe *res/prebuilt/poketool/personal/pms.narc
|
||||
cd4b737f173cc6ac1a25636efa4edfd83da79599 *res/pokemon/wotbl.narc
|
||||
59f49fe682ef8cf4dfb8f6b7da2e0f51401b50cc *res/trainers/trdata.narc
|
||||
|
|
|
|||
102
res/pokemon/.shared/exp_tables.csv
Normal file
102
res/pokemon/.shared/exp_tables.csv
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
level,medium_fast,erratic,fluctuating,medium_slow,fast,slow,unused_6,unused_7
|
||||
0,0,0,0,0,0,0,0,0
|
||||
1,0,0,0,0,0,0,0,0
|
||||
2,8,15,4,9,6,10,8,8
|
||||
3,27,52,13,57,21,33,27,27
|
||||
4,64,122,32,96,51,80,64,64
|
||||
5,125,237,65,135,100,156,125,125
|
||||
6,216,406,112,179,172,270,216,216
|
||||
7,343,637,178,236,274,428,343,343
|
||||
8,512,942,276,314,409,640,512,512
|
||||
9,729,1326,393,419,583,911,729,729
|
||||
10,1000,1800,540,560,800,1250,1000,1000
|
||||
11,1331,2369,745,742,1064,1663,1331,1331
|
||||
12,1728,3041,967,973,1382,2160,1728,1728
|
||||
13,2197,3822,1230,1261,1757,2746,2197,2197
|
||||
14,2744,4719,1591,1612,2195,3430,2744,2744
|
||||
15,3375,5737,1957,2035,2700,4218,3375,3375
|
||||
16,4096,6881,2457,2535,3276,5120,4096,4096
|
||||
17,4913,8155,3046,3120,3930,6141,4913,4913
|
||||
18,5832,9564,3732,3798,4665,7290,5832,5832
|
||||
19,6859,11111,4526,4575,5487,8573,6859,6859
|
||||
20,8000,12800,5440,5460,6400,10000,8000,8000
|
||||
21,9261,14632,6482,6458,7408,11576,9261,9261
|
||||
22,10648,16610,7666,7577,8518,13310,10648,10648
|
||||
23,12167,18737,9003,8825,9733,15208,12167,12167
|
||||
24,13824,21012,10506,10208,11059,17280,13824,13824
|
||||
25,15625,23437,12187,11735,12500,19531,15625,15625
|
||||
26,17576,26012,14060,13411,14060,21970,17576,17576
|
||||
27,19683,28737,16140,15244,15746,24603,19683,19683
|
||||
28,21952,31610,18439,17242,17561,27440,21952,21952
|
||||
29,24389,34632,20974,19411,19511,30486,24389,24389
|
||||
30,27000,37800,23760,21760,21600,33750,27000,27000
|
||||
31,29791,41111,26811,24294,23832,37238,29791,29791
|
||||
32,32768,44564,30146,27021,26214,40960,32768,32768
|
||||
33,35937,48155,33780,29949,28749,44921,35937,35937
|
||||
34,39304,51881,37731,33084,31443,49130,39304,39304
|
||||
35,42875,55737,42017,36435,34300,53593,42875,42875
|
||||
36,46656,59719,46656,40007,37324,58320,46656,46656
|
||||
37,50653,63822,50653,43808,40522,63316,50653,50653
|
||||
38,54872,68041,55969,47846,43897,68590,54872,54872
|
||||
39,59319,72369,60505,52127,47455,74148,59319,59319
|
||||
40,64000,76800,66560,56660,51200,80000,64000,64000
|
||||
41,68921,81326,71677,61450,55136,86151,68921,68921
|
||||
42,74088,85942,78533,66505,59270,92610,74088,74088
|
||||
43,79507,90637,84277,71833,63605,99383,79507,79507
|
||||
44,85184,95406,91998,77440,68147,106480,85184,85184
|
||||
45,91125,100237,98415,83335,72900,113906,91125,91125
|
||||
46,97336,105122,107069,89523,77868,121670,97336,97336
|
||||
47,103823,110052,114205,96012,83058,129778,103823,103823
|
||||
48,110592,115015,123863,102810,88473,138240,110592,110592
|
||||
49,117649,120001,131766,109923,94119,147061,117649,117649
|
||||
50,125000,125000,142500,117360,100000,156250,125000,125000
|
||||
51,132651,131324,151222,125126,106120,165813,132651,132651
|
||||
52,140608,137795,163105,133229,112486,175760,140608,140608
|
||||
53,148877,144410,172697,141677,119101,186096,148877,148877
|
||||
54,157464,151165,185807,150476,125971,196830,157464,157464
|
||||
55,166375,158056,196322,159635,133100,207968,166375,166375
|
||||
56,175616,165079,210739,169159,140492,219520,175616,175616
|
||||
57,185193,172229,222231,179056,148154,231491,185193,185193
|
||||
58,195112,179503,238036,189334,156089,243890,195112,195112
|
||||
59,205379,186894,250562,199999,164303,256723,205379,205379
|
||||
60,216000,194400,267840,211060,172800,270000,216000,216000
|
||||
61,226981,202013,281456,222522,181584,283726,226981,226981
|
||||
62,238328,209728,300293,234393,190662,297910,238328,238328
|
||||
63,250047,217540,315059,246681,200037,312558,250047,250047
|
||||
64,262144,225443,335544,259392,209715,327680,262144,262144
|
||||
65,274625,233431,351520,272535,219700,343281,274625,274625
|
||||
66,287496,241496,373744,286115,229996,359370,287496,287496
|
||||
67,300763,249633,390991,300140,240610,375953,300763,300763
|
||||
68,314432,257834,415050,314618,251545,393040,314432,314432
|
||||
69,328509,267406,433631,329555,262807,410636,328509,328509
|
||||
70,343000,276458,459620,344960,274400,428750,343000,343000
|
||||
71,357911,286328,479600,360838,286328,447388,357911,357911
|
||||
72,373248,296358,507617,377197,298598,466560,373248,373248
|
||||
73,389017,305767,529063,394045,311213,486271,389017,389017
|
||||
74,405224,316074,559209,411388,324179,506530,405224,405224
|
||||
75,421875,326531,582187,429235,337500,527343,421875,421875
|
||||
76,438976,336255,614566,447591,351180,548720,438976,438976
|
||||
77,456533,346965,639146,466464,365226,570666,456533,456533
|
||||
78,474552,357812,673863,485862,379641,593190,474552,474552
|
||||
79,493039,367807,700115,505791,394431,616298,493039,493039
|
||||
80,512000,378880,737280,526260,409600,640000,512000,512000
|
||||
81,531441,390077,765275,547274,425152,664301,531441,531441
|
||||
82,551368,400293,804997,568841,441094,689210,551368,551368
|
||||
83,571787,411686,834809,590969,457429,714733,571787,571787
|
||||
84,592704,423190,877201,613664,474163,740880,592704,592704
|
||||
85,614125,433572,908905,636935,491300,767656,614125,614125
|
||||
86,636056,445239,954084,660787,508844,795070,636056,636056
|
||||
87,658503,457001,987754,685228,526802,823128,658503,658503
|
||||
88,681472,467489,1035837,710266,545177,851840,681472,681472
|
||||
89,704969,479378,1071552,735907,563975,881211,704969,704969
|
||||
90,729000,491346,1122660,762160,583200,911250,729000,729000
|
||||
91,753571,501878,1160499,789030,602856,941963,753571,753571
|
||||
92,778688,513934,1214753,816525,622950,973360,778688,778688
|
||||
93,804357,526049,1254796,844653,643485,1005446,804357,804357
|
||||
94,830584,536557,1312322,873420,664467,1038230,830584,830584
|
||||
95,857375,548720,1354652,902835,685900,1071718,857375,857375
|
||||
96,884736,560922,1415577,932903,707788,1105920,884736,884736
|
||||
97,912673,571333,1460276,963632,730138,1140841,912673,912673
|
||||
98,941192,583539,1524731,995030,752953,1176490,941192,941192
|
||||
99,970299,591882,1571884,1027103,776239,1212873,970299,970299
|
||||
100,1000000,600000,1640000,1059860,800000,1250000,1000000,1000000
|
||||
|
|
|
@ -1,103 +0,0 @@
|
|||
[
|
||||
0,
|
||||
0,
|
||||
15,
|
||||
52,
|
||||
122,
|
||||
237,
|
||||
406,
|
||||
637,
|
||||
942,
|
||||
1326,
|
||||
1800,
|
||||
2369,
|
||||
3041,
|
||||
3822,
|
||||
4719,
|
||||
5737,
|
||||
6881,
|
||||
8155,
|
||||
9564,
|
||||
11111,
|
||||
12800,
|
||||
14632,
|
||||
16610,
|
||||
18737,
|
||||
21012,
|
||||
23437,
|
||||
26012,
|
||||
28737,
|
||||
31610,
|
||||
34632,
|
||||
37800,
|
||||
41111,
|
||||
44564,
|
||||
48155,
|
||||
51881,
|
||||
55737,
|
||||
59719,
|
||||
63822,
|
||||
68041,
|
||||
72369,
|
||||
76800,
|
||||
81326,
|
||||
85942,
|
||||
90637,
|
||||
95406,
|
||||
100237,
|
||||
105122,
|
||||
110052,
|
||||
115015,
|
||||
120001,
|
||||
125000,
|
||||
131324,
|
||||
137795,
|
||||
144410,
|
||||
151165,
|
||||
158056,
|
||||
165079,
|
||||
172229,
|
||||
179503,
|
||||
186894,
|
||||
194400,
|
||||
202013,
|
||||
209728,
|
||||
217540,
|
||||
225443,
|
||||
233431,
|
||||
241496,
|
||||
249633,
|
||||
257834,
|
||||
267406,
|
||||
276458,
|
||||
286328,
|
||||
296358,
|
||||
305767,
|
||||
316074,
|
||||
326531,
|
||||
336255,
|
||||
346965,
|
||||
357812,
|
||||
367807,
|
||||
378880,
|
||||
390077,
|
||||
400293,
|
||||
411686,
|
||||
423190,
|
||||
433572,
|
||||
445239,
|
||||
457001,
|
||||
467489,
|
||||
479378,
|
||||
491346,
|
||||
501878,
|
||||
513934,
|
||||
526049,
|
||||
536557,
|
||||
548720,
|
||||
560922,
|
||||
571333,
|
||||
583539,
|
||||
591882,
|
||||
600000
|
||||
]
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
[
|
||||
0,
|
||||
0,
|
||||
6,
|
||||
21,
|
||||
51,
|
||||
100,
|
||||
172,
|
||||
274,
|
||||
409,
|
||||
583,
|
||||
800,
|
||||
1064,
|
||||
1382,
|
||||
1757,
|
||||
2195,
|
||||
2700,
|
||||
3276,
|
||||
3930,
|
||||
4665,
|
||||
5487,
|
||||
6400,
|
||||
7408,
|
||||
8518,
|
||||
9733,
|
||||
11059,
|
||||
12500,
|
||||
14060,
|
||||
15746,
|
||||
17561,
|
||||
19511,
|
||||
21600,
|
||||
23832,
|
||||
26214,
|
||||
28749,
|
||||
31443,
|
||||
34300,
|
||||
37324,
|
||||
40522,
|
||||
43897,
|
||||
47455,
|
||||
51200,
|
||||
55136,
|
||||
59270,
|
||||
63605,
|
||||
68147,
|
||||
72900,
|
||||
77868,
|
||||
83058,
|
||||
88473,
|
||||
94119,
|
||||
100000,
|
||||
106120,
|
||||
112486,
|
||||
119101,
|
||||
125971,
|
||||
133100,
|
||||
140492,
|
||||
148154,
|
||||
156089,
|
||||
164303,
|
||||
172800,
|
||||
181584,
|
||||
190662,
|
||||
200037,
|
||||
209715,
|
||||
219700,
|
||||
229996,
|
||||
240610,
|
||||
251545,
|
||||
262807,
|
||||
274400,
|
||||
286328,
|
||||
298598,
|
||||
311213,
|
||||
324179,
|
||||
337500,
|
||||
351180,
|
||||
365226,
|
||||
379641,
|
||||
394431,
|
||||
409600,
|
||||
425152,
|
||||
441094,
|
||||
457429,
|
||||
474163,
|
||||
491300,
|
||||
508844,
|
||||
526802,
|
||||
545177,
|
||||
563975,
|
||||
583200,
|
||||
602856,
|
||||
622950,
|
||||
643485,
|
||||
664467,
|
||||
685900,
|
||||
707788,
|
||||
730138,
|
||||
752953,
|
||||
776239,
|
||||
800000
|
||||
]
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
[
|
||||
0,
|
||||
0,
|
||||
4,
|
||||
13,
|
||||
32,
|
||||
65,
|
||||
112,
|
||||
178,
|
||||
276,
|
||||
393,
|
||||
540,
|
||||
745,
|
||||
967,
|
||||
1230,
|
||||
1591,
|
||||
1957,
|
||||
2457,
|
||||
3046,
|
||||
3732,
|
||||
4526,
|
||||
5440,
|
||||
6482,
|
||||
7666,
|
||||
9003,
|
||||
10506,
|
||||
12187,
|
||||
14060,
|
||||
16140,
|
||||
18439,
|
||||
20974,
|
||||
23760,
|
||||
26811,
|
||||
30146,
|
||||
33780,
|
||||
37731,
|
||||
42017,
|
||||
46656,
|
||||
50653,
|
||||
55969,
|
||||
60505,
|
||||
66560,
|
||||
71677,
|
||||
78533,
|
||||
84277,
|
||||
91998,
|
||||
98415,
|
||||
107069,
|
||||
114205,
|
||||
123863,
|
||||
131766,
|
||||
142500,
|
||||
151222,
|
||||
163105,
|
||||
172697,
|
||||
185807,
|
||||
196322,
|
||||
210739,
|
||||
222231,
|
||||
238036,
|
||||
250562,
|
||||
267840,
|
||||
281456,
|
||||
300293,
|
||||
315059,
|
||||
335544,
|
||||
351520,
|
||||
373744,
|
||||
390991,
|
||||
415050,
|
||||
433631,
|
||||
459620,
|
||||
479600,
|
||||
507617,
|
||||
529063,
|
||||
559209,
|
||||
582187,
|
||||
614566,
|
||||
639146,
|
||||
673863,
|
||||
700115,
|
||||
737280,
|
||||
765275,
|
||||
804997,
|
||||
834809,
|
||||
877201,
|
||||
908905,
|
||||
954084,
|
||||
987754,
|
||||
1035837,
|
||||
1071552,
|
||||
1122660,
|
||||
1160499,
|
||||
1214753,
|
||||
1254796,
|
||||
1312322,
|
||||
1354652,
|
||||
1415577,
|
||||
1460276,
|
||||
1524731,
|
||||
1571884,
|
||||
1640000
|
||||
]
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
[
|
||||
0,
|
||||
0,
|
||||
8,
|
||||
27,
|
||||
64,
|
||||
125,
|
||||
216,
|
||||
343,
|
||||
512,
|
||||
729,
|
||||
1000,
|
||||
1331,
|
||||
1728,
|
||||
2197,
|
||||
2744,
|
||||
3375,
|
||||
4096,
|
||||
4913,
|
||||
5832,
|
||||
6859,
|
||||
8000,
|
||||
9261,
|
||||
10648,
|
||||
12167,
|
||||
13824,
|
||||
15625,
|
||||
17576,
|
||||
19683,
|
||||
21952,
|
||||
24389,
|
||||
27000,
|
||||
29791,
|
||||
32768,
|
||||
35937,
|
||||
39304,
|
||||
42875,
|
||||
46656,
|
||||
50653,
|
||||
54872,
|
||||
59319,
|
||||
64000,
|
||||
68921,
|
||||
74088,
|
||||
79507,
|
||||
85184,
|
||||
91125,
|
||||
97336,
|
||||
103823,
|
||||
110592,
|
||||
117649,
|
||||
125000,
|
||||
132651,
|
||||
140608,
|
||||
148877,
|
||||
157464,
|
||||
166375,
|
||||
175616,
|
||||
185193,
|
||||
195112,
|
||||
205379,
|
||||
216000,
|
||||
226981,
|
||||
238328,
|
||||
250047,
|
||||
262144,
|
||||
274625,
|
||||
287496,
|
||||
300763,
|
||||
314432,
|
||||
328509,
|
||||
343000,
|
||||
357911,
|
||||
373248,
|
||||
389017,
|
||||
405224,
|
||||
421875,
|
||||
438976,
|
||||
456533,
|
||||
474552,
|
||||
493039,
|
||||
512000,
|
||||
531441,
|
||||
551368,
|
||||
571787,
|
||||
592704,
|
||||
614125,
|
||||
636056,
|
||||
658503,
|
||||
681472,
|
||||
704969,
|
||||
729000,
|
||||
753571,
|
||||
778688,
|
||||
804357,
|
||||
830584,
|
||||
857375,
|
||||
884736,
|
||||
912673,
|
||||
941192,
|
||||
970299,
|
||||
1000000
|
||||
]
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
[
|
||||
0,
|
||||
0,
|
||||
9,
|
||||
57,
|
||||
96,
|
||||
135,
|
||||
179,
|
||||
236,
|
||||
314,
|
||||
419,
|
||||
560,
|
||||
742,
|
||||
973,
|
||||
1261,
|
||||
1612,
|
||||
2035,
|
||||
2535,
|
||||
3120,
|
||||
3798,
|
||||
4575,
|
||||
5460,
|
||||
6458,
|
||||
7577,
|
||||
8825,
|
||||
10208,
|
||||
11735,
|
||||
13411,
|
||||
15244,
|
||||
17242,
|
||||
19411,
|
||||
21760,
|
||||
24294,
|
||||
27021,
|
||||
29949,
|
||||
33084,
|
||||
36435,
|
||||
40007,
|
||||
43808,
|
||||
47846,
|
||||
52127,
|
||||
56660,
|
||||
61450,
|
||||
66505,
|
||||
71833,
|
||||
77440,
|
||||
83335,
|
||||
89523,
|
||||
96012,
|
||||
102810,
|
||||
109923,
|
||||
117360,
|
||||
125126,
|
||||
133229,
|
||||
141677,
|
||||
150476,
|
||||
159635,
|
||||
169159,
|
||||
179056,
|
||||
189334,
|
||||
199999,
|
||||
211060,
|
||||
222522,
|
||||
234393,
|
||||
246681,
|
||||
259392,
|
||||
272535,
|
||||
286115,
|
||||
300140,
|
||||
314618,
|
||||
329555,
|
||||
344960,
|
||||
360838,
|
||||
377197,
|
||||
394045,
|
||||
411388,
|
||||
429235,
|
||||
447591,
|
||||
466464,
|
||||
485862,
|
||||
505791,
|
||||
526260,
|
||||
547274,
|
||||
568841,
|
||||
590969,
|
||||
613664,
|
||||
636935,
|
||||
660787,
|
||||
685228,
|
||||
710266,
|
||||
735907,
|
||||
762160,
|
||||
789030,
|
||||
816525,
|
||||
844653,
|
||||
873420,
|
||||
902835,
|
||||
932903,
|
||||
963632,
|
||||
995030,
|
||||
1027103,
|
||||
1059860
|
||||
]
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
[
|
||||
0,
|
||||
0,
|
||||
10,
|
||||
33,
|
||||
80,
|
||||
156,
|
||||
270,
|
||||
428,
|
||||
640,
|
||||
911,
|
||||
1250,
|
||||
1663,
|
||||
2160,
|
||||
2746,
|
||||
3430,
|
||||
4218,
|
||||
5120,
|
||||
6141,
|
||||
7290,
|
||||
8573,
|
||||
10000,
|
||||
11576,
|
||||
13310,
|
||||
15208,
|
||||
17280,
|
||||
19531,
|
||||
21970,
|
||||
24603,
|
||||
27440,
|
||||
30486,
|
||||
33750,
|
||||
37238,
|
||||
40960,
|
||||
44921,
|
||||
49130,
|
||||
53593,
|
||||
58320,
|
||||
63316,
|
||||
68590,
|
||||
74148,
|
||||
80000,
|
||||
86151,
|
||||
92610,
|
||||
99383,
|
||||
106480,
|
||||
113906,
|
||||
121670,
|
||||
129778,
|
||||
138240,
|
||||
147061,
|
||||
156250,
|
||||
165813,
|
||||
175760,
|
||||
186096,
|
||||
196830,
|
||||
207968,
|
||||
219520,
|
||||
231491,
|
||||
243890,
|
||||
256723,
|
||||
270000,
|
||||
283726,
|
||||
297910,
|
||||
312558,
|
||||
327680,
|
||||
343281,
|
||||
359370,
|
||||
375953,
|
||||
393040,
|
||||
410636,
|
||||
428750,
|
||||
447388,
|
||||
466560,
|
||||
486271,
|
||||
506530,
|
||||
527343,
|
||||
548720,
|
||||
570666,
|
||||
593190,
|
||||
616298,
|
||||
640000,
|
||||
664301,
|
||||
689210,
|
||||
714733,
|
||||
740880,
|
||||
767656,
|
||||
795070,
|
||||
823128,
|
||||
851840,
|
||||
881211,
|
||||
911250,
|
||||
941963,
|
||||
973360,
|
||||
1005446,
|
||||
1038230,
|
||||
1071718,
|
||||
1105920,
|
||||
1140841,
|
||||
1176490,
|
||||
1212873,
|
||||
1250000
|
||||
]
|
||||
|
|
@ -26,16 +26,7 @@ otherpoke_shared = files(
|
|||
|
||||
sinnoh_pokedex = files('sinnoh_pokedex.json')
|
||||
|
||||
pl_growtbl_files = files(
|
||||
'.shared/exp_tables/medium_fast.json',
|
||||
'.shared/exp_tables/erratic.json',
|
||||
'.shared/exp_tables/fluctuating.json',
|
||||
'.shared/exp_tables/medium_slow.json',
|
||||
'.shared/exp_tables/fast.json',
|
||||
'.shared/exp_tables/slow.json',
|
||||
'.shared/exp_tables/medium_fast.json', # Unused
|
||||
'.shared/exp_tables/medium_fast.json', # Unused
|
||||
)
|
||||
pl_growtbl_files = files('.shared/exp_tables.csv')
|
||||
|
||||
# Process mons in national dex order
|
||||
pokemon_subdirs = [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
import argparse
|
||||
import json
|
||||
import csv
|
||||
import pathlib
|
||||
import subprocess
|
||||
|
||||
|
|
@ -21,9 +21,8 @@ argparser.add_argument('-p', '--private-dir',
|
|||
argparser.add_argument('-o', '--output-dir',
|
||||
required=True,
|
||||
help='Path to the output directory (where the NARC will be made)')
|
||||
argparser.add_argument('files',
|
||||
nargs='+',
|
||||
help='List of files to process in-order')
|
||||
argparser.add_argument('table',
|
||||
help='Experience tables in csv format')
|
||||
args = argparser.parse_args()
|
||||
|
||||
source_dir = pathlib.Path(args.source_dir)
|
||||
|
|
@ -32,15 +31,21 @@ output_dir = pathlib.Path(args.output_dir)
|
|||
|
||||
private_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
for i, file in enumerate(args.files):
|
||||
with open(file) as data_file:
|
||||
curve_data = json.load(data_file)
|
||||
with open(args.table) as data_file:
|
||||
file_reader = csv.reader(data_file)
|
||||
table_data = list(file_reader)
|
||||
transpose = list(zip(*table_data))
|
||||
count = 0
|
||||
for table in transpose:
|
||||
if table[0] == 'level':
|
||||
continue
|
||||
out = bytes()
|
||||
for n in curve_data:
|
||||
out = out + n.to_bytes(4, byteorder='little')
|
||||
for n in table[1:]:
|
||||
out = out + int(n).to_bytes(4, byteorder='little')
|
||||
|
||||
target_fname = private_dir / f'pl_growtbl_{i}.bin'
|
||||
target_fname = private_dir / f'pl_growtbl_{count}.bin'
|
||||
with open(target_fname, 'wb+') as target_file:
|
||||
target_file.write(out)
|
||||
count += 1
|
||||
|
||||
subprocess.run([args.knarc, '-d', private_dir, '-p', output_dir / 'pl_growtbl.narc'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user