Final adjustments for simulations
This commit is contained in:
parent
315ac657aa
commit
fe26123170
3 changed files with 6 additions and 3 deletions
|
|
@ -23,4 +23,7 @@ RUN chown -R ue4:ue4 /app && \
|
|||
USER ue4
|
||||
|
||||
# Default command (modify as needed)
|
||||
CMD ["/bin/bash"]
|
||||
# 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
|
||||
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue