def loopbriefing(self):
     brief_you=self.adjsys.loopbriefing()
     if (brief_you != -1):
         VS.IOmessage(0,"cargo mission","briefing","Once there, you must drop the cargo off at a specified unit")
         if (self.briefgametime==0):
             self.briefgametime = VS.GetGameTime()
         elif ((VS.GetGameTime()-self.briefgametime)>5):
             Briefing.terminate()
示例#2
0
 def initbriefing (self):
     self.mytime = VS.GetGameTime();
     faction=self.you.getFactionName();
     name=self.you.getName()
     self.brief_you=Briefing.addShip(name,faction,(40.0,0.0,80.0))
     faction=self.significantun.getFactionName()
     name = self.significantun.getName()
     self.brief_sig=Briefing.addShip(name,faction,(-40,0.0,8000.0))
     Briefing.enqueueOrder (self.brief_you,(-30,0.0,7900.0),5.0)
 def loopbriefing(self):
     brief_you = self.adjsys.loopbriefing()
     if (brief_you != -1):
         VS.IOmessage(
             0, "cargo mission", "briefing",
             "Once there, you must drop the cargo off at a specified unit")
         if (self.briefgametime == 0):
             self.briefgametime = VS.GetGameTime()
         elif ((VS.GetGameTime() - self.briefgametime) > 5):
             Briefing.terminate()
 def loopbriefing(self):
     size=len(self.JumpPoints())
     time = VS.GetGameTime()
     Briefing.setCamPosition((1.6*(time-self.begintime)*self.brief_stage,0.0,0.0))
     if (((time-self.begintime)>=5.0) and self.added_warp):
         self.jump_ani=Briefing.addShip("brief_warp",self.faction,(20.0*(self.brief_stage),self.rnd_y,79.5+self.rnd_y))
         self.added_warp=0
     if (((time-self.begintime)>=6.0)):
         if (self.jump_ani!=0):
             Briefing.removeShip(self.jump_ani)
             self.jump_ani=0
     if ((size==self.brief_stage) and ((time-self.begintime)>=6.0)):
         self.brief_stage=size+1
         self.added_warp=0
         self.time=0.0
     elif ((self.brief_stage>size) and ((time-self.begintime)>=11.0)):
         return self.brief_you
     elif (((time-self.begintime)>=6.0) and (self.brief_stage<size)):
         self.added_warp=1
         self.rnd_y=(vsrandom.random()*40.0-20.0)
         Briefing.addShip("brief_jump",self.faction,(20.0*(self.brief_stage+1),self.rnd_y,79.6+self.rnd_y))
         Briefing.enqueueOrder (self.brief_you,(20.0*(self.brief_stage+1) ,self.rnd_y,80.0+self.rnd_y) , 5.0)
         self.begintime=time
         myname=self.JumpPoints() [self.brief_stage]
         VS.IOmessage (0,"cargo mission","briefing","You must go to the '%s' jump point" % (myname))
         self.brief_stage+=1
     return -1
 def initbriefing(self):
     self.jump_ani=0
     self.rnd_y=0.0
     self.added_warp=1
     self.brief_stage=0
     self.begintime= VS.GetGameTime()-6.0
     debug.info("starting briefing")
     if (self.you.isNull()):
         Briefing.terminate()
         return
     self.faction=self.you.getFactionName()
     name=self.you.getName()
     self.brief_you=Briefing.addShip(name,self.faction,(0.0,0.0,80.0))
     VS.IOmessage (0,"go_to_adjacent_system","briefing","You must go to the %s system. In order to get there, you must follow this route that we have planned out for you." % self.DestinationSystem())
示例#6
0
 def initbriefing(self):
     self.jump_ani = 0
     self.rnd_y = 0.0
     self.added_warp = 1
     self.brief_stage = 0
     self.begintime = VS.GetGameTime() - 6.0
     print "starting briefing"
     if (self.you.isNull()):
         Briefing.terminate()
         return
     self.faction = self.you.getFactionName()
     name = self.you.getName()
     self.brief_you = Briefing.addShip(name, self.faction, (0.0, 0.0, 80.0))
     VS.IOmessage(
         0, "go_to_adjacent_system", "briefing",
         "You must go to the %s system. In order to get there, you must follow this route that we have planned out for you."
         % self.DestinationSystem())
示例#7
0
 def loopbriefing(self):
     size = len(self.JumpPoints())
     time = VS.GetGameTime()
     Briefing.setCamPosition(
         (1.6 * (time - self.begintime) * self.brief_stage, 0.0, 0.0))
     if (((time - self.begintime) >= 5.0) and self.added_warp):
         self.jump_ani = Briefing.addShip(
             "brief_warp", self.faction,
             (20.0 * (self.brief_stage), self.rnd_y, 79.5 + self.rnd_y))
         self.added_warp = 0
     if (((time - self.begintime) >= 6.0)):
         if (self.jump_ani != 0):
             Briefing.removeShip(self.jump_ani)
             self.jump_ani = 0
     if ((size == self.brief_stage) and ((time - self.begintime) >= 6.0)):
         self.brief_stage = size + 1
         self.added_warp = 0
         self.time = 0.0
     elif ((self.brief_stage > size) and ((time - self.begintime) >= 11.0)):
         return self.brief_you
     elif (((time - self.begintime) >= 6.0) and (self.brief_stage < size)):
         self.added_warp = 1
         self.rnd_y = (vsrandom.random() * 40.0 - 20.0)
         Briefing.addShip(
             "brief_jump", self.faction,
             (20.0 * (self.brief_stage + 1), self.rnd_y, 79.6 + self.rnd_y))
         Briefing.enqueueOrder(
             self.brief_you,
             (20.0 * (self.brief_stage + 1), self.rnd_y, 80.0 + self.rnd_y),
             5.0)
         self.begintime = time
         myname = self.JumpPoints()[self.brief_stage]
         VS.IOmessage(0, "cargo mission", "briefing",
                      "You must go to the '%s' jump point" % (myname))
         self.brief_stage += 1
     return -1
示例#8
0
 def loopbriefing(self):
     print("loop briefing")
     Briefing.terminate()
示例#9
0
 def loopbriefing(self):
     debug.info("loop briefing")
     Briefing.terminate();
示例#10
0
 def loopbriefing(self):
     print "loop briefing"
     Briefing.terminate();
示例#11
0
 def loopbriefing(self):
     debug.info("loop briefing")
     Briefing.terminate()
示例#12
0
 def loopbriefing(self):
     print "loop briefing"
     Briefing.terminate();
示例#13
0
 def loopbriefing(self):
     print("loop briefing")
     Briefing.terminate()
示例#14
0
from Briefing import *
import ConfigParser
import os
import pprint

if len(sys.argv) > 1 :
    cc = int(sys.argv[1])
else :
    cc = 0

cfg = ConfigParser.ConfigParser()
cfg.read("top.conf")

brief = Briefing(cfg, cc)
brief.readTheme()
brief.parseTheme()
brief.readContent()

html = brief.printBriefingHTML()

briefingFile = brief.getFileName()
f = open(briefingFile, "w")
f.write(html)
f.close()

# get archive dir, create it if not existent
if not os.path.exists(brief.archiveDir):
    os.makedirs(brief.archiveDir)
os.chdir(brief.archiveDir)