FreeBasic IDE-poseidonFB(Update 2020.07.20)

User projects written in or related to FreeBASIC.
c-sanchez
Posts: 128
Joined: Dec 06, 2012 0:38

Re: FreeBasic IDE-poseidonFB(Update 2016.7.27)

Postby c-sanchez » Aug 10, 2016 3:18

Hi Kuan Hsu, i like see poseidonFB that is still in development, but i don't like really the syntax color scheme, well, ie the keywords i think is bad sorted.

I guess normally the functions have a same color, the datatype another, and i think the conditions can be the same like function or other, and so on.
Things like do loop, for next, print, etc, imho are really weird.

https://s6.postimg.org/ucllol641/poseidon_FB_colors.png
https://s6.postimg.org/cntuwyucx/wx_FBE_colors.png
https://s6.postimg.org/jfk9ztjch/fb_IDE_colors.png
Kuan Hsu
Posts: 473
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2016.7.27)

Postby Kuan Hsu » Aug 11, 2016 17:14

c-sanchez wrote:Hi Kuan Hsu, i like see poseidonFB that is still in development, but i don't like really the syntax color scheme, well, ie the keywords i think is bad sorted.

I guess normally the functions have a same color, the datatype another, and i think the conditions can be the same like function or other, and so on.
Things like do loop, for next, print, etc, imho are really weird.

Dear c-sanchez:
Options -> Preference -> KeyWords, then you can set your personal version.....^^
aurelVZAB
Posts: 384
Joined: Jul 02, 2008 14:55
Location: Croatia
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2016.7.27)

Postby aurelVZAB » Aug 13, 2016 7:59

Nice to see that you still working on IDE - i like it
Imortis
Moderator
Posts: 1744
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2016.8.14)

Postby Imortis » Aug 15, 2016 18:08

Making a new project on the latest version (V0.206) is adding weird text to the end of the Path string when I browse for it:

Image

If I Click the OK button, I get a message box that Says "ERROR".

EDIT:
Also, because poseidonFB uses it's own directory as the working directoy, I cannot use a windows RC file with a relative path. I would think that a project should be using it's own folder as the working directory.
Kuan Hsu
Posts: 473
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2016.8.14)

Postby Kuan Hsu » Aug 15, 2016 19:03

Imortis wrote:Making a new project on the latest version (V0.206) is adding weird text to the end of the Path string when I browse for it:

Image

If I Click the OK button, I get a message box that Says "ERROR".

EDIT:
Also, because poseidonFB uses it's own directory as the working directoy, I cannot use a windows RC file with a relative path. I would think that a project should be using it's own folder as the working directory.

It's my mistake, it's a typical D string convert to C string issue,I will fix it

The working dir issue, I believe I've fixed the issue before, I will check what's wrong……
c-sanchez
Posts: 128
Joined: Dec 06, 2012 0:38

Re: FreeBasic IDE-poseidonFB(Update 2016.8.14)

Postby c-sanchez » Aug 15, 2016 20:14

Dear c-sanchez:
Options -> Preference -> KeyWords, then you can set your personal version.....^^

Yeah, i commented this only because i think the default settings can be better, although maybe is only my view point hehe.

Another couple of details, yeah small details :P

I see a bit weird the borders on poseidonFB, also without this borders you can get a bit more of space.
By ex. when you hide the outline :)
Image

Intead set a default size for line numbers, why not make this adjust automatically according to the number of lines?
Image
Kuan Hsu
Posts: 473
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2016.8.14)

Postby Kuan Hsu » Aug 17, 2016 15:10

Kuan Hsu wrote:It's my mistake, it's a typical D string convert to C string issue,I will fix it

The working dir issue, I believe I've fixed the issue before, I will check what's wrong……


Dear Imortis:
1. Please try V0.207, it should be OK
2. Please add your *.rc to "Others" folder at project tree, then re-build the project
Kuan Hsu
Posts: 473
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2016.8.14)

