Potential GiGi replacements: Godot

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Potential GiGi replacements: Godot

#46 Post by Geoff the Medio »

Hmm, apparently I got the no-pullrequest-dedicated-server branch when cloning...

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#47 Post by o01eg »

Geoff the Medio wrote: Fri Apr 16, 2021 2:04 pm The .exe files are put in build/Release/ which doesn't work well since there is no default directory there. I can't even run freeorion -h for help, without default there..

Can they instead be output to ../ (so the directory that contains build)?
Yes, we can add POST_BUILD step which copy files to ../

Actually on Linux CMake instead makes links from project sources to build/ . Maybe it could work on windows.

When I played with CMake on Windows before I made ZIP archive with cpack and then extract it somewhere.
Geoff the Medio wrote: Fri Apr 16, 2021 2:04 pm Also, I don't have a Godot client... just usual GG-based one.
Godot client is freeorongodot.dll. You need to download Godot for windows https://godotengine.org/download/windows, place it with default, .exe, and .dll files, and then start it.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Potential GiGi replacements: Godot

#48 Post by Geoff the Medio »

o01eg wrote: Fri Apr 16, 2021 2:23 pm Godot client is freeorongodot.dll. You need to download Godot for windows https://godotengine.org/download/windows, place it with default, .exe, and .dll files, and then start it.
I need more specific instructions. I put the Godot_v3.2.3-stable_win64.exe in the Release directory and started it, but I don't know what to do next. I can open a directory browser in the engine, but can't select a .dll file. I also don't see any freeoriongodot.dll in /build/Release Where is that supposed to be?

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#49 Post by o01eg »

Geoff the Medio wrote: Fri Apr 16, 2021 2:56 pm
o01eg wrote: Fri Apr 16, 2021 2:23 pm Godot client is freeorongodot.dll. You need to download Godot for windows https://godotengine.org/download/windows, place it with default, .exe, and .dll files, and then start it.
I need more specific instructions. I put the Godot_v3.2.3-stable_win64.exe in the Release directory and started it, but I don't know what to do next. I can open a directory browser in the engine, but can't select a .dll file. I also don't see any freeoriongodot.dll in /build/Release Where is that supposed to be?
freeoriongodot library expected to build by default in build-godot branch and placed somewhere in godot/client/bin. Which commit you build?

Also you should add to [entry] section in godot/client/gdcpptest.gdnlib path to that library relative to godot/client

Code: Select all

Windows.64="res://bin/win64/freeoriongodot.dll"
And launch the game with

Code: Select all

Godot_v3.2.3-stable_win64.exe --path godot/client
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Potential GiGi replacements: Godot

#50 Post by Geoff the Medio »

I clone master, copy the stuff from bin into the repository directory, switch to the godot-build branch, rebase on master, pick the fixes to cmake and the includes discussed earlier, generate the build files (first cmake call), then try to run the second cmake call to build, and get a long that starts with

Code: Select all

Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrion2/CMakeLists.txt
  Creating directories for 'godotcpp'
  Performing download step (git clone) for 'godotcpp'
  ArithmeticRules.cpp
  BuildingsParser.cpp
  Cloning into 'godot-cpp'...
  HEAD is now at d7c55b1 Merge pull request #530 from Faless/js/scons_and_readme
  Submodule 'godot-headers' (https://github.com/godotengine/godot-headers) registered for path 'godot-headers'
  Cloning into 'C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrion2/build/godot-cpp/godot-headers'...
  Submodule path 'godot-headers': checked out '815f34e1e96c09122449105c55aba501654da029'
  Performing update step for 'godotcpp'
  No patch step for 'godotcpp'
  Performing configure step for 'godotcpp'
  -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
  -- The C compiler identification is MSVC 19.28.29336.0
  -- The CXX compiler identification is MSVC 19.28.29336.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
  Call Stack (most recent call first):
    C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
    C:/Program Files/CMake/share/cmake-3.20/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    CMakeLists.txt:136 (find_package)
  
  
  -- Configuring incomplete, errors occurred!
  See also "C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrion2/build/godot-cpp-build/CMakeFiles/CMakeOutput.log".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: Custom build for 'C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-mkdir.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-download.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-update.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-patch.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-configure.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-build.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-install.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\357b0182e461b006149328b8ff294df1\godotcpp-complete.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\c790fb7ec2136ff5ec086775eb4c5348\godotcpp.rule' exited with code 1. [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\godotcpp.vcxproj]
  CommonParamsParser.cpp

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#51 Post by o01eg »

Geoff the Medio wrote: Fri Apr 16, 2021 8:10 pm I clone master, copy the stuff from bin into the repository directory, switch to the godot-build branch, rebase on master, pick the fixes to cmake and the includes discussed earlier, generate the build files (first cmake call), then try to run the second cmake call to build, and get a long that starts with

Code: Select all

Microsoft (R) Build Engine version 16.8.3+39993bd9d for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrion2/CMakeLists.txt
  Creating directories for 'godotcpp'
  Performing download step (git clone) for 'godotcpp'
  ArithmeticRules.cpp
  BuildingsParser.cpp
  Cloning into 'godot-cpp'...
  HEAD is now at d7c55b1 Merge pull request #530 from Faless/js/scons_and_readme
  Submodule 'godot-headers' (https://github.com/godotengine/godot-headers) registered for path 'godot-headers'
  Cloning into 'C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrion2/build/godot-cpp/godot-headers'...
  Submodule path 'godot-headers': checked out '815f34e1e96c09122449105c55aba501654da029'
  Performing update step for 'godotcpp'
  No patch step for 'godotcpp'
  Performing configure step for 'godotcpp'
  -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041.
  -- The C compiler identification is MSVC 19.28.29336.0
  -- The CXX compiler identification is MSVC 19.28.29336.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x86/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Error at C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
  Call Stack (most recent call first):
    C:/Program Files/CMake/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
    C:/Program Files/CMake/share/cmake-3.20/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    CMakeLists.txt:136 (find_package)
  
  
  -- Configuring incomplete, errors occurred!
  See also "C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrion2/build/godot-cpp-build/CMakeFiles/CMakeOutput.log".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: Custom build for 'C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-mkdir.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-download.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-update.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-patch.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-configure.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-build.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\fe13a466e94ac0f5e09b0fafb4e03e2d\godotcpp-install.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\357b0182e461b006149328b8ff294df1\godotcpp-complete.rule;C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\CMakeFiles\c790fb7ec2136ff5ec086775eb4c5348\godotcpp.rule' exited with code 1. [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrion2\build\godotcpp.vcxproj]
  CommonParamsParser.cpp
It looks hard because same find_package(PythonInterp...) works for FreeOrion's cmake.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#52 Post by o01eg »

Not sure why godot-cpp couldn't find python itself but it could be simply fixed.

Other issue with it on Windows still awaiting for fox to be merged: https://github.com/godotengine/godot-cpp/pull/536
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Potential GiGi replacements: Godot

#53 Post by Geoff the Medio »

o01eg wrote: Fri Apr 16, 2021 8:46 pm Not sure why godot-cpp couldn't find python itself but it could be simply fixed.
Did you fix and push it? I still get the error...

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#54 Post by o01eg »

Geoff the Medio wrote: Sat Apr 17, 2021 12:27 am
o01eg wrote: Fri Apr 16, 2021 8:46 pm Not sure why godot-cpp couldn't find python itself but it could be simply fixed.
Did you fix and push it? I still get the error...
I've merged together all fixes. Try branch build-godot-windows-cmake from my repo https://github.com/o01eg/freeorion/tree ... dows-cmake

Edit: At least it builds on CI https://github.com/o01eg/freeorion/runs/2367949778

Edit: I also tryied to prepare NSIS installator for it https://github.com/o01eg/freeorion/acti ... /758096324
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Potential GiGi replacements: Godot

#55 Post by Geoff the Medio »

o01eg wrote: Sat Apr 17, 2021 5:08 amI've merged together all fixes. Try branch build-godot-windows-cmake from my repo https://github.com/o01eg/freeorion/tree ... dows-cmake
Seems to be missing the extra includes...

Code: Select all

C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.h(61,10): error C2039: 'string': is not a member of 'std' (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\set(23): message : see declaration of 'std' (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]
C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.h(61,25): error C3646: 'Dump': unknown override specifier (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]
C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.h(61,25): error C2059: syntax error: '(' (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#56 Post by o01eg »

Geoff the Medio wrote: Sat Apr 17, 2021 9:44 am
o01eg wrote: Sat Apr 17, 2021 5:08 amI've merged together all fixes. Try branch build-godot-windows-cmake from my repo https://github.com/o01eg/freeorion/tree ... dows-cmake
Seems to be missing the extra includes...

Code: Select all

C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.h(61,10): error C2039: 'string': is not a member of 'std' (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\set(23): message : see declaration of 'std' (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]
C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.h(61,25): error C3646: 'Dump': unknown override specifier (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]
C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.h(61,25): error C2059: syntax error: '(' (compiling source file C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\util\OrderSet.cpp) [C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG\build\freeorioncommon.vcxproj]
It looks strange because extra includes are here:
https://github.com/o01eg/freeorion/blob ... rSet.h#L13
https://github.com/o01eg/freeorion/blob ... /Enum.h#L6
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Potential GiGi replacements: Godot

#57 Post by Geoff the Medio »

Apparently I got the no-pullrequest-dedicated-server branch when cloning.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13586
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Potential GiGi replacements: Godot

#58 Post by Geoff the Medio »

o01eg wrote: Fri Apr 16, 2021 3:17 pmAlso you should add to [entry] section in godot/client/gdcpptest.gdnlib path to that library relative to godot/client

Code: Select all

Windows.64="res://bin/win64/freeoriongodot.dll"
Like

Code: Select all

Windows.64="res://../../build/Release/freeoriongodot.dll"
? The required format isn't clear for a relative path...

It appears to start but I get

Code: Select all

C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG>Godot_v3.2.3-stable_win64.exe --path godot/client
Godot Engine v3.2.3.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GTX 1650 SUPER/PCIe/SSE2

ERROR: Can't open dynamic library: C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrionG/godot/client/../../build/Release/freeoriongodot.dll, error: Error 193: %1 is not a valid Win32 application.
.
   At: platform/windows/os_windows.cpp:2395
ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
   At: modules/gdnative/gdnative.cpp:501
ERROR: init_library: No nativescript_init in "res://../../build/Release/freeoriongodot.dll" found
   At: modules/gdnative/nativescript/nativescript.cpp:1506
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'ping' to method 'Control._on_Node_ping'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'auth_request' to method 'Control._on_Node_auth_request'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'empire_status' to method 'Control._on_Node_empire_status'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'start_game' to method 'Control._on_Node_start_game'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'error' to method 'Control._on_Node_error'.
   At: core/object.cpp:1503
SCRIPT ERROR: _ready: Invalid get index 'optionsDB' (on base: 'Node').
          At: res://FreeOrionClient.gd:32
directory view
directory view
godot freeorion dll.png (68.27 KiB) Viewed 2512 times
Then clicking quickstart, I get

Code: Select all

SCRIPT ERROR: _on_QuickstartBtn_pressed: Invalid call. Nonexistent function '_new_single_player_game' in base 'Node'.
          At: res://FreeOrionClient.gd:73
Single player opens the setup screen but clicking OK gives

Code: Select all

SCRIPT ERROR: _on_GameSetupDlg_ok: Invalid call. Nonexistent function '_new_single_player_game' in base 'Node'.
          At: res://FreeOrionClient.gd:78

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#59 Post by o01eg »

Geoff the Medio wrote: Sat Apr 17, 2021 11:09 am
o01eg wrote: Fri Apr 16, 2021 3:17 pmAlso you should add to [entry] section in godot/client/gdcpptest.gdnlib path to that library relative to godot/client

Code: Select all

Windows.64="res://bin/win64/freeoriongodot.dll"
Like

Code: Select all

Windows.64="res://../../build/Release/freeoriongodot.dll"
? The required format isn't clear for a relative path...

It appears to start but I get

Code: Select all

C:\Users\g_top\Desktop\FOSDK11_Godot\FreeOrionG>Godot_v3.2.3-stable_win64.exe --path godot/client
Godot Engine v3.2.3.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GTX 1650 SUPER/PCIe/SSE2

ERROR: Can't open dynamic library: C:/Users/g_top/Desktop/FOSDK11_Godot/FreeOrionG/godot/client/../../build/Release/freeoriongodot.dll, error: Error 193: %1 is not a valid Win32 application.
.
   At: platform/windows/os_windows.cpp:2395
ERROR: get_symbol: No valid library handle, can't get symbol from GDNative object
   At: modules/gdnative/gdnative.cpp:501
ERROR: init_library: No nativescript_init in "res://../../build/Release/freeoriongodot.dll" found
   At: modules/gdnative/nativescript/nativescript.cpp:1506
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'ping' to method 'Control._on_Node_ping'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'auth_request' to method 'Control._on_Node_auth_request'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'empire_status' to method 'Control._on_Node_empire_status'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'start_game' to method 'Control._on_Node_start_game'.
   At: core/object.cpp:1503
ERROR: In Object of type 'Node': Attempt to connect nonexistent signal 'error' to method 'Control._on_Node_error'.
   At: core/object.cpp:1503
SCRIPT ERROR: _ready: Invalid get index 'optionsDB' (on base: 'Node').
          At: res://FreeOrionClient.gd:32
godot freeorion dll.png

Then clicking quickstart, I get

Code: Select all

SCRIPT ERROR: _on_QuickstartBtn_pressed: Invalid call. Nonexistent function '_new_single_player_game' in base 'Node'.
          At: res://FreeOrionClient.gd:73
Single player opens the setup screen but clicking OK gives

Code: Select all

SCRIPT ERROR: _on_GameSetupDlg_ok: Invalid call. Nonexistent function '_new_single_player_game' in base 'Node'.
          At: res://FreeOrionClient.gd:78
Did you build win64 or win32 library?
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

o01eg
Programmer
Posts: 1998
Joined: Sat Dec 10, 2011 5:46 am

Re: Potential GiGi replacements: Godot

#60 Post by o01eg »

Not sure how to check it. Could you move freeoriongodot.dll somewhere else and check if you didn't get same Error 193: %1 is not a valid Win32 application.?

If it happened you built 32-library just use 32-bit godot and entry

Code: Select all

Windows.32="res://..../freeoriongodot.dll"
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-01-30.0dd6806.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm

Post Reply