Menu

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.

Show posts Menu

Topics - Kitty Hello

#61
Hi, I'll use this thread for the updates to com. Starting with Feb, 2013:
#62
Howdy, has anyone got an native iPhone image picker wrapped?
I could really use one.
#63
Howdy,

I've ported to SDL2 now, but in portrait, the opengl window on android is shifted towards the bottom. The touches are proper coords. Any ideas?
#64
Hi,

how can I make a comment in this file? I want to comment the lines:
Code (glbasic) Select

<!-- android:screenOrientation="sensor"  android:configChanges="orientation|keyboardHidden" -->

but I get compiler errors.
#65
Howdy,

the HTML5 port is getting into shape. I found some bugs and have a working demo now. See attached file.
Next step is to pack the resources from the Media directory into the html and then compress the output with a gzip option. But it's all no big problem anymore I guess.

It's a bit slow on my Opera browser. Maybe it's Opera, maybe another bug. It's using WebGL, btw.

One tiny bitter pill is there to swallow, though. The structured programming of GLBasic will have to be changed for HTML5. There's no way to write code like:
Code (glbasic) Select

WHILE TRUE
   PRINT "X", 0,0
   SHOWSCREEN

for JavaScript. It would lock the browser and that would kill the script soon.

So, GLBasic (V11) already supports a new mechanism for this (cross platform, of course).
The key is the GLB_ON_LOOP sub, and the command SETLOOPSUB, that are new.

Here's the HTML5 example attached as code:
Code (glbasic) Select

LIMITFPS 60
STDOUT "In main game now\n"
GLOBAL stary%[]
DIM stary%[300]
FOREACH y IN stary[]
y = -RND(400)
NEXT

// SETLOOPSUB "GLB_ON_LOOP" // - GLBasic V11 calls this at the END of "main"

STDOUT "finishing the main loop now\n"


@SUB GLB_ON_LOOP: // this is called by the framework after the "main" init module
LOCAL spd% = 0, x% = 0
FOREACH y IN stary[]
spd = bAND(spd+1, 3)
INC y, spd+1
PRINT "*", x, y
IF y>400 THEN y=-32
INC x
NEXT

PRINT "Merry Christmas, HoHoHo", 32,(1+SIN(GETTIMERALL()/10.)) * 64+60

SHOWSCREEN

ENDSUB





[attachment deleted by admin]
#66
Hi,

I'm going insane. I have to make the popups work in IE-7 mode. Can someone try to help me?
The text of the table is somehow hovering above my popup. In IE8 it seems fixed, but with <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> this bug can be reproduced.

HTML
Code (glbasic) Select

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <!-- IE8 or later - z-index problems with IE6! -->

<link href="servicecenter.css" title="fideslic" rel="stylesheet" type="text/css">

<script type="text/javascript">

var gMenuText = Array();
var gMenuId = Array();
var gTotHtml = "";

function clearmenu() {
gTotHtml = "";
gMenuText = [];
gMenuId = [];
}

function addmenu(id, text) {
gMenuText.push(text);
gMenuId.push(id);
}

function popup(id, bshow) {
document.getElementById(id).style.visibility = bshow ? 'visible' : 'hidden';
}


function addprogram(text, prog3) {
var html = "";

html += ('<tr class="tableitem" onclick="popup(\'popup'+prog3+'\',1);" ><td>'
+'<div class="infoframe">');

// start popup window
html += ('<div class="content" id="popup'+prog3+'" onmouseleave="popup(\'popup'+prog3+'\',0);">'
+'<h3>'+text+'</h3>');

for (var i = 0; i < gMenuId.length; ++i) {
var tmp = '<button type="submit" name="click" value="' + prog3 + '/' + gMenuId[i] + '">'+gMenuText[i]+'</button><br/>';
html += tmp;
}
html += "</div>"; // popup window content

html += (  '    <div class="arrow">&nbsp;</div>'
+'<div id="name'   +prog3+'">'+text+'</div>'
+'</div></td>' // </div of infoframe>
+'<td><div id="versloc'+prog3+'"></div></td>'
+'<td><div id="versdvd'+prog3+'"></div></td>'
+'<td><div id="versliv'+prog3+'"></div></td>'
+'<td><div id="license'+prog3+'"></div></td>'
+'</tr>');

gTotHtml += html;
}

function writeprograms() {
var html = "";

html += '<table class="maintable"><tr><th>Program</th><th>Local Version</th><th>DVD-Version</th><th>Live-Update</th><th>Lizenz</th></tr><tbody>';
html += gTotHtml;
html += '</tbody></table>';
// setstatus(name3, displayname, '<img src="loading.gif">', '<img src="loading.gif">', '<img src="loading.gif">');
document.getElementById('placeholder').innerHTML = html;
}


function setstatus(name3, namelong, vlocal, vdvd, vlive, license)
{
if (namelong.length > 0)
document.getElementById("name" + name3).innerHTML = namelong;
if (vlocal.length > 0)
document.getElementById("versloc" + name3).innerHTML = vlocal;
if (vdvd.length > 0)
document.getElementById("versdvd" + name3).innerHTML = vdvd;
if (vlive.length > 0)
document.getElementById("versliv" + name3).innerHTML = vlive;
if (license.length > 0)
document.getElementById("license" + name3).innerHTML = license;
}



var g_download_tot_todo = 0;
var g_download_tot_done = 0;
function downloading(delta_todo, delta_done) {
g_download_tot_todo += parseInt(delta_todo);
g_download_tot_done += parseInt(delta_done);
// NEED display
}

</script>


</head>



<body>

<div id="placeholder">&nbsp;</div>

<script type="text/javascript">
clearmenu();
addmenu("update", "Update now");
addmenu("buy", "Kaufen");
addprogram("Programm 1", "PRA");
addprogram("Program 2", "PRB");
writeprograms();


setstatus("PRA", "WALLS-Verbau", "2012.222", "2012.230", "2012.444", '<img src="green.png"> 2013.100 / 08.feb.2012');
</script>

</body>
</html>


CSS
Code (glbasic) Select

BODY
{
}

a, a:visited {
color: Blue;
text-decoration: underline;
}

.maintable
{
border-collapse: collapse;
border: 2px solid black;
padding: 4px 4px 4px 4px;
}

.tableitem{}

tr.tableitem td{
background-image: url('backgnd_line.png');
background-repeat: repeat-x;
background-position: 0px 2px;

border-left: 1px solid #88ccff;
padding: 2px 16px 2px 4px;
}


/* infoframe div - hover it to show popup information */
.infoframe{
position: relative; left: 0px; top: 0px; /* so the menu can be position:absolute - relative to parent */
}

/* content - popup overlay of infoframe */
.infoframe .content{
/*visibility: hidden;*/
position:absolute; left:0px; top: 0px;
border: 2px solid #4488cc;

background-color: #ffffff;

z-index:999;
}


/* when hovering parent, highlight it */
.infoframe:hover
{
background-image: url('backgnd_line_hover.png');
background-repeat: repeat-x;
background-position: 0px 2px;
}


/* header for popup menu */
.content h3
{
margin-top: 4px;
margin-bottom: 4px;
background-image: url('backgnd_line_hover.png');
background-repeat: repeat-x;
background-position: 0px 2px;
}
.content button{
width: 15em;
}


.arrow{
width: 18px; height: 20px;
padding: 0 0 0 0; margin: 0 0 0 0; border: none;
background-image: url('arrow.png');

float: left;
}



#67
Hi

there's a public beta if the upcomming v11, that has most of the v10 bugs fixed, too.
Get it at
http://www.glbasic.com/beta/glbasic_sdk.exe

[edit]
Fixes all Android and iOS issues.
Raspberry Pi should work.
HTML5 does not load the Media files, yet.
#68
Off Topic / need a new TV
2012-Sep-01
and we have a dish. Now, I wanted to have a TV with a SAT receiver built in, that can record to an external HDD.
Easy.
Now, the Samsung devices seem to be unable to save the recordings without a DRM protection, which totally sucks!
Does anyone know of a TV with a build in Sat tuner that can record non-protected movies and have an option to cut the commercials?
I fear that my old SCART cable sat receiver with a twin tuner might provide too bad image quality for a new, big TV (40" or so).

...yes - I know I should be working on V11. It's mostly to keep the missus busy ;)
#69
I didn't like Android. It felt unstable, unfinished and complicated. Like Linux to me.

Now I have played a bit with the 4.0 version on my Touchpad and I am starting to like it. The OS feels quite smooth and the multitasking is much better than on iOS now.
I can find the most important Appd I use on my iPad in the Play store, and installation and such is also easy. The play store feels also quite good. I like the ability to link youtube videos into the app description. Also stopping and deleting apps works fine now.

But! And here's what I totally detest:
-each silly app wants access to about everything (mails, contacts, ...) That's way better in iOS.
-the defaults for the google account syncs everything. I don't want that! By the time I disable it, I'm sure google already has the data.
-the settings are terribly complicated and ill-organized to me.
-I had a hard time finding out how these desktop widgets work. I also miss settings for some of them.
-the app store is full of stuff I really fear. I have the impression they even offer trojans for download.
-I have no idea, but can apps access data on the SD card from other apps? That great - if the App would ask me about it.
-my battery drains quite fast (might be an cyanogenmod problem) when the pad lies there in airplayne mode, sleeping.

but then ...who cares...
#71
Hi,

I once played a flash game, where a red ball circled an orange one. When you click the mouse, the orange ball becomes sticky and the red one circles it.
Does anyone remember the name and link to that game?
#72
Nach dem Kauf geht alles automatisch. Der Server sollte innerhalb von wenigen Minuten (max. 15) eine Mail geschickt haben. Wenn also eine Zahlungsbestätigung von PayPal oder ShareIt vorliegt, muss auch die Lizenz da sein.

Der nächste Schritt wäre den Spam-Ordner zu durchsuchen nach einer mail von ...@glbasic.com. Sollte auch hier keine sein, bitte versuchen im Forum anzumelden. Schlägt auch das fehl, hilft alles nicht. Dann bitte eine Mail über das Web-Form abschicken mit einer alternativen Email-Adresse.

Ich bitte höflichst um Entschuldigung.
#73
Announcements / HDD crash.
2012-May-18
My MFT is corrupt. Backup is from september 2011. And I have no idea if it will extract.
Right now I try to recover with photorec on a live cd but it seems all filemames are lost. And directory structure.
All compilers might be broken. I'm close to tears.


Edit:
I was asked to add this info on recovering deleted files.
https://www.minitool.com/data-recovery/retrieve-deleted-files-on-pc.html
#74
Beta Tests / V11 beta
2012-Apr-24
This thread is about the V11 beta version tests. If you don't have access to the beta, ignore it. If you urgently want access, mail me.
#75
Hi,

the 10 year anniversary of the LudumDare 48h game programming competition will start next weekend. It's a great event and I want to encourage everyone to participate. It's great fun and you push your programming skills immensely in this short time.

Due to the anniversary, I want you to try GLBasic for this competition as your (new?) language. Why you ask? Because you might win an awesome device! The deal is this: Write a game using GLBasic for the compo, enter and somewhere on your title screen say "written in GLBasic".
Then, come here and post a link to your submitted game.

You game can be any target platform, any screen size, any anything.

Among all entries done with GLBasic I give this prize away:


Android Tablet "Zixoon a71" with
* Android 4.0.3 Ice Cream Sandwich
* A10 cortex@1.5GHz
* Mali 400 MP graphics processor
* 800 x 480 Pixel
* 5 Point Capacitive Touchscreen
* Wifi 802.11 b/g/n @ 150 Mbit/s
* 2160p mini HDMI 1.4 port
* 8GB NAND Flash
* microSD slot (supports SDHC up to 32 GB)
* Camera
* 7" size: 193 x 116 x 11 mm
* Li-Pol (3600 mAh) battery (ca. 5h of fun before charging)


#76
Off Topic / Idea for a compo
2012-Apr-14
Hi

I ordered 2 cool 7" Android tablets. How about giving one away for next weekend's LD48 competition among the entries done with GLB?

Am I too late to anounce it?
#77
Announcements / UDID
2012-Apr-07
Apple will reject apps that use platforminfo$("ID").
Should I change the return value to an app-specific value?
#78
Hi,

some family member wants a tablet (10") for mobile web surfing and a "game for cats". That's it. So, I think 500,- for an iPad is way too much. What's the cheapest Android device with the size of an iPad you can "reccomend"? I think capacitive screen is a must.
#80
Hi,

GETFILESIZE returns a signed 32 bit integer. That means, file sizes > 2GB will appear negative, and file sizes > 4 GB are cut off.
How should I deal with this? (I have a project where that matters, actually).

1. GETFILESIZE(f$, BYREF nof_gigabytes_to_add% = null)
2. GETFILESIZEEX(f$, BYREF bytes%, BYREF gigabytes%)
3. GETFILESIZE(f$); GETFILESIZEGIGS(f$)

Before you vote, keep in mind that next time someone wants to have FILESEEK and FILEPOS with large files, too...