pastra98 / NEAT_for_Godot

An implementation of Kenneth O. Stanley's NEAT Algorithm for the Godot game engine, written in gdscript.
MIT License
36 stars 9 forks source link

GUI not showing genome and placing only one body #13

Closed amzker closed 1 year ago

amzker commented 1 year ago

Issue:

  1. it is only placing one agent
  2. in gui i can't see genome nor i can click on species (number update works properly).

source code: https://github.com/amzker/TIME-PASS_NEAT.git

Files:

cfg: https://github.com/amzker/TIME-PASS_NEAT/blob/c6bbd050b18bb7bc8723f80e79ae42451ba4b753/AI/AI_params.cfg Loader scene: https://github.com/amzker/TIME-PASS_NEAT/blob/c6bbd050b18bb7bc8723f80e79ae42451ba4b753/AI/TrainAI.tscn

Loader script: https://github.com/amzker/TIME-PASS_NEAT/blob/c6bbd050b18bb7bc8723f80e79ae42451ba4b753/AI/TrainAI.gd

agent: https://github.com/amzker/TIME-PASS_NEAT/blob/c6bbd050b18bb7bc8723f80e79ae42451ba4b753/src/actors/player.tscn agent script: https://github.com/amzker/TIME-PASS_NEAT/blob/c6bbd050b18bb7bc8723f80e79ae42451ba4b753/src/actors/player.gd

Track/Level: https://github.com/amzker/TIME-PASS_NEAT/blob/c6bbd050b18bb7bc8723f80e79ae42451ba4b753/src/levels/testlv.tscn Track have no script which can affect here.

EDIT: all agents are getting placed as in my coin counter it clearly shows 40 (my population size) on 1 coin, but i can't see them. EDIT2: agents issue was solved. the issue was i set action_press() because of which all agents were controllred at same time. changed it with directions and now it works, GUI issue is left

EDIT3: I solved the issue it was because of fucking portal and canvas layer