From: hgn Date: Wed, 7 Jun 2023 12:35:38 +0000 (+0100) Subject: web X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;ds=sidebyside;h=96f8ce1f47009e5f763b05566db3f6cca07cdc76;p=carveJwlIkooP6JGAAIwe30JlM.git web --- diff --git a/maps_src/template/main.mdl b/maps_src/template/main.mdl new file mode 100644 index 0000000..ddae72b Binary files /dev/null and b/maps_src/template/main.mdl differ diff --git a/web/bg.jpg b/web/bg.jpg new file mode 100644 index 0000000..692c1d1 Binary files /dev/null and b/web/bg.jpg differ diff --git a/web/bg.png b/web/bg.png new file mode 100644 index 0000000..4c844c9 Binary files /dev/null and b/web/bg.png differ diff --git a/web/files/custom_world.zip b/web/files/custom_world.zip new file mode 100644 index 0000000..7adb56a Binary files /dev/null and b/web/files/custom_world.zip differ diff --git a/web/files/world_template.zip b/web/files/world_template.zip new file mode 100644 index 0000000..a7db977 Binary files /dev/null and b/web/files/world_template.zip differ diff --git a/web/frag/addon.html b/web/frag/addon.html new file mode 100644 index 0000000..503e297 --- /dev/null +++ b/web/frag/addon.html @@ -0,0 +1,48 @@ +
+

Installing exporter addon

+

Skaterift comes with the addon in its game files, we just need to install + it. This addon script gets updated between skaterift versions. Here are the + steps to install it into Blender:
+
+ Go to edit>preferences, and open the addons section.
+
+ Press the install... button at the top right, and browse to the + Skaterift game files. Inside the folder named tools is the script + blender_export.py to install.
+
+ If you don't know where it is, you can go into your Steam Library, and + rightclick Skaterift, selecting Manage>Browse local files.
+
+ Now search for Skaterift .mdl exporter from the addons list, and enable + it.
+

+
+

+ If installed correctly you should see this: +

+ +
+
+

About Compiling

+

+ The compiler window is found in the 3D viewport by pressing N and finding the + Skate Rift tab, here is where you can setup the options for compiling.
+
+ When you compile it will create a .mdl file. This can be placed in the maps + folder of the Skate Rift game files.
+
+ Skate Rift addon will pickup sub-collections on the /export/ collection in + blender as models to compile. When you are making content you should also + enabled the Pack Textures option. + So make sure in your scene outliner you have:
+

+
+ / Scene collection
+ L export
+    L your_content
+      L mesh.001
+      L mesh.002
+      L empty
+        ...
+ 
+
diff --git a/web/frag/board_spec.html b/web/frag/board_spec.html new file mode 100644 index 0000000..c6184e5 --- /dev/null +++ b/web/frag/board_spec.html @@ -0,0 +1,24 @@ +
+ <<Back to guide
+

Custom board specification

+

Refer to this page if you want to make a completely new board from scratch, + otherwise use the template file.
+
+ The board system looks for marker entities. These can be applied using the + entity tab in the skaterift exporter panel.

+

The aliases used for the marker meshes:

+

+ [1] wheel (x4)
+ [2] truck (x2)
+ [3] board
+
+ The scale of each part should be [ + 1, + 1, + 1] and have no rotation. +
+ Origins should be correctly placed at the place where the items are joined to + eachother, refer to the diagram for the placement and size. +

+ +
diff --git a/web/frag/leaderboards.html b/web/frag/leaderboards.html new file mode 100644 index 0000000..a153b7d --- /dev/null +++ b/web/frag/leaderboards.html @@ -0,0 +1,47 @@ +
+
+
+      Megapark Green                 Megapark Blue       
+---------------------------   ---------------------------
+ #|     Player     | Time      #|     Player     | Time  
+ 1|Dairylee Oddy    1:11.83    1|MrCopy77         1:16.07
+ 2|Slang            1:13.44    2|McCoy5868        1:17.10
+ 3|Jakery_          1:14.62    3|Dairylee Oddy    1:17.36
+ 4|McCoy5868        1:17.23    4|LucyLime #HappyP 1:17.70
+ 5|LucyLime #HappyP 1:19.91    5|fotball_edits.go 1:18.54
+ 6|                 1:23.26    6|starmadefan11    1:18.97
+ 7|DonkeyKong64     1:24.60    7|DonkeyKong64     1:21.13
+ 8|ProfProfession   1:26.45    8|                 1:22.50
+ 9|MrCopy77         1:33.33    9|ProfProfession   1:23.71
+10|                           10|Jakery_          1:25.45
+
+      Megapark Yellow                Megapark Red        
+---------------------------   ---------------------------
+ #|     Player     | Time      #|     Player     | Time  
+ 1|McCoy5868        0:39.24    1|ProfProfession   0:43.72
+ 2|DonkeyKong64     0:40.66    2|McCoy5868        0:46.09
+ 3|MrCopy77         0:41.11    3|DonkeyKong64     0:54.08
+ 4|fotball_edits.go 0:42.06    4|starmadefan11    0:58.33
+ 5|starmadefan11    0:42.52    5|Jakery_          1:04.81
+ 6|Slang            0:43.60    6|                 1:08.60
+ 7|kyri             0:44.15    7|elroskie         1:09.25
+ 8|harry            0:45.05    8|fotball_edits.go 1:10.03
+ 9|                 0:50.82    9|MrCopy77         1:13.74
+10|Jakery_          0:52.02   10|Dairylee Oddy    1:35.63
+
+        Coastal Run                   Docks Jumps        
+---------------------------   ---------------------------
+ #|     Player     | Time      #|     Player     | Time  
+ 1|harry            0:45.70    1|MrCopy77         0:38.79
+ 2|McCoy5868        0:46.79    2|Potion Seller    0:43.18
+ 3|fotball_edits.go 0:47.27    3|SKEEMASK         0:43.78
+ 4|LucyLime #HappyP 0:47.37    4|Jakery_          0:43.81
+ 5|                 0:48.01    5|Dairylee Oddy    0:43.88
+ 6|DonkeyKong64     0:48.23    6|DonkeyKong64     0:44.36
+ 7|ProfProfession   0:48.53    7|                 0:45.11
+ 8|Slang            0:48.74    8|Lickapig         0:45.83
+ 9|Jakery_          0:49.08    9|fotball_edits.go 0:46.70
+10|Sil Eighty       0:49.70   10|LoBear           0:47.50
+
+
+
diff --git a/web/frag/main.html b/web/frag/main.html index 65d49f4..64118cd 100644 --- a/web/frag/main.html +++ b/web/frag/main.html @@ -1,11 +1,16 @@ -
-

Skaterift


-
- -

- image.. image ... -
- Availible on - Steam -

+
+
+
+ +
+
+
+

+ Skaterift is a minimal skateboarding experience. It is availible to purchase + on Steam +

+
diff --git a/web/frag/workshop_board.html b/web/frag/workshop_board.html new file mode 100644 index 0000000..990f54b --- /dev/null +++ b/web/frag/workshop_board.html @@ -0,0 +1,86 @@ +
+

Workshop Guide - Custom boards

+

This guide covers creating a custom board model using blender and an image + editor. Since theres not many of us here at the moment, feel free to contact + me at hgodden00@gmail.com for any help.

+
+
+

0. Things you need

+

- Skaterift content is made using Blender. You can get the latest version + of + Blender from steam
+ - GNU Gimp or similar image editor.
+ - Download the custom_board.zip
+ - An installed copy of Skaterift of course.

+
+
+

1. Installing exporter addon

+

Skip this step if you've already done it before. + Guide on how to install the exporter addon for + Blender +

+
+
+

2. Configuring the template

+

Firstly, Open the .blend file from the board_template zip.
+
+ Open the side panel in the 3D Viewport, and find the Skaterift tab, and in + that menu, the Export tab
+
+ Export Dir must be set to the game folder, which ends in + /steamapps/common/skaterift/
+ NOTE: + the path must have a / at the end, else things will break.
+
+ Wer're now setup to go, but an optional step here is to create one from + scratch. If you want to do this, + take a look at the detailed board specification for how to set it up. + If its your first one, you probably want to skip this step.

+
+
+

3. Edit the texture

+

Next step is to customize the artwork, in the template folder there is a + texture which you can edit. There is also the original .xcf file which you can + open using GNU Gimp, or a similar image + editor.

+
+ Now you can change the texture on the material to your own file, and see how + it looks in Blender.

+
+

+
+
+

4. Compile the model

+

In the Outliner panel in the top right, rename the collection name, + called boards/template/board.mdl. You should replace only the word + template. The collection name is the path it will export the + model, relative to the directory we set earlier.
+
+ Now in the Skaterift Export tab, press Compile This collection. +
+ NOTE: + Blender will freeze for a second or so, since the export script has to + compress the texture file.
+

+
+
+

