promotional bannermobile promotional banner
premium banner

ModTemplate

Abandoned
ModTemplate

Description

ModTemplate is a empty template of code that allows new mods to be created easily. It works as-is, ie. straight out of the box. It just doesn't do anything. This is what I use personally to start all mod creation.

So. Directions:

  • 1) Pick a name for your new mod.
  • 2) There's 2 files in this mod. Do a text replacement of the text 'TEMPLATE' (yes, uppercase) in both files to this new name.
  • 3) Do the same to the filenames and folder name. And that's it!

The code is full of empty functions that, by name, should be self explanatory. I Put in comments, too. All you have to do is fill in the blanks, so to speak. Enjoy your new mod!

Technical info:

  • The only frame, TEMPLATEframe, is there so hitting 'esc' will close your mod. Put that as your parent if you want 'esc' to close your mod.
  • The frame is drag able, and more importantly, saves where you drag it between game sessions if you unload the mod, something NO mod seems to do and drives me crazy.
  • Slash commands and command line parameters are all there already. /yourmod will work. You should be able to see how 'input==debug' works, and make whatever commands you want in the code.
  • Typing '/yourmodname debug' will turn on/off debugging mode. See the TEMPLATEprint function at the top? Use that to create debugging messages for yourself. eg. MYMODprint("This is a debug message that will show when i turn on debugging")

There's a few more features. Look through the code - its short and pretty straightfoward. Due to the amount of people asking 'how do i get started making mods' I thought I'd put this up here, maybe someone will find it useful.