diff --git a/Dockerfile b/Dockerfile index 6ec98b3..1e18dbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,7 @@ RUN chown -R ue4:ue4 /app && \ USER ue4 # Default command (modify as needed) -CMD ["/bin/bash"] \ No newline at end of file +# cd into /Packages/Manager +# Run evolved-npcs with: RUST_LOG=info ./evolved-npcs --file ./simulations.json +WORKDIR /app/Packages/Manager +CMD RUST_LOG=info ./evolved-npcs --file ./simulations.json \ No newline at end of file diff --git a/evolved-npcs/src/fighter_nn/fighter_context.rs b/evolved-npcs/src/fighter_nn/fighter_context.rs index dc0ea22..901354f 100644 --- a/evolved-npcs/src/fighter_nn/fighter_context.rs +++ b/evolved-npcs/src/fighter_nn/fighter_context.rs @@ -4,7 +4,7 @@ use serde::ser::SerializeTuple; use serde::{Deserialize, Deserializer, Serialize, Serializer}; use tokio::sync::Semaphore; -const SHARED_SEMAPHORE_CONCURRENCY_LIMIT: usize = 5; +const SHARED_SEMAPHORE_CONCURRENCY_LIMIT: usize = 20; const VISIBLE_SIMULATIONS_CONCURRENCY_LIMIT: usize = 1; #[derive(Debug, Clone)] diff --git a/evolved-npcs/src/fighter_nn/mod.rs b/evolved-npcs/src/fighter_nn/mod.rs index 34fa550..575db54 100644 --- a/evolved-npcs/src/fighter_nn/mod.rs +++ b/evolved-npcs/src/fighter_nn/mod.rs @@ -57,7 +57,7 @@ const SIMULATION_ROUNDS: usize = 5; const SURVIVAL_RATE_MIN: f32 = 0.1; const SURVIVAL_RATE_MAX: f32 = 0.9; const GAME_EXECUTABLE_PATH: &str = - "../Linux_Static_Library/AI_Fight_Sim/Binaries/Linux/AI_Fight_Sim"; + "/app/Packages/Linux_Static_Library/AI_Fight_Sim/Binaries/Linux/AI_Fight_Sim"; // Here is the folder structure for the FighterNN: // base_dir/fighter_nn_{fighter_id}/{generation}/{fighter_id}_fighter_nn_{nn_id}.net