rules.pk3


(macbeth) #1

well i am trying to have in the server options the WF rules
but something is still missing or weird cuz when i click on WF rules nothing is displayed in the server s screen

if some of you can fix it will be nice
thanks

I have 3 files in the PK3

1/wf_rules.menu

#include “ui/menudef.h”

// Defines //

#define WINDOW_X 40
#define WINDOW_Y 40
#define WINDOW_WIDTH 560
#define WINDOW_HEIGHT 400
#define GROUP_NAME “grpWFRules”

// Macros //

#include “ui/menumacros.h”

// WF Rules //

menuDef {
name “wf_rules”
visible 0
fullscreen 0
rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED

onESC {
close wf_rules;
}

// Window //

itemDef {
name “window”
group GROUP_NAME
rect 0 0 WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED
backcolor 0 0 0 1
border WINDOW_BORDER_FULL
bordercolor .5 .5 .5 .5
visible 1
decoration
}

#define RULES_Y 6

LABELWHITE( 6, RULES_Y, (WINDOW_WIDTH-24), 10, “WF Rules
1 - spawnkilling is not allowed. This means that spawnkilling with Panzerfaust, Flamethrower, Mortar, Grenades, Rifle Grenades, Dynamite, Satchel Charges, Artillery and Airstrikes is forbidden. As a general rule, the spawn area is defined as the area from where the players spawn, up to the first fork in where they can go.
If the spawn is capturable, then any weapons can be used on it. A capturable spawn must have a flag which can be used to take control of the spawn. All other spawns are deemed as non-capturable, and so, no heavy weapsons allowed.”, .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )

LABELWHITE( 6, RULES_Y + 90, (WINDOW_WIDTH-24), 10,"A capturable spawn must have a flag which can be used to take control of the spawn. All other spawns are deemed as non-capturable, and so, no heavy weapsons allowed.

2 - No Trickjumping to get the objective.
This means using any sort of jump to get past an objective, eg. a gate which would normally need to be blown up. If you are an engineer, it will be assumed that you are trying to get to the objective if you make this jump.

3 - No Griefing.
Griefing is doing things simply to annoy your teammates. The main example of this is running on their landmines, as you know they won’t hurt you. Other ones might be blocking people purposely in doors, getting in the way of panzer/mortar shots, constantly knifing teammates to distract them etc.", .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )

LABELWHITE( 6, RULES_Y + 252, (WINDOW_WIDTH-24), 10, “4 - No swearing. Final.”, .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )
}

2/ingame_main_menu

#include “ui/menudef.h”

// Defines //

#define WINDOW_X 16
#define WINDOW_Y 16
//#define WINDOW_WIDTH 128
#define WINDOW_WIDTH 160
#define WINDOW_HEIGHT 200
#define GROUP_NAME “grpIngameMain”

// Macros //

#include “ui/menumacros.h”

// Main Menu //

menuDef {
name “ingame_main”
visible 0
fullscreen 0
rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED

onOpen {
// ydnar
conditionalscript ROldModeCheck 2
( “clearFocus ; open vid_confirm” )
( “clearFocus” )
}

onEsc {
close ingame_main ;
}

// Window //

WINDOW( “MAIN”, 50 )

// Buttons //

BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, “VOTE”, .3, 14, uiScript clientCheckVote ;
conditionalScript cg_ui_novote 0
( “clearFocus ; open ingame_votedisabled” )
( “close ingame_main ; open ingame_vote” ),
cvarTest “authLevel” showCVar { RL_NONE } )
BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, “REFEREE”, .3, 14, close ingame_main ; open ingame_vote, cvarTest “authLevel” showCVar { RL_REFEREE } )
BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, “RCON”, .3, 14, close ingame_main ; open ingame_vote, cvarTest “authLevel” showCVar { RL_RCON } )
BUTTON( 6, 56, WINDOW_WIDTH-12, 18, “SERVER INFO”, .3, 14, clearFocus ; open ingame_serverinfo )
BUTTON( 6, 80, WINDOW_WIDTH-12, 18, “OPTIONS”, .3, 14, close ingame_main ; open options )
BUTTON( 6, 104, WINDOW_WIDTH-12, 18, “^?NO QUARTER^7”, .3, 14, close ingame_main ; open options_nq )
BUTTON( 6, 128, WINDOW_WIDTH-12, 18, “^1WF RULES^7”, .3, 14, close ingame_main ; open wf_rules )
BUTTON( 6, 152, WINDOW_WIDTH-12, 18, “DISCONNECT”, .3, 14, clearFocus ; open ingame_disconnect )
BUTTON( 6, 176, WINDOW_WIDTH-12, 18, “EXIT GAME”, .3, 14, clearFocus ; open quit )
}

