Fichier permet de générer une base de donnée "dbdata" au format shelves qui contient les éléments de jeu, les niveau et les menus.

This commit is contained in:
Le_dahut 2014-03-28 18:11:08 +01:00
parent 55baeec433
commit f330fb6c45
1 changed files with 100 additions and 1 deletions

101
dbsrc
View File

@ -943,4 +943,103 @@ worlds=[[{'nom': 'Introduction',
'cycle': 0,
'tech': 4,
'cout': 1200}]]
write("dbdata",["worlds"])
art={196608: {'nrj': 0, 'cout': 0, 'temp': 0, 'nom': 'null', 'color': [0, 0, 0], 'text': '', 'value': 196608, 'cat': 0, 'tech': 0, 'activable': False},
196609: {'nrj': 0, 'cout': 60, 'temp': 0.05, 'nom': 'positiver', 'color': [255, 0, 0], 'text': '+', 'value': 196609, 'cat': 1, 'tech': 2, 'activable': True},
196610: {'nrj': 0, 'cout': 60, 'temp': 0.05, 'nom': 'negativer', 'color': [0, 0, 255], 'text': '-', 'value': 196610, 'cat': 1, 'tech': 4, 'activable': True},
196611: {'nrj': 0, 'cout': 20, 'temp': 0.05, 'nom': 'inverter', 'color': [125, 13, 114], 'text': '\xc2\xb1', 'value': 196611, 'cat': 1, 'tech': 1, 'activable': False},
196612: {'nrj': 0, 'cout': 20, 'temp': 0.05, 'nom': 'neutraliser', 'color': [90, 90, 90], 'text': '~', 'value': 196612, 'cat': 1, 'tech': 4, 'activable': False},
196613: {'nrj': 0, 'cout': 25, 'temp': 0.05, 'nom': 'dir1', 'color': [125, 13, 114], 'text': '\xe2\x97\x84', 'value': 196613, 'cat': 2, 'tech': 5, 'activable': False},
196614: {'nrj': 0, 'cout': 25, 'temp': 0.05, 'nom': 'dir2', 'color': [125, 13, 114], 'text': '\xe2\x96\xba', 'value': 196614, 'cat': 2, 'tech': 5, 'activable': False},
196615: {'nrj': 0, 'cout': 150, 'temp': 0.05, 'nom': 'trierb', 'color': [0, 0, 255], 'text': '\xe2\x96\xaa', 'value': 196615, 'cat': 3, 'tech': 6, 'activable': False},
196616: {'nrj': 0, 'cout': 150, 'temp': 0.05, 'nom': 'trierr', 'color': [255, 0, 0], 'text': '\xe2\x96\xaa', 'value': 196616, 'cat': 3, 'tech': 6, 'activable': False},
196617: {'nrj': 0, 'cout': 200, 'temp': 0.05, 'nom': 'trierp', 'color': [44, 120, 44], 'text': '\xe2\x96\xaa', 'value': 196617, 'cat': 3, 'tech': 8, 'activable': True},
196618: {'nrj': 0, 'cout': 150, 'temp': 0.05, 'nom': 'trierg', 'color': [125, 13, 114], 'text': '\xe2\x86\x95', 'value': 196618, 'cat': 3, 'tech': 5, 'activable': False},
196619: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern1-1', 'color': [125, 13, 114], 'text': '1', 'value': 196619, 'cat': 3, 'tech': 8, 'activable': False},
196620: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern2-2', 'color': [125, 13, 114], 'text': '2', 'value': 196620, 'cat': 3, 'tech': 8, 'activable': False},
196621: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern4-4', 'color': [125, 13, 114], 'text': '4', 'value': 196621, 'cat': 3, 'tech': 8, 'activable': False},
196622: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern4-4a', 'color': [125, 13, 114], 'text': '4', 'value': 196622, 'cat': 3, 'tech': 9, 'activable': True},
196623: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern8-8a', 'color': [125, 13, 114], 'text': '8', 'value': 196623, 'cat': 3, 'tech': 9, 'activable': True},
196624: {'nrj': 1, 'cout': 50, 'temp': 0, 'nom': 'canonh', 'color': [90, 90, 90], 'text': '\xe2\x96\xa0', 'value': 196624, 'cat': 4, 'tech': 1, 'activable': True},
196625: {'nrj': 0, 'cout': 20, 'temp': 0, 'nom': 'canont', 'color': [90, 90, 90], 'text': '\xe2\x96\xa1', 'value': 196625, 'cat': 4, 'tech': 5, 'activable': True},
196626: {'nrj': 0, 'cout': 40, 'temp': 0, 'nom': 'destroyer', 'color': [125, 13, 114], 'text': 'X', 'value': 196626, 'cat': 4, 'tech': 7, 'activable': False},
196627: {'nrj': 0, 'cout': 30, 'temp': 0.5, 'nom': 'photonizer', 'color': [44, 120, 44], 'text': '\xe2\x89\xa0', 'value': 196627, 'cat': 4, 'tech': 2, 'activable': False},
196628: {'nrj': 0, 'cout': 150, 'temp': 1.0, 'nom': 'photonizer2', 'color': [44, 120, 44], 'text': '=', 'value': 196628, 'cat': 4, 'tech': 8, 'activable': False},
196629: {'nrj': 0, 'cout': 100, 'temp': 2, 'nom': 'reactor', 'color': [125, 13, 114], 'text': '\xce\xa6', 'value': 196629, 'cat': 4, 'tech': 3, 'activable': True},
196630: {'nrj': 0, 'cout': 80, 'temp': 0, 'nom': 'senserK', 'color': [50, 50, 150], 'text': 'K', 'value': 196630, 'cat': 5, 'tech': 3, 'activable': True},
196631: {'nrj': 0, 'cout': 80, 'temp': 0, 'nom': 'senserL', 'color': [50, 50, 150], 'text': 'L', 'value': 196631, 'cat': 5, 'tech': 6, 'activable': True},
196632: {'nrj': 0, 'cout': 80, 'temp': 0, 'nom': 'senserM', 'color': [50, 50, 150], 'text': 'M', 'value': 196632, 'cat': 5, 'tech': 7, 'activable': True},
196633: {'nrj': 0, 'cout': 80, 'temp': 0, 'nom': 'senserN', 'color': [50, 50, 150], 'text': 'N', 'value': 196633, 'cat': 5, 'tech': 8, 'activable': True},
196634: {'nrj': 0, 'cout': 80, 'temp': 0, 'nom': 'sensern', 'color': [75, 119, 157], 'text': 'n', 'value': 196634, 'cat': 5, 'tech': 4, 'activable': True},
196635: {'nrj': 0, 'cout': 80, 'temp': 0, 'nom': 'senserp', 'color': [122, 49, 25], 'text': 'p', 'value': 196635, 'cat': 5, 'tech': 3, 'activable': True},
196636: {'nrj': 0, 'cout': 300, 'temp': 0, 'nom': 'calor', 'color': [240, 30, 30], 'text': '\xd0\x96', 'value': 196636, 'cat': 6, 'tech': 9, 'activable': False},
196637: {'nrj': 0, 'cout': 0, 'temp': 0, 'nom': 'sensere', 'color': [60, 60, 60], 'text': 'e', 'value': 196637, 'cat': 7, 'tech': 0, 'activable': False},
196638: {'nrj': 0, 'cout': 0, 'temp': 0, 'nom': 'senserf', 'color': [200, 50, 50], 'text': 'e', 'value': 196638, 'cat': 7, 'tech': 0, 'activable': False},
196639: {'nrj': 0, 'cout': 0, 'temp': 0, 'nom': 'senserg', 'color': [0, 0, 255], 'text': 'e', 'value': 196639, 'cat': 7, 'tech': 0, 'activable': False},
196640: {'nrj': 0, 'cout': 0, 'temp': 0, 'nom': 'senserh', 'color': [60, 60, 60], 'text': 'e', 'value': 196640, 'cat': 7, 'tech': 0, 'activable': True},
196641: {'nrj': 0, 'cout': 0, 'temp': 0.05, 'nom': 'positiver2', 'color': [255, 0, 0], 'text': '+', 'value': 196641, 'cat': 7, 'tech': 0, 'activable': False},
196642: {'nrj': 1, 'cout': 0, 'temp': 0, 'nom': 'canonh2', 'color': [125, 13, 114], 'text': '\xe2\x96\xa0', 'value': 196642, 'cat': 7, 'tech': 0, 'activable': False},
196643: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern0-1', 'color': [255, 255, 255], 'text': '0', 'value': 196643, 'cat': 7, 'tech': 0, 'activable': False},
196644: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern0-2', 'color': [255, 255, 255], 'text': '0', 'value': 196644, 'cat': 7, 'tech': 0, 'activable': False},
196645: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern0-4', 'color': [255, 255, 255], 'text': '0', 'value': 196645, 'cat': 7, 'tech': 0, 'activable': False},
196646: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern1-2', 'color': [255, 255, 255], 'text': '1', 'value': 196646, 'cat': 7, 'tech': 0, 'activable': False},
196647: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern1-4', 'color': [255, 255, 255], 'text': '1', 'value': 196647, 'cat': 7, 'tech': 0, 'activable': False},
196648: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern2-4', 'color': [255, 255, 255], 'text': '2', 'value': 196648, 'cat': 7, 'tech': 0, 'activable': False},
196649: {'nrj': 0, 'cout': 250, 'temp': 0.05, 'nom': 'triern3-4', 'color': [125, 13, 114], 'text': '3', 'value': 196649, 'cat': 7, 'tech': 0, 'activable': False},
196650: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern7-8a', 'color': [125, 13, 114], 'text': '7', 'value': 196650, 'cat': 7, 'tech': 0, 'activable': True},
196651: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern6-8a', 'color': [125, 13, 114], 'text': '6', 'value': 196651, 'cat': 7, 'tech': 0, 'activable': True},
196652: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern5-8a', 'color': [125, 13, 114], 'text': '5', 'value': 196652, 'cat': 7, 'tech': 0, 'activable': True},
196653: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern4-8a', 'color': [125, 13, 114], 'text': '5', 'value': 196653, 'cat': 7, 'tech': 0, 'activable': True},
196654: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern3-8a', 'color': [125, 13, 114], 'text': '3', 'value': 196654, 'cat': 7, 'tech': 0, 'activable': True},
196655: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern2-8a', 'color': [125, 13, 114], 'text': '2', 'value': 196655, 'cat': 7, 'tech': 0, 'activable': True},
196656: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern1-8a', 'color': [125, 13, 114], 'text': '1', 'value': 196656, 'cat': 7, 'tech': 0, 'activable': True},
196657: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern0-8a', 'color': [255, 255, 255], 'text': '0', 'value': 196657, 'cat': 7, 'tech': 0, 'activable': True},
196658: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern3-4a', 'color': [125, 13, 114], 'text': '3', 'value': 196658, 'cat': 7, 'tech': 0, 'activable': True},
196659: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern2-4a', 'color': [125, 13, 114], 'text': '2', 'value': 196659, 'cat': 7, 'tech': 0, 'activable': True},
196660: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern1-4a', 'color': [125, 13, 114], 'text': '1', 'value': 196660, 'cat': 7, 'tech': 0, 'activable': True},
196661: {'nrj': 0, 'cout': 300, 'temp': 0.05, 'nom': 'triern0-4a', 'color': [255, 255, 255], 'text': '0', 'value': 196661, 'cat': 7, 'tech': 0, 'activable': True},
196662: {'nrj': 0, 'cout': 25, 'temp': 0.05, 'nom': 'dir3', 'color': [125, 13, 114], 'text': '\xe2\x96\xb2', 'value': 196662, 'cat': 2, 'tech': 5, 'activable': False},
196663: {'nrj': 0, 'cout': 25, 'temp': 0.05, 'nom': 'dir4', 'color': [125, 13, 114], 'text': '\xe2\x96\xbc', 'value': 196663, 'cat': 2, 'tech': 5, 'activable': False},
1: {'color': [240, 100, 38], 'nom': 'copper', 'cout': 1, 'value': 1},
4608: {'color': [50, 50, 200], 'nom': 'headb', 'cout': 1, 'value': 4608},
32: {'color': [80, 80, 80], 'nom': 'tail2', 'cout': 1, 'value': 32},
2: {'color': [208, 213, 79], 'nom': 'fiber', 'cout': 5, 'value': 2},
8192: {'color': [40, 40, 40], 'nom': 'head2', 'cout': 1, 'value': 8192},
33: {'color': [150, 50, 50], 'nom': 'tailr2', 'cout': 1, 'value': 33},
4352: {'color': [200, 50, 50], 'nom': 'headr', 'cout': 1, 'value': 4352},
34: {'color': [50, 50, 150], 'nom': 'tailb2', 'cout': 1, 'value': 34},
4864: {'color': [44, 120, 44], 'nom': 'headp', 'cout': 5, 'value': 4864},
8448: {'color': [255, 0, 0], 'nom': 'headr2', 'cout': 1, 'value': 8448},
0: {'color': [0, 0, 0], 'nom': 'nothing', 'cout': 0, 'value': 0},
16: {'color': [80, 80, 80], 'nom': 'tail', 'cout': 1, 'value': 16},
17: {'color': [150, 50, 50], 'nom': 'tailr', 'cout': 1, 'value': 17},
18: {'color': [50, 50, 150], 'nom': 'tailb', 'cout': 1, 'value': 18},
4096: {'color': [60, 60, 60], 'nom': 'head', 'cout': 1, 'value': 4096},
19: {'color': [68, 165, 68], 'nom': 'tailp', 'cout': 5, 'value': 19},
8704: {'color': [0, 0, 255], 'nom': 'headb2', 'cout': 1, 'value': 8704},
5: {'color': [75, 119, 157], 'nom': 'neut', 'cout': 0, 'value': 5},
4: {'color': [122, 49, 25], 'nom': 'prot', 'cout': 0, 'value': 4}}
dat={65536: {'nom': 'cycle', 'value': 65536, 'icon': '%picture/cycle.png'},
131073: {'nom': 'speed', 'color': '', 'value': 131073, 'drag': 0, 'ref': '', 'icon': '%picture/speed.png'},
65538: {'nom': 'rayon', 'value': 65538, 'icon': '%picture/rayon.png'},
65539: {'nom': 'temp', 'value': 65539, 'icon': '%picture/temp.png'},
65540: {'nom': 'cout', 'value': 65540, 'icon': '%picture/cout.png'},
65541: {'nom': 'tech', 'value': 65541, 'icon': '%picture/tech.png'},
131072: {'nom': 'run', 'color': '', 'value': 131072, 'drag': 0, 'ref': '', 'icon': '%picture/stop.png'},
131079: {'nom': 'levels', 'color': '', 'value': 131079, 'drag': 0, 'ref': '', 'icon': '%picture/levels.png'},
131080: {'nom': 'screen', 'color': '', 'value': 131080, 'drag': 0, 'ref': '', 'icon': '%picture/screen.png'},
131081: {'nom': 'settings', 'color': '', 'value': 131081, 'drag': 0, 'ref': '', 'icon': '%picture/settings.png'},
131082: {'nom': 'exits', 'color': '', 'value': 131082, 'drag': 0, 'ref': '', 'icon': '%picture/exits.png'},
131083: {'nom': 'setcopper', 'color': [240, 100, 38], 'value': 131083, 'drag': 1, 'ref': '', 'icon': ''},
131084: {'nom': 'setfiber', 'color': [208, 213, 79], 'value': 131084, 'drag': 1, 'ref': '', 'icon': ''},
131085: {'nom': 'setnothing', 'color': [0, 0, 0], 'value': 131085, 'drag': 1, 'ref': '', 'icon': ''},
131086: {'nom': 'others', 'color': '', 'value': 131086, 'drag': 1, 'ref': {'nrj': 0, 'cout': 0, 'temp': 0, 'nom': 'null', 'color': [0, 0, 0], 'text': '', 'value': 196608, 'cat': 0, 'tech': 0, 'activable': False},
'icon': '/'},
131087: {'nom': 'setnothinga', 'color': [40, 40, 40], 'value': 131087, 'drag': 1, 'ref': '', 'icon': ''},
131088: {'nom': 'stop', 'color': '', 'value': 131088, 'drag': 0, 'ref': '', 'icon': '%picture/run.png'},
131075: {'nom': 'move', 'color': '', 'value': 131075, 'drag': 1, 'ref': '', 'icon': '%picture/move.png'},
131076: {'nom': 'zoomp', 'color': '', 'value': 131076, 'drag': 0, 'ref': '', 'icon': '%picture/zoomp.png'},
131077: {'nom': 'zoomm', 'color': '', 'value': 131077, 'drag': 0, 'ref': '', 'icon': '%picture/zoomm.png'},
65537: {'nom': 'nrj', 'value': 65537, 'icon': '%picture/nrj.png'},
131078: {'nom': 'stater', 'color': '', 'value': 131078, 'drag': 0, 'ref': '', 'icon': '%picture/stat.png'},
131074: {'nom': 'raz', 'color': '', 'value': 131074, 'drag': 0, 'ref': '', 'icon': '%picture/raz.png'}}
write("dbdata",["worlds","art","dat"])