own ui / credits_quit does not work


(Headhunter) #1

Hello SD Community,

I have recreate some ui-menues but the last what comes at the end,- when you hit “you want Quit” “yes” opens the main_menu.

If you hit then the Exit game button is come the Main_menu again = you cant exit the Game on this way.

What i must do ?

Also i dont see the “Credits” at the end before the Game quits normally without to click “Exit Game”.

I know the quit.menu saysat the end :

// Subwindows //

#define SUBWINDOW_WIDTH 210
#define SUBWINDOW_HEIGHT 80
#define SUBWINDOW_X .5*(WINDOW_WIDTH-SUBWINDOW_WIDTH)
#define SUBWINDOW_Y .5*(WINDOW_HEIGHT-SUBWINDOW_HEIGHT)

SUBWINDOWBLACK( SUBWINDOW_X, SUBWINDOW_Y, SUBWINDOW_WIDTH, SUBWINDOW_HEIGHT, "^2Thanks for your Visit" )
LABEL( SUBWINDOW_X+2, SUBWINDOW_Y+16, (SUBWINDOW_WIDTH)-4, 10, "- ^2please visit our Community", .2, ITEM_ALIGN_CENTER, .5*((SUBWINDOW_WIDTH)-4), 8 )
LABEL( SUBWINDOW_X+2, SUBWINDOW_Y+28, (SUBWINDOW_WIDTH)-4, 10, "- ^swww.xyz.com", .2, ITEM_ALIGN_CENTER, .5*((SUBWINDOW_WIDTH)-4), 8 )
LABEL( SUBWINDOW_X+2, SUBWINDOW_Y+40, (SUBWINDOW_WIDTH)-4, 10, "^^1Wanna Quit ?", .2, ITEM_ALIGN_CENTER, .5*((SUBWINDOW_WIDTH)-4), 8 )

#ifdef FUI
BUTTON( SUBWINDOW_X+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^2YES”, .3, 14, close quit ; close main ; open credits_quit )
BUTTON( SUBWINDOW_X+6+.5*(SUBWINDOW_WIDTH-18)+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^1NO”, .3, 14, close quit ; open main )
#else
BUTTON( SUBWINDOW_X+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^2YES”, .3, 14, close quit ; close ingame_main ; open credits_quit )
BUTTON( SUBWINDOW_X+6+.5*(SUBWINDOW_WIDTH-18)+6, SUBWINDOW_Y+SUBWINDOW_HEIGHT-24, .5*(SUBWINDOW_WIDTH-18), 18, “^1NO”, .3, 14, close quit ; open ingame_main )
#endif // FUI

}

…then, if a player click “yes” it should open the credits_quit.menu…
here is at the end a little bit changed (copyright is in all other menus so i make a last greet sentence…):

LABEL( 6, CREDITS_Y+300, WINDOW_WIDTH-12, 10, “^4Have questions,Ideas, please go to the Forum and let us know. ^3Thanks for your visit here.”, .15, ITEM_ALIGN_LEFT, 0, 8 )

itemDef {
	name		"quitButton"
	group		GROUP_NAME
	rect		0 0 WINDOW_WIDTH WINDOW_HEIGHT
	type		ITEM_TYPE_BUTTON
	style		WINDOW_STYLE_EMPTY
	visible		1

	action {
		[B]uiScript quit[/B]
	}
}

}

But this menu dont work (is into the menu.txt list to start),- here i need help (1)

After the credits of all Acteurs, Programmers etc of ET was scrolling up (if it works in future) the Game should quit all and exit game,- here i need the Help (2).

Where was my mistake of coding ? Take please passion with me, i am a newbie at coding and programming, but want learn it quick, if there one who can show me an example or the direct help for the future. Also sorry for my bad english, I am german who is atm on the way to learn english better as into our school at my school time 1970´s :smiley:


(Scennative) #2

plz make a pk3. so we can help you better


(Indloon) #3

I haven’t touched the UI part of ET long time,but

shouldn’t it be just

close quit ; open credits_quit ?


(Headhunter) #4

ok @ Scennative i have make a ui.pk3

http://www.megaupload.com/?d=U2HOXH8K :cool:

The standard ui´s with the untouched credits of SD Adds Activision etc i let out because they was orginal.:wink:

I have blue/red menu colors and my own pictures who named like the orginal but inside are my pictures with the same px like 512x512 / 64x64 / etc. …:infiltrator:

@ Indloon: there IS that line in “close quit ; open credits_quit” - you can see it above, but that credits_quit.menu dont work it redirect Players back to main.menu or dont show up and you see after quit.menu direct the main.menu…thats why i come here to find a solution :slight_smile:

Thanks for the help all


(TimOOn) #5

Are you editing etmain menu or menu for some mod? NQ?

