Search found 7628 matches

by D.J.Peters
Apr 07, 2020 23:42
Forum: Libraries
Topic: libOpenCV Windows/Linux 32/64-bit
Replies: 38
Views: 1600

Re: libOpenCV Windows/Linux 32/64-bit

When cvCreateImage() is called, the program crashes in Windows XP. I got a crash on 64-bit Windows 10 also :-) instead of creating a new image from another (a copy) try to clone it ! (should work see my tests above) res = cvCloneImage(src) Would you please provide a text recognition example, such a...
by D.J.Peters
Apr 07, 2020 23:32
Forum: Game Dev
Topic: List of *FREE* game programming resources
Replies: 80
Views: 95998

Re: List of *FREE* game programming resources

... the problem is not being able to draw or paint let alone animate :) Sure but others more talented artists have done it for you :-) For example grab a "walk sequence" (as images or bones) import all frames and overdraw it with your shiny player/monster or what ever. How ever stay safe ...
by D.J.Peters
Apr 07, 2020 22:10
Forum: Game Dev
Topic: List of *FREE* game programming resources
Replies: 80
Views: 95998

Re: List of *FREE* game programming resources

Create 2D animations/sprites/movies scenes and or backgrounds with free open source OpenToonz ! I found OpenToonz in a video: Best Free Animation Software in 2020 In the video I saw a little girl using it so it's the right tool for me also :-) homepage: https://opentoonz.github.io/e/index.html downl...
by D.J.Peters
Apr 07, 2020 20:43
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 17
Views: 698

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

Often you need only a symbolic link that points to libtinfo.so (in case the libtinfo.so.6 is in /usr/lib/)

sudo ln -s /usr/lib/libtinfo.so.5 /usr/lib/libtinfo.so.6

Joshy
by D.J.Peters
Mar 25, 2020 4:57
Forum: Game Dev
Topic: A simple miner program
Replies: 22
Views: 944

Re: A simple miner program

Here are how to mirror a right walk to left walk and create one image strip with right and left walk circles. (in case if MultiPut V2.0 are too much) http://shiny3d.de/public/fb/miner_rl.png NOTE: testfile "miner-walk-right.png" must be in the same folder ! Of course you can mirror any ima...
by D.J.Peters
Mar 24, 2020 14:37
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 70
Views: 20148

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

@tone may be libfbsound-64.so not loaded while any open reference ! try the ldd command Joshy joshy@UBUNTUx86-64:~$ cd fbsound-1.1/tests/ joshy@UBUNTUx86-64:~/fbsound-1.1/tests$ fbc on_the_fly.bas joshy@UBUNTUx86-64:~/fbsound-1.1/tests$ ldd on_the_fly linux-vdso.so.1 (0x00007ffec15a5000) lib...
by D.J.Peters
Mar 22, 2020 14:46
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 2212

Re: Parse string to tree structure

UEZ wrote:@Joshy: I get several em when trying to compile your code ...
That means your fbc compiler or include files are not uptodate !

Often FreeBASIC for Linux setup isn't complete !

Joshy
by D.J.Peters
Mar 22, 2020 14:40
Forum: Linux
Topic: Linux Framebuffer
Replies: 9
Views: 534

Re: Linux Framebuffer

@Roland007 try this ! Joshy dim as integer iWidth,iHeight,iBits screeninfo(iWidth,iHeight,iBits) print iWidth,iHeight,iBits if screenres(iWidth,iHeight,iBits) then print "error: screenres() !" beep: sleep: end 1 end if if iBits<15 then ' 8-bit palette For y As Integer = 0 To iHeight-1 For ...
by D.J.Peters
Mar 22, 2020 14:20
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 70
Views: 20148

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

@tone as a beginner put the file : "fbs_on_the_fly.bas" in the original/unchanged fbsound-1.1/tests folder (don't move any file to any other place don't change the #include line ...) cd fbsound-1.1/tests fbc fbs_on_the_fly.bas fbs_on_the_fly.exe (windows) ./fbs_on_the_fly (linux) this shou...
by D.J.Peters
Mar 22, 2020 14:08
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 2212

Re: Parse string to tree structure

I changed the output line to:
print space(iif(j<2,0,(j-1)*2)) & "+ " & splitted(j)

A single file j=0 or the first folder from path j=1 get the same priority in the output !

Joshy
by D.J.Peters
Mar 22, 2020 1:30
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 2212

Re: Parse string to tree structure

D.J.Peters wrote:@badidea yours does produce an runtime error here (compile with -exx)

d:\done>d:\FreeBASIC\fbc32 -exx user_FS.bas
d:\done>user_FS.exe
Aborting due to runtime error 4 (out of memory) at line 45 of user_FS.bas::ADDITEM()
by D.J.Peters
Mar 22, 2020 1:01
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 2212

Re: Parse string to tree structure

@badidea yours does produce an runtime error here (compile with -exx) why is the file: "/path3/itemC" two times in your virtual filesystem ? Check out how short=elegant SortFS () is :-) Joshy #include "crt.bi" function getDepth(path as string) as integer var c=0,n = instr(path,&q...
by D.J.Peters
Mar 21, 2020 22:41
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 2212

Re: Parse string to tree structure

badidea wrote:For my purpose, these to paths need to be merged.
I never sayed I made your homework !

You need only change the "sorting" code to your needs thats all.

Joshy
by D.J.Peters
Mar 21, 2020 22:13
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 2212

Re: Parse string to tree structure

You can use strtok() to split the path in folders and items ! Joshy #include "crt.bi" const MAX_FILES = 10 ' <--- change it if you like function getDepth(path as string) as integer var c=0,n = instr(path,"/") while n c+=1 n = instr(n+1,path,"/") wend return c end functi...
by D.J.Peters
Mar 21, 2020 21:05
Forum: Libraries
Topic: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)
Replies: 70
Views: 20148

Re: fbsound 1.1 (dynamic) Windows/Linux 32 and 64-bit (wav mp3 ogg mod it xm s3m)

file: fbs_on_the_fly.bas ' ###################### ' # fbs_on_the_fly.bas # '###################### '#include "../inc/fbsound.bi" #include "../inc/fbsound_dynamic.bi" sub MyCallback(byval pSamples as FBS_SAMPLE ptr, _ byval nChannels as integer, _ byval nSamples as integer) const ...

Go to advanced search