• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# AngelScript 2.23.1 is here

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

16 replies to this topic

### #1Andreas Jonsson  Moderators

Posted 28 April 2012 - 08:44 AM

A new version is here. This release has been mostly focused on performance improvements and bug fixes, so there are not a lot of visible changes.

Especially the compatibility problems with Mac OS have been fixed. Apple had decided to change their compiler suite in the latest version of Mac OS X, and this made my code that has been working flawlessly for many years to break. As I do not have an up-to-date Mac it took a bit of trial and error to get things working again, but mainly thanks to Matt Bush, from Hitbox Team, who did a lot of testing for me, was I able to correct the problems.

Much of the performance improvements that has been made has been with the way the bytecode is generated. That together with the introduction of some new bytecode instructions, which replace frequently occurring bytecode sequences, should hopefully give a general performance boost for script execututions. I say hopefully, because it really depends on what your scripts look like.

Unfortunately the bytecode changes also means that the JIT compiler that Blind Mind Studios released in February needs to be updated before it can be used with this new version of AngelScript.

I've already contacted them, and they are working on getting the JIT compiler updated, in addition to further enhancements, e.g. support for 64bit Windows. Hopefully they will be able to complete that task soon.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

### #2_Vicious_  Members

Posted 28 April 2012 - 01:30 PM

Thanks, Andreas!

've been waiting for this version to be relased, so we can bundle it with the upcoming release of Warsow

### #3FDsagizi  Members

Posted 29 April 2012 - 11:50 AM

Thanks, Andreas!

### #4_Vicious_  Members

Posted 29 April 2012 - 04:24 PM

Compilation of debug angelscript library in msvc9 is broken

1>------ Build started: Project: angelscript, Configuration: Debug Win32 ------
1>Compiling...
1>as_atomic.cpp
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(171) : error C2008: '$' : unexpected in macro definition 1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(172) : error C2008: '$' : unexpected in macro definition
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(172) : warning C4005: '__' : macro redefinition
1>		C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(171) : see previous definition of '__'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(173) : error C2008: '$' : unexpected in macro definition 1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(173) : warning C4005: '__' : macro redefinition 1> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(172) : see previous definition of '__' 1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(174) : error C2008: '$' : unexpected in macro definition
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(174) : warning C4005: '__' : macro redefinition
1>		C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(173) : see previous definition of '__'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(175) : error C2008: '$' : unexpected in macro definition 1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\specstrings.h(175) : warning C4005: '__' : macro redefinition ... and so on  #define __$adt_prop(adt,prop)
#define __$adt_add_prop(adt,prop) #define __$adt_remove_prop(adt,prop)
#define __$adt_transfer_prop(arg) #define __$adt_type_props(typ)
#define __$volatile #define __$nonvolatile
#define __$possibly_notnulltermiated #endif // #if (_MSC_VER >= 1000) && !defined(__midl) && defined(_PREFAST_)  Release build compiles just fine. The breakage is caused by the fact that language extensions are disabled for the Debug build in C/C++ :: Language tab. Edited by _Vicious_, 29 April 2012 - 04:56 PM. ### #5Andreas Jonsson Moderators Posted 29 April 2012 - 06:06 PM Was this using the project from the sdk? If it was I'll have to fix it. AngelCode.com - game development and more - Reference DB - game developer references AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game ### #6slicer4ever GDNet+ Posted 29 April 2012 - 09:07 PM thanks Andreas, best scripting language out their imo=-) Check out https://www.facebook.com/LiquidGames for some great games made by me on the Playstation Mobile market. ### #7_Vicious_ Members Posted 30 April 2012 - 03:11 AM Was this using the project from the sdk? If it was I'll have to fix it. Yes, it was. ### #8Andreas Jonsson Moderators Posted 30 April 2012 - 07:45 AM Interesting. I use MSVC9 myself and I always work with the debug version. I wonder how this got through. Thanks for reporting it. I'll look into it. AngelCode.com - game development and more - Reference DB - game developer references AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game ### #9Tozaka - strangism Members Posted 30 April 2012 - 08:00 AM Thank you! I will try the latest version soon. ### #10_Vicious_ Members Posted 30 April 2012 - 09:09 AM Interesting. I use MSVC9 myself and I always work with the debug version. I wonder how this got through. Thanks for reporting it. I'll look into it. Rev 1161: "Fixed compiler warnings." ### #11Andreas Jonsson Moderators Posted 30 April 2012 - 11:24 AM Thanks. That must be the moment the problem was introduced, still I don't understand why this is not happening on my machine. It seems that my project is not equal to what is in the SVN for some reason, but that really shouldn't be possible as I always do diffs to verify differences in all files. I'll investigate further when I get home. AngelCode.com - game development and more - Reference DB - game developer references AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game ### #12Andreas Jonsson Moderators Posted 30 April 2012 - 02:38 PM The difference is with the Microsoft SDK version 6.0a. I have version 6.1 installed, which is why I didn't face the problem due to the disabled language extensions. In version 6.1 Microsoft corrected the problem with the specstrings.h header file by adding the following precompiler condition:  #if defined(_MSC_EXTENSIONS) || defined(_PREFAST_) || defined(OACR) #define __$adt_prop(adt,prop)               __declspec("SAL_adt("#adt","#prop")")
#define __$adt_add_prop(adt,prop) __declspec("SAL_add_adt_property("#adt","#prop")") #define __$adt_remove_prop(adt,prop)        __declspec("SAL_remove_adt_property("#adt","#prop")")
#define __$adt_transfer_prop(arg) __declspec("SAL_transfer_adt_property_from("#arg")") #define __$adt_type_props(typ)              __declspec("SAL_post_type("#typ")")
#define __$volatile __declspec("SAL_volatile") #define __$nonvolatile                      __declspec("SAL_nonvolatile")
#define __\$possibly_notnulltermiated        __declspec("SAL_RequiresZeroTermination(sometimes)")
#endif


Anyway, I'll re-enable the language extensions in the project settings to avoid this problem for others that use MS SDK 6.0a.

Regards,
Andreas
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

### #13_Vicious_  Members

Posted 30 April 2012 - 04:22 PM

Heh, turns out despite the fact I had v6.1 installed, v6.0 was still used by MSVC due to some bogus registry value. Thanks for the hint!

Anyway, it was weird to have this setting different for release and debug builds.

### #14ThyReaper  Members

Posted 30 April 2012 - 06:50 PM

I've updated our JIT compiler for 2.23.1.

### #15Andreas Jonsson  Moderators

Posted 01 May 2012 - 12:48 PM

Great. Thanks for letting us know.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

### #16lwt  Members

Posted 07 May 2012 - 06:55 PM

Should remove header file 'as_bytecodedef.h' in project of MSVC10 to prevent its 'check-file-missing' building ...

### #17Andreas Jonsson  Moderators

Posted 07 May 2012 - 07:05 PM

Done in revision 1299. Thanks.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.