How do you know what Framework to import?
BlitzMax Forums/BlitzMax Beginners Area/How do you know what Framework to import?
| ||
I'm trying to get the exe as small as possible. Is there a list somewhere of what you can import for certain basic functionalities or do you have to comb through the mod folder? |
| ||
Ok to be more specific...and I need is brl.basic, brl.socket, and the mod that has the Left$() command in it....can't find that one. |
| ||
There is a tool around here, called Framework Assistant, in analyzes your code and suggest you the optimal import and framwork statements |
| ||
brl.Retro!!! Gebus... |
| ||
link to FA.. http://homepage.ntlworld.com/config/fa/ |
| ||
Slice instead? :-)SuperStrict Local s:String = "Cheese" s= s[..3] Print s |
| ||
Lol peter. |
| ||
Hmm...very handy...but... It doesn't recognize what to import for "KeyHit()". |
| ||
Yeah, Framework Assistant really is a must-have tool. Though not flawless (it puts MaxGUI.MaxGUI instead of MaxGUI.Drivers for those who uses the MaxGUI for example) it's so essential (at least it is for me) that I don't get why they haven't integrated it in the IDE yet. x3 As for KeyHit, it should be part of the standard libraries I think (that always gets imported no matter the framework), but if you get an error about it try: Import BRL.PolledInput |
| ||
If you hit f1 twice in the IDE and bring up the docs, the module the function's in is written at the top of the help page, ie BRL.PolledInput for HitKey. |
| ||
Just saying..it missed brl.polledinput for Keyhit(). Maybe time for an update. But yeah that thing is priceless. |
| ||
I see, I got the error too now when I tested around, and yeah, like I said, it's not flawless. xD Most graphical libraries seem to import BRL.PolledInput as well (like if you import BRL.GLMax2D or MaxGUI.Drivers) so most of the time you do not really need to import that. |
| ||
As author of Framework Assistant: Yep, I really need to update FA at some point . There are a few hard-coded things in there and lots of importing methods have changed during BlitzMax updates |
| ||
Does the Mac version work yet? |
| ||
No idea. I am willing to email you the current source so you can compile on Mac if you wish |
| ||
Oh, did you not compile the Mac version I tried a year ago in that thread? But yes, I'll give it a compile on my lil' Intel Mini if there's a more recent version. That's very generous, thanks! (Email addy in profile.) |
| ||
On its way to you |
| ||
Can either of you provide me with a compiled Mac version (or the source so I can compile it myself)? I'd love to use this on my current project (a Google Docs uploader app). Thanks |
| ||
Check your email |
| ||
Thanks Jim. Appreciate it. |
| ||
@MJ: Can you post a binary if you can compile it, please? I don't have MaxGUI here :( |