Recent posts

#91
Hier ist die accelerator-table. Hilft das?

IDR_MAINFRAME ACCELERATORS
BEGIN
    "0",            ID_EDIT_TOGGLE_BOOKMARK0, VIRTKEY, CONTROL, NOINVERT
    "0",            ID_EDIT_GO_BOOKMARK0,  VIRTKEY, ALT, NOINVERT
    "1",            ID_EDIT_TOGGLE_BOOKMARK1, VIRTKEY, CONTROL, NOINVERT
    "1",            ID_EDIT_GO_BOOKMARK1,  VIRTKEY, ALT, NOINVERT
    "2",            ID_EDIT_TOGGLE_BOOKMARK2, VIRTKEY, CONTROL, NOINVERT
    "2",            ID_EDIT_GO_BOOKMARK2,  VIRTKEY, ALT, NOINVERT
    "3",            ID_EDIT_TOGGLE_BOOKMARK3, VIRTKEY, CONTROL, NOINVERT
    "3",            ID_EDIT_GO_BOOKMARK3,  VIRTKEY, ALT, NOINVERT
    "4",            ID_EDIT_TOGGLE_BOOKMARK4, VIRTKEY, CONTROL, NOINVERT
    "4",            ID_EDIT_GO_BOOKMARK4,  VIRTKEY, ALT, NOINVERT
    "5",            ID_EDIT_TOGGLE_BOOKMARK5, VIRTKEY, CONTROL, NOINVERT
    "5",            ID_EDIT_GO_BOOKMARK5,  VIRTKEY, ALT, NOINVERT
    "6",            ID_EDIT_TOGGLE_BOOKMARK6, VIRTKEY, CONTROL, NOINVERT
    "6",            ID_EDIT_GO_BOOKMARK6,  VIRTKEY, ALT, NOINVERT
    "7",            ID_EDIT_TOGGLE_BOOKMARK7, VIRTKEY, CONTROL, NOINVERT
    "7",            ID_EDIT_GO_BOOKMARK7,  VIRTKEY, ALT, NOINVERT
    "8",            ID_EDIT_TOGGLE_BOOKMARK8, VIRTKEY, CONTROL, NOINVERT
    "8",            ID_EDIT_GO_BOOKMARK8,  VIRTKEY, ALT, NOINVERT
    "9",            ID_EDIT_TOGGLE_BOOKMARK9, VIRTKEY, CONTROL, NOINVERT
    "9",            ID_EDIT_GO_BOOKMARK9,  VIRTKEY, ALT, NOINVERT
    "A",            ID_EDIT_SELECT_ALL,    VIRTKEY, CONTROL, NOINVERT
    "C",            ID_EDIT_COPY,          VIRTKEY, CONTROL, NOINVERT
    "E",            ID_EDIT_FIND_MATCHING_BRACE, VIRTKEY, CONTROL, NOINVERT
    "F",            ID_EDIT_FIND,          VIRTKEY, CONTROL, NOINVERT
    "F",            ID_INSERT_FUNCTION,    VIRTKEY, CONTROL, ALT, NOINVERT
    "F",            ID_EDIT_FIND_IN_FILES,  VIRTKEY, SHIFT, CONTROL, NOINVERT
    "G",            ID_EDIT_GOTO_DEFINITION, VIRTKEY, CONTROL, NOINVERT
    "H",            ID_EDIT_REPLACE,        VIRTKEY, CONTROL, NOINVERT
    "K",            ID_EDIT_COMMENT_BLOCK,  VIRTKEY, CONTROL, NOINVERT
    "K",            ID_KEYCODE_TABLE,      VIRTKEY, ALT, NOINVERT
    "L",            ID_EDIT_GOTO_LINE,      VIRTKEY, CONTROL, NOINVERT
    "N",            ID_FILE_NEW,            VIRTKEY, CONTROL, NOINVERT
    "O",            ID_FILE_OPEN,          VIRTKEY, CONTROL, NOINVERT
    "P",            ID_FILE_PRINT,          VIRTKEY, CONTROL, NOINVERT
    "S",            ID_FILE_SAVE,          VIRTKEY, CONTROL, NOINVERT
    "S",            ID_INSERT_SUB,          VIRTKEY, CONTROL, ALT, NOINVERT
    "S",            ID_FILE_SAVE_ALL,      VIRTKEY, SHIFT, CONTROL, NOINVERT
    "T",            ID_EDIT_COMPLETE_WORD,  VIRTKEY, CONTROL, NOINVERT
    "U",            ID_EDIT_MAKE_LOWERCASE, VIRTKEY, CONTROL, NOINVERT
    "U",            ID_EDIT_MAKE_UPPERCASE, VIRTKEY, SHIFT, CONTROL, NOINVERT
    "V",            ID_EDIT_PASTE,          VIRTKEY, CONTROL, NOINVERT
    VK_BACK,        ID_EDIT_DELETE_BACK,    VIRTKEY, NOINVERT
    VK_BACK,        ID_EDIT_DELETE_WORD_BACK, VIRTKEY, CONTROL, NOINVERT
    VK_BACK,        ID_EDIT_UNDO,          VIRTKEY, ALT, NOINVERT
    VK_BACK,        ID_EDIT_DELETE_BACK,    VIRTKEY, SHIFT, NOINVERT
    VK_CANCEL,      ID_COMPILER_STOP,      VIRTKEY, CONTROL, NOINVERT
    VK_CANCEL,      ID_DEBUGGER_PAUSE,      VIRTKEY, CONTROL, ALT, NOINVERT
    VK_DELETE,      ID_EDIT_DELETE,        VIRTKEY, NOINVERT
    VK_DELETE,      ID_EDIT_CUT,            VIRTKEY, SHIFT, NOINVERT
    VK_DOWN,        ID_EDIT_LINE_DOWN,      VIRTKEY, NOINVERT
    VK_DOWN,        ID_EDIT_SCROLL_DOWN,    VIRTKEY, CONTROL, NOINVERT
    VK_DOWN,        ID_EDIT_EXT_LINE_DOWN,  VIRTKEY, SHIFT, NOINVERT
    VK_END,        ID_EDIT_LINE_END,      VIRTKEY, NOINVERT
    VK_END,        ID_EDIT_TEXT_END,      VIRTKEY, CONTROL, NOINVERT
    VK_END,        ID_EDIT_EXT_LINE_END,  VIRTKEY, SHIFT, NOINVERT
    VK_END,        ID_EDIT_EXT_TEXT_END,  VIRTKEY, SHIFT, CONTROL, NOINVERT
    VK_F1,          ID_HELP_INDEX,          VIRTKEY, NOINVERT
    VK_F10,        ID_DEBUG_NEXTLINE,      VIRTKEY, NOINVERT
    VK_F10,        ID_DEBUGGER_STEP_INTO,  VIRTKEY, CONTROL, NOINVERT
    VK_F10,        ID_DEBUGGER_STEP_UP,    VIRTKEY, SHIFT, NOINVERT
    VK_F11,        ID_CALCULATOR,          VIRTKEY, NOINVERT
    VK_F12,        ID_TOGGLE_OUTPUT,      VIRTKEY, NOINVERT
    VK_F2,          ID_EDIT_GOTO_NEXT_BOOKMARK, VIRTKEY, NOINVERT
    VK_F2,          ID_EDIT_TOGGLE_BOOKMARK, VIRTKEY, CONTROL, NOINVERT
    VK_F2,          ID_EDIT_GOTO_PREV_BOOKMARK, VIRTKEY, SHIFT, NOINVERT
    VK_F2,          ID_EDIT_CLEAR_ALL_BOOKMARKS, VIRTKEY, SHIFT, CONTROL, NOINVERT
    VK_F3,          ID_EDIT_REPEAT,        VIRTKEY, NOINVERT
    VK_F3,          ID_EDIT_FIND_SELECTED,  VIRTKEY, CONTROL, NOINVERT
    VK_F3,          ID_EDIT_FIND_PREVIOUS,  VIRTKEY, SHIFT, NOINVERT
    VK_F4,          ID_BROWSE_FOR_SUB,      VIRTKEY, NOINVERT
    VK_F5,          ID_COMPILER_RUN,        VIRTKEY, NOINVERT
    VK_F5,          ID_COMPILER_RUN,        VIRTKEY, CONTROL, NOINVERT
    VK_F5,          ID_DEBUG_STOP,          VIRTKEY, SHIFT, NOINVERT
    VK_F8,          ID_COMPILER_GPC,        VIRTKEY, NOINVERT
    VK_F8,          ID_COMPILE_MULTIPLATFORM, VIRTKEY, SHIFT, NOINVERT
    VK_F9,          ID_EDIT_TOGGLE_BREAKPOINT, VIRTKEY, NOINVERT
    VK_HOME,        ID_EDIT_HOME,          VIRTKEY, NOINVERT
    VK_HOME,        ID_EDIT_TEXT_BEGIN,    VIRTKEY, CONTROL, NOINVERT
    VK_HOME,        ID_EDIT_EXT_HOME,      VIRTKEY, SHIFT, NOINVERT
    VK_HOME,        ID_EDIT_EXT_TEXT_BEGIN, VIRTKEY, SHIFT, CONTROL, NOINVERT
    VK_INSERT,      ID_EDIT_SWITCH_OVRMODE, VIRTKEY, NOINVERT
    VK_INSERT,      ID_EDIT_COPY,          VIRTKEY, CONTROL, NOINVERT
    VK_INSERT,      ID_EDIT_PASTE,          VIRTKEY, SHIFT, NOINVERT
    VK_LEFT,        ID_EDIT_CHAR_LEFT,      VIRTKEY, NOINVERT
    VK_LEFT,        ID_EDIT_WORD_LEFT,      VIRTKEY, CONTROL, NOINVERT
    VK_LEFT,        ID_EDIT_NAVIGATE_BACK,  VIRTKEY, ALT, NOINVERT
    VK_LEFT,        ID_EDIT_EXT_CHAR_LEFT,  VIRTKEY, SHIFT, NOINVERT
    VK_LEFT,        ID_EDIT_EXT_WORD_LEFT,  VIRTKEY, SHIFT, CONTROL, NOINVERT
    VK_NEXT,        ID_EDIT_PAGE_DOWN,      VIRTKEY, NOINVERT
    VK_NEXT,        ID_EDIT_EXT_PAGE_DOWN,  VIRTKEY, SHIFT, NOINVERT
    VK_PAUSE,      ID_COMPILER_STOP,      VIRTKEY, CONTROL, NOINVERT
    VK_PRIOR,      ID_EDIT_PAGE_UP,        VIRTKEY, NOINVERT
    VK_PRIOR,      ID_EDIT_EXT_PAGE_UP,    VIRTKEY, SHIFT, NOINVERT
    VK_RIGHT,      ID_EDIT_CHAR_RIGHT,    VIRTKEY, NOINVERT
    VK_RIGHT,      ID_EDIT_WORD_RIGHT,    VIRTKEY, CONTROL, NOINVERT
    VK_RIGHT,      ID_EDIT_NAVIGATE_FORWARD, VIRTKEY, ALT, NOINVERT
    VK_RIGHT,      ID_EDIT_EXT_CHAR_RIGHT, VIRTKEY, SHIFT, NOINVERT
    VK_RIGHT,      ID_EDIT_EXT_WORD_RIGHT, VIRTKEY, SHIFT, CONTROL, NOINVERT
    VK_SPACE,      ID_EDIT_COMPLETE_WORD,  VIRTKEY, CONTROL, NOINVERT
    VK_UP,          ID_EDIT_LINE_UP,        VIRTKEY, NOINVERT
    VK_UP,          ID_EDIT_SCROLL_UP,      VIRTKEY, CONTROL, NOINVERT
    VK_UP,          ID_EDIT_EXT_LINE_UP,    VIRTKEY, SHIFT, NOINVERT
    "X",            ID_EDIT_CUT,            VIRTKEY, CONTROL, NOINVERT
    "Y",            ID_EDIT_REDO,          VIRTKEY, CONTROL, NOINVERT
    "Z",            ID_EDIT_UNDO,          VIRTKEY, CONTROL, NOINVERT
