• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Tech - MQ2PortalSetter Update + Code Review Review Vid

Sic

Administrator
Moderator
Commits
449
​


I've had a few folks lately ask me about how updating stuff works/looks like and what code review is.

So tonight @Knightly gave some feedback to my merge request on updating MQ2PortalSetter for CoV, so I wanted to toss up a quick video so folks could see me going over and updating stuff based on the code review. and coincidentally i had some folks mention they had never heard of portalsetter!!! @victoriansense so thought it would be fun to add that stuff here for folks to view as we patiently wait for this xpac to launch

Enjoy!
 
Answering the question about the "unknown" -- the window notification is an override and it means when that was initially written, the function of that parameter was "unknown." It may still be unknown, but it's named that way to reflect that the type is known but what it is used for is not. Regardless, window notification is something we are using from the EQ Client rather than something that was coded separate so the parameters will match the EQ function even if we don't (know how to) use them. So this function definition matches what MQ2 knew about the function when the code was written.

A good practice when you come across things that make you go "hmmm" is to throw in a TODO item or a FIXME so they don't get lost. You had a couple good finds (Free Inventory Space is an exposed function so you don't need to parse a TLO for that info). In that case put a
Code:
// FIXME: use the exposed FreeInventory function instead of parsing
so that whoever hits that again easily comes across the things you already found (even if that someone is future you). It's a good way to note that you noticed something, but that you also feel it's beyond the scope.

I prefer the asterisk on the left, if you had put it on the right I would have looked further down in the code to see if you were being consistent, but since it was the way I prefer it there's no reason to look at code you didn't change. Note that as you said, it doesn't matter and code review, when style comes up, is more about consistency. But generally style doesn't come up. There are arguments both ways -- if you declare multiple variables in the same line, it makes some sense to have it on the variable since otherwise you're (accidentally) not declaring a pointer in that case. However, just don't declare pointers in one line. The reason to put it on the type is because a pointer IS a type. "This is a variable whose type is a pointer" versus "This variable is a pointer to a type of." It has more to do with thinking about types than anything else. You can see this throughout MQ2 where Something* is aliased as pSomething, which actually makes the multideclaration issue worse, but illustrates the idea of thinking in terms of the type being a pointer rather than the variable. But, style, I would have taken it either way in this specific case.

And the answer to your On Pulse "hrm" is probably "The other one's the global."
 
Any chance this could be duplicated for the small guild hall?

Edit : it's not working in our small guild hall. I got to the video and it seems to work in your video
 
Last edited:
Any chance this could be duplicated for the small guild hall?

Edit : it's not working in our small guild hall. I got to the video and it seems to work in your video
if you just loaded it for the first time you have to reloadui which i mention at like 18:00 in the vid and gets output in your ui when you load it for the first time.
 
Last edited:
Tech - MQ2PortalSetter Update + Code Review Review Vid

Users who are viewing this thread

Back
Top
Cart