When you open ET with your customized menu there is a list of errors in console. First of all you are trying to use menumacros2.h file, which is not contained in your pk3.

For broken exit game button:
In credits_quit.menu, line 130:

LABELWHITE( 6+.5*(WINDOW_WIDTH-24)+12, CREDITS_Y+104, .5*(WINDOW_WIDTH-24), 10, [B]"[/B]^4S^1h^4eriff", .2, ITEM_ALIGN_LEFT, 0, 8 )

A " is missing before ^4S^1h^4eriff

In line 191 there is a LABEL, which is separated with ENTER. All label code has to be placed in one line.

After changing this, the EXIT GAME works fine for etmain.


(Headhunter) #6

Yes, i have change some orginal pictures and want add some buttons to a page (coordinates was a hard thing…) and they should open special pages… i still work on it…upload & test and…delete it because there ever mistakes and other things who need to change or fix, thats not that hardest, but that “credits_quit.menu” have stress me right :slight_smile:

lol…how you know that i get some errors ? Ya - thats right, but i have atm not all ui ready how i want have them. I do a new one in and test it with the other who i have b4 inside and work propper…is it bad or wrong i delete it and rework on it…and…what does the menumacros/menumacros2.h files ? There i see a lot of lines but i am not that coder who knows what and where i should change there anything - sorry.

This i will today afternoon (after my work) change - Thanks for that great info <3

Hmmm. i am a german…not sure i understand it right. What you meant with LABEL - seperated - ENTER ?
Have i make a wrong space or what do you mean ? Sorry - but can you explain me that in other words please for better understanding ?

[QUOTE=TimOOn;390312]
After changing this, the EXIT GAME works fine for etmain. [/QUOTE]

… I hope i can do that all what you suggest me soon,- need a break to see ui codes in all my freetime…

Big Thank you for the quick help and work on it
Headhunter / Funwave


(TimOOn) #7

[QUOTE=funwave;390317]Hmmm. i am a german…not sure i understand it right. What you meant with LABEL - seperated - ENTER ?
Have i make a wrong space or what do you mean ? Sorry - but can you explain me that in other words please for better understanding ?[/QUOTE]

Part of code from credits_quit.menu looks like this:

LABEL( 6, CREDITS_Y+300, WINDOW_WIDTH-12, 10, "^s©^8*^4Head^7hun^1ter^8*  ^4Have questions,Ideas or want join, please go to the Forum (^swww.etgamers.org) and let us know.
                                                                                                           ^4We does not just look for great players to join our Community, - but great people.That Community is built on the strength and support of good friends, 
                                                                                                           ^4good judgment, fair rules, and a kind, professional attitude towards our guests and fellow members. If you think that you have what it takes 
                                                                                                           ^4to become a part of our community, please Apply at Forum^3Thanks for your visit here.", .15, ITEM_ALIGN_LEFT, 0, 8 )

But it should look like this:

	LABEL( 6, CREDITS_Y+300, WINDOW_WIDTH-12, 10, "^s©^8*^4Head^7hun^1ter^8*  ^4Have questions,Ideas or want join, please go to the Forum (^swww.etgamers.org) and let us know. ^4We does not just look for great players to join our Community, - but great people.That Community is built on the strength and support of good friends, ^4good judgment, fair rules, and a kind, professional attitude towards our guests and fellow members. If you think that you have what it takes ^4to become a part of our community, please Apply at Forum^3Thanks for your visit here.", .15, ITEM_ALIGN_LEFT, 0, 8 )

I mean this part has to be in one line.

These are header fles. You declared that you want to use menumacros2.h in options_customise_game.menu but this file might be unnecessary.

Sorry for my English, it might be sometimes difficult to understand. :tongue:


(Headhunter) #8

Thanks for your Help. I will test it after my work and come then here if it work or not .


(Headhunter) #9

@TimOOn: I have rework it but it dont want work…

Are there differents beween etpub Mod and NQ Mod in the ui section or the build ?

I am curious about the answer, maybe there was the mistake, to use a pup ui for nq ?

I am not a Mod-Builer but a starting Mapper / Coder ? Who knows what comes but all what i have unzip and had see, or wht i have googled there was never a point that the uis are not compatible from Mod to Mod so it must be an other mistake - or is that wrong ?

Thanks for the helping answers here
regards


(avery) #10

I’ll take a look at it as well. I have created a few myself that look pretty good and see what I can come up with. Is it a main menu, or ingame menu?


(Headhunter) #11

Hey avery

It was both…

(menu.skeleton basics (7 more menus)):

…main.menu…
…Forum…Rules…Levels…Options…View…Controls…System…NQ…Demos…Exit…
…(on work)…(OK)…(OK)…(orginal)…(orginal)…(orginal)… (orginal)…(orginal)…(orginal)…(orginal)…

…submenus…
…15 buttons for Servers…recruitment Page…Guests / Member Rules…Level Rooster…
…(on work)…(ok)…(ok)…(ok)…

…end.menus…
…quit.menu…credits_quit.menu…credits.menu…
…(error)…(error)…(orginal)…

parts of the two end.menus i have set in above and as a dl-link…


(avery) #12

To start off… I don’t know if anyone else is having issues, but I cannot even pull up your menus when I load up ET… so there is not much I can do there if I can’t see them to start off with lol


(TimOOn) #13

Of course there are differents!
Both mods has customized menus. When you’r makeing your own menu, you have to decide first if it will work with etmain or some mod.

Basic etmain menu is containced in pak0.pk3 pak1.pk3 and pak3.pk3 files in your etmain folder. But this menu is usually modified when you’r using a mod. Check out how ui’s looks in mods like NQ for example.

His pk3 is not built correctly. All .menu files are put directly into pk3 like this ui.pk3/main.menu but it should be like ui.pk3/ui/main.menu.

Here you have fixed version of your menu: http://www.mediafire.com/?2c2ianudo61cysx. Just put this in etmain folder and it should work fine. But you have to decide if you want to change main menu (which shows up after ET start), mod main menu, or ingame menu. Or all of the above.


(Headhunter) #14

I will after my work today upload the “Error” Uis (need much time at Megaupload…) then you will able to have a pk3 and inside the ui who was ready… hope i get all ready so far (some are half-ready thats why them not inside the packet).

Give me a day time please :slight_smile:

Thanks for the willing helping hand


(Headhunter) #15
  1. Are there differents beween etpub Mod and NQ Mod in the ui section or the build ?

)Of course there are differents! Both mods has customized menus. When you’r makeing your own menu, you have to decide first if it will work with etmain or some mod.

  • ) I have a nq 1.2.9.6b - and have open the pk0/1/2.pk3 (also the gag´s etc.) to see and learn what happens with the Menu etc. and some different things like Buttons on a other place for other (my) pages…

