Spells as Code - a typesafe skill system

3 years ago by klg71 to c/programming

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...
load all comments
cgtjsiwy 3 points 3 years ago

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.

path: 0 694028, hotness: undefined, score: 3, children: 1
klg71 1 point 3 years ago

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.

path: 0 694028 701499, hotness: undefined, score: 1, children: 0
programming
programming

@programming.dev

login for more options
28840
3728
3325

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


go to feed...