Spells as Code - Raiding.Zone by klg71
klg71.itch.io
external-link
My first contact with World of Warcraft was through a private server. I didn’t have the money for an abo yet and had some friends playing there. I was fascinated by the idea of my own private WoW se...

Interesting! Sakurai would say keep your params out of the code, so that you can easily tweak all params in one spot when balancing things. But maybe having all params in code is reasonable to handle when you’re a solo dev.

@cgtjsiwy@programming.dev
link
fedilink
English
3
edit-2
1Y

Another point in favour of databases is simplicity of client-server communication and data models.

Many objects in WoW (not too sure about spells, but most likely them too) work such that the client asks the server for the related DB rows when it sees an object for the first time. So instead of sending code across the wire, which would be a bad idea for many reasons, you instead send structured data that the client interprets.

Of course, you could just bake the spell code into the client at compile-time, but then dataminers will take it apart on day 0. WoW datamining mostly works such that you play the game normally and see what data the server gives you.

@klg71@programming.dev
creator
link
fedilink
English
11Y

Only UUIDs, names, descriptions and scaling are baked into the client-code. But if you wanted to extract this data there isn’t much I could do against it.

Create a post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1.11K users / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog