Building Mods Help

BlitzMax Forums/BlitzMax Beginners Area/Building Mods Help

QuickSilva(Posted 2008) [#1]
I am following this tutorial :

http://www.blitzmax.com/Community/posts.php?topic=42290

but keep getting this error :

"Compile error. Module does not match commandline module."

I haven`t a clue as to what this means, can anyone try the above tutorial and see if it works for them. I am literally copying and pasting the code so it is all entered correctly.

Any advice would be great.

Thanks,
Jason.


Brucey(Posted 2008) [#2]
It usually means you've something in the wrong place, or a typo somewhere :-)

Say you call your module Quick.Silva

You need the following folder structure :

BlitzMax/mod/quick.mod/silva.mod/silva.bmx

In your silva.bmx, you would have the line :

Module Quick.Silva


That should build okay.

Best to keep the filenames in lowercase - makes your life easier ;-)


QuickSilva(Posted 2008) [#3]
Thanks for the tips, I`ll give it a try.

Jason.


QuickSilva(Posted 2008) [#4]
OK that worked fine. Thanks again for the help.

One last thing, I`m trying to get my modules commands to highlight in the IDE by placing a simple,

Rem
bbdoc: example
End Rem

above the relevant functions in the actual module file. I then build my module and rebuild docs but my commands still do not highlight despite the fact that they work as they should.

Am I missing something obvious? Is it not possible to get custom made commands\modules to highlight?

Thanks for any further help.

Jason.


Brucey(Posted 2008) [#5]
You also need to add a bbdoc comment directly above the Module definition...
Rem
bbdoc: My Module
End Rem
Module Quick.Silva

...

It triggers the generation of the rest of the docs for the module.

Same thing applies to docs inside types - you need to doc the Type itself.

Oh, and the End Rem should be on the immediately preceeding line to that which you are documenting - it seems to matter :-)


QuickSilva(Posted 2008) [#6]
Thanks. I thought that I was missing something. All works fine now :)

Jason.