Exemplo n.º 1
0
    def on_B_Install_Build_clicked(self, button):
        ES3 = self.builder.get_object('E_Install_S3')
        ES4 = self.builder.get_object('E_Install_S4')
        Editing = self.builder.get_object('CB_Install_ChangeBuildSettings')
        version_number = self.builder.get_object('E_Install_number')
        version_typ = self.builder.get_object('CB_Branch')
        #set some variables
        branch = version_typ.get_active_text()
        version_number = version_number.get_text()

        #editing xml
        #making path
        if Editing.get_active() == True:
            if branch == 'by_version':
                EDITPath = 'gedit ' + str(
                    fct.readconf('defloc') + '/' + str(version_number) +
                    '/UnrealEngine' +
                    '/Engine/Saved/UnrealBuildTool/BuildConfiguration.xml')
                print(EDITPath)
            else:
                EDITPath = 'gedit ' + str(
                    fct.readconf('defloc') + '/' + str(branch) +
                    '/UnrealEngine' +
                    '/Engine/Saved/UnrealBuildTool/BuildConfiguration.xml')
                print(EDITPath)
            self.term.feed_child(fct.termcommand(EDITPath),
                                 fct.termlength(EDITPath))
        else:
            print('leaving xml editing out')
        #getting the text and printing to terminal
        Step3 = ES3.get_text()
        Step4 = ES4.get_text()

        print("beginning step 3")
        self.term.feed_child(fct.termcommand(Step3), fct.termlength(Step3))
        print('ending step 3')
        print('beginning step 4')
        self.term.feed_child(fct.termcommand(Step4), fct.termlength(Step4))
        print('ending step 4')
        #link Editor on Mint
        if fct.readconf('distribution') == '2':
            LinkEditorCommand = fct.readconf('stepminteditor')
        else:
            LinkEditorCommand = 'echo leaving Editor linking out ... not on mint'
        self.term.feed_child(fct.termcommand(LinkEditorCommand),
                             fct.termlength(LinkEditorCommand))
Exemplo n.º 2
0
	def on_B_Install_Build_clicked (self, button):
		ES3 = self.builder.get_object('E_Install_S3')
		ES4 = self.builder.get_object('E_Install_S4')
		Editing = self.builder.get_object('CB_Install_ChangeBuildSettings')
		version_number = self.builder.get_object('E_Install_number')
		version_typ = self.builder.get_object('CB_Branch')
		#set some variables
		branch = version_typ.get_active_text()
		version_number = version_number.get_text()

		#editing xml
		#making path
		if Editing.get_active() == True:
			if branch == 'by_version':
				EDITPath = 'gedit ' + str(fct.readconf('defloc') + '/' + str(version_number) + '/UnrealEngine' + '/Engine/Saved/UnrealBuildTool/BuildConfiguration.xml')
				print(EDITPath)
			else:
				EDITPath = 'gedit ' + str(fct.readconf('defloc') + '/' + str(branch) + '/UnrealEngine' +  '/Engine/Saved/UnrealBuildTool/BuildConfiguration.xml')
				print(EDITPath)
			self.term.feed_child(fct.termcommand(EDITPath), fct.termlength(EDITPath))
		else:
			print('leaving xml editing out')
		#getting the text and printing to terminal
		Step3 = ES3.get_text()
		Step4 = ES4.get_text()

		print("beginning step 3")
		self.term.feed_child(fct.termcommand(Step3), fct.termlength(Step3))
		print('ending step 3')
		print('beginning step 4')
		self.term.feed_child(fct.termcommand(Step4), fct.termlength(Step4))	
		print('ending step 4')
#link Editor on Mint
		if fct.readconf('distribution') == '2':
			LinkEditorCommand = fct.readconf('stepminteditor')
		else:
			LinkEditorCommand = 'echo leaving Editor linking out ... not on mint'
		self.term.feed_child(fct.termcommand(LinkEditorCommand), fct.termlength(LinkEditorCommand))	
Exemplo n.º 3
0
	def on_B_Install_DownloadEngine_clicked (self, button):
		#get all options
		Link = self.builder.get_object('E_Install_GitHub')
		S1 = self.builder.get_object('E_Install_Config')
		wait = self.builder.get_object('wait_dialog')
		version_number = self.builder.get_object('E_Install_number')
		version_typ = self.builder.get_object('CB_Branch')
		infolabel = self.builder.get_object('L_Install_Info')
		expander_Download = self.builder.get_object('Install_Exp_Download')
		expander_Configure = self.builder.get_object('Install_Exp_Configure')
		#set some variables
		branch = version_typ.get_active_text()
		version_number = version_number.get_text()
#fixing Linkingproblem on Arch
		if fct.readconf('distribution' ) == '0':
			LinkArch = fct.readconf('steparch')
			infolabel.set_text('please add "export PATH=$HOME/bin:$PATH" to your \n .bashrc or .zshrc in your home folder.')
		else:
			LinkArch = 'echo leaving ArchLinking out ... not on arch'
		self.term.feed_child(fct.termcommand(LinkArch), fct.termlength(LinkArch))
		
		
		#cd in directory
		CDcommand = 'cd ' + str(fct.readconf('defloc'))
		self.term.feed_child(fct.termcommand(CDcommand), fct.termlength(CDcommand))
		#delete old directory
		if branch == 'by_version':
			DelDircommand = 'rm -rf ' + str(version_number)
		else:
			DelDircommand = 'rm -rf ' + str(branch)
		self.term.feed_child(fct.termcommand(DelDircommand), fct.termlength(DelDircommand))
		#make new directory
		if branch == 'by_version':
			MKDircommand = 'mkdir ' + str(version_number)
		else:
			MKDircommand = 'mkdir ' + str(branch)
		self.term.feed_child(fct.termcommand(MKDircommand), fct.termlength(MKDircommand))	
		#cd in new made directory
		if branch == 'by_version':
			CDNEWcommand = 'cd ' + str(version_number)
		else:
			CDNEWcommand = 'cd ' + str(branch)
		self.term.feed_child(fct.termcommand(CDNEWcommand), fct.termlength(CDNEWcommand))		

		#make install command
		print("branch = " + str(branch))

		if branch == 'by_version':
			Gitcommand = 'git clone -b '  + str(version_number) + ' ' + str(Link.get_text())
		else:
			Gitcommand = 'git clone -b ' + str(branch) + ' ' + str(Link.get_text())
		print(str('donwload command: ' + Gitcommand))
		#print to terminal
		self.term.feed_child(fct.termcommand(Gitcommand), fct.termlength(Gitcommand))		

		expander_Download.set_expanded(False)
		expander_Configure.set_expanded(True)
Exemplo n.º 4
0
    def on_LibraryIconView_item_activated(self, iconview, treepath):
        global Uproject
        #get the project
        SelectedItem = ProjectList[treepath.get_indices()[0]]
        #get all widgets needed
        EngineBranch = self.builder.get_object('CB_Start_Version')
        Engine = self.builder.get_object('E_Version_Start')
        enginwin = self.builder.get_object('Editor_Working')
        #pass to terminal
        Branch = EngineBranch.get_active_text()
        version = fct.readconf('version')
        Uproject = fct.readconf(
            'proloc') + '/' + SelectedItem + '/' + SelectedItem + '.uproject'

        #making executing command
        C1 = 'cd '
        C2 = str(fct.readconf('defloc')) + '/'

        #Engine type
        if Branch == 'by_version':
            C3 = str(version) + '/UnrealEngine' + '/Engine/Binaries/Linux &&'
        else:
            C3 = str(Branch) + '/UnrealEngine' + '/Engine/Binaries/Linux &&'

        #primusrun
        if fct.readconf('primusrun') == '1':
            C4 = ' PRIMUS_SYNC=1 primusrun ./UE4Editor'
        else:
            C4 = ' ./UE4Editor'

        #LibaryEntry
        C5 = ' "' + Uproject + '" '

        #Opengl4 or vulkan
        if fct.readconf('vulkan') == '1':
            C6 = '-vulkan -nosplash -windowed'
        else:
            if fct.readconf('opengl') == '1':
                C6 = '-opengl4'
            else:
                C6 = ' '

        Startpath = C1 + C2 + C3 + C4 + C5 + C6

        #enginwin.show_all()
        print(Startpath)
        self.Editor_terminal.feed_child(fct.termcommand(Startpath),
                                        fct.termlength(Startpath))
        print('engine started!')