5. Test it out in-game

+

If everything is good, you should be able to visit the board shop and it + will be loaded in there. If not, try reopen it. If still not not, then + something broke, and there is no contingency plan here, sorry.
+

+
+
+

6. Upload via the Workshop tool

+

From the menu of Skaterift, you can open the + workshop tool. From here, fill in the folder name which houses the board. This + is relative to the game folder just like the export tool. You will know its + correct when you see your board after pressing the load button.
+ +
+ You can customize the preview by dragging around the image, left, right and + middle mouse buttons do different controls. + From here, just fill in the information like the title and description, and + press submit. +

+
diff --git a/web/frag/workshop_content.html b/web/frag/workshop_content.html new file mode 100644 index 0000000..363ec3d --- /dev/null +++ b/web/frag/workshop_content.html @@ -0,0 +1,15 @@ +
+

Workshop Content

+

Skaterift currently lets you create and upload two types of + steam workshop + content. +
+

Guides


+ Guide: Creating a custom board
+ Guide: Creating a custom world
+
+

Info Pages


+ Skaterift Addon
+ Blender Entities
+

+
diff --git a/web/frag/workshop_world.html b/web/frag/workshop_world.html new file mode 100644 index 0000000..b0e47dd --- /dev/null +++ b/web/frag/workshop_world.html @@ -0,0 +1,130 @@ +
+

Workshop Guide - Custom worlds

+

This guide covers creating a custom world blender.

+

+ Skaterift comes with the same tools that I used to make the main game world. + This guide hopes to give you the knowledge on how to put together your own + place to skate.
+
+ Please note, it assumes you understand how to model and use Blender. + But this is the only tool you need to make a world.
+ If you need help with something or you found a bug, I can be contacted at + hgodden00@gmail.com.
+

+
+

0. Things you need

+

+ - Skaterift content is made using Blender. You can get the latest version + of + Blender from steam
+ - GNU Gimp or similar image editor.
+ - Download the world_template.zip
+ - An installed copy of Skaterift of course. +

+
+
+

1. Installing exporter addon

+

Skip this step if you've already done it before. + Guide on how to install the exporter addon for + Blender +

+
+
+

2. Configuring the template

+

Firstly, Open the .blend file from the world_template zip.
+
+ Open the side panel in the 3D Viewport, and find the Skaterift tab, and in + that menu, the Export tab
+
+ Export Dir must be set to the game folder, which ends in + /steamapps/common/skaterift/
+ NOTE: + the path must have a / at the end, else things will break.
+

+
+

3. World editing


+

Surfaces/Materials


+

Blender materials get some extra Skaterift properties

+ +
+ Format: The type of shader to use
+
+ Surface Property: What is the material made from. This is used for audio.
+
+ Collision Options:
+ - Skate Target:    The game will prioritize this material to land on
+ - Grindable:       Allow grinding on the corners of this material
+ - Grow Grass:      Spawn grass models on this surface
+ - Preview Visible: Render this material in the preview hologram
+ 
+ +

An example material setup:
+

+ Surface | Collision | Skate Target | Grindable | Grow Grass
+ Green:    Enabled     Yes            Yes         
+ Gray:     Enabled                    Yes         
+ Brown:    Enabled                                Grows
+ Blue:     Enabled                                
+ Red:      No                                
+ 
+

+ +
+ +

Texturing/Shaders


+

+ By changing the format option you have a selection of 5 shaders + (The first 4 use the diffuse texture plugged into the material):
+
+

+ 1. Standard - This is just a textured material
+ 2. Standard Cutout - Textured material with alpha test
+ 3. Terrain Blend - This is a special shader which adds an offset to the UVs depending on whether the slope of the surface is above 45 degrees. You can also choose what colour the sand is when the coordinate of the mesh is near 0 on the up axis.
+ 4. Vertex Blend - Same as Terrain blend but you can paint the transition using the Vertex Paint's Red channel
+ 
+ 5. Water - Does not allow any textures, but you can change the colours of it.
+ 
+ + For reference, most of the main world uses Terrain Blend, as it gives a nice + crunchy effect on the slopes.
+
+ Texturing Skate Rift style
+ Skate Rifts main map uses 2 textures for the entire thing, it is mostly just a + solid colours file with lines that get darker.
+ When you place the UVs in these lines, the offset will jump back and fourth + between the dark and light colours to give the effect you see in the game.
+
+
+ This texture is 512x512, the maximum supported size is 1024x1024.
+

+ +

Entities


+

