C3Fire

Difference between revisions of "Project/Instructions"

From C3LearningLabs
 
(6 intermediate revisions by the same user not shown)
Line 21: Line 21:
 
;UI images, max fire image, max fire video
 
;UI images, max fire image, max fire video
 
# Start manager, and all players.
 
# Start manager, and all players.
# Start session and pause directly when fire is viewed.
+
# Start session and pause directly when fire is viewed in managers ui.
 +
# In players select unit so that the control unit panel is displayed.
 
# Take picture of manager and all players, name xxx-ui-manage, xxx-ui-player-name .
 
# Take picture of manager and all players, name xxx-ui-manage, xxx-ui-player-name .
 
# Copy the UI images to ...\Info\Images\UI\
 
# Copy the UI images to ...\Info\Images\UI\
Line 27: Line 28:
 
# Copy the map images to \Info\Images\Map\
 
# Copy the map images to \Info\Images\Map\
 
# Start the session and let run to the end.
 
# Start the session and let run to the end.
# Take max fire development picture, name xxx-maxfire
+
# Take max fire development picture in manager, name xxx-maxfire
 
# Copy the max fire development images to \Info\Images\MaxFire\
 
# Copy the max fire development images to \Info\Images\MaxFire\
 
# Copy the '''log folder''' to \Info\LogFiles\MaxFire\SESSION-NAME\  
 
# Copy the '''log folder''' to \Info\LogFiles\MaxFire\SESSION-NAME\  
Line 33: Line 34:
 
# Record video of max fire development replay, name xxx-maxfire-replay
 
# Record video of max fire development replay, name xxx-maxfire-replay
 
# Copy the video file to \Info\Video\MaxFire\
 
# Copy the video file to \Info\Video\MaxFire\
 +
 +
;Logfiles
 +
#Zip the Log file folder, \Info\LogFiles, name xxx-logfiles
 +
#Copy to \Info\LogFiles\
  
 
== Import files to Wiki ==
 
== Import files to Wiki ==
Line 38: Line 43:
  
 
;Copy Images to server
 
;Copy Images to server
:C3Sys::Copy images to, /opt/docker/mediawiki/c3sys/html/w/newimages/
+
:Copy images to, /opt/docker/mediawiki/c3sys/html/w/newimages/
  
 
;Copy to docker image
 
;Copy to docker image
:C3Sys: <code>sudo docker cp /opt/docker/mediawiki/c3sys/html/w/newimages/ mediawiki_c3sys:/var/www/html/w/</code>
+
:<code>sudo docker cp /opt/docker/mediawiki/c3sys/html/w/newimages/ mediawiki_c3sys:/var/www/html/w/</code>
  
 
;Run Script in docker image
 
;Run Script in docker image
:C3Sys: <code>docker exec -it mediawiki_c3sys /bin/bash</code>
+
:<code>docker exec -it mediawiki_c3sys /bin/bash</code>
:<code>php maintenance/importImages.php /var/www/html/w/newimages --overwrite --user="Rego Granlund"</code>
+
:<code>php w/maintenance/importImages.php /var/www/html/w/newimages --overwrite --user="Rego Granlund"</code>
  
 
:Remove images in newimages folder, run in container
 
:Remove images in newimages folder, run in container
 
:<code>rm /var/www/html/w/newimages/*</code>
 
:<code>rm /var/www/html/w/newimages/*</code>
 +
 +
;Remove images in newimages folder, run outside container
 +
:<code>rm /opt/docker/mediawiki/c3sys/html/w/newimages/*</code>

Latest revision as of 17:01, 26 August 2021

Year YYYY
Example
2017-<NAME>
Example: 2017-SweCanTeam-1


Files

Images should be stored in folder
  • ...\MediaWiki\Sync\Images\C3LL\Research\Projects\<PROJECT-NAME>


Download files should be stored in folder :
  • ...\MediaWiki\SyncNo\download\doc\projects\<PROJECT-NAME>


Documentations

Create Images and Video

UI images, max fire image, max fire video
  1. Start manager, and all players.
  2. Start session and pause directly when fire is viewed in managers ui.
  3. In players select unit so that the control unit panel is displayed.
  4. Take picture of manager and all players, name xxx-ui-manage, xxx-ui-player-name .
  5. Copy the UI images to ...\Info\Images\UI\
  6. Take picture of manager map, name xxx-map.
  7. Copy the map images to \Info\Images\Map\
  8. Start the session and let run to the end.
  9. Take max fire development picture in manager, name xxx-maxfire
  10. Copy the max fire development images to \Info\Images\MaxFire\
  11. Copy the log folder to \Info\LogFiles\MaxFire\SESSION-NAME\
  12. YOU SHOULD COPY THE WHOLE SESSION LOG FOLDER, FOR THE SPECIFIC SESSION !!!
  13. Record video of max fire development replay, name xxx-maxfire-replay
  14. Copy the video file to \Info\Video\MaxFire\
Logfiles
  1. Zip the Log file folder, \Info\LogFiles, name xxx-logfiles
  2. Copy to \Info\LogFiles\

Import files to Wiki

Copy Images to server
Copy images to, /opt/docker/mediawiki/c3sys/html/w/newimages/
Copy to docker image
sudo docker cp /opt/docker/mediawiki/c3sys/html/w/newimages/ mediawiki_c3sys:/var/www/html/w/
Run Script in docker image
docker exec -it mediawiki_c3sys /bin/bash
php w/maintenance/importImages.php /var/www/html/w/newimages --overwrite --user="Rego Granlund"
Remove images in newimages folder, run in container
rm /var/www/html/w/newimages/*
Remove images in newimages folder, run outside container
rm /opt/docker/mediawiki/c3sys/html/w/newimages/*