Gamestudio Links
Zorro Links
Newest Posts
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (JeyKey II, AndrewAMD, Grant, EW_bytes), 7,532 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
SDK - Var Name? #109947
01/30/07 00:56
01/30/07 00:56
Joined: Dec 2001
Posts: 941
England
LoneWolf Offline OP
Developer
LoneWolf  Offline OP
Developer

Joined: Dec 2001
Posts: 941
England
Hello,

I have been searching around the SDK and I see that there is a way to access the c-script name of an object using the C_LINK structure in strings, Sounds, etc... which is very useful for my current project.
Is there also a way to access the C-Script name of a var if i have a pointer to that var (or a way of going through all the vars as a list), from what i can see they appear to be stored very differently?

Also will the SDK continue to work when lite-c is released, or is there to be any big changes?

Thanks


Wolfpack Software (www.wolfpacksoftware.com) A catalyst in the evolution of games Available for paid work
Re: SDK - Var Name? [Re: LoneWolf] #109948
02/02/07 15:50
02/02/07 15:50
Joined: Jul 2000
Posts: 28,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,149
Frankfurt
The SDK will work the same way with lite-C.

However there is no direct way to get a var name for its pointer, or to enumerate all variables. This could be implemented, theoretically, but what for would you need it?

Re: SDK - Var Name? [Re: jcl] #109949
02/02/07 16:24
02/02/07 16:24
Joined: Dec 2001
Posts: 941
England
LoneWolf Offline OP
Developer
LoneWolf  Offline OP
Developer

Joined: Dec 2001
Posts: 941
England
Thanks for the reply,

I am looking into doing some network code, it would be very helpfull to be able to register all variables so that i can assign an id to each that is recognised between the server and any clients. I was going to enumerate the strings but the only other method for variables is to register the variable by its name first which is not a very clean way of doing it because every variable that is sent over the network will need to be registered first.

I have another question that i have just come across, I noticed that send_var sends an entire array, does this mean it is possible to determine the number of elements in an array>. This would be helpfull to prevent overflows in my plugins

Thanks


Wolfpack Software (www.wolfpacksoftware.com) A catalyst in the evolution of games Available for paid work

Moderated by  old_bill, Tobias 

Gamestudio download | 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