Skip to content
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

Rename packet 82 #159

Open
bartico6 opened this issue Dec 31, 2017 · 13 comments
Open

Rename packet 82 #159

bartico6 opened this issue Dec 31, 2017 · 13 comments
Labels

Comments

@bartico6
Copy link
Member

The name of packet [82] (https://github.com/Pryaxis/TerrariaAPI-Server/blob/28200f7d4447ee275e85856f97eee58fa156ffc4/TerrariaServerAPI/TerrariaApi.Server/PacketTypes.cs#L88) is misleading - it does not cause any netmodule to be loaded, as netmodules are loaded on server startup when NetManager.Initialize() is called.

It's an issue rather than PR as we should decide on which name will fit the most, as we'd like to avoid incidents like d8c7be1, da8fded and 28200f7 due to poor communication of the change.

I personally opt to rename it to simply NetModule, as that's exactly what it contains. It's a minor change, though.

@bartico6
Copy link
Member Author

Any updates?

@hakusaro
Copy link
Member

Don't know what a better name is than "LoadNetModule" and "NetModule" isn't a verb either.

@Ijwu
Copy link

Ijwu commented May 18, 2018

Perhaps ReadNetModule? It just triggers a NetModule to be loaded from the stream.

@hakusaro
Copy link
Member

ExecuteNetModule?

@QuiCM
Copy link
Member

QuiCM commented May 18, 2018

Perhaps ReadNetModule? It just triggers a NetModule to be loaded from the stream.

If that's the case, is LoadNetModule not accurate?

@QuiCM
Copy link
Member

QuiCM commented May 18, 2018

Our PacketTypes.cs naming contains a mix of Verb ActualPacketName and plain ActualPacketName
(e.g., Create CombatText, Complete AnglerQuest, etc.)
I don't really see any renaming that provides extra clarity (from the suggestions provided thus far)

@Ijwu
Copy link

Ijwu commented May 18, 2018

I'm not entirely sure about renaming it either. I don't believe anything we change it to will actually provide extra clarity as to what the packet does. Since the packet and the logic behind it is quite complex there isn't really anything we can call it that makes it obvious and intuitive.

@hakusaro
Copy link
Member

I don't know what the packet does.

@hakusaro
Copy link
Member

& I've heard 10 different explanations for what it does.

@QuiCM QuiCM added the Stalled label Oct 31, 2018
@QuiCM
Copy link
Member

QuiCM commented Oct 31, 2018

Marking as stalled. This is still a bad packet that does multiple things with no common base

@AxeelAnder
Copy link
Contributor

I suppose NetModule is terraria's next-gen network protocol, but they ended up with just two packets then back to the old one. I'd suggest to call it NetModule because it's different from others.

@bartico6
Copy link
Member Author

This packet defines even more modules as of 1.4

@hakusaro
Copy link
Member

hakusaro commented May 19, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants