BuyMenu, Again !!!

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Supremacy

New Member
Aug 21, 2003
34
0
0
Hey guys,

found out how to make a BuyMenu GUI ???
wich responds with a key (for example: "V") :)
and then it pops up and shows weapons and other items.

if anyone got a complete buy-system i would send him/her money for it :/
 

BlackHornet

Global Warzone Project Leader
Apr 24, 2002
76
0
0
43
Aachen - Germany
www.hornet-maps.de
BuyMenu is simple GUIPage opened within an exec functionin your playcontroller class.
Then build up the GUIpage......should it be react on key strokes?...then define KeyEvents (or keytypes...im not sure what exactly). after all those things (spawn a copy of your item,give it to the player and substract the money from his playerreplicationinfo...i suggest to define the money there)

it isnt as difficult as it seems to be (instead of the grafiks;))

if you have more questions.....we are all in here :p
 

RegularX

Master of Dagoth Lies
Feb 2, 2000
1,215
0
0
Chicago, IL
Create an exec off your controller that does an open page. Look at the code that opens the MidGameMenu for some samples. Then create a keybind for that exec, or if you want to get fancy on it - a key interaction.


For example, the modified ShowMenu in riftwar:
Code:
exec function ShowMenu()
{
	// Pause if not already
	if(Level.Pauser == None)
		SetPause(true);

	StopForceFeedback();  // jdf - no way to pause feedback

	// Open menu
	ClientOpenMenu("SpeciesBattle.SBMidGameMenu");
}
 
Last edited:

Supremacy

New Member
Aug 21, 2003
34
0
0
RegularX said:
Create an exec off your controller that does an open page. Look at the code that opens the MidGameMenu for some samples. Then create a keybind for that exec, or if you want to get fancy on it - a key interaction.


For example, the modified ShowMenu in riftwar:
Code:
exec function ShowMenu()
{
	// Pause if not already
	if(Level.Pauser == None)
		SetPause(true);

	StopForceFeedback();  // jdf - no way to pause feedback

	// Open menu
	ClientOpenMenu("SpeciesBattle.SBMidGameMenu");
}

i made it, even b4
but then came an error something about exec stuff

ClientOpenMenu("TacStr.TS_MidGameMenu.uc");

thats what i did and an error about exec stuff apeared.


EDIT: this is the message:

TacStr is not a DLL package; can't find export 'intATS_PlayerConrollerexecSetNetSpeed'
 
Last edited:

RegularX

Master of Dagoth Lies
Feb 2, 2000
1,215
0
0
Chicago, IL
Code:
ClientOpenMenu("TacStr.TS_MidGameMenu.uc");

Probably because your are referring to a file rather than a class ... try dropping the .uc
 

Supremacy

New Member
Aug 21, 2003
34
0
0
i copied the original PlayerController.uc and put it in my code dir and then i renamed that file to TS_PlayerController.uc and named the class right.
and then i made this little code line:

ClientOpenMenu("TacStr.TS_MidGameMenu.uc");

instead of

ClientOpenMenu("Xinterface.UT2MidGameMenu");
 

RegularX

Master of Dagoth Lies
Feb 2, 2000
1,215
0
0
Chicago, IL
sorry, I misread

You have - ClientOpenMenu("TacStr.TS_MidGameMenu.uc");

You need (I think) -
ClientOpenMenu("TacStr.TS_MidGameMenu");

No ".uc"
 

SoSilencer

Harry Goz (1932 - 2003)
Nov 27, 2000
834
0
0
42
unrealdev.net
Quote:
--------------------------------------------------------------------------------
Originally Posted by Supremacy


if anyone got a complete buy-system i would send him/her money for it :/
--------------------------------------------------------------------------------

****, i'd MAKE one for you for money ;\

Totally man, for like $15 an hour I'd make an awsome buy system for you. Hell, maybe I'll just make a universal buy menu system and sell it (I bet this is against the EULA though, damnit).
 

Supremacy

New Member
Aug 21, 2003
34
0
0
RegularX said:
sorry, I misread

You have - ClientOpenMenu("TacStr.TS_MidGameMenu.uc");

You need (I think) -
ClientOpenMenu("TacStr.TS_MidGameMenu");

No ".uc"

yeah its without .uc sorry i posted this mistake but the code is without .uc




@SoSilencer:
if you need 1-2 hours for it (a tiny buymenu is enough, without pictures and stuff) then you are my worker and i pay :)

PM me
 

RegularX

Master of Dagoth Lies
Feb 2, 2000
1,215
0
0
Chicago, IL
It sounds like you have a compile error causing your package to implode. Either in your PC or the GUIPage itself. Can't tell from your posts if you are getting this error during the build or when you try the exec. If it's during the build, it's probably a syntax error in your PC. If it's not, it might in your GUIPage. Try swapping out your GP with MidGameMenu to see if that's true.

You'll have to post more code for debugging if that fails you.
 

-=[MAD]=-Hmpf

New Member
Dec 15, 2002
25
0
0
Visit site
Supremacy said:
i copied the original PlayerController.uc and put it in my code dir and then i renamed that file to TS_PlayerController.uc and named the class right.
and then i made this little code line:

ClientOpenMenu("TacStr.TS_MidGameMenu.uc");

instead of

ClientOpenMenu("Xinterface.UT2MidGameMenu");
That's something you shouldn't do.
You don't need to copy that whole stuff...
just make a subclass of PlayerController instead.

You should familiarize yourself with the principles of OOP before attempting to write a mod with buy menus and stuff.
Unreal Wiki - OOP Overview


trust me...
even if you get your buymenu working, you'll never finish your mod if you're not willing to learn the basics. (or if you're to lazy to write it yourself!)