Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Adding New Characters

This topic is 5329 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to make a game where there will be new characters that will keep getting released after the game is finished. Each of these characters will perform tasks that must be encoded. I am having a debate with my partner as whether to use a script or a DLL to hold the characters'' functions. There will possibly be hundreds of characters and the game has to run very fast.

Share this post

Link to post
Share on other sites
I''d say a DLL will be faster, since everything is a) precompiled and b) compiled (XD).

Look into LoadLibrary/UnloadLibrary/GetProcAddress for win32 runtime DLL using functions.

Look into dlopen/dlclose/dlfcn(?) for linux equivilants using .so files (pretty much the linux version of .dlls)

Then, load the characters as needed.

Of course, if you''re looking into immobile NPCs that sit and you just talk to them, this may be overkill, but once you''re used to using these functions it shouldn''t be hard, and you won''t have to develop a scripting language.

You might want to look into methods of being able to include multiple characters in a single DLL, as the basic library code x 500 characters = pretty decent overhead.

Of course, the exact method of compilation will affect that overhead... but anyways.

Just my 5 cents.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!