Exemplo n.º 5
0
    def on_B_Configure_clicked(self, button):
        # after cloning
        Slate = self.builder.get_object('E_Install_SlateViewer')
        SlateCheck = self.builder.get_object('CB_SlateCheck')
        expander_Download = self.builder.get_object('Install_Exp_Download')
        expander_Configure = self.builder.get_object('Install_Exp_Configure')
        #cd into new unrealengine directory
        print("cd in new directory")
        UECDcommand = 'cd UnrealEngine'
        self.term.feed_child(fct.termcommand(UECDcommand),
                             fct.termlength(UECDcommand))
        print("run setup")
        #run step one commands
        S1command = str(fct.readconf('s1'))
        self.term.feed_child(fct.termcommand(S1command),
                             fct.termlength(S1command))
        #make slate if ticked "yes"
        if SlateCheck.get_active() == True:
            SLATEcommand = fct.readconf('s2')
        else:
            SLATEcommand = 'echo passing_slate!'
        self.term.feed_child(fct.termcommand(SLATEcommand),
                             fct.termlength(SLATEcommand))
        #linking clang and clang++ and linking slate  when on mint
        #linking clang
        if SlateCheck.get_active() == True:
            if fct.readconf('distribution') == '2':
                print("linking clang and slate")
                SlateCommand = fct.readconf('stepmintslate')
                ClangCommand = fct.readconf('stepmint')
                ClangCommand_Slate = './SlateViewer'
            else:
                print('not linking clang and slate')
                ClangCommand = "echo passing_clang_link_for_mint"
                SlateCommand = "echo passing_slate_link_for_mint"
                ClangCommand_Slate = 'echo passing_first_slate_execute_no_on_mint'

            self.term.feed_child(fct.termcommand(SlateCommand),
                                 fct.termlength(SlateCommand))
            self.term.feed_child(fct.termcommand(ClangCommand),
                                 fct.termlength(ClangCommand))
            self.term.feed_child(fct.termcommand(ClangCommand_Slate),
                                 fct.termlength(ClangCommand_Slate))
        else:
            comment = 'echo passing_linking_of_clang_and_slate_not_on_Mint'
            self.term.feed_child(fct.termcommand(comment),
                                 fct.termlength(comment))

        expander_Download.set_expanded(True)
        expander_Configure.set_expanded(False)
Exemplo n.º 6
0
	def on_LibraryIconView_item_activated (self, iconview, treepath):
		global Uproject
		#get the project
		SelectedItem = ProjectList[treepath.get_indices()[0]]
		#get all widgets needed
		EngineBranch = self.builder.get_object('CB_Start_Version')		
		Engine = self.builder.get_object('E_Version_Start')
		enginwin = self.builder.get_object('Editor_Working')
#pass to terminal
		Branch = EngineBranch.get_active_text()
		version = fct.readconf('version')
		Uproject = fct.readconf('proloc') + '/' + SelectedItem + '/' + SelectedItem + '.uproject'

	#making executing command
		C1 = 'cd '
		C2 = str(fct.readconf('defloc')) + '/'

		#Engine type
		if Branch == 'by_version':
			C3 = str(version) + '/UnrealEngine' + '/Engine/Binaries/Linux &&'
		else:
			C3 = str(Branch) + '/UnrealEngine' + '/Engine/Binaries/Linux &&'

		#primusrun
		if fct.readconf('primusrun' ) == '1':
			C4 = ' PRIMUS_SYNC=1 primusrun ./UE4Editor'
		else:
			C4 = ' ./UE4Editor'

		#LibaryEntry
		C5 = ' "' + Uproject + '" '

		#Opengl4 or vulkan
		if fct.readconf('vulkan') == '1':
			C6 = '-vulkan -nosplash -windowed'
		else:
			if fct.readconf('opengl') == '1':
				C6 = '-opengl4'
			else:
				C6 = ' '

		Startpath = C1 + C2 + C3 + C4 + C5 + C6

		#enginwin.show_all()
		print(Startpath)
		self.Editor_terminal.feed_child(fct.termcommand(Startpath), fct.termlength(Startpath))
		print('engine started!')
