Search found 856 matches

by Roland Chastain
Apr 24, 2018 14:16
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 17683

Re: JSON library (0.17)

There is a problem when a string value begins with "\\": [ { "command" : "fruit_21.exe", "name" : "Fruit", "protocol" : "uci", "workingDirectory" : "\\engines\\fruit\\-" }, { "command" : "pharaon...
by Roland Chastain
Apr 24, 2018 12:11
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 17683

Re: JSON library (0.17)

My little test program is finished and works perfectly. Thank you. declare function LoadFileAsString(byval filename as string) as string #define fbJSON_Debug #include once "fbJson.bi" dim as string jsontext = LoadFileAsString("engines.json") jsontext = Trim(jsontext, any Chr(13, ...
by Roland Chastain
Apr 24, 2018 11:30
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 17683

Re: JSON library (0.17)

Thank you for the new version (0.17.1).

But I still get an error.

fbJSON Error: Array was not properly closed. Expected ']' at position 3 on line 16, found '' instead.


Edit: Sorry, I had forgotten to trim the string.
by Roland Chastain
Apr 24, 2018 11:18
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 17683

Re: JSON library (0.17)

Thank you for your answer.

StringEpsilon wrote:The culprit is the "\\". I think I straight up forgot to implement that case.


I don't know why, I met exactly the same problem with Kristopher Windsor JSON parser. I tried to fix the code by myself without success. :)

Waiting the next version. ;)
by Roland Chastain
Apr 24, 2018 9:19
Forum: Tips and Tricks
Topic: Only for fun a String class
Replies: 1
Views: 466

Re: Only for fun a String class

Thank you Joshy. Very interesting programming lesson. :)
by Roland Chastain
Apr 24, 2018 9:17
Forum: Tips and Tricks
Topic: String hashing functions
Replies: 6
Views: 1141

Re: Hashing functions

Nice code. Thank you for sharing. :)
by Roland Chastain
Apr 24, 2018 9:12
Forum: Tips and Tricks
Topic: PGN file parser using PCRE
Replies: 1
Views: 529

Re: PGN file parser using PCRE

I reworked my program. Too many things were neglected in the first version. :)

Please see first post.
by Roland Chastain
Apr 23, 2018 21:26
Forum: Projects
Topic: JSON library (0.20.2)
Replies: 36
Views: 17683

Re: JSON library (0.17)

Thank you for that new release. I try to read a JSON file but until now I have no luck. Could you give it a look? Here is the content of the file engines.json . [ { "command" : "fruit_21.exe", "name" : "Fruit", "protocol" : "uci", "wor...
by Roland Chastain
Apr 21, 2018 21:23
Forum: Projects
Topic: Eschecs 1.2.1 (UCI chess GUI)
Replies: 381
Views: 58692

Re: Eschecs (UCI chess GUI)

Another day spent on my chess program. :) Here is a new version. Now you can choose the engine against which you play. http://www.eschecs.fr/fichiers/freebasic/freebasic-eschecs-english.png The engines menu is generated at runtime. To add your favourite chess engine, you have to edit by hand the fil...
by Roland Chastain
Apr 21, 2018 19:24
Forum: Libraries
Topic: fbsound 1.0 Win/Lin 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 242
Views: 63430

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

@BasicCoder2

The warning is expected. If you want to get rid of it, you can compile with "-mt" option.
by Roland Chastain
Apr 21, 2018 18:26
Forum: Libraries
Topic: fbsound 1.0 Win/Lin 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 242
Views: 63430

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

D.J.Peters wrote:@Roland set your defines in fbsstypes.bi
and recompile the library.
Should work so far I know :-)


Works perfectly, thank you.
by Roland Chastain
Apr 21, 2018 15:54
Forum: Projects
Topic: Frogger revisited
Replies: 30
Views: 8357

Re: Frogger revisited

Hello!

I have updated the file, for compilation with FBC 1.05.0 and fbsound 1.0.

Download Frogger (ZIP file including source code and Win32 binary)
FreeBASIC Portal
by Roland Chastain
Apr 21, 2018 14:09
Forum: Libraries
Topic: fbsound 1.0 Win/Lin 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 242
Views: 63430

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

I would like to include in a project only the necessary files to load and play a WAV sound. So I tried this code: #define NODSP #define NOMOD #define NOMP3 #define NOOGG #include once "fbsound\inc\fbsound.bi" But if I delete, for example, the lib\win32\libfbsdsp.a file, I get this error: C...
by Roland Chastain
Apr 21, 2018 13:05
Forum: Libraries
Topic: fbsound 1.0 Win/Lin 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 242
Views: 63430

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

Thank you Joshy and congratulations for the new release of fbsound. Works perfectly here (Windows 10 64, FBC 1.05.0 for Win32).
by Roland Chastain
Apr 21, 2018 6:36
Forum: Projects
Topic: My JSON Parser
Replies: 14
Views: 5097

Re: My JSON Parser

There is a problem with string values ending with "\\". [ { "command" : "mosquito.exe", "name" : "Mosquito", "protocol" : "uci", "workingDirectory" : "\\engines\\mosquito\\-" }, { "command" : "Ru...

Go to advanced search