Protected Include

BlitzMax Forums/BlitzMax Beginners Area/Protected Include

TwoCorin517(Posted 2008) [#1]
I'm considering releasing a library of BlitzMax code which makes creating RPGs easy... I intend on releasing the library for free, however I don't want to give out the source for free.

How could I give the user the library without giving him the source?


Brucey(Posted 2008) [#2]
Make it into a pre-compiled module, which doesn't include the source code.


TwoCorin517(Posted 2008) [#3]
Where's documentation on that?

Oh and it uses, types, variables and functions.


Brucey(Posted 2008) [#4]
About building modules? There's a nice tutorial here.

Once you have that working, take a copy of it, remove the source, and you have yourself a module without source.
(As far as I know, there isn't a shorthand way of getting a module into that state - unless that's what zap mod is for??? - Anyone know any better?)


TwoCorin517(Posted 2008) [#5]
I followed the tutorial exactly and I got this error:
Compile Error: Identifier 'TList' not found

btw, I'm making my own module, not his.


tonyg(Posted 2008) [#6]
It suggests your module is importing BRL modules but not BRL.LINKEDLIST.
What do you have for your Import statements?


TwoCorin517(Posted 2008) [#7]
ah... I found what i needed...

Edit:
How do you distribute modules?


ziggy(Posted 2008) [#8]
Make a zip of the mod folder. there's also a zap utility (wich is a command line utility from the blitzmax engine) that creates a sort of zip of your module. Most poeple doesn't use it, but there it is. In would recommend you to create just a zip or a rar of your mymodule.mod folder once the source code is removed but the rest of compiled information is left there.