Foxhole Logi Calculator

Foxhole Logistics Calculator: Refining & Production Planner :root { –faction-green: #4a6fa5; /* Warden-ish Blue */ –faction-green-dark: #3b5c8d; –colonial-green: #5a7c5a; /* Colonial Green */ –bg-dark: #1e1e1e; –bg-panel: #2a2a2a; –text-light: #e0e0e0; –text-muted: #a0a0a0; –border-color: #444; –accent-orange: #d48806; } body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; max-width: 1200px; margin: 0 auto; padding: 20px; background-color: #f4f4f4; } .calculator-wrapper { background-color: var(–bg-dark); color: var(–text-light); border-radius: 8px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); margin-bottom: 40px; border: 1px solid var(–border-color); } h2.calc-title { text-align: center; color: var(–accent-orange); margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(–border-color); padding-bottom: 10px; } .input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .input-group { background: var(–bg-panel); padding: 15px; border-radius: 6px; border: 1px solid var(–border-color); } .input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(–text-muted); font-size: 0.9rem; } .input-group input, .input-group select { width: 100%; padding: 10px; background: #111; border: 1px solid #555; color: #fff; border-radius: 4px; font-size: 1rem; } .input-group input:focus { outline: none; border-color: var(–accent-orange); } .presets-container { grid-column: 1 / -1; margin-bottom: 10px; } .btn-calc { display: block; width: 100%; padding: 15px; background-color: var(–accent-orange); color: white; border: none; border-radius: 4px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background 0.2s; text-transform: uppercase; } .btn-calc:hover { background-color: #b87505; } .results-section { margin-top: 30px; border-top: 2px solid var(–border-color); padding-top: 20px; display: none; } .results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; } .result-card { background: var(–bg-panel); padding: 20px; border-radius: 6px; border-left: 4px solid var(–accent-orange); } .result-card h3 { margin: 0 0 10px 0; font-size: 1rem; color: var(–text-muted); } .result-value { font-size: 1.8rem; font-weight: bold; color: var(–text-light); } .result-sub { font-size: 0.9rem; color: #888; margin-top: 5px; } .resource-row { display: flex; justify-content: space-between; border-bottom: 1px solid #444; padding: 5px 0; } .resource-row:last-child { border-bottom: none; } .resource-name { font-weight: bold; } .raw-scrap { color: #a5a5a5; } /* Scrap color */ .raw-comp { color: #d4af37; } /* Component color */ .raw-sulfur { color: #e6e65c; } /* Sulfur color */ .article-content { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } .article-content h2 { color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 10px; } .article-content h3 { color: #34495e; margin-top: 25px; } .article-content ul { padding-left: 20px; } .article-content li { margin-bottom: 10px; }

Foxhole Production & Logistics Planner

— Custom Input — Soldier Supplies (Shirts) Rifle (Loughcaster/Argenti) 7.62mm Ammo Garrison Supplies 40mm Round 120mm Artillery Shell RPG Shell Sticky Bomb

Total Refined Materials Needed

Basic Materials (Bmats): 0
Refined Materials (Rmats): 0
Explosive Mats (Emats): 0
Heavy Explosive (HEmats): 0

Raw Resources to Gather

Salvage (Scrap): 0
Components: 0
Sulfur: 0
Based on standard refinery ratios

Transport Logistics

Standard Truck Trips: 0
Shipping Containers: 0
Assumes 15-slot truck & 60-crate container

Mastering Foxhole Logistics: The Ultimate Calculator Guide

In the persistent war game Foxhole, logistics (Logi) is the lifeblood of the war effort. Every rifle, bandage, and tank shell must be manufactured by players from raw resources. Whether you are a solo scraper or a regiment quartermaster, calculating the exact amount of raw materials needed for a Mass Production Factory (MPF) queue is critical to efficiency.

This Foxhole Logi Calculator helps you plan your production runs by converting crate costs into raw gathering requirements (Scrap, Components, Sulfur). It accounts for the varying costs of Basic Materials (Bmats), Refined Materials (Rmats), and Explosive Materials (Emats/HEmats).

Understanding the Ratios

To use this calculator effectively, it helps to understand the standard refinery ratios used in the game logic:

  • Salvage (Scrap) to Bmats: 2:1 ratio. (2 Scrap = 1 Bmat).
  • Components to Rmats: 20:1 ratio. (20 Components = 1 Rmat).
  • Sulfur to HEmats: 20:1 ratio. (20 Sulfur = 1 HEmat).
  • Salvage to Emats: 10:1 ratio (approximate standard, varies by refinery queue bonus but treated as base 10:1 for planning).

How to Use the Calculator

  1. Select a Preset (Optional): Choose a common item like "Soldier Supplies" or "120mm Artillery" to auto-fill the material costs per crate.
  2. Enter Crate Count: Input how many crates you intend to produce. For a full MPF queue, this is usually 9 queues of 5-9 crates depending on the category.
  3. Apply MPF Discount: If you are using the Mass Production Factory, you get a discount for queuing multiple crates. A full queue can offer up to a ~50% discount on Bmat/Rmat costs. Enter the percentage (e.g., 40 or 50) to adjust the requirements.
  4. Review Output: The calculator breaks down exactly how much raw scrap, components, or sulfur you need to mine, and how many truck trips it will take to transport the finished crates.

Logistics Efficiency Tips

Experienced logi players know that "Scrooping" (gathering scrap) is only half the battle. Transport efficiency is key. Remember that a standard logistics truck carries 15 slots. Most crates stack to 1, but raw materials stack to 100. Using a Flatbed with a Shipping Container allows you to move 60 crates at once, significantly reducing travel time to the front lines.

Note: Game updates can occasionally tweak costs and ratios. Always verify current war recipe costs at the factory interface.

function loadPreset() { var preset = document.getElementById('itemPreset').value; var bmatInput = document.getElementById('bmatCost'); var rmatInput = document.getElementById('rmatCost'); var ematInput = document.getElementById('ematCost'); var hematInput = document.getElementById('hematCost'); // Reset if (preset === 'custom') { bmatInput.value = 0; rmatInput.value = 0; ematInput.value = 0; hematInput.value = 0; return; } // Preset Data (Approximations based on standard Vanilla Foxhole) var presets = { 'shirts': { b: 80, r: 0, e: 0, h: 0 }, // Soldier Supplies 'rifle': { b: 100, r: 0, e: 0, h: 0 }, // Standard Rifle 'ammo762': { b: 40, r: 0, e: 0, h: 0 }, // 7.62mm 'gsupps': { b: 75, r: 0, e: 0, h: 0 }, // Garrison Supplies (Msupps merged) '40mm': { b: 160, r: 0, e: 120, h: 0 }, // 40mm Tank Shell '120mm': { b: 60, r: 0, e: 10, h: 0 }, // Artillery Shell (varies widely, using approx) 'rpg': { b: 60, r: 0, e: 75, h: 0 }, // RPG 'sticky': { b: 50, r: 0, e: 50, h: 0 } // Sticky Bomb }; if (presets[preset]) { bmatInput.value = presets[preset].b; rmatInput.value = presets[preset].r; ematInput.value = presets[preset].e; hematInput.value = presets[preset].h; } } function calculateLogi() { // Get Inputs var crateCount = parseFloat(document.getElementById('crateCount').value) || 0; var discountPercent = parseFloat(document.getElementById('mpfDiscount').value) || 0; var bmatCost = parseFloat(document.getElementById('bmatCost').value) || 0; var rmatCost = parseFloat(document.getElementById('rmatCost').value) || 0; var ematCost = parseFloat(document.getElementById('ematCost').value) || 0; var hematCost = parseFloat(document.getElementById('hematCost').value) || 0; // Apply Discount Factor (MPF Discount applies to material cost) // Note: In Foxhole, discounts apply to Bmats/Rmats/Emats/HEmats usually. var discountFactor = 1 – (discountPercent / 100); // Total Material Calculation var totalBmats = Math.ceil(crateCount * bmatCost * discountFactor); var totalRmats = Math.ceil(crateCount * rmatCost * discountFactor); var totalEmats = Math.ceil(crateCount * ematCost * discountFactor); var totalHemats = Math.ceil(crateCount * hematCost * discountFactor); // Raw Resource Ratios // Scrap -> Bmat = 2:1 // Scrap -> Emat = 10:1 (Base refinery rate) // Comp -> Rmat = 20:1 // Sulfur -> HEmat = 20:1 var scrapForBmats = totalBmats * 2; var scrapForEmats = totalEmats * 10; var totalScrap = scrapForBmats + scrapForEmats; var totalComps = totalRmats * 20; var totalSulfur = totalHemats * 20; // Transport Calculation // Truck = 15 slots (Logi truck) // Container = 60 crates var truckTrips = Math.ceil(crateCount / 15); var containerTrips = Math.ceil(crateCount / 60); // Update UI document.getElementById('resBmats').innerText = totalBmats.toLocaleString(); document.getElementById('resRmats').innerText = totalRmats.toLocaleString(); document.getElementById('resEmats').innerText = totalEmats.toLocaleString(); document.getElementById('resHemats').innerText = totalHemats.toLocaleString(); document.getElementById('rawScrap').innerText = totalScrap.toLocaleString(); document.getElementById('rawComps').innerText = totalComps.toLocaleString(); document.getElementById('rawSulfur').innerText = totalSulfur.toLocaleString(); document.getElementById('truckTrips').innerText = truckTrips; document.getElementById('containerTrips').innerText = containerTrips; // Show Results document.getElementById('resultsSection').style.display = 'block'; }

Leave a Reply

Your email address will not be published. Required fields are marked *