Exemplo n.º 7
0
    def on_Engine_Start_clicked(self, button):
        global Uproject

        EngineBranch = self.builder.get_object('CB_Start_Version')
        Engine = self.builder.get_object('E_Version_Start')
        LaunchProject = self.builder.get_object('UP_Chooser')
        enginwin = self.builder.get_object('Editor_Working')
        #pass to terminal
        Branch = EngineBranch.get_active_text()
        version = fct.readconf('version')

        #making executing command
        C1 = 'cd '
        C2 = str(fct.readconf('defloc')) + '/'

        #Engine type
        if Branch == 'by_version':
            C3 = str(version) + '/UnrealEngine' + '/Engine/Binaries/Linux'
        else:
            C3 = str(Branch) + '/UnrealEngine' + '/Engine/Binaries/Linux'

        #primusrun
        if fct.readconf('primusrun') == '1':
            C4 = ' && PRIMUS_SYNC=1 primusrun ./UE4Editor'
        else:
            C4 = ' && ./UE4Editor'

        C5 = ' '

        #Opengl4 or vulkan
        if fct.readconf('vulkan') == '1':
            C6 = '-vulkan -nosplash -windowed'
        else:
            if fct.readconf('opengl') == '1':
                C6 = '-opengl4'
            else:
                C6 = ' '

        Startpath = C1 + C2 + C3 + C4 + C5 + C6

        #enginwin.show_all()
        print(Startpath)
        self.Editor_terminal.feed_child(fct.termcommand(Startpath),
                                        fct.termlength(Startpath))
        print('engine started!')
Exemplo n.º 8
0
	def on_Engine_Start_clicked (self, button):
		global Uproject

		EngineBranch = self.builder.get_object('CB_Start_Version')		
		Engine = self.builder.get_object('E_Version_Start')
		LaunchProject = self.builder.get_object('UP_Chooser')
		enginwin = self.builder.get_object('Editor_Working')
		#pass to terminal
		Branch = EngineBranch.get_active_text()
		version = fct.readconf('version')

#making executing command
		C1 = 'cd '
		C2 = str(fct.readconf('defloc')) + '/'

		#Engine type
		if Branch == 'by_version':
			C3 = str(version) + '/UnrealEngine' + '/Engine/Binaries/Linux'
		else:
			C3 = str(Branch) + '/UnrealEngine' + '/Engine/Binaries/Linux'

		#primusrun
		if fct.readconf('primusrun' ) == '1':
			C4 = ' && PRIMUS_SYNC=1 primusrun ./UE4Editor'
		else:
			C4 = ' && ./UE4Editor'

		C5 = ' '

		#Opengl4 or vulkan
		if fct.readconf('vulkan') == '1':
			C6 = '-vulkan -nosplash -windowed'
		else:
			if fct.readconf('opengl') == '1':
				C6 = '-opengl4'
			else:
				C6 = ' '

		Startpath = C1 + C2 + C3 + C4 + C5 + C6

		#enginwin.show_all()
		print(Startpath)
		self.Editor_terminal.feed_child(fct.termcommand(Startpath), fct.termlength(Startpath))
		print('engine started!')
Exemplo n.º 9
0
	def on_B_Configure_clicked (self, button):
		# after cloning
		Slate = self.builder.get_object('E_Install_SlateViewer')
		SlateCheck = self.builder.get_object('CB_SlateCheck')
		expander_Download = self.builder.get_object('Install_Exp_Download')
		expander_Configure = self.builder.get_object('Install_Exp_Configure')
		#cd into new unrealengine directory
		print("cd in new directory")
		UECDcommand = 'cd UnrealEngine' 
		self.term.feed_child(fct.termcommand(UECDcommand), fct.termlength(UECDcommand))
		print("run setup")
		#run step one commands
		S1command = str(fct.readconf('s1'))
		self.term.feed_child(fct.termcommand(S1command), fct.termlength(S1command))
#make slate if ticked "yes"
		if SlateCheck.get_active() == True:
			SLATEcommand = fct.readconf( 's2' )
		else:
			SLATEcommand = 'echo passing_slate!'
		self.term.feed_child(fct.termcommand(SLATEcommand), fct.termlength(SLATEcommand))	
