Thanks for a great release! Now we must band together to promote it. I've
submitted a Slashdot article here:
http://slashdot.org/submission/1896270/open-source-ide-gambas-reaches-30
Please vote it up in the Firehose so they'll post it to the front page:
http://slashdot.org/firehose
Happy New Ye
Benoît Minisini wrote:
>
>> > I can only think of two solutions here. One is to find a way to convert
>> a
>> > two-character string to a short as quickly as possible (the subject of
>> > the post), and the other is to change the way I'm collecting the data
>> to
>
> I have neve seen that mail,
The project I'm working on has a client module and server module, with shared
modules/procedures/variables between the two. The user chooses the mode from
a GUI upon running it. Consequently I have it running in client mode on bare
metal and server mode in a virtual machine with a separate IP addr
tobias-47 wrote:
>
> i forgot the asc() functions, of course:
>
> PUBLIC FUNCTION GetShort(sWord AS String) AS Short
>
> RETURN Asc(Mid$(sWord, 1, 1)) * 256 + Asc(Mid$(sWord, 2, 1))
>
> END
>
> or alternatively, you can assign the positions in the asc() function, like
>
> RETURN Asc(s
I can say, somebyte=ASC("x"), but is it possible to quickly assign a two-byte
string to a typical two-byte short?
I'm sure this can be done with some lengthy function but (as most
programmers should) I have a need for efficiency. I'm not concerned with
character set mishaps for people with differ
Rob Kudla wrote:
>
> Someone on linuxbasic.net asked for a way to read a joystick in
> Gambas. I couldn't find anything in the SDL component for that
> purpose, so I wrote a minimal class that reads from the raw device,
> parses the data into something useful, and throws events. I wrote a
kevinfishburne wrote:
>
> It still won't display an image. I'd like to copy/paste the code for
> Image.DrawAlpha from the GAMBAS 3 checkout to the GAMBAS 2 checkout and
> see if it works under a more stable GAMBAS. Is there anything I should
> look for other tha
Fabien Bodard-4 wrote:
>
> yes, take a look here :
> http://gambasdoc.org/help/install
>
I just verified that the build dependencies were satisfied and recompiled
GAMBAS 3:
sudo apt-get install build-essential libffi-dev libbz2-dev libfbclient2
firebird2.1-dev libmysqlclient15-dev unixodbc-de
Benoît Minisini wrote:
>
> I made an Image.DrawAlpha() method for you in revision #3101. Tell me if
> this
> is was you need.
>
I couldn't find it in GAMBAS 2 so I built GAMBAS 3. It had the new method,
however I was unable to test it because Image.Draw() seemed not to work.
Here's the projec
Benoît Minisini wrote:
>
> I made an Image.DrawAlpha() method for you in revision #3101. Tell me if
> this
> is was you need.
>
Am compiling now and will run test code using the new method to produce
tiling with different layers. Thank you so much. I'll post my code when I
get a proof-of-conc
Benoît Minisini wrote:
>
> I'm not sure to really understand. Would you make some images for me?
>
It took me a while to hand make this in GIMP, but here's the idea:
http://www.eightvirtues.com/misc/alpha_stuff.xcf
There are eight tiles that use only alpha (ten if you include fully opaque
an
Benoît Minisini wrote:
>
> - There is no rotation in gb.image because I don't have the algorithm at
> the
> moment. It is a bit complex, because all gb.image color formats should be
> supported.
>
Did you mean the SDL component? gb.image does have rotation (although I
don't know if it preserv
I'm writing a game and am exploring my graphical options using gb.image.
While it's not hardware accelerated, it's easier to get into than OpenGL and
the SDL component seems to be missing key features such as image rotation.
The various filter/effect methods also offer a huge range of possibilitie
Jussi Lahtinen wrote:
>
> There is probably more efficient ways, but quick and dirty...
>
Great minds must think alike. I didn't receive a notification email about
your post for some reason, but independently developed the same code almost
exactly. Crazy, huh? Your code (and my code) do the tr
I'm attempting to rotate an image about its center point, using something
like:
DIM background AS Image = Image.Load("grass.png")
DIM f AS Float
FOR f = 0 TO 6.2831853 STEP 0.01
Draw.Begin(DrawingArea)
Draw.Image(background.Rotate(f), 0, 0)
Draw.End
WAIT
NEXT
The resolution of the ret
Benoît Minisini wrote:
>
> You enter the event loop once the Main() function is finished. Why do you
> want
> to display a form before? It's weird too!
>
I want the form to display as soon as the program is run, basically.
I have the Form_Open procedure immediately execute several procedures
Benoît Minisini wrote:
>
> OK, this is fixed in revision 3073. I think I should make a 2.21.1 soon...
> It's funny how people always find boring bugs *just* after the release.
> :-)
>
Yeah, I only compiled the newest release yesterday, even after reading the
changelog, hoping the issue had be
Benoît Minisini wrote:
>
> Thanks. That's weird!
>
No problem. Glad to be able to help with a bugfix. I hate bugs. ;)
Not really related to the post, but great work on the new 2.x release and
I'm looking forward to the first stable 3x release.
-
Kevin Fishburne, Eight Virtues
www: http:/
Benoît Minisini wrote:
>
> Please provide your project, or make a little project that reproduces the
> problem. And tell me if you use GTK+ or QT.
>
http://old.nabble.com/file/p29269448/Test.tar.bz2 Test.tar.bz2
I tried it with both GTK and QT and the problem only occurs in GTK. For the
time
I have a checkbox control. I'd like it to call a subroutine whenever it's
checked or unchecked. The code looks like this:
PUBLIC SUB CheckBox_Preview_Water_Click()
Preview.Refresh
END
The control and event are on the main form. "Preview" is a module and
"Refresh" is the procedure name in it.
I'm working on a GAMBAS program and want to allow it to be distributed freely
but not used for commercial purposes without paying a licensing fee. The
program uses GTK, not Qt, so the usual Qt licensing issues shouldn't apply
here. Is this possible, or do all GAMBAS programs (source or compiled) n
kevinfishburne wrote:
>
> Does this mean that the only difference between gambas2-2.19.0 and
> gambas2-2.20.2 are the seven bug fixes mentioned in the quoted change log?
> I'm trying to get a perspective of the version differences between GAMBAS
> stable releases. I'm
I'm developing a game which requires static polygonal model rendering with 2D
"bit blitting"-style overlays. These are my eventual requirements:
1) Render a 3D heightmap with arbitrarily-specified tileable texture maps.
2) Render static 3D models on top of the heightmap.
3) Render 2D images on to
Benoît Minisini wrote:
>
> Here is the full ChangeLog:
>
> ---
>
> [CONFIGURATION]
> * BUG: Add missing symbolic links on 'missing' and 'install-sh' files.
> * BUG: Backport the 'reconf' script from Gambas 3.
>
> [DEV
Doriano Blengino wrote:
>
> Read carefully the documentation about the WRITE instruction - in the
> first few lines you find the explanation. When you write something out,
> you can specify the length of the data you write. If you don't specify
> it, gambas will do it for you, and this is wha
Kadaitcha Man wrote:
>
> Have you tried using a Long instead of an Integer?
>
>
>
> :)
>
Haha, that gave me a good laugh. When I discovered the "bug" was just me
being a jackass I practically did the Snoopy dance I was so overjoyed.
Simple problems are always the best once you finally figur
kevinfishburne wrote:
>
> Excellent, thanks. I seem to have found something horrifying while trying
> to create the file using GAMBAS however; using the SEEK statement with an
> argument greater than 2 GB raises a "Bad argument" error. While that
> doesn't affect
Kadaitcha Man wrote:
>
> In a terminal, type:
>
> info coreutils 'dd'
>
> You only need create the file once, then copy it whenever you need to
> during testing. If you really must create the file every time, let dd
> do it by using Gambas' Exec command.
>
Excellent, thanks. I seem to have f
Benoît Minisini wrote:
>
> On Linux, If you seek and write past the real end of a file, then the file
> is
> automatically extended.
>
> So the simplest is writing where you want in the file only when you need.
> Just
> don't do that randomly, to prevent the disk from seeking too much.
>
> M
I need to create an 8 gigabyte binary file with zero values throughout it. Is
there a faster way to do this than to create a big string of zeros and write
it to the file multiple times? What I'm doing right now works but seems like
a really ugly method:
' Zero-out the file.
Zero = Chr$(0) & Chr$(
Doriano Blengino wrote:
>
> Probably there is some bug here, but anyway I would use some other mean
> to achieve the goal.
> ...
> If you really have 65536*65536 cells, all alive together, you could use
> a binary file on disk. Disk caching will speed up things, perhaps better
> than fake ram
Using GAMBAS 2.19 I tried creating an array:
PUBLIC Elevation AS Short[65536, 65536]
With no data assigned to any of the array's elements, reading Elevation[0,0]
shows a value of 24. I'm thinking it should be zero. Reading
Elevation[4095,0] crashes the program. I tried reading Elevation[100,100]
When retrieving the value of a pixel at x,y from the picture in a picturebox
control it outputs a single value. How does this value represent the pixel's
value, and can it be easily converted to an RGB value?
This is something that's going to need to be done 4,294,967,296 times, so is
there a qui
Doriano Blengino wrote:
>
> I think you posed a question and replied to it by yourself... :-)
>
Hi Doriano. That is super funny. ;) Yes, I was more or less looking for
confirmation of the behaviour and hoping to provide a reference for anyone
else who may have been similarly confused and searc
John-679 wrote:
>
> Hi All
>I am new to Linux. I am using Ubuntu 9.10.
> What I am looking for is a kind person to help me off line with Linux
> and Ubuntu.
>
Hi John. I develop and sell Linux-based desktop and laptop PCs for a living
and have been using Linux exclusively for about thr
Fabien Bodard-4 wrote:
>
> gb.sdl is incomplete ... in fact Laurent have begin to redraw all the
> gb.sdl lib by using OpenGl... but ... still incomplete ... i think the
> lack of users on this lib mess his enthusiasm
>
Hi Fabien, I agree with your comments. I'm guessing that GAMBAS 3 is still
I have some code:
PUBLIC myarray AS String[1, 2]
...
myarray[x, 0] = stuff
myarray[x, 1] = morestuff
myarray[x, 2] = evenmorestuff
and receive an "out of bounds" error message when referencing the third
array element assignment (myarray[x, 2] = evenmorestuff).
I can only assume that the arr
[SOLVED]
Kadaitcha Man wrote:
>
> 2009/12/2 kevinfishburne :
>
>> (2) Module "Server" then calls the procedure "Init" contained within
>> module
>> "Net" (Net.Init).
>
> Net is reserve
I've noticed that the documentation for the SDL component is incomplete.
There are some basic examples in the BeastScroll example application
packaged with GAMBAS, but is there a more extensive list of procedures
implemented in GAMBAS for SDL?
I'm guessing that the next best way of figuring out w
I'm hoping that I've just overlooked something really obvious and stupid, but
am stumped (perhaps it's the four beers...). I'm receiving the error message
"Unknown symbol 'Init' in class 'Net'" while trying to call a procedure from
a different module. Here's the basic program flow:
(1) Startup mo
Benoît Minisini wrote:
>
> Wow. Completely weird. I will recompile Gambas 2 on my now updated 64 bits
> Ubuntu 9.10, to see if I get the same problem.
>
I did a clean install of Karmic, installed all the necessary dependencies,
then recompiled and installed GAMBAS 2.17.0. Interestingly it is
I just recently compiled and installed GAMBAS 2.17.0 from the package
provided here:
http://prdownloads.sourceforge.net/gambas/gambas2-2.17.0.tar.bz2?download
and while it appears to run and execute programs properly it displays the
wrong colors and text formatting in the code editor. Some text
Bugzilla from gam...@users.sourceforge.net wrote:
>
> If your data comes from a SQL query, you can redo the query with a
> different
> "ORDER BY" SQL clause.
>
> If your query returns a lot of data, just return what you need by using
> the
> Limit() method ( or the "LIMIT" SQL keyword).
>
>
Bugzilla from gam...@users.sourceforge.net wrote:
>
> I fixed the bug in revision #2337. It was not 64 bits related at all.
>
>
Thanks. I'm assuming revision #2337 is in the 2.x development branch, as I
just compiled and ran 2.16.0 and it has the same problem. Looks like it was
GTK-related, a
joshiggins wrote:
>
> I'm running 32-bit Gambas 2.8 (the one in Jaunty) and I don't seem to get
> this problem. Granted I'm not adding 13000 strings, more like 200.
>
> Are you using the gtk or qt component?
>
I'm using gtk. I need to correct my previous post. Whether it's set via the
GUI is
kevinfishburne wrote:
>
> I've tried this on the 64-bit versions of GAMBAS 2.13.1 and 2.8.2 included
> with Ubuntu 9.04 and 9.10 and the same thing happens.
>
I just upgraded GAMBAS to 2.15.2 borrowing from Debian's current unstable
repository and the problem persists.
I've tried this on the 64-bit versions of GAMBAS 2.13.1 and 2.8.2 included
with Ubuntu 9.04 and 9.10 and the same thing happens. It may also happen
with the listbox, listview or similar controls if they use the same code.
If I set a columnview's Sorted property to TRUE in the GUI it works fine,
b
Awesome, that information proved accurate and I have a much better handle on
what exactly is going on now. I agree there is probably no perfect solution
due to a number of variables, but I've decided to use the QT GUI instead of
GTK for the time being and to keep the forms/controls a fixed size (n
I'm using GAMBAS 2.13 under Ubuntu 9.10 development branch and the GNOME
desktop environment. I've noticed that the GAMBAS IDE ignores GNOME font
sizes, but when I run a GAMBAS app it adheres to GNOME's font sizes,
adjusting form and control sizes accordingly. I can't tell for certain but
it appea
49 matches
Mail list logo