mirror of
https://github.com/Relintai/pandemonium_cms.git
synced 2024-11-12 09:35:02 +01:00
Initial commit.
This commit is contained in:
commit
7738ba459c
189
.clang-format
Normal file
189
.clang-format
Normal file
@ -0,0 +1,189 @@
|
|||||||
|
# Commented out parameters are those with the same value as base LLVM style.
|
||||||
|
# We can uncomment them if we want to change their value, or enforce the
|
||||||
|
# chosen value in case the base style changes (last sync: Clang 13.0).
|
||||||
|
---
|
||||||
|
### General config, applies to all languages ###
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
AccessModifierOffset: -4
|
||||||
|
AlignAfterOpenBracket: DontAlign
|
||||||
|
# AlignArrayOfStructures: None
|
||||||
|
# AlignConsecutiveMacros: None
|
||||||
|
# AlignConsecutiveAssignments: None
|
||||||
|
# AlignConsecutiveBitFields: None
|
||||||
|
# AlignConsecutiveDeclarations: None
|
||||||
|
# AlignEscapedNewlines: Right
|
||||||
|
AlignOperands: DontAlign
|
||||||
|
AlignTrailingComments: false
|
||||||
|
# AllowAllArgumentsOnNextLine: true
|
||||||
|
# AllowAllConstructorInitializersOnNextLine: true
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||||||
|
# AllowShortEnumsOnASingleLine: true
|
||||||
|
# AllowShortBlocksOnASingleLine: Never
|
||||||
|
# AllowShortCaseLabelsOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: Inline
|
||||||
|
# AllowShortLambdasOnASingleLine: All
|
||||||
|
# AllowShortIfStatementsOnASingleLine: Never
|
||||||
|
# AllowShortLoopsOnASingleLine: false
|
||||||
|
# AlwaysBreakAfterDefinitionReturnType: None
|
||||||
|
# AlwaysBreakAfterReturnType: None
|
||||||
|
# AlwaysBreakBeforeMultilineStrings: false
|
||||||
|
# AlwaysBreakTemplateDeclarations: MultiLine
|
||||||
|
# AttributeMacros:
|
||||||
|
# - __capability
|
||||||
|
# BinPackArguments: true
|
||||||
|
# BinPackParameters: true
|
||||||
|
# BraceWrapping:
|
||||||
|
# AfterCaseLabel: false
|
||||||
|
# AfterClass: false
|
||||||
|
# AfterControlStatement: Never
|
||||||
|
# AfterEnum: false
|
||||||
|
# AfterFunction: false
|
||||||
|
# AfterNamespace: false
|
||||||
|
# AfterObjCDeclaration: false
|
||||||
|
# AfterStruct: false
|
||||||
|
# AfterUnion: false
|
||||||
|
# AfterExternBlock: false
|
||||||
|
# BeforeCatch: false
|
||||||
|
# BeforeElse: false
|
||||||
|
# BeforeLambdaBody: false
|
||||||
|
# BeforeWhile: false
|
||||||
|
# IndentBraces: false
|
||||||
|
# SplitEmptyFunction: true
|
||||||
|
# SplitEmptyRecord: true
|
||||||
|
# SplitEmptyNamespace: true
|
||||||
|
# BreakBeforeBinaryOperators: None
|
||||||
|
# BreakBeforeConceptDeclarations: true
|
||||||
|
# BreakBeforeBraces: Attach
|
||||||
|
# BreakBeforeInheritanceComma: false
|
||||||
|
# BreakInheritanceList: BeforeColon
|
||||||
|
# BreakBeforeTernaryOperators: true
|
||||||
|
# BreakConstructorInitializersBeforeComma: false
|
||||||
|
BreakConstructorInitializers: AfterColon
|
||||||
|
# BreakStringLiterals: true
|
||||||
|
ColumnLimit: 0
|
||||||
|
# CommentPragmas: '^ IWYU pragma:'
|
||||||
|
# CompactNamespaces: false
|
||||||
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
||||||
|
ConstructorInitializerIndentWidth: 8
|
||||||
|
ContinuationIndentWidth: 8
|
||||||
|
Cpp11BracedListStyle: false
|
||||||
|
# DeriveLineEnding: true
|
||||||
|
# DerivePointerAlignment: false
|
||||||
|
# DisableFormat: false
|
||||||
|
# EmptyLineAfterAccessModifier: Never
|
||||||
|
# EmptyLineBeforeAccessModifier: LogicalBlock
|
||||||
|
# ExperimentalAutoDetectBinPacking: false
|
||||||
|
# FixNamespaceComments: true
|
||||||
|
# ForEachMacros:
|
||||||
|
# - foreach
|
||||||
|
# - Q_FOREACH
|
||||||
|
# - BOOST_FOREACH
|
||||||
|
# IfMacros:
|
||||||
|
# - KJ_IF_MAYBE
|
||||||
|
# IncludeBlocks: Preserve
|
||||||
|
IncludeCategories:
|
||||||
|
- Regex: '".*"'
|
||||||
|
Priority: 1
|
||||||
|
- Regex: '^<.*\.h>'
|
||||||
|
Priority: 2
|
||||||
|
- Regex: '^<.*'
|
||||||
|
Priority: 3
|
||||||
|
# IncludeIsMainRegex: '(Test)?$'
|
||||||
|
# IncludeIsMainSourceRegex: ''
|
||||||
|
# IndentAccessModifiers: false
|
||||||
|
IndentCaseLabels: true
|
||||||
|
# IndentCaseBlocks: false
|
||||||
|
# IndentGotoLabels: true
|
||||||
|
# IndentPPDirectives: None
|
||||||
|
# IndentExternBlock: AfterExternBlock
|
||||||
|
# IndentRequires: false
|
||||||
|
IndentWidth: 4
|
||||||
|
# IndentWrappedFunctionNames: false
|
||||||
|
# InsertTrailingCommas: None
|
||||||
|
# JavaScriptQuotes: Leave
|
||||||
|
# JavaScriptWrapImports: true
|
||||||
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
|
# LambdaBodyIndentation: Signature
|
||||||
|
# MacroBlockBegin: ''
|
||||||
|
# MacroBlockEnd: ''
|
||||||
|
# MaxEmptyLinesToKeep: 1
|
||||||
|
# NamespaceIndentation: None
|
||||||
|
# PenaltyBreakAssignment: 2
|
||||||
|
# PenaltyBreakBeforeFirstCallParameter: 19
|
||||||
|
# PenaltyBreakComment: 300
|
||||||
|
# PenaltyBreakFirstLessLess: 120
|
||||||
|
# PenaltyBreakString: 1000
|
||||||
|
# PenaltyBreakTemplateDeclaration: 10
|
||||||
|
# PenaltyExcessCharacter: 1000000
|
||||||
|
# PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
|
# PenaltyIndentedWhitespace: 0
|
||||||
|
# PointerAlignment: Right
|
||||||
|
# PPIndentWidth: -1
|
||||||
|
# ReferenceAlignment: Pointer
|
||||||
|
# ReflowComments: true
|
||||||
|
# ShortNamespaceLines: 1
|
||||||
|
# SortIncludes: CaseSensitive
|
||||||
|
# SortJavaStaticImport: Before
|
||||||
|
# SortUsingDeclarations: true
|
||||||
|
# SpaceAfterCStyleCast: false
|
||||||
|
# SpaceAfterLogicalNot: false
|
||||||
|
# SpaceAfterTemplateKeyword: true
|
||||||
|
# SpaceBeforeAssignmentOperators: true
|
||||||
|
# SpaceBeforeCaseColon: false
|
||||||
|
# SpaceBeforeCpp11BracedList: false
|
||||||
|
# SpaceBeforeCtorInitializerColon: true
|
||||||
|
# SpaceBeforeInheritanceColon: true
|
||||||
|
# SpaceBeforeParens: ControlStatements
|
||||||
|
# SpaceAroundPointerQualifiers: Default
|
||||||
|
# SpaceBeforeRangeBasedForLoopColon: true
|
||||||
|
# SpaceInEmptyParentheses: false
|
||||||
|
# SpacesBeforeTrailingComments: 1
|
||||||
|
# SpaceInEmptyBlock: false
|
||||||
|
# SpaceInEmptyParentheses: false
|
||||||
|
# SpacesBeforeTrailingComments: 1
|
||||||
|
# SpacesInAngles: Never
|
||||||
|
# SpacesInContainerLiterals: true
|
||||||
|
# SpacesInConditionalStatement: false
|
||||||
|
# SpacesInContainerLiterals: true
|
||||||
|
# SpacesInCStyleCastParentheses: false
|
||||||
|
## Pandemonium TODO: We'll want to use a min of 1, but we need to see how to fix
|
||||||
|
## our comment capitalization at the same time.
|
||||||
|
SpacesInLineCommentPrefix:
|
||||||
|
Minimum: 0
|
||||||
|
Maximum: -1
|
||||||
|
# SpacesInParentheses: false
|
||||||
|
# SpacesInSquareBrackets: false
|
||||||
|
# SpaceBeforeSquareBrackets: false
|
||||||
|
# BitFieldColonSpacing: Both
|
||||||
|
# StatementAttributeLikeMacros:
|
||||||
|
# - Q_EMIT
|
||||||
|
# StatementMacros:
|
||||||
|
# - Q_UNUSED
|
||||||
|
# - QT_REQUIRE_VERSION
|
||||||
|
TabWidth: 4
|
||||||
|
# UseCRLF: false
|
||||||
|
UseTab: Always
|
||||||
|
# WhitespaceSensitiveMacros:
|
||||||
|
# - STRINGIZE
|
||||||
|
# - PP_STRINGIZE
|
||||||
|
# - BOOST_PP_STRINGIZE
|
||||||
|
# - NS_SWIFT_NAME
|
||||||
|
# - CF_SWIFT_NAME
|
||||||
|
---
|
||||||
|
### C++ specific config ###
|
||||||
|
Language: Cpp
|
||||||
|
Standard: c++14
|
||||||
|
---
|
||||||
|
### ObjC specific config ###
|
||||||
|
Language: ObjC
|
||||||
|
# ObjCBinPackProtocolList: Auto
|
||||||
|
ObjCBlockIndentWidth: 4
|
||||||
|
# ObjCBreakBeforeNestedBlockParam: true
|
||||||
|
# ObjCSpaceAfterProperty: false
|
||||||
|
# ObjCSpaceBeforeProtocolList: true
|
||||||
|
---
|
||||||
|
### Java specific config ###
|
||||||
|
Language: Java
|
||||||
|
# BreakAfterJavaFieldAnnotations: false
|
||||||
|
JavaImportGroups: ['net.relintai.pandemonium', 'android', 'androidx', 'com.android', 'com.google', 'java', 'javax']
|
||||||
|
...
|
36
.gitignore
vendored
Normal file
36
.gitignore
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
engine
|
||||||
|
pandemonium_engine
|
||||||
|
modules/*
|
||||||
|
logs/*
|
||||||
|
|
||||||
|
__pycache__/**
|
||||||
|
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
*.d
|
||||||
|
*.o
|
||||||
|
*.meta
|
||||||
|
game/.import/**
|
||||||
|
game/.prop_tool_temp/**
|
||||||
|
.sconsign.dblite
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
export/**
|
||||||
|
release/**
|
||||||
|
|
||||||
|
.vs/*
|
||||||
|
.kdev4/*
|
||||||
|
.vscode/*
|
||||||
|
|
||||||
|
TestRWTextures
|
||||||
|
|
||||||
|
_build/*
|
||||||
|
_binaries/*
|
||||||
|
game/android/build/*
|
||||||
|
|
||||||
|
*.blend1
|
||||||
|
.dir-locals.el
|
||||||
|
|
||||||
|
build.config
|
||||||
|
|
||||||
|
__pycache__/*
|
1
HEADS
Normal file
1
HEADS
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"engine": {"3.2": "94a0fc47f7b4e90f8973f9adbfd3312579ed2825", "master": "8c73e813134001e575b6f59e3b0100471c007410", "3.x": "c4864a0e5f73a375259503ea1485794a6aad6df7"}, "world_generator": {"master": "260c430f11b0b591eaf4714516419aa327d2842c"}, "entity_spell_system": {"master": "3536f01bacf5f54cefb32b768cd020a1f94d0ade"}, "ui_extensions": {"master": "80a3b96fc56991a0f88a1d441ed1e3cebaf3307a"}, "voxelman": {"master": "65485930a20f65844d496b4ba47dec5b6ed70b91"}, "texture_packer": {"master": "ae4d222fbaade063ed6f0bc9f3aaa53df68a7fed"}, "fastnoise": {"master": "46bb1f610bfb7171613b5c708d312bcf94e89356"}, "mesh_data_resource": {"master": "a062d871d49d954c5466b9de54b4075cb61cbef4"}, "procedural_animations": {"master": "f8aae42bf06b3936cc6bd24cb18e1c3ec9f78f4f"}, "ess_data": {"master": "3bd637fdd3304b64a18287a49a6b7387acf2f5de"}, "props": {"master": "983090d21a08ebed30a5ce06681269819ab12e48"}, "mesh_utils": {"master": "b52a261c31f04fad624e5cfbcdcc4a45d61136da"}, "broken_seals_module": {"master": "52c5a81350db1c29d375c63d95010260911ec034"}, "thread_pool": {"master": "0917511d04bb1aa308385b63ec88d3c182990628"}, "terraman": {"master": "c72d8fc03295588fc18c5168ce351bd0c321ec5f"}, "pandemonium_engine": {"master": "06e040120ac86a1a2bca6ba169fd24e04daf5e69"}}
|
173
SConstruct
Normal file
173
SConstruct
Normal file
@ -0,0 +1,173 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright (c) 2019-2021 Péter Magyar
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
|
import module_config
|
||||||
|
|
||||||
|
repository_index = 0
|
||||||
|
clone_command = 'git clone {0} {1}'
|
||||||
|
target_commits = {}
|
||||||
|
|
||||||
|
def setup_repository(data, clone_path, branch = 'master'):
|
||||||
|
cwd = os.getcwd()
|
||||||
|
|
||||||
|
full_path = cwd + clone_path + data[1] + '/'
|
||||||
|
|
||||||
|
if not os.path.isdir(full_path):
|
||||||
|
os.chdir(cwd + clone_path)
|
||||||
|
|
||||||
|
subprocess.call(clone_command.format(data[0][repository_index], data[1]), shell=True)
|
||||||
|
|
||||||
|
os.chdir(full_path)
|
||||||
|
|
||||||
|
subprocess.call('git reset', shell=True)
|
||||||
|
subprocess.call('git reset --hard', shell=True)
|
||||||
|
subprocess.call('git clean -f -d', shell=True)
|
||||||
|
subprocess.call('git checkout -B ' + branch + ' origin/' + branch, shell=True)
|
||||||
|
subprocess.call('git pull origin ' + branch, shell=True)
|
||||||
|
subprocess.call('git reset', shell=True)
|
||||||
|
subprocess.call('git reset --hard', shell=True)
|
||||||
|
|
||||||
|
target = ""
|
||||||
|
|
||||||
|
if data[1] in target_commits:
|
||||||
|
target = target_commits[data[1]][branch]
|
||||||
|
|
||||||
|
subprocess.call('git checkout -B ' + branch + ' ' + target, shell=True)
|
||||||
|
subprocess.call('git clean -f -d', shell=True)
|
||||||
|
subprocess.call('git reset', shell=True)
|
||||||
|
subprocess.call('git reset --hard', shell=True)
|
||||||
|
|
||||||
|
os.chdir(cwd)
|
||||||
|
|
||||||
|
|
||||||
|
def update_repository(data, clone_path, branch = 'master'):
|
||||||
|
cwd = os.getcwd()
|
||||||
|
|
||||||
|
full_path = cwd + clone_path + data[1] + '/'
|
||||||
|
|
||||||
|
if not os.path.isdir(full_path):
|
||||||
|
os.chdir(cwd + clone_path)
|
||||||
|
|
||||||
|
subprocess.call(clone_command.format(data[0][repository_index], data[1]), shell=True)
|
||||||
|
|
||||||
|
os.chdir(full_path)
|
||||||
|
|
||||||
|
subprocess.call('git reset', shell=True)
|
||||||
|
subprocess.call('git reset --hard', shell=True)
|
||||||
|
subprocess.call('git clean -f -d', shell=True)
|
||||||
|
subprocess.call('git checkout -B ' + branch + ' origin/' + branch, shell=True)
|
||||||
|
subprocess.call('git reset', shell=True)
|
||||||
|
subprocess.call('git reset --hard', shell=True)
|
||||||
|
subprocess.call('git clean -f -d', shell=True)
|
||||||
|
subprocess.call('git pull origin ' + branch, shell=True)
|
||||||
|
|
||||||
|
process = subprocess.Popen('git rev-parse HEAD', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
output = process.communicate()[0].decode().strip()
|
||||||
|
|
||||||
|
if data[1] not in target_commits:
|
||||||
|
target_commits[data[1]] = {}
|
||||||
|
|
||||||
|
target_commits[data[1]][branch] = output
|
||||||
|
|
||||||
|
os.chdir(cwd)
|
||||||
|
|
||||||
|
def validate_repository_origin(data, clone_path, branch = 'master'):
|
||||||
|
full_path = os.path.abspath(clone_path)
|
||||||
|
|
||||||
|
if not os.path.isdir(full_path):
|
||||||
|
return
|
||||||
|
|
||||||
|
cwd = os.getcwd()
|
||||||
|
os.chdir(full_path)
|
||||||
|
|
||||||
|
res = subprocess.run('git remote -v', shell=True, capture_output=True)
|
||||||
|
|
||||||
|
resstr = res.stdout.decode('ascii')
|
||||||
|
resarr = resstr.split("\n")
|
||||||
|
res_orig = []
|
||||||
|
|
||||||
|
for l in resarr:
|
||||||
|
if "origin" in l:
|
||||||
|
res_orig.append(l)
|
||||||
|
|
||||||
|
if len(res_orig) == 0:
|
||||||
|
print("The repository " + clone_path + " does not seem to have an origin remote. Adding it.")
|
||||||
|
|
||||||
|
subprocess.call('git remote add origin ' + data[0][repository_index], shell=True)
|
||||||
|
|
||||||
|
os.chdir(cwd)
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
for l in data[0]:
|
||||||
|
for ll in res_orig:
|
||||||
|
if l in ll:
|
||||||
|
os.chdir(cwd)
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
rind = 0
|
||||||
|
|
||||||
|
if 'git@' in res_orig[0]:
|
||||||
|
rind = 1
|
||||||
|
|
||||||
|
subprocess.call('git remote remove origin', shell=True)
|
||||||
|
subprocess.call('git remote add origin ' + data[0][rind], shell=True)
|
||||||
|
subprocess.call('git pull origin', shell=True)
|
||||||
|
subprocess.call('git checkout origin/' + branch, shell=True)
|
||||||
|
|
||||||
|
print('Updated git remote origin in ' + clone_path)
|
||||||
|
|
||||||
|
os.chdir(cwd)
|
||||||
|
|
||||||
|
def update_engine():
|
||||||
|
validate_repository_origin(module_config.engine_repository, './pandemonium_engine/', module_config.pandemonium_branch)
|
||||||
|
update_repository(module_config.engine_repository, '/', module_config.pandemonium_branch)
|
||||||
|
|
||||||
|
engine_abspath = os.path.abspath(module_config.engine_repository[1])
|
||||||
|
|
||||||
|
if not os.path.isdir(engine_abspath):
|
||||||
|
if not os.path.isfile('./HEADS'):
|
||||||
|
print("Error! HEADS file doesn't exists! Exiting.")
|
||||||
|
exit()
|
||||||
|
|
||||||
|
with open('./HEADS', 'r') as infile:
|
||||||
|
target_commits = json.load(infile)
|
||||||
|
|
||||||
|
if 'repository_type=ssh' in sys.argv:
|
||||||
|
repository_index = 1
|
||||||
|
|
||||||
|
setup_repository(module_config.engine_repository, '/', module_config.pandemonium_branch)
|
||||||
|
else:
|
||||||
|
if not os.path.isfile('pandemonium_engine/misc/scripts_app/SConstruct'):
|
||||||
|
update_engine()
|
||||||
|
|
||||||
|
|
||||||
|
SConscript("pandemonium_engine/misc/scripts_app/SConstruct")
|
||||||
|
|
||||||
|
|
45
build.config.example
Normal file
45
build.config.example
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Copyright (c) 2019-2021 Péter Magyar
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
|
||||||
|
# Rename this file to build.config to use it
|
||||||
|
|
||||||
|
# Lines starting with # are comments. (Only works at the start of the line!)
|
||||||
|
|
||||||
|
# Note:
|
||||||
|
# ~ will be converted to %userprofile% on windows
|
||||||
|
# / will be converted to \ on windows
|
||||||
|
# so you don't have to worry about it
|
||||||
|
|
||||||
|
# Visual studio related setup:
|
||||||
|
visual_studio_call_vcvarsall True
|
||||||
|
visual_studio_vcvarsall_path C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build/vcvarsall.bat
|
||||||
|
visual_studio_arch amd64
|
||||||
|
|
||||||
|
# You can export variables with the export keyword
|
||||||
|
# You can run commands with the run keywords
|
||||||
|
# <export/run> <target platform> <exported variable/command>
|
||||||
|
# available export/run targets: global, linux, windows, android, javascript
|
||||||
|
|
||||||
|
export global SCONS_CACHE=~/.scons_cache
|
||||||
|
export global SCONS_CACHE_LIMIT=5000
|
||||||
|
|
||||||
|
export android ANDROID_HOME=~/SDKs/Android/SDK
|
||||||
|
|
||||||
|
run javascript source ~/SDKs/emsdk/emsdk_env.sh
|
6
editor.bat
Normal file
6
editor.bat
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
copy "pandemonium_engine\bin\pandemonium.windows.opt.tools.64.exe" "pandemonium_engine\bin\run_pandemonium.windows.opt.tools.64.exe" /y
|
||||||
|
copy "pandemonium_engine\bin\pandemonium.windows.opt.tools.64.pdb" "pandemonium_engine\bin\run_pandemonium.windows.opt.tools.64.pdb" /y
|
||||||
|
copy "pandemonium_engine\bin\pandemonium.windows.opt.tools.64.exp" "pandemonium_engine\bin\run_pandemonium.windows.opt.tools.64.exp" /y
|
||||||
|
|
||||||
|
cmd /c pandemonium_engine\bin\run_pandemonium.windows.opt.tools.64.exe
|
6
editor.sh
Executable file
6
editor.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -u ./pandemonium_engine/bin/pandemonium.x11.opt.tools.64 ./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH=`pwd`/pandemonium_engine/bin/
|
||||||
|
./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64 -v
|
4
export_all.sh
Executable file
4
export_all.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
./pandemonium_engine/misc/scripts_app/export_all.sh broken_seals bs $1
|
||||||
|
|
3
game/Main.tscn
Normal file
3
game/Main.tscn
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[gd_scene format=2]
|
||||||
|
|
||||||
|
[node name="Node" type="Node"]
|
7
game/default_env.tres
Normal file
7
game/default_env.tres
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[gd_resource type="Environment" load_steps=2 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=1]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 1 )
|
BIN
game/icon.png
Normal file
BIN
game/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
35
game/icon.png.import
Normal file
35
game/icon.png.import
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://icon.png"
|
||||||
|
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
24
game/project.pandemonium
Normal file
24
game/project.pandemonium
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
; Engine configuration file.
|
||||||
|
; It's best edited using the editor UI and not directly,
|
||||||
|
; since the parameters that go here are not all obvious.
|
||||||
|
;
|
||||||
|
; Format:
|
||||||
|
; [section] ; section goes between []
|
||||||
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
|
config_version=4
|
||||||
|
|
||||||
|
[application]
|
||||||
|
|
||||||
|
config/name="Pandemonium CMS"
|
||||||
|
config/icon="res://icon.png"
|
||||||
|
|
||||||
|
[physics]
|
||||||
|
|
||||||
|
common/enable_pause_aware_picking=true
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
vram_compression/import_etc=true
|
||||||
|
vram_compression/import_etc2=false
|
||||||
|
environment/default_environment="res://default_env.tres"
|
6
ged.sh
Executable file
6
ged.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -u ./pandemonium_engine/bin/pandemonium.x11.opt.tools.64 ./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH=`pwd`/pandemonium_engine/bin/
|
||||||
|
./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64 -e --path ./game/
|
6
leditor.sh
Executable file
6
leditor.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -u ./pandemonium_engine/bin/pandemonium.x11.opt.tools.64.llvm ./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64.llvm
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH=`pwd`/pandemonium_engine/bin/
|
||||||
|
./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64.llvm
|
6
lged.sh
Executable file
6
lged.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -u ./pandemonium_engine/bin/pandemonium.x11.opt.tools.64.llvm ./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64.llvm
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH=`pwd`/pandemonium_engine/bin/
|
||||||
|
./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64.llvm -e --path ./game/
|
4
make_release.sh
Executable file
4
make_release.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
./pandemonium_engine/misc/scripts_app/make_release.sh broken_seals bs $1
|
||||||
|
|
20
module_config.py
Normal file
20
module_config.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
pandemonium_branch = 'master'
|
||||||
|
|
||||||
|
engine_repository = [ ['https://github.com/Relintai/pandemonium_engine.git', 'git@github.com:Relintai/pandemonium_engine.git'], 'pandemonium_engine', '' ]
|
||||||
|
|
||||||
|
module_repositories = [
|
||||||
|
]
|
||||||
|
|
||||||
|
removed_modules = [
|
||||||
|
]
|
||||||
|
|
||||||
|
addon_repositories = [
|
||||||
|
]
|
||||||
|
|
||||||
|
third_party_addon_repositories = [
|
||||||
|
]
|
||||||
|
|
||||||
|
custom_module_folders = ""
|
||||||
|
|
||||||
|
slim_args = 'module_webm_enabled=no module_arkit_enabled=no module_visual_script_enabled=no module_gdnative_enabled=no module_mobile_vr_enabled=no module_theora_enabled=no module_xatlas_unwrap_enabled=no'
|
6
play.sh
Executable file
6
play.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cp -u ./pandemonium_engine/bin/pandemonium.x11.opt.tools.64 ./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64
|
||||||
|
|
||||||
|
export LD_LIBRARY_PATH=`pwd`/pandemonium_engine/bin/
|
||||||
|
./pandemonium_engine/bin/run.pandemonium.x11.opt.tools.64 -v --path ./game/
|
Loading…
Reference in New Issue
Block a user