Skip to content

Commit 013d574

Browse files
committed
feat: migrate website files
were on `gh-pages` branch, now they are here
1 parent 681d13b commit 013d574

File tree

10 files changed

+583
-0
lines changed

10 files changed

+583
-0
lines changed

.github/workflows/Pages.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Pages
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
paths:
7+
- 'doc/web/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
deploy:
12+
name: Deploy Website
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
environment:
18+
name: github-pages
19+
url: ${{steps.deployment.outputs.page_url}}
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Pages
26+
uses: actions/configure-pages@v5
27+
28+
- name: Upload Artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: ./doc/web
32+
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

doc/web/ddin.otf

59.1 KB
Binary file not shown.

doc/web/img/finale_stars.jpg

16.5 KB
Loading

doc/web/img/logo.png

34.3 KB
Loading

doc/web/img/logo_readme.png

86.2 KB
Loading

doc/web/img/main_thumbnail_bg.png

295 KB
Loading

doc/web/img/tilebg-dark.png

330 Bytes
Loading

doc/web/img/tilebg.png

693 Bytes
Loading

doc/web/index.html

Lines changed: 293 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,293 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Portal 2 Speedrun Mod</title>
7+
8+
<link rel="shortcut icon" type="image/png" href="https://avatars.githubusercontent.com/u/83299896" />
9+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha256-5eIC48iZUHmSlSUz9XtjRyK2mzQkHScZY1WdMaoz74E=" crossorigin="anonymous" />
11+
<link rel="stylesheet" href="style.css">
12+
13+
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
14+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
15+
</head>
16+
<body>
17+
<script>
18+
//animated background
19+
var bgWidth = 1024;
20+
var bgMovX = Math.floor(Math.random() * bgWidth);
21+
document.body.style.backgroundPositionX = bgMovX + "px";
22+
setInterval(function(){
23+
bgMovX = (bgMovX + 1) % bgWidth;
24+
document.body.style.backgroundPositionX = bgMovX + "px";
25+
},50);
26+
</script>
27+
<div class="container mt-sm-4">
28+
<div id="p2smlogo" class="p2box col-12">
29+
<img src="img/logo.png" draggable="false">
30+
</div>
31+
</div>
32+
<div class="container sticky">
33+
<nav class="p2sm-nav">
34+
<div class="main-links col-sm-12 col-md-9">
35+
<a href="#about">About</a>
36+
<a href="#modes">Modes</a>
37+
<a href="#download">Download</a>
38+
</div>
39+
<div class="side-links col-sm-12 col-md-3">
40+
<a href="https://discordapp.com/invite/hRwE4Zr" title="Join the discord server!" target="_blank"><i class="fa fa-brands fa-discord"></i></a>
41+
<a href="https://github.com/p2sr/Portal2SpeedrunMod" title="GitHub repository" target="_blank"><i class="fa fa-brands fa-github"></i></a>
42+
</div>
43+
</nav>
44+
</div>
45+
<div class="container p2sm-content js-disabled">
46+
<div class="p2box col-12">
47+
If you see this message then your browser is too old<br>
48+
(or you have JavaScript disabled or sth, honestly I have no idea)
49+
</div>
50+
</div>
51+
<div class="container p2sm-content about hidden">
52+
<div class="p2box col-12">
53+
<h1>You don't have to go THAT slowly!</h1>
54+
<p>
55+
It started as a simple hack for speedrunners, and now aims to be <b>the greatest toy box</b> the Portal 2 Speedrunning Community could ever receive.
56+
<b>Portal 2 Speedrun Mod</b> is a modification that alters the way you run through the default Portal 2 campaign. Not only does it
57+
<b>remove most of the cutscenes and waiting</b>, making the game a lot more entertaining to speedrun, but it also introduces several
58+
<b>game-changing modes</b>, giving a fresh experience of your favourite test chambers, allowing you to enjoy them in a new unique way.
59+
</p>
60+
61+
<h1>Special thanks</h1>
62+
<p>
63+
This project wouldn't be possible without the help of these individuals:
64+
<ul>
65+
<li><a target="_blank" href="https://www.youtube.com/@Krzyhau"><b class="rainbow">Krzyhau</b></a> - the creator, the legend, the genesis. This mod wouldn't exist without him.</li>
66+
<li><a target="_blank" href="https://www.youtube.com/@PortalRunner"><b>PortalRunner</b></a> - creating the Reverse, Odyssey, and Floor is Lava modes. Check out his other crazy mods on YouTube!</li>
67+
<li><b>Nanoman2525</b> - creating the Coop Speedrun Mod mode.</li>
68+
<li><b>NeKzor</b> - creating a base (<a target="_blank" href="https://github.com/NeKzor/chaos">Chaos mod</a>) for the <i>SMSM</i> plugin and massive support during its development.</li>
69+
<li><b>Blenderiste09</b> - Chapter 9 scripting & testing.</li>
70+
<li><b>BigDaniel</b> - motivation so large that it deserves a separate credit.</li>
71+
<li><b>Valve</b> - creating the original game.</li>
72+
<li><b>A bunch of generous people</b> - supporting development of this mod. Find their exhibit!</li>
73+
</ul>
74+
75+
We also thank people who helped debug and beta-test the project, including, but not limited to:
76+
<ul>
77+
<li><b>Can't Even</b> - live testing.</li>
78+
<li><b>PH-MLK</b> - Laser Over Goo crash debugging.</li>
79+
<li><b>BreweryJake</b></li>
80+
<li><b>Rex</b></li>
81+
<li>Turkey, Façade, Oatsy, Soulfur - Coop testing.</li>
82+
<li>..and a bunch of other people we forgot to credit (sorry :/)</li>
83+
</ul>
84+
85+
Although Krzyhau has <b>moved on</b> from this mod, the Portal 2 Speedrunning Community is still maintaining
86+
it and <b>adding new modes and features</b>. We are grateful for his work and dedication to the project. The mod
87+
is currently being maintained by:
88+
<ul>
89+
<li><b>AMJ</b></li>
90+
<li><b>Betsruner</b></li>
91+
</ul>
92+
</p>
93+
</div>
94+
</div>
95+
<div class="container p2sm-content modes hidden">
96+
<div class="p2box col-12">
97+
<div class="mode">
98+
<div class="mode-header">
99+
<h1>Normal mode<!--<span id="coop-ad">(Now featuring coop!)</span>--></h1>
100+
</div>
101+
<p>
102+
The main and original mode of Speedrun Mod. It's also a base for all the other modes.
103+
<ul>
104+
<li>Most of the game's downtime is removed or shortened (like elevators, doors etc.)</li>
105+
<li>Most of cutscenes were removed or shortened (like Tube Ride, Core etc.)</li>
106+
<li>A full list of every change can be found <a target="_blank" href="https://github.com/p2sr/Portal2SpeedrunMod/blob/master/doc/SingleplayerSRM.md">here</a>.</li>
107+
</ul>
108+
</p>
109+
</div>
110+
<div class="mode">
111+
<div class="mode-header">
112+
<h1>Celeste Mode</h1>
113+
</div>
114+
<p>
115+
A bunch of berries were scattered around Aperture. Dash your way through test chambers to collect them all!
116+
<ul>
117+
<li>Celeste-like movement added on top of current one (dash, wave dash, wallclimb and many more).</li>
118+
<li>Certain test chambers were modified in order to fit into the gameplay, and to teach the mechanics.</li>
119+
<li>125 unique collectable berries hidden all around the levels:
120+
<ul>
121+
<li><b>Red Berries</b> - difficult to find or difficult to get... sometimes both, sometimes none.</li>
122+
<li><b>Quantum Berries</b> - they don't seem to like portals...</li>
123+
<li><b>Golden Berries</b> - <b>no.</b></li>
124+
</ul>
125+
</li>
126+
<li>Special ending allowing you to easily identify and collect the berries you missed.</li>
127+
</ul>
128+
It is recommended to know the source material (<a target="_blank" href="https://store.steampowered.com/app/504230">Celeste</a>) before playing this mode.
129+
</p>
130+
</div>
131+
<div class="mode">
132+
<div class="mode-header">
133+
<h1>Fog% (beta)</h1>
134+
</div>
135+
<p>
136+
Put your muscle memory to the test. Can you run the game with limited sight?
137+
<ul>
138+
<li>Dense fog makes you unable to see distant areas.</li>
139+
<li>If you don't move for 10 seconds, you can see through the fog until you move again.</li>
140+
<li><i>Some say this mode will never exit beta testing...</i></li>
141+
</ul>
142+
</p>
143+
</div>
144+
<div class="mode">
145+
<div class="mode-header">
146+
<h1>Reverse Mod</h1>
147+
</div>
148+
<p>
149+
Go back to sleep. You monster.
150+
<ul>
151+
<li>Start in Finale 4 and make your way back to Container Ride.</li>
152+
<li>Un-solve puzzles along the way.</li>
153+
</ul>
154+
</p>
155+
</div>
156+
<div class="mode">
157+
<div class="mode-header">
158+
<h1>Odyssey Mod</h1>
159+
</div>
160+
<p>
161+
Don't tell Nintendo.
162+
<ul>
163+
<li>Super Mario Odyssey movement added on top of Portal 2's movement.</li>
164+
<li>Control objects at the drop of a hat.</li>
165+
<li>Over 280 hidden Moons!</li>
166+
</ul>
167+
</p>
168+
</div>
169+
<div class="mode">
170+
<div class="mode-header">
171+
<h1>The Floor is Lava</h1>
172+
</div>
173+
<p>
174+
Can you guess what this mode is about?
175+
</p>
176+
</div>
177+
<br>
178+
<h1>... and many more (in the future)</h1>
179+
<p>
180+
Stay tuned!
181+
</p>
182+
</div>
183+
</div>
184+
<div class="container p2sm-content download hidden">
185+
<div class="p2box col-sm-12">
186+
<div class="download-info">
187+
<h1>Current release</h1>
188+
<div class="release-info">
189+
<p>Version: <br><b><span class="gh-version">v0.0</span></b></p>
190+
<p>Release date: <br><b><span class="gh-date">0000-00-00</span></b></p>
191+
</div>
192+
193+
<a class="downloadbtn gh-binary">
194+
Download P2SM <span class="gh-version"></span> (<span class="gh-size"></span>)
195+
</a>
196+
<p class="info">Windows and Linux only (forgive me MacOS users :/)</p>
197+
<a class="downloadbtn gh-source">
198+
Source code
199+
</a>
200+
<a class="downloadbtn gh-release" target="_blank">
201+
GitHub release page
202+
</a>
203+
</div>
204+
<h1>Installation guide</h1>
205+
<ol start="0">
206+
207+
<li>Make sure you have the original game (<a target="_blank" href="https://store.steampowered.com/app/620">Portal 2</a>, duh) installed on Steam.</li>
208+
<li>Download the newest release from the link above.</li>
209+
<li>Unzip Portal 2 Speedrun Mod folder into <code>sourcemods</code> directory.<br>
210+
(Its default location is <code>Steam/steamapps/sourcemods/</code>)<br>
211+
(You should have the path <code>sourcemods/Portal 2 Speedrun Mod/gameinfo.txt</code>)</li>
212+
<li>Restart Steam by right-clicking it in the taskbar and pressing Exit Steam.</li>
213+
<li>A new game, called "Portal 2 Speedrun Mod" should appear in your library.</li>
214+
215+
</ol>
216+
217+
<h1>Troubleshooting</h1>
218+
<p>
219+
Keep in mind that this mod is a compilation of <b>dirty hacks</b> that this poor 2011 engine was not prepared for.
220+
In case the game crashes or bugs itself in unexplainable way, try one of these things:
221+
<ul>
222+
<li>Launch the <b>main game</b>, then the mod.</li>
223+
<li>(D3D Error) Temporarily add <code>-safe</code> to the launch options in the mod's Steam properties</li>
224+
<li>(Manifest file error) Install the mod on the <b>same drive</b> as the main game.</li>
225+
<li>Disable any other extensions (like <a target="_blank" href="https://sar.portal2.sr">SAR</a>, for instance) because they might not like each other</li>
226+
<li>Update other extensions (like SAR), because they might be the one causing trouble</li>
227+
</ul>
228+
<hr>
229+
<ul>
230+
<li>Taking a hot bath and walking in fresh air for at least 30 minutes (environment permitting)</li> <!-- Or stay at home. -->
231+
<li>Jumping from a ground-floor window</li>
232+
</ul>
233+
If none of these things work, seek help in the <a href="https://discordapp.com/invite/hRwE4Zr" title="P2SR Discord server" target="_blank">P2SR Discord server</a>.
234+
</p>
235+
</div>
236+
</div>
237+
238+
<script>
239+
240+
//main webpage functionality
241+
function showSitePart(name){
242+
let fixedName = name.replace("#", ".");
243+
$(".p2sm-content").addClass("hidden");
244+
$(fixedName + ".p2sm-content").removeClass("hidden");
245+
246+
$(".p2sm-nav a").removeClass("clicked");
247+
$(".p2sm-nav a[href='"+name+"']").addClass("clicked");
248+
}
249+
$("a[href*='#']").click(function(e) {
250+
let href = $(this).attr("href");
251+
showSitePart(href);
252+
});
253+
document.querySelectorAll("a").forEach(a => {
254+
a.draggable = false;
255+
});
256+
257+
let anchor = window.top.location.hash || "#about";
258+
showSitePart(anchor);
259+
260+
if(window.top.location.hash){
261+
window.scrollTo(0, 0);
262+
setTimeout(function() {window.scrollTo(0, 0);}, 1);
263+
}
264+
265+
266+
//creating download link using github api
267+
$(".download-info").addClass("loading");
268+
let http = new XMLHttpRequest();
269+
let githuburl = 'https://api.github.com/repos/p2sr/Portal2SpeedrunMod/releases/latest';
270+
http.open("GET", githuburl);
271+
http.send();
272+
http.onreadystatechange = (e) => { try{
273+
//some parsing errors but theres not a lot i can do lmao
274+
let ghJson = JSON.parse(http.responseText);
275+
let version = ghJson.tag_name;
276+
let updateUrl = ghJson.html_url;
277+
let downloadUrl = ghJson.assets[0].browser_download_url;
278+
let sourceUrl = ghJson.zipball_url;
279+
let date = ghJson.created_at.substring(0,10);
280+
let size = (ghJson.assets[0].size / (1024*1024)).toFixed(2) + "MB";
281+
282+
$(".gh-version").html(version);
283+
$(".gh-binary").attr("href",downloadUrl);
284+
$(".gh-release").attr("href",updateUrl);
285+
$(".gh-source").attr("href",sourceUrl);
286+
$(".gh-date").html(date);
287+
$(".gh-size").html(size);
288+
289+
$(".download-info").removeClass("loading");
290+
}catch(e){}}
291+
</script>
292+
</body>
293+
</html>

0 commit comments

Comments
 (0)