arksalc:beta added
This commit is contained in:
95
arksalc/css/gen.css
Normal file
95
arksalc/css/gen.css
Normal file
@@ -0,0 +1,95 @@
|
||||
a {
|
||||
color: #96afffff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
:root {
|
||||
--ark-blue: #00f2ff;
|
||||
--ark-dark: #0a0e14;
|
||||
--ark-panel: #161d26;
|
||||
--ark-glow: rgba(0, 242, 255, 0.3);
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--ark-dark);
|
||||
color: white;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
.container {
|
||||
background: var(--ark-panel);
|
||||
border: 1px solid var(--ark-blue);
|
||||
box-shadow: 0 0 15px var(--ark-glow);
|
||||
padding: 30px;
|
||||
border-radius: 4px;
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: var(--ark-blue);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
border-bottom: 1px solid #333;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 5px;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
input {
|
||||
background: #000;
|
||||
border: 1px solid #444;
|
||||
color: var(--ark-blue);
|
||||
padding: 10px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border-color: var(--ark-blue);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
button {
|
||||
background: var(--ark-blue);
|
||||
color: black;
|
||||
border: none;
|
||||
padding: 12px 20px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: #00c4cf;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background: #050505;
|
||||
color: #2ecc71;
|
||||
border: 1px solid #222;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
font-family: monospace;
|
||||
margin-top: 20px;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 0.8em;
|
||||
color: #777;
|
||||
margin-top: 5px;
|
||||
}
|
||||
0
arksalc/css/index.html
Normal file
0
arksalc/css/index.html
Normal file
0
arksalc/img/index.html
Normal file
0
arksalc/img/index.html
Normal file
73
arksalc/index.php
Normal file
73
arksalc/index.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
// Default values
|
||||
$maxLevel = isset($_POST['max_level']) ? (int)$_POST['max_level'] : 100;
|
||||
$startXp = isset($_POST['start_xp']) ? (int)$_POST['start_xp'] : 5;
|
||||
$multiplier = isset($_POST['multiplier']) ? (float)$_POST['multiplier'] : 1.12;
|
||||
|
||||
$output = "";
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
$currentXpRequirement = $startXp;
|
||||
$totalXp = 0;
|
||||
$xpLevels = [];
|
||||
|
||||
for ($i = 0; $i < $maxLevel; $i++) {
|
||||
$xpLevels[] = "ExperiencePointsForLevel[" . $i . "]=" . round($totalXp);
|
||||
// Calculate next jump
|
||||
$totalXp += $currentXpRequirement;
|
||||
$currentXpRequirement *= $multiplier;
|
||||
}
|
||||
|
||||
$overrideLine = "LevelExperienceRampOverrides=(" . implode(",", $xpLevels) . ")";
|
||||
$maxExpLine = "OverrideMaxExperiencePointsPlayer=" . round($totalXp);
|
||||
|
||||
$output = "[/Script/ShooterGame.ShooterGameMode]\n" . $overrideLine . "\n" . $maxExpLine;
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ASA Level Curve Generator</title>
|
||||
<link rel="stylesheet" href="css/gen.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<h5><a href="https://gen.mxdev.ovh">Back to Gen. List</a></h5>
|
||||
<h1>ASA Level Generator</h1>
|
||||
<h2>Language: HTML / PHP</h2>
|
||||
<h4>Developper: mikx</h4>
|
||||
<h4>Sources: <a href="https://mxgit.ovh/mikx/MxGen/src/branch/main/arksalc">MxGit</a></h4>
|
||||
<h5>Version: 0.1.0</h5>
|
||||
</div>
|
||||
<br><br>
|
||||
<div class="container">
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label>Max Level</label>
|
||||
<input type="number" name="max_level" value="<?php echo $maxLevel; ?>">
|
||||
<div class="desc">Total levels attainable by the player.</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Starting XP (Level 1 to 2)</label>
|
||||
<input type="number" name="start_xp" value="<?php echo $startXp; ?>">
|
||||
<div class="desc">The XP required for the very first level up.</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Exponential Multiplier</label>
|
||||
<input type="number" step="0.01" name="multiplier" value="<?php echo $multiplier; ?>">
|
||||
<div class="desc">How much harder each level gets (1.10 to 1.15 recommended).</div>
|
||||
</div>
|
||||
<button type="submit">Generate INI Code</button>
|
||||
</form>
|
||||
|
||||
<?php if ($output): ?>
|
||||
<label style="margin-top:20px;">Copy into your <b>Game.ini</b>:</label>
|
||||
<textarea readonly><?php echo htmlspecialchars($output); ?></textarea>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
0
arksalc/lib/index.html
Normal file
0
arksalc/lib/index.html
Normal file
Reference in New Issue
Block a user