Creating your own BlitzMax Module
Tweet blitzmax blitzmax-ng tutorials
A quick tutorial on how to create or convert your existing code to a blitzmax module.
Create a folder under mod with a custom namespace (ex. BlitzCoder.mod) for your module. You can add to existing ones if you feel like it.. ie contributing (see next steps regarding namespace).
Create another folder under it with the name of your module like MyModule.mod and name your main bmx file the same as the folder like MyModule.bmx
At the top of your main bmx file, copy and replace the below details with yours.. note the top namespace BlitzCoder first then the name of the module..
Module BlitzCoder.MyModule ModuleInfo "Version: 1.10" ModuleInfo "Author: Your Name Here" ModuleInfo "License: zlib/libpng for example" ModuleInfo "Copyright: Your Name Here" ModuleInfo "History: 1.10" ModuleInfo "History: New features for 1.10..." ModuleInfo "History: more..." ModuleInfo "History: 1.00" ModuleInfo "History: Document your changes here" ModuleInfo "History: more..."
Now you can just import your module from any blitzmax code/project
This didnt work..
I get error Can't find interface for module 'blitzcoder.mymodule'
I Did BlitzMax\mod\BlitzCoder.mod\MyModule.mod\MyModule.bmx
I dont understand.. where is the command that makes the mod..?
I want to make my own mods :p
you forgot to mention that you need to add
Import brl.Stream Import BRL.LinkedList Import BRL.Bank Import BRL.Retro Import BRL.System
or it wont work
but i need the exact command line to create the mod. aka..
BlitzMax\bin\bmk makemods -r ...... please fill this in
Hey HC, importing other mods depends on what you are trying to do or accomplish just like when you are just creating a standard blitzmax app.
but i need the exact command line to create the mod. aka.. BlitzMax\bin\bmk makemods -r ...... please fill this in
since making mods is already an advanced topic, so familiarity of building mods is already presumed otherwise .
and perhaps we can add a seperate tutorial or FAQ next time about the Blitzmax basics.
I used blide to make the mod.. i thought its a simple process..
That's great and with blide now free. MaxIDE community edition or 1.44 onwards also does Ctrl + D to build only uncompiled mods.
Reply To Topic (minimum 10 characters)
Please log in to reply