Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bad behaviour #2120

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

Bloodknight
Copy link
Contributor

Add bad behaviour system

@slapin
Copy link

slapin commented Nov 12, 2017

I still can't understand how to fix this issue :(

[ 38%] Building CXX object Tools/CMake/CMakeFiles/dungeon.dir/__/__/Engine/source/BadBehavior/leaf/ScriptEval.cpp.o
In file included from /home/slapin/Torque3D/Engine/source/console/engineAPI.h:30:0,
                 from /home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:23:
/home/slapin/Torque3D/Engine/source/console/consoleTypes.h:51:5: warning: "_MSC_VER" is not defined [-Wundef]
 #if _MSC_VER >= 1911
     ^~~~~~~~
In file included from /home/slapin/Torque3D/Engine/source/console/consoleObject.h:49:0,
                 from /home/slapin/Torque3D/Engine/source/console/simObject.h:34,
                 from /home/slapin/Torque3D/Engine/source/console/engineAPI.h:42,
                 from /home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:23:
/home/slapin/Torque3D/Engine/source/console/engineFunctions.h:111:5: warning: "_MSC_VER" is not defined [-Wundef]
 #if _MSC_VER >= 1910
     ^~~~~~~~
In file included from /usr/include/string.h:32:0,
                 from /home/slapin/Torque3D/Engine/source/core/strings/stringFunctions.h:27,
                 from /home/slapin/Torque3D/Engine/source/core/stream/stream.h:33,
                 from /home/slapin/Torque3D/Engine/source/core/util/journal/journal.h:27,
                 from /home/slapin/Torque3D/Engine/source/core/util/journal/journaledSignal.h:27,
                 from /home/slapin/Torque3D/Engine/source/console/console.h:38,
                 from /home/slapin/Torque3D/Engine/source/console/dynamicTypes.h:27,
                 from /home/slapin/Torque3D/Engine/source/console/consoleTypes.h:27,
                 from /home/slapin/Torque3D/Engine/source/console/engineAPI.h:30,
                 from /home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:23:
/home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp: In static member function ‘static void BadBehavior::ScriptEval::initPersistFields()’:
/home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:44:69: warning: offsetof within non-standard-layout type ‘BadBehavior::ScriptEval’ is undefined [-Winvalid-offsetof]
    addField( "behaviorScript", TypeCommand, Offset(mBehaviorScript, ScriptEval),
                                                                      
/home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:44:45: note: in expansion of macro ‘Offset’
    addField( "behaviorScript", TypeCommand, Offset(mBehaviorScript, ScriptEval),
                                             ^~~~~~
/home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:47:99: warning: offsetof within non-standard-layout type ‘BadBehavior::ScriptEval’ is undefined [-Winvalid-offsetof]
    addField( "defaultReturnStatus", TYPEID< BadBehavior::Status >(), Offset(mDefaultReturnStatus, ScriptEval),
                                                                                                    
/home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:47:70: note: in expansion of macro ‘Offset’
    addField( "defaultReturnStatus", TYPEID< BadBehavior::Status >(), Offset(mDefaultReturnStatus, ScriptEval),
                                                                      ^~~~~~
In file included from /home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:23:0:
/home/slapin/Torque3D/Engine/source/console/engineAPI.h: In instantiation of ‘T EngineUnmarshallData<T>::operator()(const char*) const [with T = BadBehavior::Status]’:
/home/slapin/Torque3D/Engine/source/BadBehavior/leaf/ScriptEval.cpp:78:64:   required from here
/home/slapin/Torque3D/Engine/source/console/engineAPI.h:222:32: error: invalid initialization of non-const reference of type ‘S32& {aka int&}’ from an rvalue of type ‘S32 {aka int}’
       castConsoleTypeFromString( value, str );
       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.

@ghost
Copy link

ghost commented Dec 13, 2017

Maybe don't use this pull request when it is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants