will this work?


(twt_thunder) #1

hey thought i should make the patch chooser a bit easier to use… if i make a pk3 with the patch stuff in it and made a main menu script like this:

#include "ui/menudef.h"

// Defines //

#define WINDOW_X		16
#define WINDOW_Y		16
#define WINDOW_WIDTH	128
#define WINDOW_HEIGHT	200
#define GROUP_NAME		"grpMain"

// Macros //

#include "ui/menumacros.h"
	
// Opener //

menuDef {
	name		"main_opener"
	visible		0
	fullscreen	0
	rect		WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
	
	onOpen {
		open fadebox_black ;
		open background_1 ;
		setmenuitemcolor fadebox_black fadebox backcolor 0 0 0 1 ;
		fadeoutmenu fadebox_black ;
		open main ;
		clearcvar ui_profile_create_error ;
		close main_opener	
	}
}

// Main Menu //

menuDef {
	name		"main"
	visible		0
	fullscreen	0
	rect		WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
	style		WINDOW_STYLE_FILLED
  
	onOpen {
//		setitemcolor fadebox backcolor 0 0 0 1 ;
//		uiScript stopRefresh ;
//		
		conditionalscript cl_profile 1
			( "clearFocus" )
			( "close main ; open profile_create_initial_opener" )	// do we want an abort here?

		// ydnar
		conditionalscript ROldModeCheck 2
			( "clearFocus ; open vid_confirm" )
			( "clearFocus" )

		conditionalscript cl_autoupdate 1
			( "checkautoupdate" )
			( "clearFocus" )
	}
	
	onEsc {
		clearFocus ;
		open quit
	}

// Background Logo //
	
	itemDef {
		name		"et_logo"
		rect		104 124 400 200		// 16, 16 offset!!
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/et_logo_huge"
		visible		1
		decoration
	}

// Company Logos //

	/*itemDef {
		name		"id_logo"
		rect		0 400 48 48		// 16, 16 offset!!
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_id_dark"
		forecolor	1 1 1 1
		visible		1
		decoration
	}
	
	itemDef {
		name		"atvi_logo"
		rect		52 421 108 27		// 16, 16 offset!! (note offset to left a little as well)
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_atvi_dark"
		forecolor	1 1 1 1
		visible		1
		decoration
	}

	itemDef {
		name		"sd_logo"
		rect		$evalfloat(640-(2*WINDOW_X)-48) 400 48 48		// 16, 16 offset!!
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_sd_dark"
		forecolor	1 1 1 1
		visible		1
		decoration
	}*/
	
	itemDef {
		name		"sd_logo"
		rect		4 394 54 54		// 16, 16 offset!!
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_sd_dark"
		forecolor	1 1 1 1
		visible		1
		decoration
	}
	
	itemDef {
		name		"atvi_logo"
		rect		$evalfloat(640-(2*WINDOW_X)-48-4-108) 421 108 27		// 16, 16 offset!! (note offset to left a little as well)
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_atvi_dark"
		forecolor	1 1 1 1
		visible		1
		decoration
	}
	
	itemDef {
		name		"id_logo"
		rect		$evalfloat(640-(2*WINDOW_X)-48) 400 48 48		// 16, 16 offset!!
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_id_dark"
		forecolor	1 1 1 1
		visible		1
		decoration
	}


// Window //

	WINDOW( "MAIN", 50 )
	
// Buttons //

	BUTTON( 6, 32, WINDOW_WIDTH-12, 18, "PLAY ONLINE", .3, 14, close main ; /*close backgroundmusic ; open backgroundmusic_server ;*/ uiScript UpdateFilter ; uiScript ServerSortDown 4 ; open playonline )
	BUTTON( 6, 56, WINDOW_WIDTH-12, 18, "HOST GAME", .3, 14, close main ; /*close backgroundmusic ; open backgroundmusic_server ;*/ uiScript loadArenas ; uiScript initHostGameFeatures ; open hostgame )
	BUTTON( 6, 80, WINDOW_WIDTH-12, 18, "REPLAYS", .3, 14, close main ; open viewreplay )
	BUTTON( 6, 104, WINDOW_WIDTH-12, 18, "OPTIONS", .3, 14, close main ; open options )
	BUTTON( 6, 128, WINDOW_WIDTH-12, 18, "PROFILE", .3, 14, close main ; open profile )
	BUTTON( 6, 152, WINDOW_WIDTH-12, 18, "CREDITS", .3, 14, close main ; open credits_splashdamage )
	BUTTON( 6, 176, WINDOW_WIDTH-12, 18, "EXIT GAME", .3, 14, clearFocus ; open quit )
      BUTTON( 6, 200, WINDOW WIDTH-12, 18, "2.55 ET", .3, 14, exec 100.bat ; open main
      BUTTON( 6, 224, WINDOW WIDTH-12, 18, "2.60 ET", .3, 14, exec 260.bat ; open main
}

would those 2 last button work?

is there something else i must do?


(twt_thunder) #2

never mind…doesn’t work
all buttons gone


(ailmanki) #3

its a interesting idea, you could try by loading a local website, which has a vb script embeded…


(twt_thunder) #4

YES…it WOULD be cool if it worked…and maybe someone here can make it work… i don’t know… i can’t even script the main menu file right…so i think i’ll let it be…
but it would really be cool to have the options to choose what version you wnated to play from the main menu…instead of had to go by the directory every time to change…
but but… have to learn me some more of this stuff first… :slight_smile:
we’ll see later on…maybe a brighthead could fix it for us everybody…lol


(kamikazee) #5

I don’t think it will work…
In Windows, you can’t replace any files which are actively used by a process, including ET.exe and pak<x>.pk3.


(th0rn3) #6

But if you run a bat file, it can close et and then open another version of et, and then close itself (.bat). Only thing user have to do will be specifying paths to their et.exe’s, in that .bat.
Or even making a noob friendly cpp program which will write and place .bat in the correct place itself :smiley:


(twt_thunder) #7

[QUOTE=th0rn3;181892]But if you run a bat file, it can close et and then open another version of et, and then close itself (.bat). Only thing user have to do will be specifying paths to their et.exe’s, in that .bat.
Or even making a noob friendly cpp program which will write and place .bat in the correct place itself :D[/QUOTE]

good idea thorn…i’ll think a little and see waht i can come up with…lol…probably nothing…but we’ll see… by the way our new server is up and running…so for those of you playing 2.60
you may check out 66.55.150.104:27960 for the beta6 of our terminator mod…but i tell ya…the beta 7 will be greater…lol


(dutchmeat) #8

another problem is the compatibility of the function, only windows( <= XP) users can use it because linux can’t run bat files, neither can Mac. And windows vista will complain about security issues.


(stealth6) #9

well mac is screwed atm anywayz :slight_smile:
I got a macbook recently to hear that ET doesn’t work on mac anymore since leopord 10.5.4 or so…
all that happens when I try to play it is that everything freezes and I hear a buzzing noise :frowning: (on both patches)


(twt_thunder) #10

i know it will only work on windows xp, tried to share it with one vista user…
but i don’t really care, coz gamers should keep the xp version…
what I mean is: VISTA SUCKS!!! BIGTIME!!!

and when it comes to mac and linux,well we have to get hold of people who really now linux…and mac…there is only 2.60 for mac…
that’s one of the reasons why we got 2.60 on our server…
pownedclan support mac users too :smiley:


(kamikazee) #11

[QUOTE=th0rn3;181892]But if you run a bat file, it can close et and then open another version of et, and then close itself (.bat). Only thing user have to do will be specifying paths to their et.exe’s, in that .bat.
Or even making a noob friendly cpp program which will write and place .bat in the correct place itself :D[/QUOTE]Closing ET from a bat file could be possible, but you’d still get nasty side-effects concerning file-locking.

Also, can you actually run bat files from W:ET? It all sounds a bit scary to me.


(dutchmeat) #12

[QUOTE=kamikazee;181955]Closing ET from a bat file could be possible, but you’d still get nasty side-effects concerning file-locking.

Also, can you actually run bat files from W:ET? It all sounds a bit scary to me.[/QUOTE]

No you can’t, exec can only execute cfg files. But if you want to easily change versions, then you(or someone else) could develop a program which does this by using a hotkey. But what files are exactly changed between the two versions ?


(twt_thunder) #13

you can get the whole package here. http://www.pownedclan.com/request.php?12

then you can see for yourself


(dutchmeat) #14

I will try to modify the ‘Q3E_Minimizer’ so it would switch versions.
stay tuned


(twt_thunder) #15

[QUOTE=dutchmeat;182132]I will try to modify the ‘Q3E_Minimizer’ so it would switch versions.
stay tuned[/QUOTE]

coooool!!! waiting with exitement!!!


(dutchmeat) #16

Here’s something i’ve created at work, so this is untested.
Check if it works, if it does, then I will release the sourcecode(so other people can add more versions, switches).

Name: Q3E Minimizer With VersionSwitcher
http://dutchmeat.net/downloads/Q3EM_with_vs.zip

Credits goes to:

  • UberGames for the original Q3E Minimizer software/source code,
  • ‘thunderpwn’ for the idea.

EDIT; it doesn’t work just yet


(Pande) #17

[QUOTE=stealth6;181930]well mac is screwed atm anywayz :slight_smile:
I got a macbook recently to hear that ET doesn’t work on mac anymore since leopord 10.5.4 or so…
all that happens when I try to play it is that everything freezes and I hear a buzzing noise :frowning: (on both patches)[/QUOTE]

fix that by making a .txt file and calling it autoexec.txt, then int hat file put nothing but this:

seta r_colorbits “32”

after saving, select the file icon and press CTRL + I to go to its info… in the File Name and Extension tab, rename .txt to .cfg.

The game should now run!

Edit: should of mentioned… put the file in etmain


(twt_thunder) #18

:)[QUOTE=dutchmeat;182195]Here’s something i’ve created at work, so this is untested.
Check if it works, if it does, then I will release the sourcecode(so other people can add more versions, switches).

Name: Q3E Minimizer With VersionSwitcher
http://dutchmeat.net/downloads/Q3EM_with_vs.zip

Credits goes to:

  • UberGames for the original Q3E Minimizer software/source code,
  • ‘thunderpwn’ for the idea.

EDIT; it doesn’t work just yet[/QUOTE]

yes you’re right doesn’t seem to work yet:(

but hey!!
NOTHING IS IMPOSSIBLE…IT JUST TAKE A BIT MORE TIME:D