Postby Kuan Hsu » Aug 17, 2016 15:20

c-sanchez wrote:I see a bit weird the borders on poseidonFB, also without this borders you can get a bit more of space.
By ex. when you hide the outline :)


Done at V0.207

c-sanchez wrote:Intead set a default size for line numbers, why not make this adjust automatically according to the number of lines?

HAHA, I like the original style...... :-P
Imortis
Moderator
Posts: 1744
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2016.8.17)

Postby Imortis » Aug 17, 2016 15:58

@Kuan Hsu:

I still get this:

Error!
Line 3 of Resource Script (C:/xywhsoft-xywh-Game-Engine-master/Test Game/My Game.RC):-
Could not find file:-
Res/game.ico

The Resource file looks like this:

Code: Select all

#define IDR_VERSION1 1

100 ICON DISCARDABLE "Res/game.ico"

IDR_VERSION1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEOS 0x00000004
FILETYPE 0x00000000
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "FFFF0000"
    BEGIN
      VALUE "FileVersion", "1.0.0.0\0"
      VALUE "ProductVersion", "1.0.0.0\0"
      VALUE "CompanyName", "xywh Game Engine\0"
      VALUE "FileDescription", "xywh Game Engine\0"
      VALUE "InternalName", "xywh Game Engine\0"
      VALUE "LegalCopyright", "xywh Game Engine\0"
      VALUE "LegalTrademarks", "xywh Game Engine\0"
      VALUE "OriginalFilename", "xywh Game Engine\0"
      VALUE "ProductName", "xywh Game Engine\0"
    END
  END
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0xFFFF, 0x0000
  END
END


The RC file is using a relative path, but because the compiler is not being run from the same folder as the .rc it is not finding the path. Is it not possible to have the IDE change to the path of the source code, then run the compiler command? That would fix the issue, and it would also make the compile line change from something like this:

"C:/fbc/fbc.exe" -x "C:/xywhsoft-xywh-Game-Engine-master/Test Game/Publish/Game.exe" -b "C:/xywhsoft-xywh-Game-Engine-master/Test Game/My Game.bas" "C:/xywhsoft-xywh-Game-Engine-master/Test Game/My Game.rc" -i "C:/xywhsoft-xywh-Game-Engine-master/Test Game/Inc" -p "C:/xywhsoft-xywh-Game-Engine-master/Test Game/Lib" -s gui

to something like this:

"C:/fbc/fbc.exe" -x "Publish/Game.exe" -b "My Game.bas" "My Game.rc" -i "Inc" -p "Lib" -s gui
Kuan Hsu
Posts: 473
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2016.8.17)

Postby Kuan Hsu » Aug 17, 2016 17:18

Imortis wrote:The RC file is using a relative path, but because the compiler is not being run from the same folder as the .rc it is not finding the path. Is it not possible to have the IDE change to the path of the source code, then run the compiler command? That would fix the issue, and it would also make the compile line change from something like this:

"C:/fbc/fbc.exe" -x "C:/xywhsoft-xywh-Game-Engine-master/Test Game/Publish/Game.exe" -b "C:/xywhsoft-xywh-Game-Engine-master/Test Game/My Game.bas" "C:/xywhsoft-xywh-Game-Engine-master/Test Game/My Game.rc" -i "C:/xywhsoft-xywh-Game-Engine-master/Test Game/Inc" -p "C:/xywhsoft-xywh-Game-Engine-master/Test Game/Lib" -s gui

to something like this:

"C:/fbc/fbc.exe" -x "Publish/Game.exe" -b "My Game.bas" "My Game.rc" -i "Inc" -p "Lib" -s gui


I got understand finally, and the issue just I lost one line code -- to set the work dir of process.......><
Please try V0.208, thanks~~
Imortis
Moderator
Posts: 1744
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: FreeBasic IDE-poseidonFB(Update 2016.8.18)

Postby Imortis » Aug 17, 2016 17:34