+ Entities are configured through the Entity tab in the 3D Viewport.
+
+
+ The template file contains all you need to get started, but here you can find a + full list of entities and their description + +

+
+
+

Test Run


+

In the Outliner panel in the top right, rename the collection name, + called maps/template/main.mdl. You should replace only the word + template. The collection name is the path it will export the + model, relative to the directory we set earlier.
+
+ Now in the Skaterift Export tab, press Compile This collection.
+ The map will now show up in-game, and you can load it.

+ + Theres some helpful commands to debug the map, to open the console, once the + game is loaded, you press the ` (backtick) key. Commands:
+ +

+ list            - list all commands and variables
+ respawn   - reset at this spawn
+ vg_lines 0/1    - helps you debug
+ vg_profiler 0/1 - Monitor performance
+

+
diff --git a/web/img/guide1.jpg b/web/img/guide1.jpg new file mode 100644 index 0000000..acbfc7f Binary files /dev/null and b/web/img/guide1.jpg differ diff --git a/web/img/guide2.jpg b/web/img/guide2.jpg new file mode 100644 index 0000000..4e51f49 Binary files /dev/null and b/web/img/guide2.jpg differ diff --git a/web/img/guide3.jpg b/web/img/guide3.jpg new file mode 100644 index 0000000..06dc2d9 Binary files /dev/null and b/web/img/guide3.jpg differ diff --git a/web/img/ws_ramp_diag.svg b/web/img/ws_ramp_diag.svg new file mode 100644 index 0000000..6ac1e39 --- /dev/null +++ b/web/img/ws_ramp_diag.svg @@ -0,0 +1,107 @@ + + + + diff --git a/web/img/wsaddon.png b/web/img/wsaddon.png new file mode 100644 index 0000000..cb788a3 Binary files /dev/null and b/web/img/wsaddon.png differ diff --git a/web/img/wsaddonenable.png b/web/img/wsaddonenable.png new file mode 100644 index 0000000..3639f5e Binary files /dev/null and b/web/img/wsaddonenable.png differ diff --git a/web/img/wsdiag.svg b/web/img/wsdiag.svg new file mode 100644 index 0000000..41d8697 --- /dev/null +++ b/web/img/wsdiag.svg @@ -0,0 +1,1787 @@ + + + + diff --git a/web/img/wsentity.jpg b/web/img/wsentity.jpg new file mode 100644 index 0000000..4fd549c Binary files /dev/null and b/web/img/wsentity.jpg differ diff --git a/web/img/wslocalfiles.png b/web/img/wslocalfiles.png new file mode 100644 index 0000000..eb766ec Binary files /dev/null and b/web/img/wslocalfiles.png differ diff --git a/web/img/wsmaterial.jpg b/web/img/wsmaterial.jpg new file mode 100644 index 0000000..1074286 Binary files /dev/null and b/web/img/wsmaterial.jpg differ diff --git a/web/img/wstex.jpg b/web/img/wstex.jpg new file mode 100644 index 0000000..118744c Binary files /dev/null and b/web/img/wstex.jpg differ diff --git a/web/index.php b/web/index.php index 7bb7d9e..24f3794 100755 --- a/web/index.php +++ b/web/index.php @@ -1,283 +1,235 @@ "; - echo "

".$display."

"; - } - else{ - echo ""; - echo "
"; - echo "

".$display."

"; - } - } + $page = "main"; + if( isset( $_GET["page"] ) ){ + $page = $_GET["page"]; + } + function srpage($name,$display){ + global $page; + if($name==$page){ + echo "
"; + echo "

".$display."

"; + } + else{ + echo ""; + echo "
"; + echo "

".$display."

"; + } + } ?> - - - - - - - - - - - - + + + + + + + + + + + + + + - Skaterift + /* Navigation panel */ + .navpanel { + width: 200px; + float: left; + position: sticky; + top: 0; + } + .navside { + padding: 0px; + background-color: var(--k_ui_bg2); + box-shadow: inset -20px 0 18px -22px #080808; + } + .navside > a { + text-decoration:none; + color: var(--k_ui_fg1); + } + + .navitem { + background-color: var(--k_ui_bg3);/*#301717;*/ + padding: 8px; + box-shadow: inset -20px 0 18px -22px #080808; + border: 1px solid var(--k_ui_bg2); + } + .navitem:hover{ + background-color: #444; + } + + .navitemsel { + background-color: var(--k_ui_bg1); + color: var(--k_ui_fg0); + padding: 8px; + border: 1px solid var(--k_ui_bg4); + border-right: 0; + width:184px; + } + + @media only screen and (max-width: 750px) { + .navpanel { + width: auto; + float: none; + position: static; + } + .navitemsel { + width: auto; + border: 1px solid var(--k_ui_fg0); + background-color: var(--k_ui_bg4); + color: var(--k_ui_fg1); + } + .realcontent { + margin-left: auto; + } + } + + Skaterift -
- -
- -
+
+
+ +

+
+
+ +
+ +
+
+

Copyright ©2021-2023 Mt.Zero Software. All rights reserved. + All trademarks are property of their respective owners

+
diff --git a/web/skaterift.svg b/web/skaterift.svg new file mode 100644 index 0000000..35ef3e3 --- /dev/null +++ b/web/skaterift.svg @@ -0,0 +1,130 @@ + + + + diff --git a/web/srhighscores.txt b/web/srhighscores.txt new file mode 100644 index 0000000..19b8e55 --- /dev/null +++ b/web/srhighscores.txt @@ -0,0 +1,78 @@ + Megapark Green +--------------------------- + #| Player | Time + 1|Dairylee Oddy 1:11.83 + 2|Slang 1:13.44 + 3|Jakery_ 1:14.62 + 4|McCoy5868 1:17.23 + 5|LucyLime #HappyP 1:19.91 + 6| 1:23.26 + 7|DonkeyKong64 1:24.60 + 8|ProfProfession 1:26.45 + 9|MrCopy77 1:33.33 +10| + Megapark Blue +--------------------------- + #| Player | Time + 1|MrCopy77 1:16.07 + 2|McCoy5868 1:17.10 + 3|Dairylee Oddy 1:17.36 + 4|LucyLime #HappyP 1:17.70 + 5|fotball_edits.go 1:18.54 + 6|starmadefan11 1:18.97 + 7|DonkeyKong64 1:21.13 + 8| 1:22.50 + 9|ProfProfession 1:23.71 +10|Jakery_ 1:25.45 + Megapark Yellow +--------------------------- + #| Player | Time + 1|McCoy5868 0:39.24 + 2|DonkeyKong64 0:40.66 + 3|MrCopy77 0:41.11 + 4|fotball_edits.go 0:42.06 + 5|starmadefan11 0:42.52 + 6|Slang 0:43.60 + 7|kyri 0:44.15 + 8|harry 0:45.05 + 9| 0:50.82 +10|Jakery_ 0:52.02 + Megapark Red +--------------------------- + #| Player | Time + 1|ProfProfession 0:43.72 + 2|McCoy5868 0:46.09 + 3|DonkeyKong64 0:54.08 + 4|starmadefan11 0:58.33 + 5|Jakery_ 1:04.81 + 6| 1:08.60 + 7|elroskie 1:09.25 + 8|fotball_edits.go 1:10.03 + 9|MrCopy77 1:13.74 +10|Dairylee Oddy 1:35.63 + Coastal Run +--------------------------- + #| Player | Time + 1|harry 0:45.70 + 2|McCoy5868 0:46.79 + 3|fotball_edits.go 0:47.27 + 4|LucyLime #HappyP 0:47.37 + 5| 0:48.01 + 6|DonkeyKong64 0:48.23 + 7|ProfProfession 0:48.53 + 8|Slang 0:48.74 + 9|Jakery_ 0:49.08 +10|Sil Eighty 0:49.70 + Docks Jumps +--------------------------- + #| Player | Time + 1|MrCopy77 0:38.79 + 2|Potion Seller 0:43.18 + 3|SKEEMASK 0:43.78 + 4|Jakery_ 0:43.81 + 5|Dairylee Oddy 0:43.88 + 6|DonkeyKong64 0:44.36 + 7| 0:45.11 + 8|Lickapig 0:45.83 + 9|fotball_edits.go 0:46.70 +10|LoBear 0:47.50 diff --git a/web/workshop/guide1.jpg b/web/workshop/guide1.jpg deleted file mode 100644 index acbfc7f..0000000 Binary files a/web/workshop/guide1.jpg and /dev/null differ diff --git a/web/workshop/guide2.jpg b/web/workshop/guide2.jpg deleted file mode 100644 index 4e51f49..0000000 Binary files a/web/workshop/guide2.jpg and /dev/null differ diff --git a/web/workshop/guide3.jpg b/web/workshop/guide3.jpg deleted file mode 100644 index 06dc2d9..0000000 Binary files a/web/workshop/guide3.jpg and /dev/null differ