keyvalue / property improvement
Posted: Sat Apr 30, 2016 2:15 pm
ive looked into sp recently and both keyvalues and properties have struggle properly interpreting data for the enduser, like scripters.
in kevalues there are two problems atm : some datamaps are wrong, byte to string fails or even unsupported datatypes, so that some values cant even be accessed.
in properties, on the other hand, everything can be accessed, but some properties that are better described by strings or objects, appear as int objects etc. in fact a lot of properties are displayed as ints, that in nature are / or for efficiency could be, of a different datatype.
my question first of all is, why is it still not that easy to get this all under a clear structure. ( for devs its okay, but what about starters, like i am still? )
i think it wouldnt be hard/inefficient to create member access for all objects with custom api by source python.
like entity.x = var/object
sp creates a list api with all the "x", and scripters can try to access them, if the entries dont exist / arent possible, sp does standard error handling/fixing..
just an idea, as i struggled setting some stuff along my way today..
in kevalues there are two problems atm : some datamaps are wrong, byte to string fails or even unsupported datatypes, so that some values cant even be accessed.
in properties, on the other hand, everything can be accessed, but some properties that are better described by strings or objects, appear as int objects etc. in fact a lot of properties are displayed as ints, that in nature are / or for efficiency could be, of a different datatype.
my question first of all is, why is it still not that easy to get this all under a clear structure. ( for devs its okay, but what about starters, like i am still? )
i think it wouldnt be hard/inefficient to create member access for all objects with custom api by source python.
like entity.x = var/object
sp creates a list api with all the "x", and scripters can try to access them, if the entries dont exist / arent possible, sp does standard error handling/fixing..
just an idea, as i struggled setting some stuff along my way today..