Search found 415 matches

by Eclipzer
Mar 13, 2011 6:10
Forum: General
Topic: Need Help Obtaining Mode 13h Default Palette RGB Values
Replies: 6
Views: 1530

@ChangeV: Nice to still see you here on the boards. I'd love a *.zip of those tiles. As for the screen 7 palette I ended up getting the colors from a screenshot you had on your site, then I individually isolated them and matched them to the source image. Tedious, but it got the job done.
by Eclipzer
Mar 12, 2011 18:15
Forum: General
Topic: Need Help Obtaining Mode 13h Default Palette RGB Values
Replies: 6
Views: 1530

@kiyotewolf: I'll def have to take a look at that. Thanks. @counting_pine: Thanks for your help. It's much appreciated. Come to find out though that these gfx were actually created using SCREEN 7 and a custom palette. If you could be so kind and give me the same RGB dump for this code I'd really ap...
by Eclipzer
Mar 11, 2011 20:38
Forum: Projects
Topic: Positif - Relsoft question
Replies: 16
Views: 4293

Nappy! Nice to see you still active on the boards here. I have fond memories of Attack of the Blobeteers back in DQB before you started doing the positif engine. Hopefully one day we'll see it fully realized. =P
by Eclipzer
Mar 11, 2011 20:34
Forum: General
Topic: Need Help Obtaining Mode 13h Default Palette RGB Values
Replies: 6
Views: 1530

Need Help Obtaining Mode 13h Default Palette RGB Values

I'm writing an iPhone program to load image files from some of my old QB/FB projects. What I need to do this, however, is a listing of all the RGB values for the default palette in mode 13h. Unfortunately, I'm on a mac, so I can't easily generate this listing myself through code, so I'm hoping someo...
by Eclipzer
Dec 27, 2008 6:14
Forum: Community Discussion
Topic: Alternative Logo Set for FreeBASIC
Replies: 16
Views: 4112

I use this logo for my FB projects:

Image
by Eclipzer
Nov 15, 2008 7:05
Forum: General
Topic: Overloading Class Methods
Replies: 1
Views: 1104

Overloading Class Methods

So, I stumbled upon the fact that FB doesn't require class methods to be explicitly overloaded: type myClass as integer dummy declare sub method(value as integer) declare sub method(text as string) end type sub myClass.method(value as integer) ? value end sub sub myClass.meth...
by Eclipzer
Nov 08, 2008 11:29
Forum: General
Topic: Bit(lhs,Rhs)
Replies: 10
Views: 1655

You might be wondering why -1 is returned instead of 1, but it's because -1 is a standard BASIC value for True. It's the number you get if you set all the bits in a signed integer, while 0 is what you get if you clear all the bits, and you can easily flip between the two values using the NOT operat...
by Eclipzer
Oct 29, 2008 17:46
Forum: Beginners
Topic: True and False variables
Replies: 19
Views: 3334

Here's a simpler program to demonstrate the logical errors that occur when using false=0, true=1 for boolean values: const TRUE =1 const FALSE=0 dim as integer answer=TRUE if not answer then ? "answer is false" else ? "correct is true" end if sleep Ideally this should return "cor...
by Eclipzer
Oct 25, 2008 2:12
Forum: General
Topic: Non-standard syntax
Replies: 8
Views: 1953

Another macro that could be very useful would is the FOR ... EACH for linked lists: FOR i AS foo = EACH foo ... NEXT FB doesn't support linked lists natively so there's no reason to natively support iterator syntax. This should actually be supplied with the linked list library that you use. For my ...
by Eclipzer
Oct 17, 2008 4:43
Forum: General
Topic: is there any string replacement function in FB
Replies: 34
Views: 6156

@PaulSquires, my speed tests show that your optimization is indeed faster. Thanks for pointing this out. I will use this from now on. @counting_pine, your powers of optimization never cease to impress. I would probably clean the code up a bit for readability, but I'm pretty sure I follow your logic/...
by Eclipzer
Oct 16, 2008 9:40
Forum: General
Topic: is there any string replacement function in FB
Replies: 34
Views: 6156

I wrote a string replacement function, only to find this lovely thread. After reviewing the various submissions here, I modified my own to be a bit more compact and complete. ' ============================================================================= ' Name: str_replace (10.16.08) ' Retu...
by Eclipzer
Oct 07, 2008 3:50
Forum: General
Topic: A String as screenbuffer
Replies: 11
Views: 2147

Why are you trying to do this? I can't think of any situations where you'd want to LTRIM an image buffer. Because clearly he has a very limited understanding of how accessing video memory works. Questions like this come from a clear lack of understanding. There really isn't a parallel to computer p...
by Eclipzer
Oct 03, 2008 17:56
Forum: Beginners
Topic: Data types
Replies: 3
Views: 1323

There was actually a HUGE discussion on this very topic not too many months ago. I've always been for type suffixes, though after being forced not to use them in order to take advantage of FBs full instruction set, I have become accustomed to not using them. However, I still feel, among other things...
by Eclipzer
Sep 30, 2008 16:28
Forum: General
Topic: Better ENUMs
Replies: 6
Views: 1318

Awesome workaround. I'll be implementing this tonight when I get home from work. Thanks for your help with this.
by Eclipzer
Sep 30, 2008 12:25
Forum: General
Topic: Better ENUMs
Replies: 6
Views: 1318

Better ENUMs

I've recently started using enums and believe they would be much more powerful if you could somehow access the first, last and count values associated with the enum . ex: enum myEnum a,b,c,d,e,f,g end type ? enumFirst(myEnum) 'prints "0" ? enumLast(myEnum) 'prints "6&q...

Go to advanced search