• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

paul424

Members
  • Content count

    14
  • Joined

  • Last visited

Community Reputation

119 Neutral

About paul424

  • Rank
    Member
  1. Hi, I really hoped to get some answer from AS's maintainer and it's great ,      Your newer and newer version keeps compiler unwise people from getting build http://sourceforge.net/p/opendungeons/git/commit_browser . There is always compiler flag or code construct which must be changed , that's why I am keep asked to move away from AS and hardcode tmp into C++ what's in scripts  or fix it somehow . The verison 2 28 0 is quite misleading -- it suggests quite mature project while it;s not . http://www.angelcode.com/angelscript/downloads.html suggests there is often major version switch , that is as I suppose, compatiblity breaking with the previous ones. If you could change your model , to keep one major version  with binary ( or interface compatiblity or how would you call it ) between minor versions of each parent major version  ....       No, I try to keep pace with the newest AS , so why other software devels do the same ? Why not insist to have working last two, three versions -  2.28 2 27 and 2 26 ?    EDIT : Another argument : having sent OD's sources to a package maintainer, he remarked : Whaatt you bring the AS into your sources ?! Why you just link to a dynamic library ;) ???
  2. No IDea >>wan't<< does mean .   I just wanted to say someone should rock the distro maintainers so they keep AS in repos.
  3. I see a bad point of using AS when developing a game : most of the linux distros ( if not all ) haven't got  angelscirpt  library packaged . What I have to do is to inject all the AS source code into my project and build with my project's make files , which has obvious cons . On OpenSuse there is packaging service done by users ( called BuildService ) and only there I found some old version of AS lib .I am not affiliated  with packaing community of any distro. What would have to happen to distro maintainers so they watch out and package every new version of AS ? Maybe you should start reminding mianteiners that many poeple would LOVE to have AS in proper repositories to be included ...
  4. Kind request for fixture : IF someone minds helping with the Open Source game would be nice :    I ported to the Ogre3d 1 9 0  and it changed the supported GLSL version as well . When running my program I get in logs : 18:13:28: Mesh: Loading TrainingDummy.mesh. 18:13:28: WARNING: TrainingDummy.mesh is an older format ([MeshSerializer_v1.41]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool. 18:13:28: GLSL compiling: 6da4d564-9fdf-890a-3eea-3c5ed6f5d30a_VS 18:13:28: GLSL compiled: 18:13:28: GLSL compiling: ef58a9ca-ea15-742a-a132-a9ce9aadb389_FS 18:13:28: GLSL compiled: 18:13:28: Vertex Program:6da4d564-9fdf-890a-3eea-3c5ed6f5d30a_VS Fragment Program:ef58a9ca-ea15-742a-a132-a9ce9aadb389_FS, Error linking program: Vertex info ----------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 Fragment info ------------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 18:13:28: GLSL compiling: 97d5749b-ba6b-efbc-811a-f03dbd0f2b4b_VS 18:13:28: GLSL compiled: 18:13:28: GLSL compiling: b7c78427-e5e1-d889-d3d3-aec0af6db4a5_FS 18:13:28: GLSL compiled: 18:13:28: Vertex Program:97d5749b-ba6b-efbc-811a-f03dbd0f2b4b_VS Fragment Program:b7c78427-e5e1-d889-d3d3-aec0af6db4a5_FS, Error linking program: Vertex info ----------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 Fragment info ------------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 18:13:28: GLSL compiling: 7b99b784-b6ea-3a36-014a-19be738c3307_VS 18:13:28: GLSL compiled: 18:13:28: GLSL compiling: a49ca1d7-9f0a-1f66-73fe-04b53c0aa653_FS 18:13:28: GLSL compiled: 18:13:28: Vertex Program:7b99b784-b6ea-3a36-014a-19be738c3307_VS Fragment Program:a49ca1d7-9f0a-1f66-73fe-04b53c0aa653_FS, Error linking program: Vertex info ----------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 Fragment info ------------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 18:13:30: GLSL compiling: 72233aa9-b72d-829e-702f-4cd64c1ea976_VS 18:13:30: GLSL compiled: 18:13:30: GLSL compiling: 7c24e754-1f05-fa68-61fc-981c653e8dc1_FS 18:13:30: GLSL compiled: 18:13:30: Vertex Program:72233aa9-b72d-829e-702f-4cd64c1ea976_VS Fragment Program:7c24e754-1f05-fa68-61fc-981c653e8dc1_FS, Error linking program: Vertex info ----------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 Fragment info ------------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 18:13:30: GLSL compiling: f2e2321c-11ad-06e4-86c1-d8be5bfcdf78_VS 18:13:30: GLSL compiled: 18:13:30: GLSL compiling: 69f59e27-495f-6c94-7ac0-f202d0860021_FS 18:13:30: GLSL compiled: 18:13:30: Vertex Program:f2e2321c-11ad-06e4-86c1-d8be5bfcdf78_VS Fragment Program:69f59e27-495f-6c94-7ac0-f202d0860021_FS, Error linking program: Vertex info ----------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 Fragment info ------------- 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(2) : error C0204: version directive must be first statement and may not be repeated 0(197) : error C7533: global function texture1D is deprecated after version 120 0(228) : error C7533: global function texture3D is deprecated after version 120 0(236) : error C7533: global function textureCube is deprecated after version 120 The current svn branch path for for those  scripts is http://sourceforge.net/p/opendungeons/svn/HEAD/tree/media/materials/RTShaderLib/   Please someone make those scripts GLSL version 4.4 compilant .  
  5. From some time , the console in OpenDungeons GPL game , development branch does not work at all , the bug seems to be in     context->Prepare(builder->GetModule()->GetFunctionByDecl(             "void executeConsoleCommand(string &in, string[] &in)")); And especially : builder->GetModule()->GetFunctionByDecl(             "void executeConsoleCommand(string &in, string[] &in)")     seeems to return NULL value. Althought function is "void executeConsoleCommand(string &in, string[] &in)" is defined in proper *.as file . Here's repo : http://sourceforge.net/p/opendungeons/git/ci/development/tree/ . Scripts are in script dir, source is in source dir ;) .   Is there any way I can check whether my code is syntax valid without running the AS c++ machine ? ( I mean cmd line tool ) . IF it;s too simple , I am sorry , but I don't have time for another position for another subystem maintainer. ( Hey , any dude with AS knowledge would be welcome in OD team ) .   EDIT : Err wait I have compile time errors in console.as ;)
  6. Thing is , I started writing some fancy functions for map modification, which would be called by various Game parts, especially the console and AS :     TileContainer* create(int x , int y , Tile::TileType tt );     TileContainer* copy(TileContainer* tc1 , TileContainer* tc2 );     TileContainer* embed(TileContainer* tc1 , TileContainer* tc2 );     TileContainer* rotate90(TileContainer* tc );     TileContainer* reflectX(TileContainer* tc);     TileContainer* reflectY(TileContainer* tc);     TileContainer* tilePermute(TileContainer* t, int x , int y , Tile::TileType tt );     TileContainer* clone(TileContainer* tc );     TileContainer* tileReplace( TileContainer* tc , Tile::TileType tt1, Tile::TileType tt2  );   That's not only such set of functions , but it illustrates well the problem : How to compute any expression like f(g(h(4 + 5 ) ) ) for which some of f,g,h ... comes from the binary some from AS ? How do I extend that so I have mini-language at Console  ? The first concrete question is : How do I get abstract tree of such expr ? Do I use the AS or use some 3rd lib like boost and there get parser/ lexer for it ?
  7. Anreas Jonsson : I just downloaded the newest trunk -- rev 1618 and it compiles fine , thanks a  lot :)
  8.  echo . | g++ -dM -E empty.cpp #define __DBL_MIN_EXP__ (-1021) #define __UINT_LEAST16_MAX__ 65535 #define __ATOMIC_ACQUIRE 2 #define __FLT_MIN__ 1.17549435082228750797e-38F #define __UINT_LEAST8_TYPE__ unsigned char #define __INTMAX_C(c) c ## LL #define __CHAR_BIT__ 8 #define __UINT8_MAX__ 255 #define __i586 1 #define __WINT_MAX__ 4294967295U #define __ORDER_LITTLE_ENDIAN__ 1234 #define __SIZE_MAX__ 4294967295U #define __WCHAR_MAX__ 2147483647L #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1 #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1 #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1 #define __DBL_DENORM_MIN__ double(4.94065645841246544177e-324L) #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1 #define __GCC_ATOMIC_CHAR_LOCK_FREE 2 #define __FLT_EVAL_METHOD__ 2 #define __unix__ 1 #define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2 #define __UINT_FAST64_MAX__ 18446744073709551615ULL #define __SIG_ATOMIC_TYPE__ int #define __DBL_MIN_10_EXP__ (-307) #define __FINITE_MATH_ONLY__ 0 #define __GNUC_PATCHLEVEL__ 1 #define __UINT_FAST8_MAX__ 255 #define __DEC64_MAX_EXP__ 385 #define __INT8_C(c) c #define __UINT_LEAST64_MAX__ 18446744073709551615ULL #define __SHRT_MAX__ 32767 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __UINT_LEAST8_MAX__ 255 #define __GCC_ATOMIC_BOOL_LOCK_FREE 2 #define __UINTMAX_TYPE__ long long unsigned int #define __linux 1 #define __DEC32_EPSILON__ 1E-6DF #define __unix 1 #define __UINT32_MAX__ 4294967295U #define __LDBL_MAX_EXP__ 16384 #define __WINT_MIN__ 0U #define __linux__ 1 #define __SCHAR_MAX__ 127 #define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1) #define __INT64_C(c) c ## LL #define __DBL_DIG__ 15 #define __GCC_ATOMIC_POINTER_LOCK_FREE 2 #define __SIZEOF_INT__ 4 #define __SIZEOF_POINTER__ 4 #define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2 #define __USER_LABEL_PREFIX__ #define __STDC_HOSTED__ 1 #define __LDBL_HAS_INFINITY__ 1 #define __FLT_EPSILON__ 1.19209289550781250000e-7F #define __GXX_WEAK__ 1 #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __DEC32_MAX__ 9.999999E96DF #define __INT32_MAX__ 2147483647 #define __SIZEOF_LONG__ 4 #define __UINT16_C(c) c #define __DECIMAL_DIG__ 21 #define __gnu_linux__ 1 #define __LDBL_HAS_QUIET_NAN__ 1 #define __GNUC__ 4 #define __GXX_RTTI 1 #define __FLT_HAS_DENORM__ 1 #define __SIZEOF_LONG_DOUBLE__ 12 #define __BIGGEST_ALIGNMENT__ 16 #define __DBL_MAX__ double(1.79769313486231570815e+308L) #define __INT_FAST32_MAX__ 2147483647 #define __DBL_HAS_INFINITY__ 1 #define __INT64_MAX__ 9223372036854775807LL #define __DEC32_MIN_EXP__ (-94) #define __INT_FAST16_TYPE__ int #define __LDBL_HAS_DENORM__ 1 #define __cplusplus 199711L #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL #define __INT_LEAST32_MAX__ 2147483647 #define __DEC32_MIN__ 1E-95DF #define __pentium 1 #define __DEPRECATED 1 #define __DBL_MAX_EXP__ 1024 #define __DEC128_EPSILON__ 1E-33DL #define __PTRDIFF_MAX__ 2147483647 #define __GNUG__ 4 #define __LONG_LONG_MAX__ 9223372036854775807LL #define __SIZEOF_SIZE_T__ 4 #define __SIZEOF_WINT_T__ 4 #define __GCC_HAVE_DWARF2_CFI_ASM 1 #define __GXX_ABI_VERSION 1002 #define __FLT_MIN_EXP__ (-125) #define __INT_FAST64_TYPE__ long long int #define __DBL_MIN__ double(2.22507385850720138309e-308L) #define __FLT_MIN_10_EXP__ (-37) #define __DECIMAL_BID_FORMAT__ 1 #define __DEC128_MIN__ 1E-6143DL #define __REGISTER_PREFIX__ #define __UINT16_MAX__ 65535 #define __DBL_HAS_DENORM__ 1 #define __UINT8_TYPE__ unsigned char #define __NO_INLINE__ 1 #define __i386 1 #define __FLT_MANT_DIG__ 24 #define __i586__ 1 #define __VERSION__ "4.7.1 20120723 [gcc-4_7-branch revision 189773]" #define __UINT64_C(c) c ## ULL #define __GCC_ATOMIC_INT_LOCK_FREE 2 #define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__ #define __INT32_C(c) c #define __DEC64_EPSILON__ 1E-15DD #define __ORDER_PDP_ENDIAN__ 3412 #define __DEC128_MIN_EXP__ (-6142) #define __INT_FAST32_TYPE__ int #define __UINT_LEAST16_TYPE__ short unsigned int #define unix 1 #define __INT16_MAX__ 32767 #define __i386__ 1 #define __SIZE_TYPE__ unsigned int #define __UINT64_MAX__ 18446744073709551615ULL #define __INT8_TYPE__ signed char #define __ELF__ 1 #define __FLT_RADIX__ 2 #define __INT_LEAST16_TYPE__ short int #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __UINTMAX_C(c) c ## ULL #define __SIG_ATOMIC_MAX__ 2147483647 #define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2 #define __SIZEOF_PTRDIFF_T__ 4 #define __pentium__ 1 #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF #define __INT_FAST16_MAX__ 2147483647 #define __UINT_FAST32_MAX__ 4294967295U #define __UINT_LEAST64_TYPE__ long long unsigned int #define __FLT_HAS_QUIET_NAN__ 1 #define __FLT_MAX_10_EXP__ 38 #define __LONG_MAX__ 2147483647L #define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL #define __FLT_HAS_INFINITY__ 1 #define __UINT_FAST16_TYPE__ unsigned int #define __DEC64_MAX__ 9.999999999999999E384DD #define __CHAR16_TYPE__ short unsigned int #define __PRAGMA_REDEFINE_EXTNAME 1 #define __INT_LEAST16_MAX__ 32767 #define __DEC64_MANT_DIG__ 16 #define __UINT_LEAST32_MAX__ 4294967295U #define __GCC_ATOMIC_LONG_LOCK_FREE 2 #define __INT_LEAST64_TYPE__ long long int #define __INT16_TYPE__ short int #define __INT_LEAST8_TYPE__ signed char #define __DEC32_MAX_EXP__ 97 #define __INT_FAST8_MAX__ 127 #define __INTPTR_MAX__ 2147483647 #define linux 1 #define __EXCEPTIONS 1 #define __LDBL_MANT_DIG__ 64 #define __DBL_HAS_QUIET_NAN__ 1 #define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1) #define __INTPTR_TYPE__ int #define __UINT16_TYPE__ short unsigned int #define __WCHAR_TYPE__ long int #define __SIZEOF_FLOAT__ 4 #define __UINTPTR_MAX__ 4294967295U #define __DEC64_MIN_EXP__ (-382) #define __INT_FAST64_MAX__ 9223372036854775807LL #define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1 #define __FLT_DIG__ 6 #define __UINT_FAST64_TYPE__ long long unsigned int #define __INT_MAX__ 2147483647 #define __INT64_TYPE__ long long int #define __FLT_MAX_EXP__ 128 #define __DBL_MANT_DIG__ 53 #define __INT_LEAST64_MAX__ 9223372036854775807LL #define __DEC64_MIN__ 1E-383DD #define __WINT_TYPE__ unsigned int #define __UINT_LEAST32_TYPE__ unsigned int #define __SIZEOF_SHORT__ 2 #define __LDBL_MIN_EXP__ (-16381) #define __INT_LEAST8_MAX__ 127 #define __LDBL_MAX_10_EXP__ 4932 #define __ATOMIC_RELAXED 0 #define __DBL_EPSILON__ double(2.22044604925031308085e-16L) #define __UINT8_C(c) c #define __INT_LEAST32_TYPE__ int #define __SIZEOF_WCHAR_T__ 4 #define __UINT64_TYPE__ long long unsigned int #define __INT_FAST8_TYPE__ signed char #define __DBL_DECIMAL_DIG__ 17 #define __DEC_EVAL_METHOD__ 2 #define __ORDER_BIG_ENDIAN__ 4321 #define __UINT32_C(c) c ## U #define __INTMAX_MAX__ 9223372036854775807LL #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ #define __FLT_DENORM_MIN__ 1.40129846432481707092e-45F #define __INT8_MAX__ 127 #define __UINT_FAST32_TYPE__ unsigned int #define __CHAR32_TYPE__ unsigned int #define __FLT_MAX__ 3.40282346638528859812e+38F #define __INT32_TYPE__ int #define __SIZEOF_DOUBLE__ 8 #define __INTMAX_TYPE__ long long int #define i386 1 #define __DEC128_MAX_EXP__ 6145 #define __ATOMIC_CONSUME 1 #define __GNUC_MINOR__ 7 #define __UINTMAX_MAX__ 18446744073709551615ULL #define __DEC32_MANT_DIG__ 7 #define __DBL_MAX_10_EXP__ 308 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __INT16_C(c) c #define __STDC__ 1 #define __PTRDIFF_TYPE__ int #define __ATOMIC_SEQ_CST 5 #define __UINT32_TYPE__ unsigned int #define __UINTPTR_TYPE__ unsigned int #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD #define __DEC128_MANT_DIG__ 34 #define __LDBL_MIN_10_EXP__ (-4931) #define __SIZEOF_LONG_LONG__ 8 #define __GCC_ATOMIC_LLONG_LOCK_FREE 2 #define __LDBL_DIG__ 18 #define __FLT_DECIMAL_DIG__ 9 #define __UINT_FAST16_MAX__ 4294967295U #define __GNUC_GNU_INLINE__ 1 #define __GCC_ATOMIC_SHORT_LOCK_FREE 2 #define __UINT_FAST8_TYPE__ unsigned char #define _GNU_SOURCE 1 #define __ATOMIC_ACQ_REL 4 #define __ATOMIC_RELEASE 3  
  9. Sorry for not showing my config, you can go wacko with what you have said on what forum . I have had compiled this project several dozen of times -- and never had issues with AS. Function    asGetLibraryOptions() returns : AS_MAX_PORTABILITY AS_LINUX     uname -a : Linux linux-b3ln.site 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26 09:36:26 UTC 2012 (641c197) i686 i686 i386 GNU/Linux     Linux OpenSuse12.2   cat : /proc/cpuinfo processor    : 0 vendor_id    : GenuineIntel cpu family    : 6 model        : 15 model name    : Intel(R) Pentium(R) Dual  CPU  T3200  @ 2.00GHz stepping    : 13 microcode    : 0xa4 cpu MHz        : 2000.000 cache size    : 1024 KB physical id    : 0 siblings    : 2 core id        : 0 cpu cores    : 2 apicid        : 0 initial apicid    : 0 fdiv_bug    : no hlt_bug        : no f00f_bug    : no coma_bug    : no fpu        : yes fpu_exception    : yes cpuid level    : 10 wp        : yes flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm bogomips    : 3989.92 clflush size    : 64 cache_alignment    : 64 address sizes    : 36 bits physical, 48 bits virtual power management: processor    : 1 vendor_id    : GenuineIntel cpu family    : 6 model        : 15 model name    : Intel(R) Pentium(R) Dual  CPU  T3200  @ 2.00GHz stepping    : 13 microcode    : 0xa4 cpu MHz        : 1000.000 cache size    : 1024 KB physical id    : 0 siblings    : 2 core id        : 1 cpu cores    : 2 apicid        : 1 initial apicid    : 1 fdiv_bug    : no hlt_bug        : no f00f_bug    : no coma_bug    : no fpu        : yes fpu_exception    : yes cpuid level    : 10 wp        : yes flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm bogomips    : 3989.92 clflush size    : 64 cache_alignment    : 64 address sizes    : 36 bits physical, 48 bits virtual power management:   tom@linux-b3ln:~/Opendungeons/opendungeons> g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-suse-linux/4.7/lto-wrapper Target: i586-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp --disable-libitm --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=i586-suse-linux Thread model: posix gcc version 4.7.1 20120723 [gcc-4_7-branch revision 189773] (SUSE Linux)  
  10.     Created camera manager     *** Initialising script engine AngelScript ***     AS: (0, 0) : ERR :       Failed in call to function 'RegisterGlobalFunction' with 'int stringToInt(string &in)' (Code: -7)     OpenDungeons.bin: /home/tom/Opendungeons/opendungeons/source/ASWrapper.cpp:188: void ASWrapper::registerEverything(): Assertion `r >= 0' failed.     ./OpenDungeonsNoStdoutNoStderr: line 3:  7060 Aborted                 ./OpenDungeons.bin -7 is <a href="#notsupported" >asNOT_SUPPORTED</a> , For what IRC says it;'s calling convertion not supproted . That what happens on IA32. On AMD64 it works fine though .         r = engine->RegisterGlobalFunction(                 "int stringToInt(string &in)",                 asFUNCTION(Helper::stringToT<int>),                 asCALL_CDECL); assert(r >= 0);     For what I understood the asCall_CDECL is no longer a valid call conv. Why is that ? This happens on  ANGELSCRIPT_VERSION_STRING "2.25.0" I also tried upgrading to the newest one AS Version and it happens as well .
  11. Domains are maybe not as nessecery for their own being, but better would be system of quantifiers of events , as much possible orthogonal , like "Creature" , "Attack" , "Death", "Dissappear " etc.
  12. Domains where to allow on listening for intresting events caused by particular entities' group of interest. A noble example : after a creature falls dead we might want our minions to take it to mortuary . That is I would like to listen to all DeathEvent in Player1/Creatures/Mortal/*. Opposite of this would be subscribing each new minion to all exisiting creature DeathEvent, and subscribe whenever there is a new "mortal" creature as well.
  13. 0 views , 0 replies ? what's wrong with my post >_>
  14. I am working on opensource GPL3 game. [url="http://opendungeons.sourceforge.net/"]http://opendungeons.sourceforge.net/[/url] , new coders would be welcome. Now there's design question regarding Event System: We want to improve the game logic, that is program a new event system. I will just repost what's settled up already on [url="http://forum.freegamedev.net/viewtopic.php?f=45&t=3033"]http://forum.freegam...php?f=45&t=3033[/url]. From the discussion came the idea of the Publisher / Subscriber pattern + "domains": My current idea is to use the subscirbers / publishers model. Its similar to Observable pattern, but instead one subscribes to Events types, not Object's Events. For each Event would like to have both static and dynamic type. Static that is its's type would be resolved by belonging to the proper inherited class from Event. That is from Event we would have EventTile, EventCreature, EvenMapLoader, EventGameMap etc. From that there are of course subtypes like EventCreature would be EventKobold, EventKnight, EventTentacle etc. The listeners would collect the event from publishers, and send them subcribers , each of them would be a global singleton. The Listeners type hierachy would exactly mirror the type hierarchy of Events. In each constructor of Event type, the created instance would notify the proper listeners. That is when calling EventKnight the proper ctor would notify the Listeners : EventListener, CreatureLisener and KnightListener. The default action for an listner would be to notify all subscribers, but there would be some exceptions , like EventAttack would notify AttackListener which would dispatch event by the dynamic part ( that is the Creature pointer or hash). Any comments ? [source lang="cpp"] #include <vector> class Subscriber; class SubscriberAttack; class Event{ private: int foo; int bar; protected: // static std::vector<Publisher*> publishersList; static std::vector<Subscriber*> subscribersList; static std::vector<Event*> eventQueue; public: Event(){ eventQueue.push_back(this); } static int subscribe(Subscriber* ss); static int unsubscribe(Subscriber* ss); //static int reg_publisher(Publisher* pp); //static int unreg_publisher(Publisher* pp); }; // class Publisher{ // }; class Subscriber{ public: int (*newEvent) (Event* ee); Subscriber( ){ Event::subscribe(this); } Subscriber( int (*fp) (Event* ee) ):newEvent(fp){ Subscriber(); } ~Subscriber(){ Event::unsubscribe(this); } }; class EventAttack: Event{ private: int foo; int bar; protected: // static std::vector<Publisher*> publishersList; static std::vector<SubscriberAttack*> subscribersList; static std::vector<EventAttack*> eventQueue; public: EventAttack(){ eventQueue.push_back(this); } static int subscribe(SubscriberAttack* ss); static int unsubscribe(SubscriberAttack* ss); //static int reg_publisher(Publisher* pp); //static int unreg_publisher(Publisher* pp); }; class AttackSubscriber :Subscriber{ public: int (*newEvent) (EventAttack* ee); AttackSubscriber( ){ EventAttack::subscribe(this); } AttackSubscriber( int (*fp) (EventAttack* ee) ):newEventAttack(fp){ AttackSubscriber(); } ~AttackSubscriber(){ EventAttack::unsubscribe(this); } }; [/source] From that point, others wanted the Subject-Observer pattern, that is one would subscribe to all event types produced by particular object. That way it came out to add the domain system : [indent=1] Huh, to meet the ability to listen to particular game's object events, I though of introducing entity domains .[/indent] >>>> Domains are trees, which nodes are labeled by unique names for each level. ( like the www addresses ). Each Entity wanting to participate in our event system ( that is be able to publish / produce events ) should at least now its domain name. That would end up in Player1/Room/Treasury/#24 or Player1/Creature/Kobold/#3 producing events. The subscriber picks some part of a tree. For example by specifiing subtree with the root in one of the nodes like Player1/Room/* ,would subscribe us to all Players1's room's event, and Player1/Creature/Kobold/#3 would subscribe to Players' third kobold's event. Does such event system make sense to you ? I have many implementation details to ask as well, but first let's start some general discussion. <<<< Note1: Notice that in the case of a fight between two creatues fight , the creature being attacked would have to throw an event, becuase it is HE/SHE/IT who have its domain address. So that would be BeingAttackedEvent() etc. I will edit that post if some other reflections on this would come out. Note2: the existing class hierarchy might be used to get the domains addresses being build in constructor . In a ctor you would just add + ."className" to domain address. If you are in a class'es hierarchy leaf constructor one might use nextID , hash or any other charactteristic, just to make the addresses distinguishable . Note3:subscribing to all entity's Events would require knowledge of all possible events produced by this entity . This could be done in one function call, but information on E produced would have to be handled for every Entity. SmartNote4 : Finding proper subscribers in a tree would be easy. One would start in particular Leaf for example Player1/Creature/Kobold/#3 and go up one parent a time , notifiying each Subscriber in a Node ie. : Player1/Creature/Kobold/* , Player1/Creature/* , Player1/* etc, , up to a root that is /* . Note5: The Event system was needed to have some way of incorporating Angelscript code into application. So the Event dispatcher was to be a gate to A-script functions. But it came out to this one.