Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

games does not start

A topic by alvarius1 created Jul 10, 2020 Views: 229 Replies: 2
Viewing posts 1 to 3

i checked error.log, it gives following response:

COMPILE ERROR - file: globals.c; line: 191
Function [GetKeyboardLayout] already declared in: start line 0

tried tinkering with globals.c but to no avail. any fix to that?

Developer

I added a new function into the engine that the scripts will be able to access, called GetKeyboardLayout.  That function is not used by any of the mods yet, but will help detect different key layouts so that the default command mappings can be changed for different layouts, which is planned for ERAS.  When I added it to the engine, I did not realize that the New Horizons mod already had a function their devs had added to their scripts and there cannot be two functions with the same name, whether they are in the scripts or the engine; I did not realize they already had a GetKeyboardLayout function.  Since my new function is not used by any other mod yet, because it is still in development, the easiest fix is to rename the new engine function to GetKeyboardLayoutName, so that is what I just did.  If you update the Maelstrom from the recent upload I just did a few minutes ago, the problem for New Horizons will be fixed.

seems to be working now. thanks