Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Runner aborts strategy if any action's field is +/- infinity (c++) #122

Open
victor-istomin opened this issue Jan 17, 2019 · 0 comments

Comments

@victor-istomin
Copy link

Console log:

>codeball2018.exe --version                                                                        
codeball2018 1.1.1                                                                                                                                  
                                                                                                                                                    
>codeball2018.exe --start-paused --results-file result.txt --nitro true --seed 1 --log-file log.txt
INFO - options: Opt {                                                                                                                               
    player_1: "tcp-31001",                                                                                                                          
    player_2: "helper",                                                                                                                             
    player_1_name: None,                                                                                                                            
    player_2_name: None,                                                                                                                            
    player_1_dump: None,                                                                                                                            
    player_2_dump: None,                                                                                                                            
    player_1_tl: None,                                                                                                                              
    player_2_tl: None,                                                                                                                              
    team_size: None,                                                                                                                                
    duration: None,                                                                                                                                 
    nitro: Some(                                                                                                                                    
        true                                                                                                                                        
    ),                                                                                                                                              
    locale: None,                                                                                                                                   
    noshow: false,                                                                                                                                  
    log_file: Some(                                                                                                                                 
        "log.txt"                                                                                                                                   
    ),                                                                                                                                              
    replay: None,                                                                                                                                   
    results_file: Some(                                                                                                                             
        "result.txt"                                                                                                                                
    ),                                                                                                                                              
    seed: Some(                                                                                                                                     
        1                                                                                                                                           
    ),                                                                                                                                              
    export_arena: None,                                                                                                                             
    start_paused: true,                                                                                                                             
    no_countdown: false,                                                                                                                            
    until_first_goal: false,                                                                                                                        
    vsync: false,                                                                                                                                   
    fast_forward: None,                                                                                                                             
    disable_random: false                                                                                                                           
}                                                                                                                                                   

INFO - Waiting for client on port 31001                             
INFO - Guessed window DPI factor: 1                                 
INFO - GL version: "4.6.0 NVIDIA 388.59"                            
INFO - Successfully loaded "save.json"                              
INFO - Client connected on port 31001                               
ERROR - Player down: EOF while parsing a value at line 1 column 90  
                                                                                                         

action:
action.target_velocity_z = std::numeric_limits<double>::infinity();

Aborted in:

unique_ptr<Game> RemoteProcessClient::read_game() {
    string line = readline();
    if (line.empty()) {
        return unique_ptr<Game>();    <--- // line is empty
    }
    Document d;
    d.Parse(line.c_str());
    unique_ptr<Game> result(new Game());
    result->read(d);
    return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant