Windows 10 and Flare (Some bugs)

Windows 10 and Flare (Some bugs)

Hi,

 

Well, tried today to compile and run flare on a Windows 10 machine (64 bits) and run into some problems:

 

- Aparrently mingw doesn't like 64 bits and you get a lot of trouble to actually make it link with the necessary and correct libs.

(What I've done was install the MSYS version from this website, recomended by SDL: http://mingw-w64.org)

 

- PlatformWin32.cpp is not really updated. It's missing some config inicialization and because of that, clicking in configuration and on new game (after character creation) leads to a Segmentation Fault cause it tries to access those vectors that have not being initialized. Fixing the constructor in PlatformWin32.cpp has fixed this problem.

- I wasn't able to use the --data-path to set a different location for the mod files. I had to copy that to the mod directory under the flare.exe directory. There's something wrong with paths on windows and I hadn't time to dig on this for now.

 

- BehaviorStandard.cpp, line 194 is also Segfaulting.

    pursue_pos = target_stats->pos;

   Aparrently target_stats might be NULL.

   I think that I was being killed while I killed an Skeleton at almost the same time.

   (not sure, but maybe a lock is needed on this case?)

Well,

So far is that. If I find any more problems and/or solutions, I'll post here.

Cheers and nice work!