Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, TedMar, Ayumi), 800 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | 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