Skip to content

Commit

Permalink
CustomPrecache
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikk155 committed May 21, 2024
1 parent 9c31870 commit a62ecfd
Show file tree
Hide file tree
Showing 11 changed files with 615 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/CustomPrecache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CustomPrecache

on:
push:
branches:
- main
paths:
- '.github/workflows/CustomPrecache.yml'
- 'build/resources/CustomPrecache.json'
- 'scripts/mikk/*'
- 'scripts/plugins/mikk/CustomPrecache.*'

jobs:

build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Installing Python
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Release
env:
TOKEN: ${{ secrets.TOKEN }}
run: python3 build/run.py CustomPrecache
11 changes: 11 additions & 0 deletions build/resources/CustomPrecache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Include":
[
"json"
],
"Resources":
[
"scripts/plugins/mikk/CustomPrecache.as",
"scripts/plugins/mikk/CustomPrecache.json"
]
}
1 change: 1 addition & 0 deletions docs/en/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<tr><td><a href = "plugins/PlayerDecalTracker.html" class="link-here">PlayerDecalTracker</a><br></td><td>Sven Co-op's PlayerDecalTracker but translated.</td></tr>
<tr><td><a href = "plugins/SurvivalRespawnAll.html" class="link-here">SurvivalRespawnAll</a><br></td><td>When survival is enabled, spawn all players once when they connect for the first time.</td></tr>
<tr><td><a href = "plugins/svenfixes.html" class="link-here">svenfixes</a><br></td><td>Fix multiple errors and/or problems that exists in Sven Co-op and are possible to fix with AngelScript.</td></tr>
<tr><td><a href = "plugins/CustomPrecache.html" class="link-here">CustomPrecache</a><br></td><td>Precache assets always and dynamically</td></tr>
</table><br>
For plugins please use "name" in default_plugins.txt to be the name of the file<br>As these plugins sometimes do check for other plugins installed.
</div>
Expand Down
104 changes: 104 additions & 0 deletions docs/en/plugins/CustomPrecache.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!DOCTYPE html>

<head>
<title>Sven Co-op</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../styles.css">
<script src="../../scripts.js"></script>
</head>

<body>
<a href="../../"><img class="img-banner" src="../../media/svencoop.png" alt="Sven Co-op"></a>
<div class="block">
<br>
<div class="neon-text">
CustomPrecache<br><br>
Precache assets always and dynamically<br><br>
</div>
<br>
</div>
<br>
<br>
<div class="block">
<br>
<div class="neon-text">
Configure the json file.<br><br>
<div style="text-align: left;padding-left: 1%;"><br>

