Well the marks in scorm only gets set when the scrom package itself sends this information to scorm api .
If it does not then default marks without above code sets to 0 ,
The above code changes that default score to 100 .
updated code to check whether scorm marks are set or not :
add_filter('wplms_course_student_marks',function($u_marks,$id,$user_id){
$upload_course = get_post_meta($id,'vibe_course_package',true);
if(!empty($upload_course )){
$marks = get_post_meta($id,$user_id,true);
if(empty($marks)){
return 100;
}else{
return $marks;
}
}
return $u_marks;
},10,3);