Search found 1574 matches

by paul doe
Feb 15, 2023 21:31
Forum: General
Topic: [SOLVED] with keyword calls class constructor
Replies: 4
Views: 469

Re: [BUG?] with keyword calls class constructor

No bug: type thing enum myEnum STUFF = 1 end enum dim value as integer declare constructor() declare function setDefault() as integer end type constructor thing() print "setting constructor" this.value = this.setDefault() end constructor function thing.setDefault() as integer dim retVal as...
by paul doe
Jan 31, 2023 17:07
Forum: Community Discussion
Topic: Chatting with AI
Replies: 91
Views: 13091

Re: Chatting with AI

pidd wrote: Jan 30, 2023 6:43 ...
I'm sure most people have seen how cats can manipulate humans, imagine what a super-brain could do.
...
Indeed, by being fluffy and extra cute. I'd want to see a 'super-brain' try to pull that one off...

That being said, I don't think AIs will replace cats anytime soon, IMHO.
by paul doe
Jan 19, 2023 17:27
Forum: General
Topic: Force imagecreate to allocate at desired margin
Replies: 9
Views: 867

Re: Force imagecreate to allocate at desired margin

Because there isn't any. The 'screen' is just a memory buffer, and how it is rendered depends on the driver used (DirectX, OpenGL, none).
by paul doe
Jan 18, 2023 17:21
Forum: Beginners
Topic: Hex constants?
Replies: 17
Views: 2058

Re: Hex constants?

But I cannot explicitly reference '&' as an index in the list without also quoting the string concatenation operator '&' , and therefore make it a special case by explicitly quoting that operator only. That is why I am so bothered ! ... Disambiguation pages, like in Wikipedia? Where you hav...
by paul doe
Jan 15, 2023 14:43
Forum: General
Topic: Force imagecreate to allocate at desired margin
Replies: 9
Views: 867

Re: Force imagecreate to allocate at desired margin

Would help us if you describe what you're trying to achieve? Working with off-screen buffers? Paging?
by paul doe
Jan 03, 2023 13:26
Forum: Game Dev
Topic: Space Invaders
Replies: 13
Views: 4196

Re: Space Invaders

Sure enough:

Code: Select all

C:\Programming\other-projects\freebasic-games2-main\space-invaders\gaming.bas(185): assertion failed at TEXT2SPRITE: sp.ci( c ).image <> 0
by paul doe
Jan 03, 2023 13:22
Forum: Game Dev
Topic: Space Invaders
Replies: 13
Views: 4196

Re: Space Invaders

dim as fb.Image Ptr img = ImageCreate(wid*xfactor, height*yfactor, RGB(255,0,255), 32)[/tt] where the values should resolve as dim as fb.Image Ptr img = ImageCreate(24, 24, RGB(255,0,255), 32)[/tt] This line is likely returning 0. I could check for that and avoid the crash, but all I could do at th...
by paul doe
Jan 03, 2023 13:19
Forum: Game Dev
Topic: Space Invaders
Replies: 13
Views: 4196

Re: Space Invaders

Code: Select all

Aborting due to runtime error 7 (null pointer access) at line 184 of C:\Programming\other-projects\freebasic-games2-main\space-invaders\gaming.bas::TEXT2SPRITE()
The line in question is:

Code: Select all

    w = sp.ci(c).image->width
by paul doe
Jan 03, 2023 13:08
Forum: Community Discussion
Topic: Copy Arrays
Replies: 17
Views: 3092

Re: Copy Arrays

It's not as 'simple' as it might appear at first glance. For example, what happens when you have arrays of complex types (that might also include arrays of complex types as well)? Or arrays of types that refer to other types (via pointer)?
by paul doe
Jan 02, 2023 2:02
Forum: Game Dev
Topic: Space Invaders
Replies: 13
Views: 4196

Re: Space Invaders

Aborting due to runtime error 7 (null pointer access) at line 411 of C:\Programming\other-projects\freebasic-games-main\space_invaders\assets.bas::MAKEBASES() To catch these kind of errors, compile the code with the -exx switch and run the executable from the command line (so you can see the output).
by paul doe
Nov 03, 2022 14:49
Forum: Game Dev
Topic: Retro game ideas?
Replies: 3
Views: 3004

Re: Retro game ideas?

Mr Driller is certainly a lot more complex than the original Boulder Dash game. Falling tetris like blocks. Complex graphic effects. My interest was always in the coding challenge, not playing the game, so I guess I can't complain about the complexity. However I think a game can still be addictive ...
by paul doe
Nov 02, 2022 12:25
Forum: Game Dev
Topic: Retro game ideas?
Replies: 3
Views: 3004

Re: Retro game ideas?

Looking really nice so far. Sometimes, original ideas are hard to come up with. The next best thing, then, is taking an old idea and interpret it differently. Look at the successful games out there. Not all of them have 100% original ideas (most of them don't, in fact), but they take a tried and tru...
by paul doe
Oct 06, 2022 1:40
Forum: DOS
Topic: Let's develop OpenWinDOS
Replies: 54
Views: 12244

Re: Let's develop OpenWinDOS

... Like your project, it is basically abandoned, because I have no real use for it: it works, but on Windows or Linux it's pretty useless (what is the point of having a window with its own windowing subsystem inside? All those windows would still be drawn with FreeBasic primitives, and would still...
by paul doe
Sep 30, 2022 19:06
Forum: General
Topic: membership recant
Replies: 2
Views: 1545

Re: OpenGl 3d :improve render

Welcome to the forum, Chuck. As you can see, I've removed the email as you posted it to avoid bots to pick it up and flood your mail with spam.

Should any member be interested in helping, you can share your mails via the PM function of the forum. Have fun and enjoy your stay.
by paul doe
Sep 26, 2022 12:21
Forum: Beginners
Topic: Is there something Valgrind like tool for FreeBasic for Win?
Replies: 5
Views: 1228

Re: Is there something Valgrind like tool for FreeBasic for Win?

Greetings, Since in FreeBasic one can use pointer for various needs,sometimes may be as heavily as possible,I am wondering whether there is any valgrind-like tool exists to help detecting memory leakage,or what is the right to do to write a safer and more rubust program? Thanks for the help in adva...