Questions tagged [angelscript]

AngelScript is a free, open source, flexible, and cross-platform scripting library meant to be embedded in applications. The purpose is to provide an easy to use library that is powerful, but that isn't weighed down by a large amount of rarely used features.

AngelScript is a free, open source, flexible, and cross-platform scripting library meant to be embedded in applications. The purpose is to provide an easy to use library that is powerful, but that isn't weighed down by a large amount of rarely used features.

26 questions
0
votes
0 answers

Custom struct in AngelScript

Maybe somebody know. How can I send my custom c-struct, from my c-application to AngelScript-script? At the moment, I just use the standard types (char*, uint8_t) Best regards.
Max
  • 817
  • 1
  • 10
  • 29
0
votes
1 answer

Irony Reduce-Reduce Problems

I have been trying to figure out this same issue for almost 2 weeks now. At first it was shift-reduce errors now its reduce-reduce problems. I have tried doing it so many ways and now I have came to the point where I just need help. I've coded many…
0
votes
0 answers

Irony Shift Reduce Problems

I have been trying to figure out how to fix some shift reduce conflicts I have. I have looked around and found different topics on fixing it but it seems like no matter what I do I just can't seem to find a way to fix these issues. I am trying to…
0
votes
1 answer

Passing Variables from AngelScript to C++

I want to pass a variable from AngelScript to C++. I already managed to pass functions from AngelScript to C++ and vice versa. I also can pass variables from C++ to AngelScript, however I can't figure out how to do it the other way round. The manual…
Zydar
  • 85
  • 1
  • 8
0
votes
1 answer

Register assignment operator for glm::vec3 based value type in Angelscript

I have registered a Vec3 value type in Angelscript using: RegisterObjectType("Vec3", sizeof(glm::vec3), asOBJ_VALUE | asGetTypeTraits()); I have also registered a constructor and destructor function for that type. I have registered…
0
votes
2 answers

Using global functions in AngelScript

I have a problem to make use of AngelScripts global functions inside a C++-application. In my .cpp file I have the function: int multi(int x, int y) { int z = x * y; cout << x << endl; cout << y << endl; return z; } I'm registering…
Zydar
  • 85
  • 1
  • 8
0
votes
1 answer

Angelscript inheritance from C++ class

I've been scratching my head over this one for a few days, thought you guys might have a better idea. Essentially I want to define a standard interface that can be then inherited from in Angelscript classes. For example, say I have a card game like…
user820304
0
votes
0 answers

Protecting AngelScript source code

A few months ago I thought about adding AngelScript to my engine, which I will definitely do. Now one thing I am worried about is protecting users source code. Indeed if I use AngelScript it's to make my game engine moddable (well actually the games…
Jeremy B.
  • 73
  • 9
0
votes
1 answer

Angelscript - RegisterScriptArray fails

i am trying to get an angelscript test running, however, calling RegisterScriptArray() fails System function (1, 39) : ERR : Expected '' (0, 0) : ERR : Failed in call to function 'RegisterObjectBehaviour' with 'array' and 'array@…
Kilobyte
  • 320
  • 3
  • 16
0
votes
1 answer

Angelscript - Expected ',' or ')'

So it would appear that Angelscript is being rather inconsistent with what functions it will allow me to handle. I'm trying to declare a global function thusly: scrpEngine->RegisterGlobalFunction("float sin(float in)", asFUNCTION(sinCallback),…
eezstreet
  • 119
  • 1
  • 10
0
votes
1 answer

creating an angelscript asSMethodPtr (without the asMETHOD macro)

I'm trying to get a more dynamic workflow with Angelscript happening, where I don't rely on the asMETHOD macro to pass class/method information to Angelscript. However, I'm unable to get it to work so far. Here's some structs I've defined (with…
Jarrett
  • 1,767
  • 25
  • 47
1
2