DuckHunter Game lazarus / 74-Games ---------------------------------------------------------------------- Guva · 2025-03-24 12:09 The game is almost finished. Recommended for reference only!  Since almost everything is a shit code https://github.com/GuvaCode/DuckHunter ---------------------------------------------------------------------- Lulu · 2025-03-24 21:05 Hi Guva, Thanks to share. the game seems nice but, on Windows 10 machine, one can see the landscape with the text 'LEVEL 1', we can move the target with the mouse but nothing append. Duck don't appears, no dog. ---------------------------------------------------------------------- TRon · 2025-03-24 22:22 Hi Guva, Thank you for sharing. Trying to compile from source with FPC (no Lazarus) and seem to be missing the create method for TVector2 record. Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i fpc -Mobjfpc -B -Furaylib DuckHunt.lprFree Pascal Compiler version 3.2.3 [2024/09/23] for x86_64Copyright (c) 1993-2024 by Florian Klaempfl and othersTarget OS: Linux for x86-64Compiling DuckHunt.lprCompiling ./raylib/raylib.pasCompiling ./raylib/raymath.pasCompiling ray_sprite_engine.pasCompiling ray_math2d.pasray_math2d.pas(114,19) Warning: function result variable of a managed type does not seem to be initializedray_math2d.pas(156,19) Warning: function result variable of a managed type does not seem to be initializedray_math2d.pas(181,19) Warning: function result variable of a managed type does not seem to be initializedDuckHunt.lpr(379,10) Error: identifier idents no member "Create"DuckHunt.lpr(380,22) Warning: Local variable "target" does not seem to be initializedDuckHunt.lpr(730,20) Error: identifier idents no member "Create"DuckHunt.lpr(734,52) Warning: Local variable "fontPosition1" does not seem to be initializedDuckHunt.lpr(812) Fatal: There were 2 errors compiling module, stoppingFatal: Compilation abortedError: ppcx64 returned an error exitcode  Most probably something simple that I've overlooked... ---------------------------------------------------------------------- Leledumbo · 2025-03-24 22:37 VCS best practice: Don't commit binaries, put them (alongsize resources in expected directory structure, compressed) in Releases page insteadDon't commit compiled files: *.compiled, *.o, *.ppu, put them in .gitignore will prevent future accidents ---------------------------------------------------------------------- Guva · 2025-03-25 02:29 Quote from: TRon on March 24, 2025, 11:22:03 pmHi Guva, Thank you for sharing. Trying to compile from source with FPC (no Lazarus) and seem to be missing the create method for TVector2 record. Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i fpc -Mobjfpc -B -Furaylib DuckHunt.lprFree Pascal Compiler version 3.2.3 [2024/09/23] for x86_64Copyright (c) 1993-2024 by Florian Klaempfl and othersTarget OS: Linux for x86-64Compiling DuckHunt.lprCompiling ./raylib/raylib.pasCompiling ./raylib/raymath.pasCompiling ray_sprite_engine.pasCompiling ray_math2d.pasray_math2d.pas(114,19) Warning: function result variable of a managed type does not seem to be initializedray_math2d.pas(156,19) Warning: function result variable of a managed type does not seem to be initializedray_math2d.pas(181,19) Warning: function result variable of a managed type does not seem to be initializedDuckHunt.lpr(379,10) Error: identifier idents no member "Create"DuckHunt.lpr(380,22) Warning: Local variable "target" does not seem to be initializedDuckHunt.lpr(730,20) Error: identifier idents no member "Create"DuckHunt.lpr(734,52) Warning: Local variable "fontPosition1" does not seem to be initializedDuckHunt.lpr(812) Fatal: There were 2 errors compiling module, stoppingFatal: Compilation abortedError: ppcx64 returned an error exitcode  Most probably something simple that I've overlooked... Do you have an old version? replace the Target := Vector2Create(GetMousePosition.x - 75/2, GetMousePosition.y - 75/2 ) ---------------------------------------------------------------------- Guva · 2025-03-25 02:35 Quote from: Lulu on March 24, 2025, 10:05:51 pmHi Guva, Thanks to share. the game seems nice but, on Windows 10 machine, one can see the landscape with the text 'LEVEL 1', we can move the target with the mouse but nothing append. Duck don't appears, no dog. Yes, I checked, and it doesn't work on windows. There is no animation. We'll figure out where the error is. ---------------------------------------------------------------------- Guva · 2025-03-25 02:37 Quote from: Leledumbo on March 24, 2025, 11:37:03 pmVCS best practice: Don't commit binaries, put them (alongsize resources in expected directory structure, compressed) in Releases page insteadDon't commit compiled files: *.compiled, *.o, *.ppu, put them in .gitignore will prevent future accidentsSo what's the problem!  send a `pr` to .gitignore ---------------------------------------------------------------------- TRon · 2025-03-25 03:19 Quote from: Guva on March 25, 2025, 03:29:24 amDo you have an old version? replace the Target := Vector2Create(GetMousePosition.x - 75/2, GetMousePosition.y - 75/2 ) No old version. Source coming straight from your repo that contains a single commit. Thank you for the hint though as I missed that. line 379 line 730 I am/was not sure whether or not there is a record helper hidden somewhere.