equal
deleted
inserted
replaced
17 <code>IN="map.hwmap";OUT="temp.lua";base64 -d $IN | tail -c +7 | head -c -4 > foo;echo -ne "\x1f\x8b\x08\0\0\0\0\0\x02\xff" > bar;cat bar foo | gunzip > baz;C=0;echo -n "local map = { " >> $OUT;od -w240 -t u1 baz | grep -Ev "^[0-9]*[[:space:]]*$" | while read f;do C=$((C+1));if ((C!=1));then echo "," >> $OUT;fi;echo -n $f | sed "s/^......./'/;s/ */\\\\/g;s/$/'/" >> $OUT;done;echo "}" >> $OUT</code> |
17 <code>IN="map.hwmap";OUT="temp.lua";base64 -d $IN | tail -c +7 | head -c -4 > foo;echo -ne "\x1f\x8b\x08\0\0\0\0\0\x02\xff" > bar;cat bar foo | gunzip > baz;C=0;echo -n "local map = { " >> $OUT;od -w240 -t u1 baz | grep -Ev "^[0-9]*[[:space:]]*$" | while read f;do C=$((C+1));if ((C!=1));then echo "," >> $OUT;fi;echo -n $f | sed "s/^......./'/;s/ */\\\\/g;s/$/'/" >> $OUT;done;echo "}" >> $OUT</code> |
18 |
18 |
19 * Input file: `map.hwmap` |
19 * Input file: `map.hwmap` |
20 * Output file: `temp.lua` |
20 * Output file: `temp.lua` |
21 |
21 |
|
22 = Undocumented Lua functions = |
|
23 This script was used on [LuaAPI] to detect undocumented functions: |
|
24 |
|
25 [http://hw.ercatec.net/docs/lua_wiki_check.php] |
|
26 |
|
27 But due to a restructuring, this script no longer works, it needs to be updated. |