- Go to steam Sixty Four install folder (like
steamapps\common\Sixty Four) - Go to game folder (like
steamapps\common\Sixty Four\win-unpacked\resources\app\game) - Create a
modsfolder - Download
injector.jsand put it mods folder
Now you need edit steamapps\common\Sixty Four\win-unpacked\resources\app\game\main.html
You need to add next line at the end of the <head></head> tag.
<script type="text/javascript" src="mods/injector.js?v=2"></script>You should have something like that :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Sixty Four</title>
<link rel="stylesheet" href="./font/montserrat.css" type="text/css" charset="utf-8" />
<script type="text/javascript" src="scripts/bezier.js"></script>
<script type="text/javascript" src="scripts/ui.js?v=2"></script>
<script type="text/javascript" src="scripts/sprites.js?v=2"></script>
<script type="text/javascript" src="scripts/stuff.js?v=2"></script>
<script type="text/javascript" src="scripts/words.js?v=2"></script>
<script type="text/javascript" src="scripts/codex.js?v=2"></script>
<script type="text/javascript" src="scripts/game.js?v=4"></script>
<script type="text/javascript" src="mods/injector.js?v=2"></script>
<style/>...<style/>
</head>
<body>
...
</body>
</html>In the mods folder juste put a dir with the mod contents in it.
WARN: dependencies will work in future update
{
"id": "mod_id_name",
"version": "0.0.1",
"js": "mod_js.js",
"css": [
"mod_css.css"
],
"dependencies": {
"mod_dep": "^0.0.1"
}
}in you script file you should export A loader object like this :
function getLoader() {
return {
getCodex() {
return {}
},
init() {
},
inject() {
}
}
}
module.exports = {getLoader}All function is not required
- getCodex() => should return an object to be merged with game codex
- init() => call before game init could be used to load resources
- inject() => call after all mods init but before game init should be used to inject modification before game start
just a simple css file(s) to be load