END
#92
Try to run the code in parallel, when you have 10000 units. Search for "hawkthreads". It's built into GLBasic, and there's a wrapper for the API.
#93
Off Topic / Re: Interesting deals on asset...
Last post by SnooPI - 2024-Jun-24
:good:


Quote from: dreamerman on 2024-Jun-23The problem with many of those 'cheaper' tileset assets is that they are missing some kind of tiles for example transition tile from grass to dirt/sand, or they are incomplete - just in basic 8 directions without variations, or character animations have only basic movement/idle states so they are good as some kind of base for something simpler or some sketch / mockups projects, yet I shouldn't also demend to much from such pack's because even with those minor issues they contain a lot of assets and offert great value to their price.

I think a good way to make a game for an indie developer is to use the graphics from an old commercial game during development and then redo them.
For example, if we are developing an RTS we can use the graphics from Warcraft 2 (even zooming them if the game is in HD) then if the game is satisfactory redo the graphics, either ourselves (with or without paid assets) or by paying a graphic designer.
This avoids wasting time or money if the game is not satisfactory.

I don't know if I explained myself well, it's not easy in English  =D
#94
The problem with many of those 'cheaper' tileset assets is that they are missing some kind of tiles for example transition tile from grass to dirt/sand, or they are incomplete - just in basic 8 directions without variations, or character animations have only basic movement/idle states so they are good as some kind of base for something simpler or some sketch / mockups projects, yet I shouldn't also demend to much from such pack's because even with those minor issues they contain a lot of assets and offert great value to their price.



Mix Master Music and Vocals Bundle on Fanatical.
Tiers:
3 items -> €1.10
20 items -> €16.59
41 items -> €22.10
End date: ??




and second one even better value:

Essential Game Music-Build Your Own Bundle
on Fanatical.
Tiers:
4+ products -> €0.55 per item
10+ Products -> €0.50 per item
20+ Products -> €0.44 per item
35+ Products -> €0.38 per item (€13.29 for all)
End date: ??




ah and there is some free bundle also:

World Music Day 2024 Giveaway
on Fanatical.
6 music packs with 62 music tracks totally free.
End date: ??


#95
That looks really performant, very nice job dreamerman👍.
Would love to experiment with this algorithm myself too, I think I`ll take a look at it tomorrow as well
#96
Awesome Dreamerman!  :good:
A good idea would be to use Warcraft 2 Sprites for your next demo  ;)
I really believe in the potential of RTS games in a retro 2D style.
#97
GLBasic - de / IDE, gibts da noch mehr?
Last post by nabz32 - 2024-Jun-20
Hi, ich habe erst letztens die nützliche Tastenkombination alt + Pfeiltaste links gefunden, mit der man einfach zurückgehen kann, leider hat alt + Pfeiltaste rechts zum Vorwärtsgehen dann nicht funktioniert.

Ich lese hier auch von strg + leer, was bei mir anscheinend überhaupt nichts tut, bin ich zu dumm, oder gibt es irgendwo ein verstecktes Readme, in welcher alle Tastenkombinationen des GLBasic Editors aufgelistet sind?
#98
Bug Reports / Re: Jpg doesn't work
Last post by Qedo - 2024-Jun-19
Perfect dreamerman as you indicated I replaced the files
..\Steam\steamapps\common\GLBasic_SDK\Compiler\platform\Win32\lib\libGLBasicWin32.a
..\Steam\steamapps\common\GLBasic_SDK\Compiler\platform\Win64\lib\libGLBasicWin64.a
and everything works fine  :enc:
thank you so much

PS it should be the case that Gernot or whoever corrected the installation of GlBasic from Steam
#99
Bug Reports / Re: Jpg doesn't work
Last post by dreamerman - 2024-Jun-19
All included jpg files are loaded and displayed correctly. As you have fresh install of Windows can this be some OS realated thing? Like Defender rules, or SmartScreen protection, did you tried disabling those filters and running GLB Editor as admin (right mouse click, run as admin)? The last thing that comes to my mind is some OpenGL dll/drivers mismatch/issue but don't know how/which libs are used, some API debug tool would be usefully here.

Edit: Didn't specify that but, freshly compiled project on my PC loads jpgs properly, but that included *exe does not, and also it has different file size than exe compiled on my pc.. hm..

Edit 2: After reinstalling GLBasic on Steam again with proper deleting it's directory I can confirm that it contains bug that doesn't allow to load JPG files. I've use WinMerge to seek for differences in files between this version and known working version, and the only differences are in 'libGLBasicWin32.a' and 'libGLBasicWin64.a' files. Current Steam version does produce smaller *exe files like ~100kb, don't have current GLB source so can't check what's causing the issue.
For a temporary fix, use attached libs from working version, I think that they should be same version as those Steam ones, yet those are precompiled by me and contain GETNUMJOYSTICKS fix.
#100
Bug Reports / Re: Jpg doesn't work
Last post by Qedo - 2024-Jun-19
dreamerman
Thanks for your help
I attach the complete project

edit:
I sent you the project but there is a writing error
DRAWSPRITE 10,0,0 must be DRAWSPRITE 0,0,0

however this is not the problem I have, I still don't see the jpgs