-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Great Renaming #130
Comments
A "gmText" sent by Comms is a LITTLE misleading, but not TOO bad. Generally speaking all the other packets that DON'T have subtypes are even less confusing? I'd even argue "objectText" is less confusing than "Intel" considering it's not ALL intel 🤷♂️ All the more horrible ones in your note above (valueFloat, valueInt, valueFourInts) you're ALMOST never going to be referring to it as that directly - the canonical name will presumably be the SUBTYPE, and "valueInt" only really mentioned in passing like "subtype of valueInt"? [at the risk of feature creep] Would be really neat if we could extract "official" names for the packet SUBTYPES out of "strings -el Artemis2.7.0/Artemis.exe" but I'll confess I've never been able to spot them myself - it's possible they may even have been optimised out by Thom's compiler, or perhaps (scary thought) there never WERE any official names for the subtypes 😮 [further feeping creaturization] "Official" names for the PARAMETERS would be nice too. Generally most OBJECT parameters probably have corresponding names in the mission-file-docs.txt. Less certain about, say, "the 3rd field in a FighterPilotPacket" or even "should it actually be called rudder, Rudder, steering, Steering, deltaAngle, or something completely different?" (I note the word "rudder" doesn't appear once in mission-file-docs.txt) |
"Rudder" is an artifact of the original version of ArtClientLib that I inherited when I took over the project. I think I like trying to stick to "official" terminology whenever possible (canonical names found in the .exe and scripting XML), but favoring logical packet types for clarity and making up names for those. As for packet field and object property names, it's an interesting idea, although lower priority, I think. I've taken a stab creating a definitive packet name list. For packets with no subtypes, it's just the canonical name from the .exe. For subtyped packets, I have attempted to create a name that is clear, consistent, and reasonably short. Feedback welcome. Origin: clientactivateUpgrade (valueInt:0x1c) Origin: serverattack |
Hmmm... Why have I never seen controlMessage? How do you create one of those? There's quite a lot of setBlah? I'd love to know OFFICIAL names for ... any of these. About the best I could find were from controls.ini, re-working the capitalisation... helmToggleReverse I won't pretend I like them all... or even most of them 😕 About the best I could find in mission-file-docs.txt ... ... and lots of attribute names we should probably adopt for object fields... EG angle/pitch/roll (NOT rudder) |
So I would like to be more consistent with The one thing I don't like about dropping "set" is it makes it unclear whether the packet is the server telling the client about a change, or the client requesting a change from the server. Without a "set" precedent, we couldn't tell, for example, whether |
Here are my comments on some selected names: Names I don't like but am loathe to change because they're canonical
Non-canonical names that I agree we should change
Non-canonical names that I'm not sure about
|
beamRequest is actually a great example of one I'm unsure of I think there wants to be consistency here, presumably the server checks if the ship can fire and thus the "request" now most the time the answer is probably yes so the question becomes should all the actions that require response from the server have a request in front of them?, even if normally players are unaware of them? in my code I had been using internal messages split on the "requestBeam/fireBeam" line though come to think of it maybe by supporting the official names we already have inconstancy here anyway? other thoughts do we have a proper name anywhere for if its an emergency jump or a combat jump - I have heard both from players. popup may want to be called warningPopup to match scripting |
This has been mentioned here and there, but I would like to have a full discussion on the subject of packet names.
Packets have types and subtypes. The types have canonical names which are run through JamCRC to produce their type hashes. Subtypes just have numbers, not canonical names.
The idea of renaming the packets in the documentation to correspond to their canonical names has been bandied about. The principal advantage of doing so is that we achieve greater consistency in terminology when discussing packets. (Is it TitlePacket or bigMess?) However, there are also some disadvantages:
Write in the comments what you think about the prospect of renaming packets.
The text was updated successfully, but these errors were encountered: