Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

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.

  • You cannot reply to this topic
16 replies to this topic

#1 Andreas Jonsson   Moderators   -  Reputation: 3292

Like
0Likes
Like

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

Sponsor:

#2 _Vicious_   Members   -  Reputation: 240

Like
0Likes
Like

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 :)

#3 FDsagizi   Members   -  Reputation: 514

Like
0Likes
Like

Posted 29 April 2012 - 11:50 AM

Thanks, Andreas!



#4 _Vicious_   Members   -  Reputation: 240

Like
0Likes
Like

Posted 29 April 2012 - 04:24 PM

Compilation of debug angelscript library in msvc9 is broken Posted Image

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.


#5 Andreas Jonsson   Moderators   -  Reputation: 3292

Like
0Likes
Like

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

#6 slicer4ever   Crossbones+   -  Reputation: 3480

Like
0Likes
Like

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   -  Reputation: 240

Like
0Likes
Like

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.

#8 Andreas Jonsson   Moderators   -  Reputation: 3292

Like
0Likes
Like

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

#9 Tozaka - strangism   Members   -  Reputation: 100

Like
0Likes
Like

Posted 30 April 2012 - 08:00 AM

Thank you!
I will try the latest version soon.

#10 _Vicious_   Members   -  Reputation: 240

Like
0Likes
Like

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."

#11 Andreas Jonsson   Moderators   -  Reputation: 3292

Like
0Likes
Like

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

#12 Andreas Jonsson   Moderators   -  Reputation: 3292

Like
0Likes
Like

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   -  Reputation: 240

Like
0Likes
Like

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.

#14 ThyReaper   Members   -  Reputation: 462

Like
0Likes
Like

Posted 30 April 2012 - 06:50 PM

I've updated our JIT compiler for 2.23.1.

#15 Andreas Jonsson   Moderators   -  Reputation: 3292

Like
0Likes
Like

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

#16 lwt   Members   -  Reputation: 101

Like
0Likes
Like

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 ...

#17 Andreas Jonsson   Moderators   -  Reputation: 3292

Like
0Likes
Like

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.



PARTNERS