3/menu.txt

// menu defs
//
{
loadMenu { “ui/global.menu” }
loadMenu { “ui/wf_rules.menu” }
loadMenu { “ui/main.menu” }
loadMenu { “ui/profile.menu” }
loadMenu { “ui/profile_create.menu” }
loadMenu { “ui/profile_create_initial.menu” }
loadMenu { “ui/profile_rename.menu” }
loadMenu { “ui/profile_delete.menu” }
loadMenu { “ui/profile_delete_error.menu” }
loadMenu { “ui/profile_create_error.menu” }
loadMenu { “ui/playonline.menu” }
loadMenu { “ui/playonline_connecttoip.menu” }
loadMenu { “ui/playonline_serverinfo.menu” }
loadMenu { “ui/playonline_disablepb.menu” }
loadMenu { “ui/playonline_enablepb.menu” }
loadMenu { “ui/hostgame.menu” }
loadMenu { “ui/hostgame_advanced.menu” }
loadMenu { “ui/hostgame_noquarter.menu” } //No Quarter Hostgame Options
loadMenu { “ui/hostgame_advanced_default.menu” }
loadMenu { “ui/hostgame_dedicated_warning.menu” }
loadMenu { “ui/mods.menu” } // fretn (rain) adding mods menu
loadMenu { “ui/viewreplay.menu” }
loadMenu { “ui/viewreplay_delete.menu” }
loadMenu { “ui/options.menu” }
loadMenu { “ui/options_nq.menu” } //No Quarter Menus
loadMenu { “ui/options_nq_controls.menu” } //No Quarter
loadMenu { “ui/options_nq_display.menu” } //No Quarter
loadMenu { “ui/options_nq_hud.menu” } //No Quarter
loadMenu { “ui/options_nq_sound.menu” } //No Quarter
loadMenu { “ui/options_customise_game.menu” }
loadMenu { “ui/options_customise_hud.menu” }
loadMenu { “ui/options_controls.menu” }
loadMenu { “ui/options_controls_default.menu” }
loadMenu { “ui/options_system.menu” }
loadMenu { “ui/options_system_gamma.menu” }
loadMenu { “ui/credits_splashdamage.menu” }
loadMenu { “ui/credits_idsoftware.menu” }
loadMenu { “ui/credits_activision.menu” }
loadMenu { “ui/credits_additional.menu” }
loadMenu { “ui/credits_et260.menu” }
loadMenu { “ui/credits_quit.menu” }
loadMenu { “ui/credits_no_quarter.menu” } //No Quarter Credits
loadMenu { “ui/quit.menu” }

// popups
loadMenu { “ui/popup_errormessage.menu” }
loadMenu { “ui/popup_errormessage_pb.menu” }
loadMenu { “ui/popup_hostgameerrormessage.menu” }
loadMenu { “ui/popup_autoupdate.menu” }
loadMenu { “ui/popup_password.menu” }
loadMenu { “ui/popup_serverredirect.menu”}

// video confirmation
loadMenu { “ui/vid_restart.menu” }
loadMenu { “ui/vid_confirm.menu” }
loadMenu { “ui/rec_restart.menu” }

// quickchats
loadMenu { “ui/wm_quickmessage.menu” }
loadMenu { “ui/wm_quickmessageAlt.menu” }
loadMenu { “ui/wm_ftquickmessage.menu” }
loadMenu { “ui/wm_ftquickmessageAlt.menu” }

// class menuu
loadMenu { “ui/wm_class.menu” }
loadMenu { “ui/wm_classAlt.menu” }

// ingame
loadMenu { “ui/ingame_main.menu” }
loadMenu { “ui/ingame_vote.menu” }
loadMenu { “ui/ingame_vote_disabled.menu” }
loadMenu { “ui/ingame_vote_misc.menu” }
loadMenu { “ui/ingame_vote_misc_refrcon.menu” }
loadMenu { “ui/ingame_vote_map.menu” }
loadMenu { “ui/ingame_vote_players.menu” }
loadMenu { “ui/ingame_vote_players_warn.menu” }
loadMenu { “ui/ingame_serverinfo.menu” }
loadMenu { “ui/ingame_disconnect.menu” }
loadMenu { “ui/ingame_messagemode.menu” }
loadMenu { “ui/ingame_tapout.menu” }
loadMenu { “ui/ingame_tapoutlms.menu” }
}



(nUllSkillZ) #2

Have you tried it in a clean install of W:ET?
You could also rename it to something like zzzz_rules.pk3 (it has to be at last position in alphabeticall order).

BTW there are code tags.
Maks posts of code better to read.


(macbeth) #3

it s fixed a file was not included in the ui folder :wink:
thanks


(darkbishop) #4

hello macbeth, ive been looking for you and was hoping you would help, someone from the SS forums told me to come here for this kind of help.

i have seen other server where they personalize the main menu and add 1 or 2 buttons…as a matter of fact i was on your server not long ago and seen that you too have made that change.

i am trying to do the same thing for my server but i dont know how or where, so far i did open the noquarter_b1.1.1.pk3 file using 7z and did fine the ui folder and the menu files…but i dont know which one to edit…anyway i tried to zip the files back where i got them…but it zip it all wrong…man im lost…please could you help me…and talk me thought it…let me know what program i need to open pk3 files and close them, which file in the ui folder do i need to edit…thanks macbeth


(macbeth) #5

you mean our rules stuff in the menu?
i use PakScape for the pk3


u can find me anyway on our clan site


(nUllSkillZ) #6

If you visited macbeth’s server you downloaded the pk3 file.
So you could take a look at this file.


(macbeth) #7

he is on the server right now :wink:
and i answered at his post on our site
gave him all he needs


(darkbishop) #8

Message
macbeth Posted: Sun Jul 22, 2007 7:28 pm Post subject:


he is on the server right now
and i answered at his post on our site
gave him all he needs

yes SHE did…thanks macbeth…your awsome!

i didnt know i had the file :oops: but anyway it was much nicer talking to her :smiley:


(aiajason) #9

I can’t figure out how to make this work… Please tell me what to do to make it work… thank you


(macbeth) #10

adjust all that for your clan
or join our server to get the pk3 open it with PakSpace and u fill find all you need
8.2.120.143:27960 NOQUARTER 1.11

1/ingame_main

#include “ui/menudef.h”

// Defines //

#define WINDOW_X 16
#define WINDOW_Y 16
//#define WINDOW_WIDTH 128
#define WINDOW_WIDTH 160
#define WINDOW_HEIGHT 200
#define GROUP_NAME “grpIngameMain”

// Macros //

#include “ui/menumacros.h”

// Main Menu //

menuDef {
name “ingame_main”
visible 0
fullscreen 0
rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED

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

onEsc {
	close ingame_main ;
}

// Window //

WINDOW( "MAIN", 50 )

// Buttons //

BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, "VOTE", .3, 14, uiScript clientCheckVote ; 
														conditionalScript cg_ui_novote 0
															( "clearFocus ; open ingame_votedisabled" )
															( "close ingame_main ; open ingame_vote" ),
														cvarTest "authLevel" showCVar { RL_NONE } )
BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, "REFEREE", .3, 14, close ingame_main ; open ingame_vote, cvarTest "authLevel" showCVar { RL_REFEREE } )
BUTTONEXT( 6, 32, WINDOW_WIDTH-12, 18, "RCON", .3, 14, close ingame_main ; open ingame_vote, cvarTest "authLevel" showCVar { RL_RCON } )
BUTTON( 6, 56, WINDOW_WIDTH-12, 18, "SERVER INFO", .3, 14, clearFocus ; open ingame_serverinfo )
BUTTON( 6, 80, WINDOW_WIDTH-12, 18, "OPTIONS", .3, 14, close ingame_main ; open options )
BUTTON( 6, 104, WINDOW_WIDTH-12, 18, "^?NO QUARTER^7", .3, 14, close ingame_main ; open options_nq )
BUTTON( 6, 128, WINDOW_WIDTH-12, 18, "^1WF RULES^7", .3, 14, close ingame_main ; open wf_rules )
BUTTON( 6, 152, WINDOW_WIDTH-12, 18, "DISCONNECT", .3, 14, clearFocus ; open ingame_disconnect )
BUTTON( 6, 176, WINDOW_WIDTH-12, 18, "EXIT GAME", .3, 14, clearFocus ; open quit )

}

2/menus.txt

// menu defs
//
{
loadMenu { “ui/global.menu” }
loadMenu { “ui/wf_rules.menu” }
loadMenu { “ui/main.menu” }
loadMenu { “ui/profile.menu” }
loadMenu { “ui/profile_create.menu” }
loadMenu { “ui/profile_create_initial.menu” }
loadMenu { “ui/profile_rename.menu” }
loadMenu { “ui/profile_delete.menu” }
loadMenu { “ui/profile_delete_error.menu” }
loadMenu { “ui/profile_create_error.menu” }
loadMenu { “ui/playonline.menu” }
loadMenu { “ui/playonline_connecttoip.menu” }
loadMenu { “ui/playonline_serverinfo.menu” }
loadMenu { “ui/playonline_disablepb.menu” }
loadMenu { “ui/playonline_enablepb.menu” }
loadMenu { “ui/hostgame.menu” }
loadMenu { “ui/hostgame_advanced.menu” }
loadMenu { “ui/hostgame_noquarter.menu” } //No Quarter Hostgame Options
loadMenu { “ui/hostgame_advanced_default.menu” }
loadMenu { “ui/hostgame_dedicated_warning.menu” }
loadMenu { “ui/mods.menu” } // fretn (rain) adding mods menu
loadMenu { “ui/viewreplay.menu” }
loadMenu { “ui/viewreplay_delete.menu” }
loadMenu { “ui/options.menu” }
loadMenu { “ui/options_nq.menu” } //No Quarter Menus
loadMenu { “ui/options_nq_controls.menu” } //No Quarter
loadMenu { “ui/options_nq_display.menu” } //No Quarter
loadMenu { “ui/options_nq_hud.menu” } //No Quarter
loadMenu { “ui/options_nq_sound.menu” } //No Quarter
loadMenu { “ui/options_customise_game.menu” }
loadMenu { “ui/options_customise_hud.menu” }
loadMenu { “ui/options_controls.menu” }
loadMenu { “ui/options_controls_default.menu” }
loadMenu { “ui/options_system.menu” }
loadMenu { “ui/options_system_gamma.menu” }
loadMenu { “ui/credits_splashdamage.menu” }
loadMenu { “ui/credits_idsoftware.menu” }
loadMenu { “ui/credits_activision.menu” }
loadMenu { “ui/credits_additional.menu” }
loadMenu { “ui/credits_et260.menu” }
loadMenu { “ui/credits_quit.menu” }
loadMenu { “ui/credits_no_quarter.menu” } //No Quarter Credits
loadMenu { “ui/quit.menu” }

// popups
loadMenu { "ui/popup_errormessage.menu" }
loadMenu { "ui/popup_errormessage_pb.menu" }	
loadMenu { "ui/popup_hostgameerrormessage.menu" }
loadMenu { "ui/popup_autoupdate.menu" }
loadMenu { "ui/popup_password.menu" }
loadMenu { "ui/popup_serverredirect.menu"}

// video confirmation
loadMenu { "ui/vid_restart.menu" }
loadMenu { "ui/vid_confirm.menu" }
loadMenu { "ui/rec_restart.menu" }

// quickchats
loadMenu { "ui/wm_quickmessage.menu" }
loadMenu { "ui/wm_quickmessageAlt.menu" }
loadMenu { "ui/wm_ftquickmessage.menu" }
loadMenu { "ui/wm_ftquickmessageAlt.menu" }

// class menuu
loadMenu { "ui/wm_class.menu" }
loadMenu { "ui/wm_classAlt.menu" }


// ingame
loadMenu { "ui/ingame_main.menu" }
loadMenu { "ui/ingame_vote.menu" }
loadMenu { "ui/ingame_vote_disabled.menu" }
loadMenu { "ui/ingame_vote_misc.menu" }
loadMenu { "ui/ingame_vote_misc_refrcon.menu" }
loadMenu { "ui/ingame_vote_map.menu" }
loadMenu { "ui/ingame_vote_players.menu" }
loadMenu { "ui/ingame_vote_players_warn.menu" }
loadMenu { "ui/ingame_serverinfo.menu" }
loadMenu { "ui/ingame_disconnect.menu" }
loadMenu { "ui/ingame_messagemode.menu" }
loadMenu { "ui/ingame_tapout.menu" }
loadMenu { "ui/ingame_tapoutlms.menu" }

}

