I've been trying to for about a while, but i think i have something worked up
|
Did anyone ever refactor the clients config system and/or has information to share the clients mechanism for configs?
From what I can see there are config nodes stored in arrays which hold information on how to read the bitsets into their appropriate values, and each config could have their own bit offsets for this. I assume this information is stored in the cache. If anyone ever has looked into this, please share your finds.
By refactoring it and finding the cache structure finding how each config is send would become really easy I guess and bitsets could be dynamically calculated instead of dumped/searched for.
I've been trying to for about a while, but i think i have something worked up
a config just tells the client what script to run with which values, its basically linked to client scripts.
Not completely because there is also an archive where is stored for each config how the bitset is read. Also the client scripts is only for interfaces afaik but configs do affect other things as well.
And if you didn't refactor it I assume you are assuming it is linked to the client script without having the hard facts right?
Oh btw I was not asking what a config does, I was asking how it works internally in the client and you know just as much as me that the value for a config is a bitset which we dump or find, but could be dynamically calculated assuming the client loads the parameters to read the bitset from the cache.
the sendConfig is involved with a lot of parts within the client such as Objects, Interfaces and some other parts but i cant remember were. i remember peter refactoring parts of the system but not sure if he still has it.
@Discarded:
And yet you can't tell us how exactly the translation of script opcodes etc works. The CS2 handler handles all scripts (I've no idea howmany types there are but they are handled in there anyways). Are you saying that the config id is the actual script opcode? Or is there a translation as in that the config packet will configure a node (or set of nodes) that are handled in a specific CS2 opcode? I'm just making wild guesses here.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |