forked from NebulaSS13/Nebula
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:NebulaSS13/Nebula into fork/crux
- Loading branch information
Showing
4,034 changed files
with
275,273 additions
and
159,213 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,9 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
BYOND_MAJOR: "514" | ||
BYOND_MINOR: "1575" | ||
SPACEMAN_DMM_VERSION: suite-1.7.2 | ||
BYOND_MAJOR: "515" | ||
BYOND_MINOR: "1633" | ||
SPACEMAN_DMM_VERSION: suite-1.8 | ||
|
||
jobs: | ||
DreamChecker: | ||
|
@@ -50,6 +50,28 @@ jobs: | |
wget https://raw.githubusercontent.com/DiscordHooks/github-actions-discord-webhook/master/send.sh | ||
chmod +x send.sh | ||
./send.sh failure $WEBHOOK_URL | ||
OpenDream: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Python setup | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Setup Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION | ||
key: ${{ runner.os }}-spacemandmm-${{ env.SPACEMAN_DMM_VERSION }} | ||
- name: Install OpenDream | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: "OpenDreamProject/OpenDream" | ||
tag: "latest" | ||
fileName: "DMCompiler_linux-x64.tar.gz" | ||
extract: true | ||
- name: Run OpenDream | ||
run: ./DMCompiler_linux-x64/DMCompiler nebula.dme --suppress-unimplemented --skip-anything-typecheck --version=${BYOND_MAJOR}.${BYOND_MINOR} | python tools/od_annotator/__main__.py "$@" | ||
Code: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -80,7 +102,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
map_path: [away_sites_testing, crux, example, exodus, ministation, modpack_testing, planets_testing, tradeship] | ||
map_path: [crux, example, tradeship, exodus, ministation, shaded_hills, away_sites_testing, modpack_testing, planets_testing] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Cache | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,6 @@ lib/*.so | |
# python | ||
*.pyc | ||
__pycache__ | ||
|
||
# Running OpenDream locally | ||
nebula.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#ifdef OPENDREAM | ||
//1000-1999 | ||
#pragma FileAlreadyIncluded error | ||
#pragma MissingIncludedFile error | ||
#pragma MisplacedDirective error | ||
#pragma UndefineMissingDirective error | ||
#pragma DefinedMissingParen error | ||
#pragma ErrorDirective error | ||
#pragma WarningDirective warning | ||
#pragma MiscapitalizedDirective error | ||
|
||
//2000-2999 | ||
#pragma SoftReservedKeyword error | ||
#pragma DuplicateVariable error | ||
#pragma DuplicateProcDefinition error | ||
#pragma PointlessParentCall error | ||
#pragma PointlessBuiltinCall error | ||
#pragma SuspiciousMatrixCall error | ||
#pragma FallbackBuiltinArgument error | ||
#pragma MalformedRange error | ||
#pragma InvalidRange error | ||
#pragma InvalidSetStatement error | ||
#pragma InvalidOverride error | ||
#pragma DanglingVarType error | ||
#pragma MissingInterpolatedExpression error | ||
#pragma AmbiguousResourcePath error | ||
|
||
//3000-3999 | ||
#pragma EmptyBlock error | ||
#pragma EmptyProc disabled | ||
#pragma UnsafeClientAccess disabled | ||
#pragma SuspiciousSwitchCase error | ||
#pragma AssignmentInConditional error | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,5 @@ | ||
#define REQUIRED_DM_VERSION 514 | ||
#define REQUIRED_DM_VERSION 515 | ||
|
||
#if DM_VERSION < REQUIRED_DM_VERSION | ||
#warn Nebula is not tested on BYOND versions older than 514. The code may not compile, and if it does compile it may have severe problems. | ||
#endif | ||
|
||
// 515 split call for external libraries into call_ext | ||
#if DM_VERSION < 515 | ||
#define LIBCALL call | ||
#else | ||
#define LIBCALL call_ext | ||
#endif | ||
|
||
// So we want to have compile time guarantees these methods exist on local type, unfortunately 515 killed the .proc/procname and .verb/verbname syntax so we have to use nameof() | ||
// For the record: GLOBAL_VERB_REF would be useless as verbs can't be global. | ||
|
||
#if DM_VERSION < 515 | ||
|
||
/// Call by name proc references, checks if the proc exists on either this type or as a global proc. | ||
#define PROC_REF(X) (.proc/##X) | ||
/// Call by name verb references, checks if the verb exists on either this type or as a global verb. | ||
#define VERB_REF(X) (.verb/##X) | ||
|
||
/// Call by name proc reference, checks if the proc exists on either the given type or as a global proc | ||
#define TYPE_PROC_REF(TYPE, X) (##TYPE.proc/##X) | ||
/// Call by name verb reference, checks if the verb exists on either the given type or as a global verb | ||
#define TYPE_VERB_REF(TYPE, X) (##TYPE.verb/##X) | ||
|
||
/// Call by name proc reference, checks if the proc is an existing global proc | ||
#define GLOBAL_PROC_REF(X) (/proc/##X) | ||
|
||
#else | ||
|
||
/// Call by name proc references, checks if the proc exists on either this type or as a global proc. | ||
#define PROC_REF(X) (nameof(.proc/##X)) | ||
/// Call by name verb references, checks if the verb exists on either this type or as a global verb. | ||
#define VERB_REF(X) (nameof(.verb/##X)) | ||
|
||
/// Call by name proc reference, checks if the proc exists on either the given type or as a global proc | ||
#define TYPE_PROC_REF(TYPE, X) (nameof(##TYPE.proc/##X)) | ||
/// Call by name verb reference, checks if the verb exists on either the given type or as a global verb | ||
#define TYPE_VERB_REF(TYPE, X) (nameof(##TYPE.verb/##X)) | ||
|
||
/// Call by name proc reference, checks if the proc is an existing global proc | ||
#define GLOBAL_PROC_REF(X) (/proc/##X) | ||
|
||
#warn Nebula is not tested on BYOND versions older than 515. The code may not compile, and if it does compile it may have severe problems. | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#define BITSHIFT_LEFT(X, N) (X << (N)) | ||
#define BITSHIFT_RIGHT(X, N) (X >> (N)) | ||
#define BITFLAG(X) BITSHIFT_LEFT(1, X) | ||
|
||
/// A null statement to guard against EmptyBlock lint without necessitating the use of pass() | ||
/// Used to avoid proc-call overhead. But use sparingly. Probably pointless in most places. | ||
#define EMPTY_BLOCK_GUARD ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#define COOKING_HEAT_ANY 0 | ||
#define COOKING_HEAT_DIRECT 1 | ||
#define COOKING_HEAT_INDIRECT 2 | ||
|
||
#define FOOD_RAW -1 | ||
#define FOOD_PREPARED 0 | ||
#define FOOD_COOKED 1 | ||
|
||
#define INGREDIENT_FLAG_PLAIN 0 | ||
#define INGREDIENT_FLAG_MEAT BITFLAG(0) | ||
#define INGREDIENT_FLAG_FISH BITFLAG(1) | ||
#define INGREDIENT_FLAG_VEGETABLE BITFLAG(2) | ||
#define INGREDIENT_FLAG_DAIRY BITFLAG(3) | ||
#define INGREDIENT_FLAG_EGG BITFLAG(4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#define FUEL_VALUE_RETARDANT -1 | ||
#define FUEL_VALUE_SUPPRESSANT -1 | ||
#define FUEL_VALUE_NONE 0 | ||
#define FUEL_VALUE_ACCELERANT 1 | ||
#define FUEL_VALUE_VOLATILE 2 |
Oops, something went wrong.