Changeset 10251
- Timestamp:
- Feb 1, 2015, 11:46:42 PM (10 years ago)
- Location:
- code/branches/storymodeHS14
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/storymodeHS14/data/gui/scripts/CampaignMenu.lua
r10250 r10251 52 52 53 53 function P.CheckLevel(filename) 54 local file = io.open(" /home/pmao/pmao-extra-0/orxonox/storymode/campaign.txt", "r+")54 local file = io.open("campaign.txt", "r+") 55 55 local index = 0 56 56 local returnvalue = false -
code/branches/storymodeHS14/data/tcl
-
Property
svn:ignore
set to
campaign.txt
-
Property
svn:ignore
set to
-
code/branches/storymodeHS14/src/orxonox/gametypes/Mission.cc
r10249 r10251 28 28 29 29 #include "Mission.h" 30 31 #include <boost/filesystem.hpp> 32 30 33 #include "items/Engine.h" 31 34 #include "controllers/ArtificialController.h" … … 108 111 { 109 112 this->gtinfo_->sendAnnounceMessage("Mission accomplished!"); 113 114 boost::filesystem::path filepath("campaign.txt"); 110 115 std::fstream myfile; 111 myfile.open("/home/maxima/maxima-extra-0/orxonox/storymodeHS14/campaign.txt"); 116 myfile.open(filepath.string().c_str(), std::fstream::out); 117 112 118 std::string line; 113 119 std::string mission = this->getFilename(); … … 126 132 if (line == mission + " 0" + helperstring) 127 133 { 128 long pos = myfile.tellp();134 long pos = (long) myfile.tellp(); 129 135 myfile.seekp(pos - 61); 130 136 myfile << mission + " 1" + helperstring; 131 137 } 132 138 } 139 } else { 140 orxout(internal_warning) << "failed to open campaign file" << endl; 133 141 } 134 142 myfile.flush();
Note: See TracChangeset
for help on using the changeset viewer.