Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Br00ty committed Oct 1, 2023
0 parents commit c0410ae
Show file tree
Hide file tree
Showing 33 changed files with 1,309 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/action.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Discord Webhook Action

These are some github actions I use on my packs.

Feel free to use as you see fit.

## discord_webhook.yml

This is the discord webhook action I use to automatically post updates of my pack to discord.

Requires the Webhook URL to be placed in a repo secret on github named ``DISCORD_WEBHOOK_URL``.

## validation.yml

This is the pack validation action I use to automatically validate json against the offical PopTracker schemas.

It uses the [PopTracker pack-checker-action](https://github.com/PopTracker/pack-checker-action).

Triggers whenever a push or pull request including changes to any json file are made. Can also be run manually.
14 changes: 14 additions & 0 deletions .github/workflows/discord_webhook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Discord webhook
on:
release:
types: [published]

jobs:
discord_webhook:
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Notify
uses: Cyb3RGER/discord-webhook-notify@master
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }}
severity: info
21 changes: 21 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pack validation
on:
workflow_dispatch:
push:
paths:
- '**.json'
pull_request:
paths:
- '**.json'
jobs:
validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.6.0
- name: Validate pack (lax)
uses: PopTracker/pack-checker-action@v1
- name: Validate pack (strict)
uses: PopTracker/pack-checker-action@v1
with:
strict: true

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
todo.*
.~lock.*
*.xcf
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template Pack for PopTracker

This a template tracker package for PopTracker.

Includes examples for AP and SNES memory autotracking and beginner-friendly explanations in the pack.

## Installation

Just download the lastest build or source and put in your packs folder (unpacked).

## More Info

