I seem to have forgotten some part of mods making. I just can't get my module to build correctly and be recognized by BlitzMax.
This is how I do it:
I make a folder in pub.mod I call it mymodule.mod (only small chars)
In there I put all the source, the main file is called mymodule.bmx ( It have to be same as the folder name )
In the mymodule.bmx file I have this code:
Module Pub.mymodule
'Imports everything required
Import Brl.Bank
Import Brl.LinkedList
Import Brl.Math
Import Brl.Retro
Import Brl.System
ModuleInfo "Author: "
ModuleInfo "Version: "
Include "Somefile.bmx" which includes the rest of the source for all files in the module.
Next I click WinT + R and type in cmd, I go to the C:/BlitzMax/Bin/ directory.
Now I write:
bmk makemods pub.mymodule
.. nothing happens ..
What did I forget? (Please also suggest if there is an easier way to do this)
I tried to write bmk makemods and that resulted in "all" modules being built.
Also when I built a exe I get a folder called ".bmx"
Can I directly use these files in any way?
This is how I do it:
I make a folder in pub.mod I call it mymodule.mod (only small chars)
In there I put all the source, the main file is called mymodule.bmx ( It have to be same as the folder name )
In the mymodule.bmx file I have this code:
Module Pub.mymodule
'Imports everything required
Import Brl.Bank
Import Brl.LinkedList
Import Brl.Math
Import Brl.Retro
Import Brl.System
ModuleInfo "Author: "
ModuleInfo "Version: "
Include "Somefile.bmx" which includes the rest of the source for all files in the module.
Next I click WinT + R and type in cmd, I go to the C:/BlitzMax/Bin/ directory.
Now I write:
bmk makemods pub.mymodule
.. nothing happens ..
What did I forget? (Please also suggest if there is an easier way to do this)
I tried to write bmk makemods and that resulted in "all" modules being built.
Also when I built a exe I get a folder called ".bmx"
Can I directly use these files in any way?