Gamestudio Links
Zorro Links
Newest Posts
Using the SHCreateDirectoryExA function
by Emre. 08/12/20 21:46
Reducing Function Times
by Dooley. 08/12/20 20:19
New Zorro version 2.30
by danatrader. 08/12/20 13:01
Sierra Chart Plugin
by AndrewAMD. 08/11/20 22:41
avg spread every tick
by Grat. 08/11/20 10:34
AUM Magazine
Latest Screens
Untitled Walking Simulator
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
Who's Online Now
8 registered members (Jerome8911, ozgur, Janusz, Superku, thomasprv, kvm, AndrewAMD, 1 invisible), 533 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Janusz, Sovattha, DonSergio, bigimpactsound, tzw101
18492 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Getting a pointer to an array of vectors in plugin dll #481006
07/31/20 22:33
07/31/20 22:33
Joined: Oct 2003
Posts: 4,125
M
Matt_Aufderheide Offline OP
Expert
Matt_Aufderheide  Offline OP
Expert
M

Joined: Oct 2003
Posts: 4,125
Having troiuble figuring out how to get a pointer to an array of VECTORs ... i can a single vector using doign this:
static VECTOR *myvec = (VECTOR*)engine_getvar((char*)"myvec", NULL);

but this doesnt work for an array of vectors such as youd define in lite-c as VECTOR myvec[64]


Sphere Engine--the premier A6 graphics plugin.
Re: Getting a pointer to an array of vectors in plugin dll [Re: Matt_Aufderheide] #481025
08/02/20 09:36
08/02/20 09:36
Joined: Sep 2003
Posts: 6,858
Kiel (Germany)
Superku Online
Senior Expert
Superku  Online
Senior Expert

Joined: Sep 2003
Posts: 6,858
Kiel (Germany)
I only use engine_getscript so I don't have experience with engine_getvar. How so does it fail for the array, does it return NULL?
What if you put your array into a dummy container struct and search for that one instead, could that be a workaround for you?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1