Skip to content

Commit 1694d74

Browse files
committed
Add Carnyx tiericide module upgrade/import paths
1 parent 9c9f1dc commit 1694d74

2 files changed

Lines changed: 234 additions & 0 deletions

File tree

eos/db/migrations/upgrade8.py

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
"""
2+
Migration 4
3+
4+
- Converts modules based on Proteus Module Tiericide
5+
Some modules have been unpublished (and unpublished module attributes are removed
6+
from database), which causes pyfa to crash. We therefore replace these
7+
modules with their new replacements
8+
9+
Based on http://community.eveonline.com/news/patch-notes/patch-notes-for-proteus/
10+
and output of itemDiff.py
11+
"""
12+
13+
14+
CONVERSIONS = {
15+
8529: ( # Large F-S9 Regolith Compact Shield Extender
16+
8409, # Large Subordinate Screen Stabilizer I
17+
),
18+
8419: ( # Large Azeotropic Restrained Shield Extender
19+
8489, # Large Supplemental Barrier Emitter I
20+
),
21+
8517: ( # Medium F-S9 Regolith Compact Shield Extender
22+
8397, # Medium Subordinate Screen Stabilizer I
23+
),
24+
8433: ( # Medium Azeotropic Restrained Shield Extender
25+
8477, # Medium Supplemental Barrier Emitter I
26+
),
27+
20627: ( # Small 'Trapper' Shield Extender
28+
8437, # Micro Azeotropic Ward Salubrity I
29+
8505, # Micro F-S9 Regolith Shield Induction
30+
3849, # Micro Shield Extender I
31+
3851, # Micro Shield Extender II
32+
8387, # Micro Subordinate Screen Stabilizer I
33+
8465, # Micro Supplemental Barrier Emitter I
34+
),
35+
8521: ( # Small F-S9 Regolith Compact Shield Extender
36+
8401, # Small Subordinate Screen Stabilizer I
37+
),
38+
8427: ( # Small Azeotropic Restrained Shield Extender
39+
8481, # Small Supplemental Barrier Emitter I
40+
),
41+
11343: ( # 100mm Crystalline Carbonide Restrained Plates
42+
11345, # 100mm Reinforced Nanofiber Plates I
43+
),
44+
11341: ( # 100mm Rolled Tungsten Compact Plates
45+
11339, # 100mm Reinforced Titanium Plates I
46+
),
47+
11327: ( # 1600mm Crystalline Carbonide Restrained Plates
48+
11329, # 1600mm Reinforced Nanofiber Plates I
49+
),
50+
11325: ( # 1600mm Rolled Tungsten Compact Plates
51+
11323, # 1600mm Reinforced Titanium Plates I
52+
),
53+
11351: ( # 200mm Crystalline Carbonide Restrained Plates
54+
11353, # 200mm Reinforced Nanofiber Plates I
55+
),
56+
11349: ( # 200mm Rolled Tungsten Compact Plates
57+
11347, # 200mm Reinforced Titanium Plates I
58+
),
59+
11311: ( # 400mm Crystalline Carbonide Restrained Plates
60+
11313, # 400mm Reinforced Nanofiber Plates I
61+
),
62+
11309: ( # 400mm Rolled Tungsten Compact Plates
63+
11307, # 400mm Reinforced Titanium Plates I
64+
),
65+
23791: ( # 'Citadella' 100mm Steel Plates
66+
11335, # 50mm Reinforced Crystalline Carbonide Plates I
67+
11337, # 50mm Reinforced Nanofiber Plates I
68+
11333, # 50mm Reinforced Rolled Tungsten Plates I
69+
11291, # 50mm Reinforced Steel Plates I
70+
20343, # 50mm Reinforced Steel Plates II
71+
11331, # 50mm Reinforced Titanium Plates I
72+
),
73+
11319: ( # 800mm Crystalline Carbonide Restrained Plates
74+
11321, # 800mm Reinforced Nanofiber Plates I
75+
),
76+
11317: ( # 800mm Rolled Tungsten Compact Plates
77+
11315, # 800mm Reinforced Titanium Plates I
78+
),
79+
}
80+
81+
def upgrade(saveddata_engine):
82+
83+
# Convert modules
84+
for replacement_item, list in CONVERSIONS.iteritems():
85+
for retired_item in list:
86+
saveddata_engine.execute('UPDATE "modules" SET "itemID" = ? WHERE "itemID" = ?', (replacement_item, retired_item))
87+
saveddata_engine.execute('UPDATE "cargo" SET "itemID" = ? WHERE "itemID" = ?', (replacement_item, retired_item))
88+
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
"""
2+
Conversion pack for Carnyx Module Tiericide
3+
"""
4+
5+
CONVERSIONS = {
6+
# Renamed items
7+
"1MN Microwarpdrive I": "5MN Microwarpdrive I",
8+
"1MN Microwarpdrive II": "5MN Microwarpdrive II",
9+
"Prototype 100MN Microwarpdrive I": "500MN Cold-Gas Enduring Microwarpdrive",
10+
"Experimental 100MN Afterburner I": "100MN Monopropellant Enduring Afterburner",
11+
"Upgraded 1MN Microwarpdrive I": "5MN Cold-Gas Enduring Microwarpdrive",
12+
"Limited 1MN Microwarpdrive I": "5MN Y-T8 Compact Microwarpdrive",
13+
"Experimental 10MN Microwarpdrive I": "50MN Cold-Gas Enduring Microwarpdrive",
14+
"Limited 1MN Afterburner I": "1MN Y-S8 Compact Afterburner",
15+
"Experimental 1MN Afterburner I": "1MN Monopropellant Enduring Afterburner",
16+
"Experimental 10MN Afterburner I": "10MN Monopropellant Enduring Afterburner",
17+
"Large Azeotropic Ward Salubrity I": "Large Azeotropic Restrained Shield Extender",
18+
"Small Azeotropic Ward Salubrity I": "Small Azeotropic Restrained Shield Extender",
19+
"Medium Azeotropic Ward Salubrity I": "Medium Azeotropic Restrained Shield Extender",
20+
"Medium F-S9 Regolith Shield Induction": "Medium F-S9 Regolith Compact Shield Extender",
21+
"Small F-S9 Regolith Shield Induction": "Small F-S9 Regolith Compact Shield Extender",
22+
"Large F-S9 Regolith Shield Induction": "Large F-S9 Regolith Compact Shield Extender",
23+
"1600mm Reinforced Steel Plates I": "1600mm Steel Plates I",
24+
"100mm Reinforced Steel Plates I": "100mm Steel Plates I",
25+
"200mm Reinforced Steel Plates I": "200mm Steel Plates I",
26+
"400mm Reinforced Steel Plates I": "400mm Steel Plates I",
27+
"800mm Reinforced Steel Plates I": "800mm Steel Plates I",
28+
"400mm Reinforced Rolled Tungsten Plates I": "400mm Rolled Tungsten Compact Plates",
29+
"400mm Reinforced Crystalline Carbonide Plates I": "400mm Crystalline Carbonide Restrained Plates",
30+
"800mm Reinforced Rolled Tungsten Plates I": "800mm Rolled Tungsten Compact Plates",
31+
"800mm Reinforced Crystalline Carbonide Plates I": "800mm Crystalline Carbonide Restrained Plates",
32+
"1600mm Reinforced Rolled Tungsten Plates I": "1600mm Rolled Tungsten Compact Plates",
33+
"1600mm Reinforced Crystalline Carbonide Plates I": "1600mm Crystalline Carbonide Restrained Plates",
34+
"100mm Reinforced Rolled Tungsten Plates I": "100mm Rolled Tungsten Compact Plates",
35+
"100mm Reinforced Crystalline Carbonide Plates I": "100mm Crystalline Carbonide Restrained Plates",
36+
"200mm Reinforced Rolled Tungsten Plates I": "200mm Rolled Tungsten Compact Plates",
37+
"200mm Reinforced Crystalline Carbonide Plates I": "200mm Crystalline Carbonide Restrained Plates",
38+
"10MN Microwarpdrive I": "50MN Microwarpdrive I",
39+
"100MN Microwarpdrive I": "500MN Microwarpdrive I",
40+
"10MN Microwarpdrive II": "50MN Microwarpdrive II",
41+
"100MN Microwarpdrive II": "500MN Microwarpdrive II",
42+
"Domination 100MN Microwarpdrive": "Domination 500MN Microwarpdrive",
43+
"Shadow Serpentis 100MN Microwarpdrive": "Shadow Serpentis 500MN Microwarpdrive",
44+
"Domination 10MN Microwarpdrive": "Domination 50MN Microwarpdrive",
45+
"Shadow Serpentis 10MN Microwarpdrive": "Shadow Serpentis 50MN Microwarpdrive",
46+
"Domination 1MN Microwarpdrive": "Domination 5MN Microwarpdrive",
47+
"Shadow Serpentis 1MN Microwarpdrive": "Shadow Serpentis 5MN Microwarpdrive",
48+
"Mizuro's Modified 100MN Microwarpdrive": "Mizuro's Modified 500MN Microwarpdrive",
49+
"Hakim's Modified 100MN Microwarpdrive": "Hakim's Modified 500MN Microwarpdrive",
50+
"Gotan's Modified 100MN Microwarpdrive": "Gotan's Modified 500MN Microwarpdrive",
51+
"Tobias' Modified 100MN Microwarpdrive": "Tobias' Modified 500MN Microwarpdrive",
52+
"Brynn's Modified 100MN Microwarpdrive": "Brynn's Modified 500MN Microwarpdrive",
53+
"Tuvan's Modified 100MN Microwarpdrive": "Tuvan's Modified 500MN Microwarpdrive",
54+
"Setele's Modified 100MN Microwarpdrive": "Setele's Modified 500MN Microwarpdrive",
55+
"Cormack's Modified 100MN Microwarpdrive": "Cormack's Modified 500MN Microwarpdrive",
56+
"Republic Fleet 1MN Microwarpdrive": "Republic Fleet 5MN Microwarpdrive",
57+
"Republic Fleet 10MN Microwarpdrive": "Republic Fleet 50MN Microwarpdrive",
58+
"Republic Fleet 100MN Microwarpdrive": "Republic Fleet 500MN Microwarpdrive",
59+
"Federation Navy 1MN Microwarpdrive": "Federation Navy 5MN Microwarpdrive",
60+
"Federation Navy 10MN Microwarpdrive": "Federation Navy 50MN Microwarpdrive",
61+
"Federation Navy 100MN Microwarpdrive": "Federation Navy 500MN Microwarpdrive",
62+
"Coreli C-Type 1MN Microwarpdrive": "Coreli C-Type 5MN Microwarpdrive",
63+
"Corelum C-Type 10MN Microwarpdrive": "Corelum C-Type 50MN Microwarpdrive",
64+
"Core C-Type 100MN Microwarpdrive": "Core C-Type 500MN Microwarpdrive",
65+
"Coreli B-Type 1MN Microwarpdrive": "Coreli B-Type 5MN Microwarpdrive",
66+
"Corelum B-Type 10MN Microwarpdrive": "Corelum B-Type 50MN Microwarpdrive",
67+
"Core B-Type 100MN Microwarpdrive": "Core B-Type 500MN Microwarpdrive",
68+
"Coreli A-Type 1MN Microwarpdrive": "Coreli A-Type 5MN Microwarpdrive",
69+
"Corelum A-Type 10MN Microwarpdrive": "Corelum A-Type 50MN Microwarpdrive",
70+
"Core A-Type 100MN Microwarpdrive": "Core A-Type 500MN Microwarpdrive",
71+
"Core X-Type 100MN Microwarpdrive": "Core X-Type 500MN Microwarpdrive",
72+
"Gistii C-Type 1MN Microwarpdrive": "Gistii C-Type 5MN Microwarpdrive",
73+
"Gistum C-Type 10MN Microwarpdrive": "Gistum C-Type 50MN Microwarpdrive",
74+
"Gist C-Type 100MN Microwarpdrive": "Gist C-Type 500MN Microwarpdrive",
75+
"Gistii B-Type 1MN Microwarpdrive": "Gistii B-Type 5MN Microwarpdrive",
76+
"Gistum B-Type 10MN Microwarpdrive": "Gistum B-Type 50MN Microwarpdrive",
77+
"Gist B-Type 100MN Microwarpdrive": "Gist B-Type 500MN Microwarpdrive",
78+
"Gistii A-Type 1MN Microwarpdrive": "Gistii A-Type 5MN Microwarpdrive",
79+
"Gistum A-Type 10MN Microwarpdrive": "Gistum A-Type 50MN Microwarpdrive",
80+
"Gist A-Type 100MN Microwarpdrive": "Gist A-Type 500MN Microwarpdrive",
81+
"Gist X-Type 100MN Microwarpdrive": "Gist X-Type 500MN Microwarpdrive",
82+
"100mm Reinforced Steel Plates II": "100mm Steel Plates II",
83+
"200mm Reinforced Steel Plates II": "200mm Steel Plates II",
84+
"400mm Reinforced Steel Plates II": "400mm Steel Plates II",
85+
"800mm Reinforced Steel Plates II": "800mm Steel Plates II",
86+
"1600mm Reinforced Steel Plates II": "1600mm Steel Plates II",
87+
"Micro 'Trapper' Shield Extender": "Small 'Trapper' Shield Extender",
88+
"1MN Analog Booster Rockets": "1MN Analog Booster Afterburner",
89+
"10MN Analog Booster Rockets": "10MN Analog Booster Afterburner",
90+
"100MN Analog Booster Rockets": "100MN Analog Booster Afterburner",
91+
"1MN Digital Booster Rockets": "5MN Digital Booster Microwarpdrive",
92+
"10MN Digital Booster Rockets": "50MN Digital Booster Microwarpdrive",
93+
"100MN Digital Booster Rockets": "500MN Digital Booster Microwarpdrive",
94+
"Civilian Afterburner": "1MN Civilian Afterburner",
95+
"'Abatis' 100mm Reinforced Steel Plates I": "'Abatis' 100mm Steel Plates",
96+
"'Bailey' 1600mm Reinforced Steel Plates I": "'Bailey' 1600mm Steel Plates",
97+
"'Chainmail' 200mm Reinforced Steel Plates I": "'Chainmail' 200mm Steel Plates",
98+
"'Bastion' 400mm Reinforced Steel Plates I": "'Bastion' 400mm Steel Plates",
99+
"'Citadella' 50mm Reinforced Steel Plates I": "'Citadella' 100mm Steel Plates",
100+
"'Barbican' 800mm Reinforced Steel Plates I": "'Barbican' 800mm Steel Plates",
101+
"Syndicate 100mm Reinforced Steel Plates": "Syndicate 100mm Steel Plates",
102+
"Syndicate 1600mm Reinforced Steel Plates": "Syndicate 1600mm Steel Plates",
103+
"Syndicate 200mm Reinforced Steel Plates": "Syndicate 200mm Steel Plates",
104+
"Syndicate 400mm Reinforced Steel Plates": "Syndicate 400mm Steel Plates",
105+
"Syndicate 800mm Reinforced Steel Plates": "Syndicate 800mm Steel Plates",
106+
"Imperial Navy 100mm Reinforced Steel Plates": "Imperial Navy 100mm Steel Plates",
107+
"Federation Navy 100mm Reinforced Steel Plates": "Federation Navy 100mm Steel Plates",
108+
"Imperial Navy 1600mm Reinforced Steel Plates": "Imperial Navy 1600mm Steel Plates",
109+
"Federation Navy 1600mm Reinforced Steel Plates": "Federation Navy 1600mm Steel Plates",
110+
"Imperial Navy 200mm Reinforced Steel Plates": "Imperial Navy 200mm Steel Plates",
111+
"Federation Navy 200mm Reinforced Steel Plates": "Federation Navy 200mm Steel Plates",
112+
"Imperial Navy 400mm Reinforced Steel Plates": "Imperial Navy 400mm Steel Plates",
113+
"Federation Navy 400mm Reinforced Steel Plates": "Federation Navy 400mm Steel Plates",
114+
"Imperial Navy 800mm Reinforced Steel Plates": "Imperial Navy 800mm Steel Plates",
115+
"Federation Navy 800mm Reinforced Steel Plates": "Federation Navy 800mm Steel Plates",
116+
"Polarized Small Pulse Laser": "Polarized Small Focused Pulse Laser",
117+
# Converted items
118+
"Large Subordinate Screen Stabilizer I": "Large F-S9 Regolith Compact Shield Extender",
119+
"Large Supplemental Barrier Emitter I": "Large Azeotropic Restrained Shield Extender",
120+
"Medium Subordinate Screen Stabilizer I": "Medium F-S9 Regolith Compact Shield Extender",
121+
"Medium Supplemental Barrier Emitter I": "Medium Azeotropic Restrained Shield Extender",
122+
"Micro Azeotropic Ward Salubrity I": "Small 'Trapper' Shield Extender",
123+
"Micro F-S9 Regolith Shield Induction": "Small 'Trapper' Shield Extender",
124+
"Micro Shield Extender I": "Small 'Trapper' Shield Extender",
125+
"Micro Shield Extender II": "Small 'Trapper' Shield Extender",
126+
"Micro Subordinate Screen Stabilizer I": "Small 'Trapper' Shield Extender",
127+
"Micro Supplemental Barrier Emitter I": "Small 'Trapper' Shield Extender",
128+
"Small Subordinate Screen Stabilizer I": "Small F-S9 Regolith Compact Shield Extender",
129+
"Small Supplemental Barrier Emitter I": "Small Azeotropic Restrained Shield Extender",
130+
"100mm Reinforced Nanofiber Plates I": "100mm Crystalline Carbonide Restrained Plates",
131+
"100mm Reinforced Titanium Plates I": "100mm Rolled Tungsten Compact Plates",
132+
"1600mm Reinforced Nanofiber Plates I": "1600mm Crystalline Carbonide Restrained Plates",
133+
"1600mm Reinforced Titanium Plates I": "1600mm Rolled Tungsten Compact Plates",
134+
"200mm Reinforced Nanofiber Plates I": "200mm Crystalline Carbonide Restrained Plates",
135+
"200mm Reinforced Titanium Plates I": "200mm Rolled Tungsten Compact Plates",
136+
"400mm Reinforced Nanofiber Plates I": "400mm Crystalline Carbonide Restrained Plates",
137+
"400mm Reinforced Titanium Plates I": "400mm Rolled Tungsten Compact Plates",
138+
"50mm Reinforced Crystalline Carbonide Plates I": "'Citadella' 100mm Steel Plates",
139+
"50mm Reinforced Nanofiber Plates I": "'Citadella' 100mm Steel Plates",
140+
"50mm Reinforced Rolled Tungsten Plates I": "'Citadella' 100mm Steel Plates",
141+
"50mm Reinforced Steel Plates I": "'Citadella' 100mm Steel Plates",
142+
"50mm Reinforced Steel Plates II": "'Citadella' 100mm Steel Plates",
143+
"50mm Reinforced Titanium Plates I": "'Citadella' 100mm Steel Plates",
144+
"800mm Reinforced Nanofiber Plates I": "800mm Crystalline Carbonide Restrained Plates",
145+
"800mm Reinforced Titanium Plates I": "800mm Rolled Tungsten Compact Plates"
146+
}

0 commit comments

Comments
 (0)