#linking clang and clang++ and linking slate  when on mint 
#linking clang
		if SlateCheck.get_active() == True:				
			if fct.readconf('distribution') == '2':
				print("linking clang and slate")
				SlateCommand = fct.readconf('stepmintslate')				
				ClangCommand = fct.readconf('stepmint')
				ClangCommand_Slate = './SlateViewer'
			else:
				print('not linking clang and slate')
				ClangCommand = "echo passing_clang_link_for_mint"
				SlateCommand = "echo passing_slate_link_for_mint"
				ClangCommand_Slate = 'echo passing_first_slate_execute_no_on_mint'
				
			self.term.feed_child(fct.termcommand(SlateCommand), fct.termlength(SlateCommand))	
			self.term.feed_child(fct.termcommand(ClangCommand), fct.termlength(ClangCommand))
			self.term.feed_child(fct.termcommand(ClangCommand_Slate), fct.termlength(ClangCommand_Slate))
		else:
			comment = 'echo passing_linking_of_clang_and_slate_not_on_Mint'
			self.term.feed_child(fct.termcommand(comment), fct.termlength(comment))	

		expander_Download.set_expanded(True)
		expander_Configure.set_expanded(False)
Exemplo n.º 10
0
	def on_B_Install_Dep_clicked (self, button):
		text = self.builder.get_object('E_Install_Dependencies')
		#printing wait window and reading terminal
		command = text.get_text()
		self.term.feed_child(fct.termcommand(command), fct.termlength(command))
Exemplo n.º 11
0
    def on_B_Install_DownloadEngine_clicked(self, button):
        #get all options
        Link = self.builder.get_object('E_Install_GitHub')
        S1 = self.builder.get_object('E_Install_Config')
        wait = self.builder.get_object('wait_dialog')
        version_number = self.builder.get_object('E_Install_number')
        version_typ = self.builder.get_object('CB_Branch')
        infolabel = self.builder.get_object('L_Install_Info')
        expander_Download = self.builder.get_object('Install_Exp_Download')
        expander_Configure = self.builder.get_object('Install_Exp_Configure')
        #set some variables
        branch = version_typ.get_active_text()
        version_number = version_number.get_text()
        #fixing Linkingproblem on Arch
        if fct.readconf('distribution') == '0':
            LinkArch = fct.readconf('steparch')
            infolabel.set_text(
                'please add "export PATH=$HOME/bin:$PATH" to your \n .bashrc or .zshrc in your home folder.'
            )
        else:
            LinkArch = 'echo leaving ArchLinking out ... not on arch'
        self.term.feed_child(fct.termcommand(LinkArch),
                             fct.termlength(LinkArch))

        #cd in directory
        CDcommand = 'cd ' + str(fct.readconf('defloc'))
        self.term.feed_child(fct.termcommand(CDcommand),
                             fct.termlength(CDcommand))
        #delete old directory
        if branch == 'by_version':
            DelDircommand = 'rm -rf ' + str(version_number)
        else:
            DelDircommand = 'rm -rf ' + str(branch)
        self.term.feed_child(fct.termcommand(DelDircommand),
                             fct.termlength(DelDircommand))
        #make new directory
        if branch == 'by_version':
            MKDircommand = 'mkdir ' + str(version_number)
        else:
            MKDircommand = 'mkdir ' + str(branch)
        self.term.feed_child(fct.termcommand(MKDircommand),
                             fct.termlength(MKDircommand))
        #cd in new made directory
        if branch == 'by_version':
            CDNEWcommand = 'cd ' + str(version_number)
        else:
            CDNEWcommand = 'cd ' + str(branch)
        self.term.feed_child(fct.termcommand(CDNEWcommand),
                             fct.termlength(CDNEWcommand))

        #make install command
        print("branch = " + str(branch))

        if branch == 'by_version':
            Gitcommand = 'git clone -b ' + str(version_number) + ' ' + str(
                Link.get_text())
        else:
            Gitcommand = 'git clone -b ' + str(branch) + ' ' + str(
                Link.get_text())
        print(str('donwload command: ' + Gitcommand))
        #print to terminal
        self.term.feed_child(fct.termcommand(Gitcommand),
                             fct.termlength(Gitcommand))

        expander_Download.set_expanded(False)
        expander_Configure.set_expanded(True)
Exemplo n.º 12
0
 def on_B_Install_Dep_clicked(self, button):
     text = self.builder.get_object('E_Install_Dependencies')
     #printing wait window and reading terminal
     command = text.get_text()
     self.term.feed_child(fct.termcommand(command), fct.termlength(command))