Check out PopTrackers Documentation on packs [here](https://github.com/black-sliver/PopTracker/blob/master/doc/PACKS.md)

Still having trouble realizing your pack and looking for help or just want more information about everything PopTracker? Check out the ['Unofficial' PopTracker Discord Server](https://discord.com/invite/gwThqMCPgK)!

## License

Feel free to use this template without credit for all your PopTracker packs!
Binary file added images/items/consumable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/items/progressive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/items/progressive_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/items/toggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/maps/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/maps/map_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions items/items.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
//more info: https://github.com/black-sliver/PopTracker/blob/master/doc/PACKS.md#items
[
{
"name": "Toggle",
"type": "toggle",
"img": "images/items/toggle.png",
"codes": "toggle"
},
{
"name": "Progressive",
"type": "progressive",
"allow_disabled": true,
"initial_stage_idx": 0,
"stages": [
{
"img": "images/items/progressive.png",
"codes": "progressive",
"inherit_codes": false
},
{
"img": "images/items/progressive_2.png",
"codes": "progressive_2",
"inherit_codes": false
}
]
},
{
"name": "Consumable",
"type": "consumable",
"img": "images/items/consumable.png",
"max_quantity": 8,
"increment": 1,
"decrement": 1,
"initial_quantity": 1,
"overlay_background": "#000000",
"overlay_font_size": 8,
"codes": "consumable"
},
{
"name": "Progressive Toggle",
"type": "progressive_toggle",
"initial_stage_idx": 0,
"stages": [
{
"img": "images/items/progressive.png",
"codes": "progressive_toggle",
"inherit_codes": false
},
{
"img": "images/items/progressive_2.png",
"codes": "progressive_toggle_2",
"inherit_codes": false
}
]
}
]
21 changes: 21 additions & 0 deletions layouts/broadcast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//sets the layout for the broadcast view
{
"tracker_broadcast": {
"type": "array",
"orientation": "vertical",
"margin": "0,0",
"content": [
{
"type": "array",
"orientation": "horizontal",
"margin": "0,0",
"content": [
{
"type": "layout",
"key": "shared_item_grid"
}
]
}
]
}
}
33 changes: 33 additions & 0 deletions layouts/items.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// sets layouts for shadred items grids
// bigger example: https://github.com/Cyb3RGER/sm_ap_tracker/blob/main/layouts/items.json
{
"shared_item_grid": {
"type": "array",
"orientation": "vertical",
"margin": "0,0",
"content": [
{
"type": "array",
"orientation": "horizontal",
"margin": "0,0",
"content": [
{
"type": "itemgrid",
"item_margin": "10, 10",
"h_alignment": "left",
"rows": [
[
"toggle",
"progressive"
],
[
"consumable",
"progressive_toggle"
]
]
}
]
}
]
}
}
104 changes: 104 additions & 0 deletions layouts/tracker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
//sets the trackers layout
//more info: https://github.com/black-sliver/PopTracker/blob/master/doc/PACKS.md#layouts
{
"tracker_default": {
"type": "container",
"background": "#000000",
"content": {
"type": "dock",
"dropshadow": true,
"content": [
{
"type": "dock",
"dock": "left",
"v_alignment": "stretch",
"content": [
{
"type": "group",
"header": "Items",
"dock": "top",
"content": {
"type": "layout",
"key": "shared_item_grid"
}
}
]
},
{
"type": "tabbed",
"tabs": [
{
"title": "Map 1",
"content": {
"type": "map",
"maps": [
"map1"
]
}
},
{
"title": "Map 2",
"content": {
"type": "map",
"maps": [
"map2"
]
}
}
]
}
]
}
},
"tracker_horizontal": {
"type": "container",
"background": "#000000",
"content": {
"type": "dock",
"dropshadow": true,
"content": [
{
"type": "dock",
"dock": "bottom",
"content": [
{
"type": "group",
"header": "Items",
"dock": "left",
"margin": "0,0,3,0",
"content": {
"type": "layout",
"h_alignment": "center",
"v_alignment": "center",
"key": "shared_item_grid"
}
}
]
},
{
"type": "tabbed",
"tabs": [
{
"title": "Map 1",
"content": {
"type": "map",
"maps": [
"map1"
]
}
},
{
"title": "Map 2",
"content": {
"type": "map",
"maps": [
"map2"
]
}
}
]
}
]
}
}
}
57 changes: 57 additions & 0 deletions locations/locations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[
{
"name": "Example Parent",
"children": [
{
"name": "Example Location 1",
"access_rules": [
//read as: progressive_2 or toggle
"progressive_2",
"toggle"
],
"sections": [
{
"name": "Example Section 1",
"item_count": 1
},
{
"name": "Example Section 2",
"item_count": 3
}
],
"map_locations": [
{
"map": "map1",
"x": 1750,
"y": 700
},
{
"map": "map2",
"x": 1000,
"y": 500
}
]
},
{
"name": "Example Location 2",
"access_rules": [
//read as: progressive_toggle_2 and has more then 4 consumable
"progressive_toggle_2, $has_more_then_n_consumable|4"
],
"sections": [
{
"name": "Example Section 1",
"item_count": 1
}
],
"map_locations": [
{
"map": "map1",
"x": 1500,
"y": 400
}
]
}
]
}
]
25 changes: 25 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// this the manifest for you pack
// it contains basic information about your pack
// for more info on the manifest check: https://github.com/black-sliver/PopTracker/blob/master/doc/PACKS.md#manifest
{
"name": "Template Pack for PopTracker",
"game_name": "<put your game title here>",
"package_version": "1.0.0.0",
"package_uid": "template_pack",
"platform": "snes", //enables SNES memory autotracking interface - remove/change if not needed
"author": "Cyb3R",
"variants": {
"standard": {
"display_name": "Map Tracker",
"flags": [
"ap" //enables AP autotracking interface - remove if not needed
]
},
"var_itemsonly": {
"display_name": "Items Only",
"flags": [
"ap" //enables AP autotracking interface - remove if not needed
]
}
}
}
Loading

0 comments on commit c0410ae

Please sign in to comment.