3/(clan name)_rules.menu
#include “ui/menudef.h”

// Defines //

#define WINDOW_X 40
#define WINDOW_Y 40
#define WINDOW_WIDTH 560
#define WINDOW_HEIGHT 400
#define GROUP_NAME “grpWFRules”

// Macros //

#include “ui/menumacros.h”

// WF Rules //

menuDef {
name “wf_rules”
visible 0
fullscreen 0
rect WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
style WINDOW_STYLE_FILLED

onESC {
	close wf_rules;
}

// Window //

itemDef {
	name		"window"
	group		GROUP_NAME
	rect		0 0 WINDOW_WIDTH WINDOW_HEIGHT
	style		WINDOW_STYLE_FILLED
	backcolor	0 0 0 1
	border		WINDOW_BORDER_FULL
	bordercolor	.5 .5 .5 .5
	visible		1
	decoration
}

#define RULES_Y 6

LABELWHITE( 6, RULES_Y, (WINDOW_WIDTH-24), 10, "WF Rules

1 - spawnkilling is not allowed. This means that spawnkilling with Panzerfaust, Flamethrower, Mortar, Grenades, Rifle Grenades, Dynamite, Satchel Charges, Artillery and Airstrikes is forbidden. As a general rule, the spawn area is defined as the area from where the players spawn, up to the first fork in where they can go.
If the spawn is capturable, then any weapons can be used on it. A capturable spawn must have a flag which can be used to take control of the spawn. All other spawns are deemed as non-capturable, and so, no heavy weapsons allowed.", .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )

LABELWHITE( 6, RULES_Y + 90, (WINDOW_WIDTH-24), 10,"A capturable spawn must have a flag which can be used to take control of the spawn. All other spawns are deemed as non-capturable, and so, no heavy weapsons allowed.

2 - No Trickjumping to get the objective.
This means using any sort of jump to get past an objective, eg. a gate which would normally need to be blown up. If you are an engineer, it will be assumed that you are trying to get to the objective if you make this jump.

3 - No Griefing.
Griefing is doing things simply to annoy your teammates. The main example of this is running on their landmines, as you know they won’t hurt you. Other ones might be blocking people purposely in doors, getting in the way of panzer/mortar shots, constantly knifing teammates to distract them etc.", .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )

LABELWHITE( 6, RULES_Y + 252, (WINDOW_WIDTH-24), 10, "4 - No swearing. Final.", .2, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )

}