Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 28 Aug 2009
Offline Last Active Yesterday, 11:52 AM

Topics I've Started

Angelscript Operators

31 December 2014 - 08:46 PM

I was wondering if there isn't a way to adding different operators for 

<= opCmpLE Lesser Equal

opCmpL Lesser

opCmpG Greater

>= opCmpGE Greater Equal

== opEqual

!= opInequal


or is there a way of


to differ between them being either of these?

const parameter

31 December 2014 - 12:18 PM

I have a question regarding const in Angelscript with const parameters


I notice that 

MYASSERT(e->RegisterObjectMethod("Mouse", "void pos(const Vector2 &in)", asMETHODPR(Mouse, pos, (C Vector2 &), void), asCALL_THISCALL) >= 0);

I still have to specify &in else it will complain about &inout, is there anyway for auto handling that if const for the parameter is specified a single & would be done as &in for you? as I doubt anyone want to pass &inout for a const parameter anyway.

MYASSERT(e->RegisterObjectMethod("Mouse", "void pos(const Vector2 &)", asMETHODPR(Mouse, pos, (C Vector2 &), void), asCALL_THISCALL) >= 0);

Exposing operator function pointer

29 December 2014 - 03:13 PM

I was wondering how I would go about registering a function pointer operator like


Object& operator()                       (void (&func)()) ;


at the moment I have

MYASSERT(e->RegisterObjectMethod(CN, CN+" &opCall()(void (&func)())", asMETHODPR(Object, operator(), (void(&func)()), Object&), asCALL_THISCALL) >= 0);

I am getting these errors


System function (1, 24)
ERROR:  : 
Expected '<end of file>'
Has Compile Errors: True

System function (1, 24)
ERROR:  : 
Instead found '('
Has Compile Errors: True

 (0, 0)
ERROR:  : 
Failed in call to function 'RegisterObjectMethod' with 'Object' and 'Object &opCall()(void (&func)())' (Code: -10)
Has Compile Errors: True

Version changes on 16bit string structures?

14 August 2014 - 02:58 AM

This is a change I've noticed in versions

2.27.0 WIP

2.29.1 WIP


The difference I am having in these two is that in 

2.27.0 WIP 

I can register a 16bit char string class and it works perfectly.


2.29.1 WIP

registering the same string factory, I am getting odd results of the strings. Lots of asian characters.


Log(CString &)

Log("Testing Script");


2.27.0 WIP = Testing Script

2.29.1 WIP= Testing Script눀Ϣ⳼



Log("Testing Scrip");


2.27.0 WIP = Testing Scrip

2.29.1 WIP= Testing Scrip


anyone got tips on how to solve this? Kinda hard doing 8bit chars replacement when all of my application uses 16bit strings.

Angelscript stdstring

09 February 2014 - 11:32 PM

Angelscript in the latest revisions seems to have snuck in a memory leak into stdstring implementation. Atleast Esenthel Engine's memory leak detector seems to find that somewhere inside it is when using string inside angelscript.