Jump to content
  • Advertisement

Bertram25

Member
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

105 Neutral

About Bertram25

  • Rank
    Newbie
  1. Bertram25

    Compiler warnings with latest stable version

    Thanks Andreas,   I'll make sure to test all that once we've updated AS again.     As for the CMake module. It is working, as long as you're not using add-ons, which are to be added to the code, as you said. If you're willing to share a cmake module with the community, the code displayed there is yours and can be named FindAngelScript.cmake for instance: https://github.com/OpenDungeons/OpenDungeons/issues/2#issuecomment-61789318   In projects, people can use it by adding a cmake/module folder along their CMakeLists.txt file and copy the module file there.   Then, they can request to find the needed source and object like this: find_package(AngelScript REQUIRED)   The following variables will retain the list of object and needed include folder once invoked:   ${ANGELSCRIPT_LIBRARY} ${ANGELSCRIPT_INCLUDE_DIR}   Best regards,
  2. Bertram25

    Compiler warnings with latest stable version

    Hey there,   Akien has started working on the matter. See here for how it would be working: https://github.com/OpenDungeons/OpenDungeons/issues/2#issuecomment-61789318   It is based on kitWare's doc on how find modules are working in general. Akien has got a question abotu add-ons, though: Have you got any doc/piece of advice about this?   Best regards,
  3. Bertram25

    Compiler warnings with latest stable version

    Hi again,   There is another issue I'd like to discuss with you as Akien pointed out there: https://github.com/OpenDungeons/OpenDungeons/issues/2#issuecomment-61463719   It seems the Angel Script library hasn't got any version handling in its soname, making it difficult to build and handle as a system shared library. (See details in the github thorough comments from Akien)   We were wondering whether you would be open to do or accept modifications to AS so that the major version/or major.minor version parts are used and changed when some ABI change are done, at least when compiling using CMake? Also, Akien is planning to create a FindLibAngelScript.cmake module and we wondered whether you already have one or know whether such a module with an open-source license is existing. Would you then accept to take it in your source for general purpose?   Best regards,
  4. Bertram25

    Compiler warnings with latest stable version

    Thanks :)   Btw, we've made much more progress than publicly told, and are working toward the stable 0.4.9 release atm.   You can see much more up-to-date news here: http://forum.freegamedev.net/viewtopic.php?f=45&t=4765 (I try to put the latest rolling release used here to help our artist (among others) to test, try new models, balance the game, and have fun. ;])   And the commit log here: https://github.com/OpenDungeons/OpenDungeons/commits/development   Hopefully, we should be able to release this year, as the strongest desired features are now coded and we're more focusing on configurability and stability, and soon the AI. The actual and larger use of AS in OD will likely come with the next version, though.   Best regards,
  5. Bertram25

    Compiler warnings with latest stable version

    Here are the compilation warnings, except for strict-aliasing ones: [ 24%] Building CXX object CMakeFiles/angelscript.dir/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp.o Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp: In function ‘void RegisterScriptArray(asIScriptEngine*, bool)’: Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp:242:7: attention : unused variable ‘r’ [-Wunused-variable]    int r = engine->RegisterDefaultArrayType("array<T>"); assert( r >= 0 );        ^ Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp: In function ‘void RegisterScriptArray_Native(asIScriptEngine*)’: Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp:248:6: attention : variable ‘r’ set but not used [-Wunused-but-set-variable]   int r;       ^ Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp: In function ‘void RegisterScriptArray_Generic(asIScriptEngine*)’: Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptarray/scriptarray.cpp:1869:6: attention : variable ‘r’ set but not used [-Wunused-but-set-variable]   int r;       ^ [ 27%] Building CXX object CMakeFiles/angelscript.dir/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp.o Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp: In function ‘int ConfigEngineFromStream(asIScriptEngine*, std::istream&, const char*)’: Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:596:10: attention : enumeration value ‘asEP_ALTER_SYNTAX_NAMED_ARGS’ not handled in switch [-Wswitch]     switch( ep )           ^ Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:596:10: attention : enumeration value ‘asEP_DISABLE_INTEGER_DIVISION’ not handled in switch [-Wswitch] Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:596:10: attention : enumeration value ‘asEP_LAST_PROPERTY’ not handled in switch [-Wswitch] Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:785:95: attention : transtypage vers un pointeur depuis un entier de taille différente [-Wint-to-pointer-cast]     r = engine->RegisterGlobalProperty(decl.c_str(), (void*)(engine->GetGlobalPropertyCount()+1));                                                                                                ^ Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptbuilder/scriptbuilder.cpp: In function ‘std::string GetCurrentDir()’: Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptbuilder/scriptbuilder.cpp:925:7: attention : unused variable ‘buffer’ [-Wunused-variable]   char buffer[1024];        ^ Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp: In function ‘void RegisterStdString_Native(asIScriptEngine*)’: Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:533:6: attention : variable ‘r’ set but not used [-Wunused-but-set-variable]   int r;       ^ Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp: In function ‘void RegisterStdString_Generic(asIScriptEngine*)’: Projects/opendungeons/OpenDungeons/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:969:6: attention : variable ‘r’ set but not used [-Wunused-but-set-variable]   int r;       ^  
  6. Hey there,   I'm proudly representing the OpenDungeons Team and I first wanted to say that we're still using and planning to use AngelScript in our project.   Oln, aka oyvindln on github has recently updated the AS version used to the current stable one and we have seen a few compilation warnings that might be of interest.   Note that we're aware of the strict aliasing limitation there is concerning AS, and we won't bother you with such compiler warnings unless told.   (I'll copy them here shortly)   Best regards and thanks a lot for this project!   Bertram
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!