Browse Source

First commit

master
Fife 3 years ago
parent
commit
d5a1b663b2
3 changed files with 299 additions and 0 deletions
  1. 5
    0
      Comment l'utiliser.txt
  2. 288
    0
      Convertisseur.bat
  3. 6
    0
      desktop.ini

+ 5
- 0
Comment l'utiliser.txt View File

@@ -0,0 +1,5 @@
Placer le .csv que vous voulez convertir.

Ensuite renommer le map.csv.

Executer le Convertisseur , il générera un .txt que vous pouvez copier dans votre code.

+ 288
- 0
Convertisseur.bat View File

@@ -0,0 +1,288 @@
@echo off
setLocal EnableDelayedExpansion

echo const unsigned char map[]={>>map.txt
for /f "tokens=* delims= " %%a in (map.csv) do (
set str= %%a,

set str=!str:100,=0x64Z,!
set str=!str:101,=0x65Z,!
set str=!str:102,=0x66Z,!
set str=!str:103,=0x67Z,!
set str=!str:104,=0x68Z,!
set str=!str:105,=0x69Z,!
set str=!str:106,=0x6AZ,!
set str=!str:107,=0x6BZ,!
set str=!str:108,=0x6CZ,!
set str=!str:109,=0x6DZ,!
set str=!str:110,=0x6EZ,!
set str=!str:111,=0x6FZ,!

set str=!str:112,=0x70Z,!
set str=!str:113,=0x71Z,!
set str=!str:114,=0x72Z,!
set str=!str:115,=0x73Z,!
set str=!str:116,=0x74Z,!
set str=!str:117,=0x75Z,!
set str=!str:118,=0x76Z,!
set str=!str:119,=0x77Z,!
set str=!str:120,=0x78Z,!
set str=!str:121,=0x79Z,!
set str=!str:122,=0x7AZ,!
set str=!str:123,=0x7BZ,!
set str=!str:124,=0x7CZ,!
set str=!str:125,=0x7DZ,!
set str=!str:126,=0x7EZ,!
set str=!str:127,=0x7FZ,!

set str=!str:128,=0x80Z,!
set str=!str:129,=0x81Z,!
set str=!str:130,=0x82Z,!
set str=!str:131,=0x83Z,!
set str=!str:132,=0x84Z,!
set str=!str:133,=0x85Z,!
set str=!str:134,=0x86Z,!
set str=!str:135,=0x87Z,!
set str=!str:136,=0x88Z,!
set str=!str:137,=0x89Z,!
set str=!str:138,=0x8AZ,!
set str=!str:139,=0x8BZ,!
set str=!str:140,=0x8CZ,!
set str=!str:141,=0x8DZ,!
set str=!str:142,=0x8EZ,!
set str=!str:143,=0x8FZ,!

set str=!str:144,=0x90Z,!
set str=!str:145,=0x91Z,!
set str=!str:146,=0x92Z,!
set str=!str:147,=0x93Z,!
set str=!str:148,=0x94Z,!
set str=!str:149,=0x95Z,!
set str=!str:150,=0x96Z,!
set str=!str:151,=0x97Z,!
set str=!str:152,=0x98Z,!
set str=!str:153,=0x99Z,!
set str=!str:154,=0x9AZ,!
set str=!str:155,=0x9BZ,!
set str=!str:156,=0x9CZ,!
set str=!str:157,=0x9DZ,!
set str=!str:158,=0x9EZ,!
set str=!str:159,=0x9FZ,!

set str=!str:160,=0xA0Z,!
set str=!str:161,=0xA1Z,!
set str=!str:162,=0xA2Z,!
set str=!str:163,=0xA3Z,!
set str=!str:164,=0xA4Z,!
set str=!str:165,=0xA5Z,!
set str=!str:166,=0xA6Z,!
set str=!str:167,=0xA7Z,!
set str=!str:168,=0xA8Z,!
set str=!str:169,=0xA9Z,!
set str=!str:170,=0xAAZ,!
set str=!str:171,=0xABZ,!
set str=!str:172,=0xACZ,!
set str=!str:173,=0xADZ,!
set str=!str:174,=0xAEZ,!
set str=!str:175,=0xAFZ,!

set str=!str:176,=0xB0Z,!
set str=!str:177,=0xB1Z,!
set str=!str:178,=0xB2Z,!
set str=!str:179,=0xB3Z,!
set str=!str:180,=0xB4Z,!
set str=!str:181,=0xB5Z,!
set str=!str:182,=0xB6Z,!
set str=!str:183,=0xB7Z,!
set str=!str:184,=0xB8Z,!
set str=!str:185,=0xB9Z,!
set str=!str:186,=0xBAZ,!
set str=!str:187,=0xBBZ,!
set str=!str:188,=0xBCZ,!
set str=!str:189,=0xBDZ,!
set str=!str:190,=0xBEZ,!
set str=!str:191,=0xBFZ,!

set str=!str:192,=0xC0Z,!
set str=!str:193,=0xC1Z,!
set str=!str:194,=0xC2Z,!
set str=!str:195,=0xC3Z,!
set str=!str:196,=0xC4Z,!
set str=!str:197,=0xC5Z,!
set str=!str:198,=0xC6Z,!
set str=!str:199,=0xC7Z,!
set str=!str:200,=0xC8Z,!
set str=!str:201,=0xC9Z,!
set str=!str:202,=0xCAZ,!
set str=!str:203,=0xCBZ,!
set str=!str:204,=0xCCZ,!
set str=!str:205,=0xCDZ,!
set str=!str:206,=0xCEZ,!
set str=!str:207,=0xCFZ,!

set str=!str:208,=0xD0Z,!
set str=!str:209,=0xD1Z,!
set str=!str:210,=0xD2Z,!
set str=!str:211,=0xD3Z,!
set str=!str:212,=0xD4Z,!
set str=!str:213,=0xD5Z,!
set str=!str:214,=0xD6Z,!
set str=!str:215,=0xD7Z,!
set str=!str:216,=0xD8Z,!
set str=!str:217,=0xD9Z,!
set str=!str:218,=0xDAZ,!
set str=!str:219,=0xDBZ,!
set str=!str:220,=0xDCZ,!
set str=!str:221,=0xDDZ,!
set str=!str:222,=0xDEZ,!
set str=!str:223,=0xDFZ,!

set str=!str:224,=0xE0Z,!
set str=!str:225,=0xE1Z,!
set str=!str:226,=0xE2Z,!
set str=!str:227,=0xE3Z,!
set str=!str:228,=0xE4Z,!
set str=!str:229,=0xE5Z,!
set str=!str:230,=0xE6Z,!
set str=!str:231,=0xE7Z,!
set str=!str:232,=0xE8Z,!
set str=!str:233,=0xE9Z,!
set str=!str:234,=0xEAZ,!
set str=!str:235,=0xEBZ,!
set str=!str:236,=0xECZ,!
set str=!str:237,=0xEDZ,!
set str=!str:238,=0xEEZ,!
set str=!str:239,=0xEFZ,!

set str=!str:240,=0xF0Z,!
set str=!str:241,=0xF1Z,!
set str=!str:242,=0xF2Z,!
set str=!str:243,=0xF3Z,!
set str=!str:244,=0xF4Z,!
set str=!str:245,=0xF5Z,!
set str=!str:246,=0xF6Z,!
set str=!str:247,=0xF7Z,!
set str=!str:248,=0xF8Z,!
set str=!str:249,=0xF9Z,!
set str=!str:250,=0xFAZ,!
set str=!str:251,=0xFBZ,!
set str=!str:252,=0xFCZ,!
set str=!str:253,=0xFDZ,!
set str=!str:254,=0xFEZ,!
set str=!str:255,=0xFFZ,!

set str=!str:10,=0x0AZ,!
set str=!str:11,=0x0BZ,!
set str=!str:12,=0x0CZ,!
set str=!str:13,=0x0DZ,!
set str=!str:14,=0x0EZ,!
set str=!str:15,=0x0FZ,!

set str=!str:16,=0x10Z,!
set str=!str:17,=0x11Z,!
set str=!str:18,=0x12Z,!
set str=!str:19,=0x13Z,!
set str=!str:20,=0x14Z,!
set str=!str:21,=0x15Z,!
set str=!str:22,=0x16Z,!
set str=!str:23,=0x17Z,!
set str=!str:24,=0x18Z,!
set str=!str:25,=0x19Z,!
set str=!str:26,=0x1AZ,!
set str=!str:27,=0x1BZ,!
set str=!str:28,=0x1CZ,!
set str=!str:29,=0x1DZ,!
set str=!str:30,=0x1EZ,!
set str=!str:31,=0x1FZ,!

set str=!str:32,=0x20Z,!
set str=!str:33,=0x21Z,!
set str=!str:34,=0x22Z,!
set str=!str:35,=0x23Z,!
set str=!str:36,=0x24Z,!
set str=!str:37,=0x25Z,!
set str=!str:38,=0x26Z,!
set str=!str:39,=0x27Z,!
set str=!str:40,=0x28Z,!
set str=!str:41,=0x29Z,!
set str=!str:42,=0x2AZ,!
set str=!str:43,=0x2BZ,!
set str=!str:44,=0x2CZ,!
set str=!str:45,=0x2DZ,!
set str=!str:46,=0x2EZ,!
set str=!str:47,=0x2FZ,!

set str=!str:48,=0x30Z,!
set str=!str:49,=0x31Z,!
set str=!str:50,=0x32Z,!
set str=!str:51,=0x33Z,!
set str=!str:52,=0x34Z,!
set str=!str:53,=0x35Z,!
set str=!str:54,=0x36Z,!
set str=!str:55,=0x37Z,!
set str=!str:56,=0x38Z,!
set str=!str:57,=0x39Z,!
set str=!str:58,=0x3AZ,!
set str=!str:59,=0x3BZ,!
set str=!str:60,=0x3CZ,!
set str=!str:61,=0x3DZ,!
set str=!str:62,=0x3EZ,!
set str=!str:63,=0x3FZ,!

set str=!str:64,=0x40Z,!
set str=!str:65,=0x41Z,!
set str=!str:66,=0x42Z,!
set str=!str:67,=0x43Z,!
set str=!str:68,=0x44Z,!
set str=!str:69,=0x45Z,!
set str=!str:70,=0x46Z,!
set str=!str:71,=0x47Z,!
set str=!str:72,=0x48Z,!
set str=!str:73,=0x49Z,!
set str=!str:74,=0x4AZ,!
set str=!str:75,=0x4BZ,!
set str=!str:76,=0x4CZ,!
set str=!str:77,=0x4DZ,!
set str=!str:78,=0x4EZ,!
set str=!str:79,=0x4FZ,!

set str=!str:80,=0x50Z,!
set str=!str:81,=0x51Z,!
set str=!str:82,=0x52Z,!
set str=!str:83,=0x53Z,!
set str=!str:84,=0x54Z,!
set str=!str:85,=0x55Z,!
set str=!str:86,=0x56Z,!
set str=!str:87,=0x57Z,!
set str=!str:88,=0x58Z,!
set str=!str:89,=0x59Z,!
set str=!str:90,=0x5AZ,!
set str=!str:91,=0x5BZ,!
set str=!str:92,=0x5CZ,!
set str=!str:93,=0x5DZ,!
set str=!str:94,=0x5EZ,!
set str=!str:95,=0x5FZ,!

set str=!str:96,=0x60Z,!
set str=!str:97,=0x61Z,!
set str=!str:98,=0x62Z,!
set str=!str:99,=0x63Z,!

set str=!str:0,=0x00Z,!
set str=!str:1,=0x01Z,!
set str=!str:2,=0x02Z,!
set str=!str:3,=0x03Z,!
set str=!str:4,=0x04Z,!
set str=!str:5,=0x05Z,!
set str=!str:6,=0x06Z,!
set str=!str:7,=0x07Z,!
set str=!str:8,=0x08Z,!
set str=!str:9,=0x09Z,!


set str=!str:Z=!

echo !str!>>map.txt
)

echo };>>map.txt

+ 6
- 0
desktop.ini View File

@@ -0,0 +1,6 @@
[.ShellClassInfo]
IconResource=C:\Windows\system32\SHELL32.dll,20
[ViewState]
Mode=
Vid=
FolderType=Generic

Loading…
Cancel
Save