Page 1 of 1

AS: Wrong calling conversion on IA32 [ SOLVED ]

PostPosted: 13 Apr 2013, 19:09
by paul424
{l Code}: {l Select All Code}
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 .

{l Code}: {l Select All Code}
    r = engine->RegisterGlobalFunction(
            "int stringToInt(string &in)",
            asFUNCTION(Helper::stringToT<int>),
            asCALL_CDECL); assert(r >= 0);


Anyone who was implementing AS in this game ?

Re: AS: Wrong calling conversion on IA32

PostPosted: 13 Apr 2013, 23:33
by charlie
Player feedback?

Re: AS: Wrong calling conversion on IA32

PostPosted: 14 Apr 2013, 09:03
by paul424
Charlie , it's not me who changed this forum indexes grouping .

Re: AS: Wrong calling conversion on IA32

PostPosted: 14 Apr 2013, 09:39
by oln
Stefan was the one who put in the angelscript stuff, I don't know what happened to him though, he just disappeared.

I don't quite see why you put this under "od player feedback" either, woud make more sense to put it under "od development".

Re: AS: Wrong calling conversion on IA32

PostPosted: 22 Apr 2013, 11:02
by paul424
Reverted to the Head of AS SVN's trunk. Rev 1618 -- now works fine ...