Works fine. Thanks.
c-sanchez
Posts: 128
Joined: Dec 06, 2012 0:38

Re: FreeBasic IDE-poseidonFB(Update 2016.8.18)

Postby c-sanchez » Aug 19, 2016 0:46

Done at V0.207
Nice! thanks by this visual improvement :D
Anyway sorry if i'm annoying you much, but... a bit more about the border lines hehe.
I still thinking this can be look better with less borders :P
Check this:
Image
What you think? :)

Btw i'm traying change some xpm icons, but this is not showed correctly one time edited and saved, i'm try editing the newfile.xpm on Greenfish Icon Editor Pro and Junior Icon Editor.
But i notice a detail.
When the icon file size is upper than original this looks so:
Image
and when the icon file size is lower, looks so:
Image

So then, is poseidonFB considering the icon file size?
Kuan Hsu
Posts: 473
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2016.8.18)

Postby Kuan Hsu » Aug 19, 2016 14:36

c-sanchez wrote:Nice! thanks by this visual improvement :D
Anyway sorry if i'm annoying you much, but... a bit more about the border lines hehe.
I still thinking this can be look better with less borders :P

What you think? :)


Hmm, it looks nice, I will try to change at next version.

c-sanchez wrote:Btw i'm traying change some xpm icons, but this is not showed correctly one time edited and saved, i'm try editing the newfile.xpm on Greenfish Icon Editor Pro and Junior Icon Editor.
But i notice a detail.

So then, is poseidonFB considering the icon file size?

PoseidonFB load xpm image for scintilla using, and convert to IupImage format for IUP using.
Because of my lazy, the xpm reader and convert code is limit the image format = 16x16 8 colors(Not 8-bit color, is 8 colors)
kcvinu
Posts: 184
Joined: Oct 07, 2015 16:44
Location: Keralam, India

Re: FreeBasic IDE-poseidonFB(Update 2016.8.21)

Postby kcvinu » Aug 22, 2016 18:38

Hi @Kuan Hsu,
Thanks for this nice IDE.
Can you implement an auto complete of end keywords like "End If, Wend, Next" ?
And I can't select a gui project from new project option window. There is no such option in that combo.

And an off-topic question. How good is D the language. Basically i am not interested in C type syntax. But when i see the syntax of Pike language, i really started loving that syntax. I have heard that D is an alternative to C and C++ to a purticular context.
Kuan Hsu
Posts: 473
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2016.8.21)

Postby Kuan Hsu » Aug 23, 2016 14:25

kcvinu wrote:Hi @Kuan Hsu,
Thanks for this nice IDE.
Can you implement an auto complete of end keywords like "End If, Wend, Next" ?
And I can't select a gui project from new project option window. There is no such option in that combo.

And an off-topic question. How good is D the language. Basically i am not interested in C type syntax. But when i see the syntax of Pike language, i really started loving that syntax. I have heard that D is an alternative to C and C++ to a purticular context.


1.
Options -> Preference -> Editor -> check "Auto Insert Block End"
It had already support sub, function, property, constructor, destructor, if, with, select, namespace, type, union, extern, operator, enum, scope
I will try to add for..next & do..loop & while..wend

2.
The combo is only send the option to compiler, ex. "Static Library" is "-lib", "Dynamic Link library" is "-dylib" without any template.
We can set the project properties -> Compiler Opt -> -s gui, to hide the console window

3.
I use D V1.0 with Tango which had already stopped develop at 2012.12.31, I don't konw how good is, but I think it has some advantage:
1. Very fast compile and link speed, build poseidonFB project just 1 sec on my computer
2. Use dynamic memory is very easy and built-in associative array
3. Char type is UTF-8
4. Basically is C type syntax, easy to learn if we already konw C(C++)
5. Easy to use and link to C library
6. http://digitalmars.com/d/1.0/comparison.html
Above are about D 1.0, D 2.0? I don't know.......................................

Check it, maybe you will like it......^^

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 11 guests