mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-20 10:37:37 -04:00
Update setup instructions
This commit is contained in:
parent
d4de0ccccc
commit
c87ea72890
29
README.md
29
README.md
|
@ -6,6 +6,12 @@ A demake of Portal for the Nintendo 64.
|
||||||
|
|
||||||
First, you will need to setup [Modern SDK](https://crashoveride95.github.io/n64hbrew/modernsdk/startoff.html).
|
First, you will need to setup [Modern SDK](https://crashoveride95.github.io/n64hbrew/modernsdk/startoff.html).
|
||||||
|
|
||||||
|
After installing modern sdk you will want to also install
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install libnustd
|
||||||
|
```
|
||||||
|
|
||||||
Next, you will need to download Blender 3.0 or higher. Then set the environment variable `BLENDER_3_0` to be the absolute path where the Blender executable is located on your system.
|
Next, you will need to download Blender 3.0 or higher. Then set the environment variable `BLENDER_3_0` to be the absolute path where the Blender executable is located on your system.
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
@ -17,19 +23,30 @@ pip install vpk
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
Install `vtf2png`, `sfz2n64`, and `skeletool64`.
|
Install `vtf2png`, `sfz2n64`, and setup `skeletool64`.
|
||||||
```sh
|
```sh
|
||||||
echo "deb [trusted=yes] https://lambertjamesd.github.io/apt/ ./" \
|
echo "deb [trusted=yes] https://lambertjamesd.github.io/apt/ ./" \
|
||||||
| tee /etc/apt/sources.list.d/lambertjamesd.list
|
| sudo tee /etc/apt/sources.list.d/lambertjamesd.list
|
||||||
|
sudo apt update
|
||||||
sudo apt install vtf2png sfz2n64 skeletool64 mpg123
|
sudo apt install vtf2png sfz2n64 mpg123 sox imagemagick
|
||||||
```
|
```
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
Install ImageMagick.
|
Setup and build skelatool64
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo apt install imagemagick
|
cd skelatool64
|
||||||
|
./setup_dependencies.sh
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
<br />
|
||||||
|
|
||||||
|
You will need to install nodejs. You can use apt for this
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install nodejs
|
||||||
```
|
```
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
GCC_FLAGS = -Wall -Werror -g -rdynamic -I./yaml-cpp/include
|
GCC_FLAGS = -Wall -Werror -g -rdynamic -I./yaml-cpp/include
|
||||||
|
|
||||||
LINKER_FLAGS = -L./yaml-cpp -lassimp -lyaml-cpp -lpng -ltiff -llua -ldl
|
LINKER_FLAGS = -L./yaml-cpp -lassimp -lyaml-cpp -lpng -ltiff -llua5.4 -ldl
|
||||||
|
|
||||||
SRC_FILES = main.cpp $(shell find src/ -type f -name '*.cpp')
|
SRC_FILES = main.cpp $(shell find src/ -type f -name '*.cpp')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
sudo apt install -y libpng-dev libtiff-dev libassimp-dev
|
sudo apt install -y libpng-dev libtiff-dev libassimp-dev g++ liblua5.4-dev cmake
|
||||||
|
|
||||||
pushd $(dirname "$0")
|
pushd $(dirname "$0")
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_BASIC_TYPES_H__
|
#ifndef __LUA_BASIC_TYPES_H__
|
||||||
#define __LUA_BASIC_TYPES_H__
|
#define __LUA_BASIC_TYPES_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_DEFINITON_WRITER_H__
|
#ifndef __LUA_DEFINITON_WRITER_H__
|
||||||
#define __LUA_DEFINITON_WRITER_H__
|
#define __LUA_DEFINITON_WRITER_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include "../CFileDefinition.h"
|
#include "../CFileDefinition.h"
|
||||||
|
|
||||||
bool dumpDefinitions(lua_State* L, CFileDefinition& fileDef, const char* filename);
|
bool dumpDefinitions(lua_State* L, CFileDefinition& fileDef, const char* filename);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_DISPLAY_LIST_SETTINGS_H__
|
#ifndef __LUA_DISPLAY_LIST_SETTINGS_H__
|
||||||
#define __LUA_DISPLAY_LIST_SETTINGS_H__
|
#define __LUA_DISPLAY_LIST_SETTINGS_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include "../DisplayListSettings.h"
|
#include "../DisplayListSettings.h"
|
||||||
|
|
||||||
void fromLua(lua_State* L, DisplayListSettings& result, const DisplayListSettings& defaults);
|
void fromLua(lua_State* L, DisplayListSettings& result, const DisplayListSettings& defaults);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#include "LuaDisplayListSettings.h"
|
#include "LuaDisplayListSettings.h"
|
||||||
#include "LuaBasicTypes.h"
|
#include "LuaBasicTypes.h"
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define EMIT(name) extern const char _binary_build_lua_##name##_out_start[]; extern const char _binary_build_lua_##name##_out_end[];
|
#define EMIT(name) extern const char _binary_build_lua_##name##_out_start[]; extern const char _binary_build_lua_##name##_out_end[];
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_GENERATOR_H__
|
#ifndef __LUA_GENERATOR_H__
|
||||||
#define __LUA_GENERATOR_H__
|
#define __LUA_GENERATOR_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include <assimp/scene.h>
|
#include <assimp/scene.h>
|
||||||
#include "../CFileDefinition.h"
|
#include "../CFileDefinition.h"
|
||||||
#include "../DisplayListSettings.h"
|
#include "../DisplayListSettings.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_GEOMETRY_H__
|
#ifndef __LUA_GEOMETRY_H__
|
||||||
#define __LUA_GEOMETRY_H__
|
#define __LUA_GEOMETRY_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include <assimp/scene.h>
|
#include <assimp/scene.h>
|
||||||
|
|
||||||
void toLua(lua_State* L, const aiQuaternion& quaternion);
|
void toLua(lua_State* L, const aiQuaternion& quaternion);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_MESH_H__
|
#ifndef __LUA_MESH_H__
|
||||||
#define __LUA_MESH_H__
|
#define __LUA_MESH_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include <assimp/scene.h>
|
#include <assimp/scene.h>
|
||||||
#include "../CFileDefinition.h"
|
#include "../CFileDefinition.h"
|
||||||
#include "../DisplayListSettings.h"
|
#include "../DisplayListSettings.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_NODE_GROUPS_H__
|
#ifndef __LUA_NODE_GROUPS_H__
|
||||||
#define __LUA_NODE_GROUPS_H__
|
#define __LUA_NODE_GROUPS_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include "../definition_generator/DefinitionGenerator.h"
|
#include "../definition_generator/DefinitionGenerator.h"
|
||||||
|
|
||||||
void populateLuaNodeGroups(lua_State* L, NodeGroups& nodeGroups);
|
void populateLuaNodeGroups(lua_State* L, NodeGroups& nodeGroups);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define __LUA_SCENE_H__
|
#define __LUA_SCENE_H__
|
||||||
|
|
||||||
#include <assimp/scene.h>
|
#include <assimp/scene.h>
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
|
|
||||||
#include "../DisplayListSettings.h"
|
#include "../DisplayListSettings.h"
|
||||||
#include "../CFileDefinition.h"
|
#include "../CFileDefinition.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_TRANSFORM_H__
|
#ifndef __LUA_TRANSFORM_H__
|
||||||
#define __LUA_TRANSFORM_H__
|
#define __LUA_TRANSFORM_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
#include <assimp/scene.h>
|
#include <assimp/scene.h>
|
||||||
|
|
||||||
#include "LuaGeometry.h"
|
#include "LuaGeometry.h"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __LUA_UTILS_H__
|
#ifndef __LUA_UTILS_H__
|
||||||
#define __LUA_UTILS_H__
|
#define __LUA_UTILS_H__
|
||||||
|
|
||||||
#include <lua.hpp>
|
#include <lua5.4/lua.hpp>
|
||||||
|
|
||||||
void luaLoadModuleFunction(lua_State* L, const char* moduleName, const char* functionName);
|
void luaLoadModuleFunction(lua_State* L, const char* moduleName, const char* functionName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue