Custom layout
Show the pick and ban draft on art you made yourself. Add your pictures, drag the god slots onto them, then run the draft from OBS.
Which screen are you building?
What did you make your layout with?
A Add your pictures
Background
Goes behind the god art. Optional.
Frame
Goes on top of the god art. Use a PNG with see through holes where the gods show. Optional.
Make both 1920x1080. One picture is fine too.
B Drag the boxes onto your art
Each box is one spot on your layout. Drag a box to move it. Drag its gold dot to resize it. Sample gods fill the slots so you can see the fit.
Vault bans are the gods each team locked in earlier games of the series. They fill this box as tiles in your ban look, as big as the box allows. Line up Right starts from the right edge. Fill the vault from Run the draft.
Tip: click the picture, then use the arrow keys to move the picked box 1 pixel (hold Shift for 10).
C Fine tune (optional)
How the player rows look
Which stats show, player names and who won come from the Post game stats page, the same as its own screen.
Scorebug numbers
Game number uses the game text under Text and font.
How the god slots look
While drafting
Text and font
Your own god art
Upload all your god pictures at once. The file name decides the god (Zeus.png, ah_puch.webp and t_SkinPortrait_Artemis.png all work). Gods without one keep the usual art.
Pick art
Ban art
Empty? Bans use your pick art.
Art hosted on your own site
A link pattern instead of uploads: {god} becomes zeus or ah_puch, {God} becomes Zeus or Ah Puch.
A Add your page
Open your .html file or paste it below, then press Save. New to this? Load the starter layout and change it.
B Add the pictures your page uses
Upload them here and write them in your HTML by file name, like src="bg.png". Pictures that are links already work.
Preview
How your page gets the draft
Put data-draft on the spots in your HTML and they fill in by themselves:
<div data-draft="pick A1"></div> god art, Team A pick 1 (A1 to A5, B1 to B5) <div data-draft="ban B3"></div> god art, Team B ban 3 <span data-draft="god pick A1"></span> the god's name (also "god ban B3") <span data-draft="team A"></span> team name <span data-draft="score A"></span> series score <img data-draft="logo A"> team logo <span data-draft="game"></span> game number <span data-draft="phase"></span> Ban phase 1, Pick phase 1 ... Draft complete <span data-draft="roster A1"></span> player name, Team A player 1 (A1 to A5, B1 to B5) <span data-draft="caster 1"></span> caster name (caster 1 or caster 2)
More for coders
Slots get the class df-locked, df-hover (a god is shown before lock in), df-next or df-open, plus df-fresh just after a lock in. data-art="wide", "tall" or "none" picks the art shape. data-art-src="art/{god}.png" uses your own art (put it on <body> to cover every slot).
<script>
DraftFeed.on(function (d) {
// d.picks.A[0] = { god: "zeus", name: "Zeus", state: "locked", art: { wide, tall, small } }
// d.bans.B[2], d.teams.A.name, d.teams.B.score, d.game, d.next, d.phase, d.done
});
</script>
Hosting the page yourself instead of pasting it here? Add this line to it and use a link code from step 2:
Add it to OBS
- Save your layout to a file. OBS cannot see what you built in this browser, so you carry it over in a file.
- Add the dock. In OBS: Docks, Custom Browser Docks. Name it Draft and paste this address:
- Open your file in the dock. In the new Draft dock, go to step 2 and press Open layout file.
- Add the scene. Sources, +, Browser. Paste this address:
Don't forget the size. OBS starts every new Browser source at 800 x 600. Set Width to 1920 and Height to 1080, or your layout gets cut off.
Built a Post game or Scorebug screen too?
Add one more Browser source for each, same size, with these addresses. They use the same layout file.
Post game. The numbers come from the Post game stats page: paste the two lobby screenshots there.
Scorebug. The numbers come from the screen reading scorebug in the Draft studio panel (how to set it up). Put this source above your game capture.
Shortcut for your layout
Your layout only uses picture links, so it fits in the scene address. Use this address in step 4 and you can skip steps 1 and 3.
Layout hosted on your own site or PC
Get a link code. Your page joins it through smiteprod.com and follows this draft, read only.
Match
Casters and players
These show on your layout once you turn on their boxes in step 1 (Caster 1, Caster 2 and the player name boxes). The Draft studio panel uses the same names.
Team A players
Team B players
Draft
Tap a god to show it in the next slot, then Lock in. Tap a filled slot to change or clear it.
Vault bans
In a Best of 3 or longer, the gods a team locked in earlier games go in its vault and that team can't pick them again. They show in the vault boxes on your layout.
Next game puts this game's picks in each team's vault, moves to the next game number and clears the bans and picks. Tap a vault god to take it out.
Used the PnB Layout app before?
It ran a lot of drafts and did its job well. Here is what changes.
| PnB Layout app | Custom layout | |
|---|---|---|
| Runs on | A Windows PC | Any browser, and inside OBS as a dock |
| Setup | Download and unzip 84 MB (547 files) | Nothing to install. The OBS scene is 12 KB |
| Art loaded per draft | 3.4 MB | 0.66 MB, about 5 times lighter |
| Your own art | Replace files in its folders, exact names | Upload here, names matched for you |
| Moving things | Type position numbers | Drag on a live preview |
| Run it from | The PC it is installed on | That PC, a second PC or a phone |
Speed: a lock in shows on the scene in about 3 ms (2.8 ms on average over 20 lock ins in our test).