2 ) I am not a Mod-Builer but a starting Mapper / Coder ? Who knows what comes but all what i have unzip and had see, or wht i have googled there was never a point that the uis are not compatible from Mod to Mod so it must be an other mistake - or is that wrong ?

) Basic etmain menu is containced in pak0.pk3 pak1.pk3 and pak2.pk3 files in your etmain folder. But this menu is usually modified when you’r using a mod. Check out how ui’s looks in mods like NQ for example.

  • ) …have do this b4 and think have not make a mistake in the structure of the pack - but maybe in coding the pages…:rolleyes:
  1. Originally Posted by avery
    To start off… I don’t know if anyone else is having issues, but I cannot even pull up your menus when I load up ET… so there is not much I can do there if I can’t see them to start off with lol

) His pk3 is not built correctly. All .menu files are put directly into pk3 like this ui.pk3/main.menu but it should be like ui.pk3/ui/main.menu.

  • ) …correct, but i will see if i can make a pk3 with the right structure (but not all uis atm) that he might able better to see what i want to do and where is my problem - np.
  1. Here you have fixed version of your menu: http://www.mediafire.com/?2c2ianudo61cysx. Just put this in etmain folder and it should work fine. But you have to decide if you want to change main menu (which shows up after ET start), mod main menu, or ingame menu. Or all of the above.
  • ) wow thank you i will test it today afternno. But …in etmain ? - not into nq Mod ? OK i will test it

BIG THANK YOU so far


(avery) #16

His pk3 is not built correctly. All .menu files are put directly into pk3 like this ui.pk3/main.menu but it should be like ui.pk3/ui/main.menu.

Wow… I feel stupid… I honestly did not even think about that. lol :rolleyes: Since it looks like TimOOn knows what he is doing, I’m not gonna worry about getting it all together.


(TimOOn) #17

That’s what I’m talking about. If you want to change menu for NQ you have to use NoQuarter’s customized menu from nq_v1.2.9_3.pk3. There is ui folder which contains all changes in menus made by NQ team. You can only use etmain menu when there is no such file in NQ’s pk3. Because when mod is loaded, etmain files are overwritten by these included in mod’s pk3.

Problem with credits_quit is fixed but if you want your ui to fit NQ, you should rework it.


(Headhunter) #18

Thank you all,- finally it is solved…

The problem was what Timoon said and others…

never ever forgot the brackets ( } ) or the menumacrosh to fix…dont have that inside and not “start up” for the “custom” menu(s) lol

What a noobish mistake - sorry to all - have learned my lesson :slight_smile:

Big hug to the helping Hands here
Thanks

Solved = can be close