Question about BlitzMax modules
Blitz3D Forums/Blitz3D Programming/Question about BlitzMax modules
| ||
Hi all, I think I get the idea about those modules, but I wanted to be absolutely sure about them. A module, is this some sort of precompiled exe, that only holds the compiled version of your source-code, without anything else? If you had a single-surface particle system (all functions in one big .bb file), this would need to be included into your project (Blitz3D) and all this code must be recompiled every time you run the project, correct? If you converted this system into BlitzMax syntax (.bmx file) and created a module out of this file (which only holds all the functions, variable- and arraydeclarations), would this module be a compiled version (some sort of exe), which only holds the compiled version of those functions and declarations, without anything else (no starting function, so running it would do nothing)? When you Import those modules, does BlitzMax just append these modules to the compiled exe of your project, without recompiling them (because they already are exe's)? Or do I get this completely wrong? |
| ||
Good question and something i wanted to ask too- it makes a big difference on something i want to sell! |
| ||
Your posting in the WRONG forum. Post BlitzMAX questions in the BlitzMAX forum. No one here knows the answer to your question. The Blitz Research moto: Buy before you try. |
| ||
Hey, its a valid q though.... i cant post in the bmax forums myself. ;) |
| ||
WolRon, he can't post in the bmax forum if he doesn't have a licence. This is symptomatic of the ill-thought out restructuring of the forums. |
| ||
I believe a module is the same as making your code part of BlitzMax.. if you have a module present, BM will load it up on startup and make it available to your current project just like any other BM command.. you can however choose if you want it in the project with the Framework command, just like any other BM lib. if you choose to make it a .bmx file and include it, I guess its just like the Include command in Blitz3D/Plus.. This is what I think is correct though after reading the manual.. It might not be :) |
| ||
In one way a module acts like an include file, you can 'use' it and it will be available in your project, like the 'sound' module. If you project has no sound functionality then you can choose to not use it and your EXE size will be smaller for it. A module is also like a Userlib in that you can pre-compile the module and bMax will just import the module when you compile your project. You can also share a module with others without having to share the sourcecode if its complied (assuming the platform is the same) Also, making an EXE is a 2 step process, Compiling and linking. Compiling is turning your sourcecode into machincode. After you compile your program, You link your compiled code to any standard libraries it needs and build the executable. Bmax modules can be pre-compiled and so as long as you dont change the sourcecode they dont need to be recompiled during the compilation process, they are just linked in to the executable in the second step. |
| ||
You can also share a module with others without having to share the sourcecode if its complied (assuming the platform is the same) SOLD AND SOLD ^.^ that is EXACTLY what i want :D |
| ||
WolRon (Posted 2004-12-16 12:22:07) Edit Your posting in the WRONG forum. Post BlitzMAX questions in the BlitzMAX forum. No one here knows the answer to your question. The Blitz Research moto: Buy before you try. Damien Sturdy AKA Cygnus (Posted 2004-12-16 13:32:27) Hey, its a valid q though.... i cant post in the bmax forums myself. ;) mrtricks (Posted 2004-12-16 13:38:29) WolRon, he can't post in the bmax forum if he doesn't have a licence. This is symptomatic of the ill-thought out restructuring of the forums. Which is exactly my POINT... I understand that the BR staff are hard-working people BUT they need to work on the communication end of things more. Dozens of posts about how screwed up the forums are, but the only thing I've heard from BR is that they may bring back the off-topic forum in the future. Don't they listen? Don't they care? If they do, which I'm sure they do, then they need to SPEAK UP and state what their plans are. Until they do that, we can only sit and wait with no idea if anything is going to happen. Sorry for Hijacking the thread but I'm getting peeved that I can't ask/answer questions in the BM forum. I may consider buying BM, but at the moment, I'm not allowed to ask any questions. And posting them here defeats the whole point of them splitting them up in the first place... |
| ||
you took a while to realise and edit your post ;) ^.^ |
| ||
So what would you rather have? The BR staff being interrupted constantly answering posts, no matter how speculative or pointless (and there have been plenty of both IMO), and therefore "improving" on their communications skills. Or finishing BMAX? @Damien; its' silly to use both your name and your nick at the same time when your submitting posts. You might consider choosing one or the other. |
| ||
The BR staff being interrupted constantly answering posts If they need to hire someone to do it, then they should. |
| ||
If they need to hire someone to do it, then they should. Put yourself in their position. Blitz, I imagine, at the price for which it's sold doesn't make BR a ton of money. Put yourself in BR's shoes. Would you hire someone to fulfill the "answering silly, speculative and pointless posts" position? Would you be willing to pay more for a Blitz product because of the extra overhead? If anything, and I were in BR's position, I'd be wanting to hire another programmer and kill two birds with one stone. Get my product out the door, thus answering most questions at the same time. |
| ||
My question (the first post of this thread) was the only question I had left before actually deciding to purchase BMax. I couldn't find a clear answer to this question anywhere. The other stuff (OOP and functions inside custom types) were pretty clear after checking MSDN for "how classes work". I couldn't ask this question on the BMax forum, because I haven't bought it yet and I wanted to know the answer before buying. That way I could start thinking about the idea of using classes, studying them and using them already. It did help me with rewriting some functions of my game in B3D, so they're more versatile and more compact. And I don't want to buy the Mac-version yet and install PearPC, as I don't see the point in buying the Mac-version when I don't have a Mac. So I got the idea about those modules correct, as GW stated. They're just pre-compiled pieces that are just appended to the final exe, when compiling a project. |
| ||
I think it's interesting that your nick is very similar to the name given to older MacIntosh computers... Either way, I'm glad you found the answer to your question. |
| ||
Damien; its' silly to use both your name and your nick at the same time when your submitting posts. You might consider choosing one or the other. ive had this nick for months.. ANyone else got any probs? i only did it so people can link me to a few posts- theyve (the posts) since died so i may consider changing... |
| ||
whatever... |
| ||
And for an answer that reminds me of young American-Tv teenage girls, I think I'l leave it how it is... |
| ||
My nickname is not about the Mac. When I was using my Amiga1200, I always dreamed of buying a Blizzard PPC turboboard, which would have a 68060 processor and a PPC 603e. It was then that I chose my nickname to be PowerPC603. And as you see, I'm still using it, even when I'm not using my A1200 anymore (only for scanning pictures with my flatbed scanner). It's a SCSI-type scanner and I cannot use it with my PC, because I don't have a SCSI interface on the pc and I don't have any PCI-slot available to install one. |
| ||
Please post any other BlitzMax related questions here. |