Updating Game Screenplay - Shaunakdas/doc_genius_native GitHub Wiki
Codebases involved
Approaches
- Adding screenplay without unity script change
- Adding screenplay with unity script change
- Editing screenplay without unity script change
- Editing screenplay with unity script change
Adding Screenplay
- New Screenplay: screenplay_new
Without Unity script change
Prerequisites:
- screenplay_new runs successfully in Unity Editor with correct score
- Screenplay has a separate branch with master and screenplay_new :
same_unity_new_DDMmm_serial
Excel Changes
- Adding a row in Excel with adding
.[+1]at the end of name - In a separate branch of Backend
seed_add_WR_DDMmm_serial, Copying excel to db folder
Prod Db Changes
- [TODO] Adding Working Rule through API (params: question_type, question_text)
Rails will check question_type, sub_topic, and so on to check if that node exists. At first node that exists, it will create all the sub_nodes based on the API params
{
"question_text":"",
"question_type": {
"name":"",
"slug":""
},
"sub_topic":{
"name":"",
"slug":""
},
..,
..
}
Testing changes
- Check in app, new working rule should be visible
Merging back to original branch
- Merge
same_unity_new_DDMmm_serialback to Screenplay and delete the branch - Merge
seed_add_WR_DDMmm_serialback to Backend and delete the branch
With Unity Script change
Screenplay Changes:
- Screenplay has a separate branch with master and screenplay_new :
edit_unity_new_DDMmm_serial
Unity Changes:
- Unity has a separate branch with master and changes:
<stream_name>_DDMmm_serial - Export android folder inside
<stream_name>_DDMmm_serialfolder.
Testing changes
- Check in Unity Editor, new working rule should be working.
Excel Changes
- Adding a row in Excel with adding
.[+1]at the end of name - In a separate branch of Backend
seed_add_WR_DDMmm_serial, Copying excel to db folder
Prod Db Changes
- [TODO] Adding Working Rule through API (params: question_type, question_text)
Rails will check question_type, sub_topic, and so on to check if that node exists. At first node that exists, it will create all the sub_nodes based on the API params
{
"question_text":"",
"question_type": {
"name":"",
"slug":""
},
"sub_topic":{
"name":"",
"slug":""
},
..,
..
}
App Changes
- In new branch
integrated_<stream_name>_DDMmm_serial, Copy data folder contents from<stream_name>_DDMmm_serialfolder
Testing changes
- Generate apk using this link
- Check in app, edited working rule should be visible
Merging back to original branch
- Merge
edit_unity_new_DDMmm_serialback to Screenplay and delete the branch - Merge
seed_add_WR_DDMmm_serialback to Backend and delete the branch - Merge
<stream_name>_DDMmm_serialback to Unity and delete the branch - Merge
integrated_<stream_name>_DDMmm_serialback to App and delete the branch
Editing Screenplay
Without Unity script change
Prerequisites:
- screenplay_new runs successfully in Unity Editor with correct score
- Screenplay has a separate branch with master and screenplay_new :
same_unity_new_DDMmm_serial
Excel Changes
- Editing a row in Excel with adding
.[+1]at the end of the name - In a separate branch of Backend
seed_edit_WR_DDMmm_serial, Copying excel to db folder
Prod Db Changes
- [TODO] Editing Working Rule through API (params: question_type, question_text)
Testing changes
- Check in app, edited working rule should be visible
Merging back to original branch
- Merge
same_unity_edit_DDMmm_serialback to Screenplay and delete the branch - Merge
seed_edit_WR_DDMmm_serialback to Backend and delete the branch
With Unity Script change
Screenplay Changes:
- Screenplay has a separate branch with master and screenplay_new :
edit_unity_edit_DDMmm_serial
Unity Changes:
- Unity has a separate branch with master and changes:
<stream_name>_DDMmm_serial
Testing changes
- Check in Unity Editor, new working rule should be working.
Excel Changes
- Editing a row in Excel with adding
.[+1]at the end of name - In a separate branch of Backend
seed_edit_WR_DDMmm_serial, Copying excel to db folder
Prod Db Changes
- [TODO] Editing Working Rule through API (params: question_type, question_text)
App Changes
- In new branch
integrated_<stream_name>_DDMmm_serial, Copy data folder contents from<stream_name>_DDMmm_serialfolder
Testing changes
- Generate apk using this link
- Check in app, edited working rule should be visible
Merging back to original branch
- Merge
same_unity_edit_DDMmm_serialback to Screenplay and delete the branch - Merge
seed_edit_WR_DDMmm_serialback to Backend and delete the branch - Merge
<stream_name>_DDMmm_serialback to Unity and delete the branch - Merge
integrated_<stream_name>_DDMmm_serialback to App and delete the branch