This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Goblin": { | |
"id": "001", | |
"stats": "0P00" | |
}, | |
"Fang": { | |
"id": "002", | |
"stats": "0P00" | |
}, | |
"Skeleton": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "name": "Bulbasaur", "firstType": "Grass", "secondType": "Poison", "hp": 45, "attack": 49, "defense": 49, "spAttack": 65, "spDefense": 65, "speed": 45 }, | |
{ "name": "Ivysaur", "firstType": "Grass", "secondType": "Poison", "hp": 60, "attack": 62, "defense": 63, "spAttack": 80, "spDefense": 80, "speed": 60 }, | |
{ "name": "Venusaur", "firstType": "Grass", "secondType": "Poison", "hp": 80, "attack": 82, "defense": 83, "spAttack": 100, "spDefense": 100, "speed": 80 }, | |
{ "name": "Charmander", "firstType": "Fire", "secondType": "", "hp": 39, "attack": 52, "defense": 43, "spAttack": 60, "spDefense": 50, "speed": 65 }, | |
{ "name": "Charmeleon", "firstType": "Fire", "secondType": "", "hp": 58, "attack": 64, "defense": 58, "spAttack": 80, "spDefense": 65, "speed": 80 }, | |
{ "name": "Charizard", "firstType": "Fire", "secondType": "Flying", "hp": 78, "attack": 84, "defense": 78, "spAttack": 109, "spDefense": 85, "speed": 100 }, | |
{ "name": "Squirtle", "firstType": "Water", "secondType": "", "hp": 44, "attack": 48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script to convert Doom WAD to UDMF | |
import argparse | |
import os | |
from omg import WAD, UMapEditor | |
def parse_args(): | |
parser = argparse.ArgumentParser(description='Convert Doom WAD files to UDMF format.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Settings | |
API_URL=https://doomworld.com/idgames/api/api.php | |
MIRROR_URL=https://youfailit.net/pub/idgames/ | |
# Get directories | |
echo "Getting directories from API" | |
curl -s "$API_URL?action=getdirs&name=levels/doom2/&out=json" | jq '.content.dir[].name' > paths.txt | |
sed -i 's/"//g' paths.txt | |
# Aggregate the wad URLs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
if __name__ == '__main__': | |
if len(sys.argv) < 2: | |
print("Usage: python3 init_doom_mod /path/to/target/directory") | |
sys.exit(1) |