Module Troubles
BlitzMax Forums/BlitzMax Beginners Area/Module Troubles
| ||
Having trouble creating a module, it won't build I keep getting an error saying module does not match commandline module? what am I doing wrong? |
| ||
The file is te.bmx in the folder mod/eisenga.mod/te.mod/ that's following the format as in the manual. and its pretty empty because i was just testing out if i had the lines setup strict module eisenga.te Type Tile Field Name:string method new() Tile.Name = "generic tile" end method end type and then in another generic file i had import eisenga.te x:Tile = new Tile print x.name waitkey end and I get the error when I try to build the module "Compile Error Module does not match commandline module". And I don't think i'm missing anything. I also thought all modules were imported by default so why would I have to import eisenga.te? Any help would be greatly appreciated |
| ||
after some tweaking it worked, yes I had to use the command prompt and i put my module in mod/pub.mod/tilemap.mod calling it tilemap.bmx then typed bmk makemods pub.tilemap worked did my source.bmx and it referenced the type correctly, I'm hoping that was my whole problem was not building the module correctly |
| ||
so how do you develop modules if your test case lives in the module directory? should test cases always live outside the mod directory? if so what the best way to distribute a mod with example? |