Skip to content

Instantly share code, notes, and snippets.

View devnoot's full-sized avatar

Anthony W. Weed devnoot

View GitHub Profile
@devnoot
devnoot / init_doom_mod.py
Created November 15, 2024 01:46
This Python script can be used to intialize a Doom mod project
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)
@devnoot
devnoot / idgames-dl.sh
Last active March 28, 2024 03:53
Shell script to download all wad files from `levels/doom2` (or whichever path you choose) using the idgames archive API. Requires `jq` and `curl`
# 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
@devnoot
devnoot / convert_wad_to_udmf.py
Last active March 28, 2024 03:56
Python script that converts Doom wads to UDMF format. Each map in the provided wad is saved separately.
# 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.')
@devnoot
devnoot / pokemon-gen1-to-gen7-dataset.json
Last active March 28, 2024 04:05
Pokemon dataset including pokemon from Gen 1 to Gen 7
[
{ "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
@devnoot
devnoot / ff9-tetra-master-cards.json
Last active March 28, 2024 04:06
Final Fantasy 9 tetra master cards in JSON format
{
"Goblin": {
"id": "001",
"stats": "0P00"
},
"Fang": {
"id": "002",
"stats": "0P00"
},
"Skeleton": {