BASIC

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kitty Hello

Pages: [1] 2 3 ... 695
1
Announcements / Bluetooth / Serial RS232
« on: 2018-Dec-12 »
OK. after another sleepless night, I can print to the bluetooth printer on windows. (V16 will feature this).
http://www.glbasic.com/forum/index.php?topic=11212.0

I kept it quite abstract, so you can talk to any bluetooth device and it should be fully cross platform.
Also, you can use the COM interfaces to talk to RS232 devices with this library. I use parts of the LGPL library from http://bitalino.com/

2
Folks, I'm so amazed about my new gadget. A thermal printer (see attached image).

I've got GLBasic code running, that can send a sprite image to that printer via bluetooth on your Android device. (You can use the BT library to talk to any bluetooth device, btw.)

For the competition you get a few functions in a library and this test project:
Code: GLBasic [Select]
        LOADSPRITE "Media/test.png", 101

        LOCAL printer_pixels_width% = 384 // must be editable by user. Default = 384
        DitherSprite(101, printer_pixels_width) // id%, cut_width%

        // Show the dithered image - you can save or use that for debugging/preview
        DRAWSPRITE 101,0,32
        SHOWSCREEN


        // List all paired BT devices - user must pick one from the list
        LOCAL devs$[]
        BT_ListDevices(devs$[])

        // connect to one of the string in devs$[]
        BT_connect("BlueTooth Printer")

        // do print the image pixels
        BT_print_image(101)
       
        // close connection
        BT_close()
       
        // some more paper and cut (if device lets you do this)
        BT_FeedPaperAndCut()

        MOUSEWAIT
 

You will also get a function to pick a picture from camera or from the gallery.

That's all you need. Now join the competition and write a software for that printer with the given functions. A demo project is attached. It might not compile for Android, but the function names wil stay as they are. I did tests and all is working great. Ready? Set? GO!

Do samething amazing. Something creative. Something funny. Something that makes one want to get such a printer.

The 1st prize is such a printer. Shiny new device, sparkling on your table, purring in your pocket.
2nd to 3rd price: Printer paper

Competition ends at March, 1st 2019.

PS.Spread the word - I'm not very connected in social media anymore  :good:


3
Can I use the video partially for a GLBasic presenation on steam?

4
Very old thread. On Windows 10 Press Win+G to record videos.

5
Announcements / Re: Burger Lord Released
« on: 2018-Nov-16 »
Very cool. Can I use part of your video for a GLBasic promotion video on steam?

6
The full GLB source IS available as a library. We only wwould have to see if it compiles (it's a single file).
What is the Adnroid problem in detail? Can anyone google it for me? Maybe there's a different solution!?

7
Oh, sorry. Do release it - no worries.

8
Maybe we can use GLBasic for Android to create an android studio project template? Basically, you only include files and compile.
I think a future step would be to compile everything into ONE .cpp file which you can include into any platform SDK or whatever. So, you can compile GLBasic projects on your Mac or whatnot. The backends should be able to cover most of the target platforms - we put so much work into that...

9
Announcements / Re: Red Wizard Island
« on: 2018-Aug-30 »
Might be cool. I'll try to put GLBasic on STEAM...

[edit]
I can't get screenshots off YouTube videios :( Can you post me 2-3 screenshots, please?

10
Amazing. Can I use screenshots of this game to promote GLBasic?

11
Announcements / Re: Red Wizard Island
« on: 2018-Aug-29 »
Amazing. Can I use screenshots of this to advertise GLBasic?

12
Announcements / Wumbo's Adventure for Android
« on: 2018-May-21 »
https://play.google.com/store/apps/details?id=com.glbasic.wumbo

Should be free for a frew days. I'd welcome you to put a positive feedback on the play store :)

13
Bug Reports / Android crash
« on: 2018-May-18 »
This time it's me :(

I have one app that runs perfectly, and one that does not even start:

05-18 16:35:16.670 12570 12570 E AndroidRuntime: FATAL EXCEPTION: main
05-18 16:35:16.670 12570 12570 E AndroidRuntime: Process: com.glbasic.bobbleheads, PID: 12570
05-18 16:35:16.670 12570 12570 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libcutils.so" not found
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at java.lang.Runtime.loadLibrary0(Runtime.java:989)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at java.lang.System.loadLibrary(System.java:1562)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at org.libsdl.app.SDLActivity.<clinit>(SDLActivity.java:259)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at java.lang.Class.newInstance(Native Method)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2591)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2766)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.app.ActivityThread.-wrap12(ActivityThread.java)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1507)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:154)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6236)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)
05-18 16:35:16.670 12570 12570 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)


What could that be?

Edit: removing -lcutils in platforminfo.txt fixed the problem. But... why did it work in the first project?

14
FAQ / Forum Access Password
« on: 2018-May-05 »
** EN
Since 2018-05-05, new users are only allowed to join and post at the forums, after a purchase. You will get the access code in the email with your registration code.
Background: 1) I have to pay for the servers and 2) the spam flood was immense.

** DE
Seit 2018-05-05 ist es neuen Benutzern nur gestattet sich im Forum anzumleden und zu schreiben, nach einem Kauf. Den Zugangscode (Forum Access Code) erhält man dann in der Registrierungs-E-Mail.
Begründung: 1) Ich muss für den Server bezahlen und 2) die Spam-Flut war immens.

15
2D-snippets / TTF - True Type Fonts
« on: 2018-Mar-24 »
The attached library can load converted TTF fonts and render them in real time. This gives the option to dynamically scale fonts and use colours.
I've not done any performance tests on mobile devices, yet.

I also attached a tiny command line program that generates the font from your installed ttf files in windows.
Just run:
TTF-create.exe arial
and it will create an arial.glbvf file (GLBasic Vector Font).
Characters 33 to 255 are supported. The font must be available as C:\Windows\Fonts\****.ttf


Pages: [1] 2 3 ... 695