<button onclick="toggleTable('json_1')">"PrecacheModel"</button>
<div id="json_1" class="hidden" style="padding-left: 2%;">
<button class="json-description">Type: </button><button class="json-dictionary">dictionary</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of models (.mdl and .spr)</button><br>
<button class="json-string" onclick="toggleTable('json_1a')">"Always Precache"</button><br>
<div id="json_1a" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-array">array</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of assets to precache, These will be always precached no mather what</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_1b')">"Dynamic Precache"</button><br>
<div id="json_1b" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-array">array</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of assets to precache, These will be precached dynamically by turns each time the map is changed</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_1c')">"Dynamic Assets"</button><br>
<div id="json_1c" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-integer">integer</button><br>
<button class="json-description">Description: </button><button class="json-description2">Amount of assets to precache for each map</button><br>
</div>
</div>
<br>
<button onclick="toggleTable('json_2')">"PrecacheGeneric"</button>
<div id="json_2" class="hidden" style="padding-left: 2%;">
<button class="json-description">Type: </button><button class="json-dictionary">dictionary</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of any other type of assets</button><br>
<button class="json-string" onclick="toggleTable('json_2a')">"Always Precache"</button><br>
<div id="json_2a" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-array">array</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of assets to precache, These will be always precached no mather what</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_2b')">"Dynamic Precache"</button><br>
<div id="json_2b" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-array">array</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of assets to precache, These will be precached dynamically by turns each time the map is changed</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_2c')">"Dynamic Assets"</button><br>
<div id="json_2c" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-integer">integer</button><br>
<button class="json-description">Description: </button><button class="json-description2">Amount of assets to precache for each map</button><br>
</div>
</div>
<br>
<button onclick="toggleTable('json_3')">"PrecacheSound"</button>
<div id="json_3" class="hidden" style="padding-left: 2%;">
<button class="json-description">Type: </button><button class="json-dictionary">dictionary</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of sounds (sound/*)</button><br>
<button class="json-string" onclick="toggleTable('json_3a')">"Always Precache"</button><br>
<div id="json_3a" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-array">array</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of assets to precache, These will be always precached no mather what</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_3b')">"Dynamic Precache"</button><br>
<div id="json_3b" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-array">array</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of assets to precache, These will be precached dynamically by turns each time the map is changed</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_3c')">"Dynamic Assets"</button><br>
<div id="json_3c" class="hidden" style="padding-left: 3%;">
<button class="json-description">Type: </button><button class="json-integer">integer</button><br>
<button class="json-description">Description: </button><button class="json-description2">Amount of assets to precache for each map</button><br>
</div>
</div>
<br>
<button onclick="toggleTable('json_4')">"PrecacheOther"</button>
<div id="json_4" class="hidden" style="padding-left: 2%;">
<button class="json-description">Type: </button><button class="json-array">array</button><br>
<button class="json-description">Description: </button><button class="json-description2">List of entities (classname)</button><br>
</div>
</div>
</div>
<br>
<br>
<br><br>
<div class="block"><a href="https://github.com/Mikk155/Sven-Co-op/releases/tag/CustomPrecache" target="_blank">Download</a><br></div><br>
</body>
</html>
1 change: 1 addition & 0 deletions docs/es/plugins.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<tr><td><a href = "plugins/PlayerDecalTracker.html" class="link-here">PlayerDecalTracker</a><br></td><td>PlayerDecalTracker de Sven Co-op pero traducido.</td></tr>
<tr><td><a href = "plugins/SurvivalRespawnAll.html" class="link-here">SurvivalRespawnAll</a><br></td><td>Cuando el modo supervivencia esta activo, Permite aparecer a todos los jugadores una vez cuando se conectan por primera vez.</td></tr>
<tr><td><a href = "plugins/svenfixes.html" class="link-here">svenfixes</a><br></td><td>Arregla varios errores y/o problemas que existan en Sven Co-op y sean posibles de arreglar mediante AngelScript.</td></tr>
<tr><td><a href = "plugins/CustomPrecache.html" class="link-here">CustomPrecache</a><br></td><td>Precacha contenido siempre o de forma dinamica</td></tr>
</table><br>
Para plugins por favor utilice en "name" en default_plugins.txt para que sea igual a el nombre del archivo<br>Ya que estos plugins algunas veces verifican si otros plugins estan instalados.
</div>
Expand Down
104 changes: 104 additions & 0 deletions docs/es/plugins/CustomPrecache.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!DOCTYPE html>

<head>
<title>Sven Co-op</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../styles.css">
<script src="../../scripts.js"></script>
</head>

<body>
<a href="../../"><img class="img-banner" src="../../media/svencoop.png" alt="Sven Co-op"></a>
<div class="block">
<br>
<div class="neon-text">
CustomPrecache<br><br>
Precacha contenido siempre o de forma dinamica<br><br>
</div>
<br>
</div>
<br>
<br>
<div class="block">
<br>
<div class="neon-text">
Configure el archivo json.<br><br>
<div style="text-align: left;padding-left: 1%;"><br>

<button onclick="toggleTable('json_1')">"PrecacheModel"</button>
<div id="json_1" class="hidden" style="padding-left: 2%;">
<button class="json-description">Tipo: </button><button class="json-dictionary">dictionary</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de modelos (.mdl y .spr)</button><br>
<button class="json-string" onclick="toggleTable('json_1a')">"Always Precache"</button><br>
<div id="json_1a" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-array">array</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de archivos para precachar, Estos van a ser precachados siempre sin importar que</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_1b')">"Dynamic Precache"</button><br>
<div id="json_1b" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-array">array</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de archivos para precachar, Estos van a ser precachados dinamica mente por turnos cada vez que el mapa sea cambiado</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_1c')">"Dynamic Assets"</button><br>
<div id="json_1c" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-integer">integer</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Cantidad de archivos a precachar por cada mapa</button><br>
</div>
</div>
<br>
<button onclick="toggleTable('json_2')">"PrecacheGeneric"</button>
<div id="json_2" class="hidden" style="padding-left: 2%;">
<button class="json-description">Tipo: </button><button class="json-dictionary">dictionary</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de cualquier otro tipo de archivos</button><br>
<button class="json-string" onclick="toggleTable('json_2a')">"Always Precache"</button><br>
<div id="json_2a" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-array">array</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de archivos para precachar, Estos van a ser precachados siempre sin importar que</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_2b')">"Dynamic Precache"</button><br>
<div id="json_2b" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-array">array</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de archivos para precachar, Estos van a ser precachados dinamica mente por turnos cada vez que el mapa sea cambiado</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_2c')">"Dynamic Assets"</button><br>
<div id="json_2c" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-integer">integer</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Cantidad de archivos a precachar por cada mapa</button><br>
</div>
</div>
<br>
<button onclick="toggleTable('json_3')">"PrecacheSound"</button>
<div id="json_3" class="hidden" style="padding-left: 2%;">
<button class="json-description">Tipo: </button><button class="json-dictionary">dictionary</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de sonidos (sound*/)</button><br>
<button class="json-string" onclick="toggleTable('json_3a')">"Always Precache"</button><br>
<div id="json_3a" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-array">array</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de archivos para precachar, Estos van a ser precachados siempre sin importar que</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_3b')">"Dynamic Precache"</button><br>
<div id="json_3b" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-array">array</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de archivos para precachar, Estos van a ser precachados dinamica mente por turnos cada vez que el mapa sea cambiado</button><br>
</div>
<button class="json-string" onclick="toggleTable('json_3c')">"Dynamic Assets"</button><br>
<div id="json_3c" class="hidden" style="padding-left: 3%;">
<button class="json-description">Tipo: </button><button class="json-integer">integer</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Cantidad de archivos a precachar por cada mapa</button><br>
</div>
</div>
<br>
<button onclick="toggleTable('json_4')">"PrecacheOther"</button>
<div id="json_4" class="hidden" style="padding-left: 2%;">
<button class="json-description">Tipo: </button><button class="json-array">array</button><br>
<button class="json-description">Descripción: </button><button class="json-description2">Lista de entidades (classname)</button><br>
</div>
</div>
</div>
<br>
<br>
<br><br>
<div class="block"><a href="https://github.com/Mikk155/Sven-Co-op/releases/tag/CustomPrecache" target="_blank">Descargar</a><br></div><br>
</body>
</html>
Loading

0 comments on commit a62ecfd

Please sign in to comment.