![]() |
|
|
#1 |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
BuyMenu, Again !!!
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 :/ |
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Jul. 24th, 2003
Posts: 47
|
Quote:
****, i'd MAKE one for you for money ;\ |
|
|
|
|
|
|
#3 |
|
Is this a request for others to do this for you?
In that case the Mod Recruitment forum might be a better place...
__________________
Wormbo's UT/UT2004/UT3 mods | YouTube channel | PlanetJailbreak | Unreal Wiki | Liandri Archives Everything you ever wanted to know about replication | UnrealScript security considerations <elmuerte> you shouldn't do all-nighters, it's a waste of time and effort <TNSe> nono <TNSe> its always funny to find code a week later you dont even remember writing <Pfhoenix> what's worse is when you have a Star Wars moment <Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!" |
|
|
|
|
|
|
#4 |
|
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
__________________
BlackHornet - Project Leader, Programmer Global WarZonE - a UT2k3 total conversion irc://irc.quakenet.org/globalwarzone www.globalwarzone.com |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
i didn't find the keyevents / keytypes ...
|
|
|
|
|
|
#6 |
|
just open other gui pages from standard ut and u can see how it works.
|
|
|
|
|
|
|
#7 | |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
Quote:
|
|
|
|
|
|
|
#8 |
|
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 remember old school. Champion of Glaucoma Inducing Radiation Everywhere Last edited by RegularX; 22nd Aug 2003 at 09:29 AM. |
|
|
|
|
|
|
#9 | |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
Quote:
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 by Supremacy; 22nd Aug 2003 at 10:00 AM. |
|
|
|
|
|
|
#10 |
|
Code:
ClientOpenMenu("TacStr.TS_MidGameMenu.uc");
__________________
_____________________________ I remember old school. Champion of Glaucoma Inducing Radiation Everywhere |
|
|
|
|
|
|
#11 |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
what means dropping the .uc ?
|
|
|
|
|
|
#12 |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
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"); |
|
|
|
|
|
#13 |
|
...and did that work?
__________________
_____________________________ I remember old school. Champion of Glaucoma Inducing Radiation Everywhere |
|
|
|
|
|
|
#14 |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
hell no :/
the error i posted before appeared |
|
|
|
|
|
#15 |
|
sorry, I misread
You have - ClientOpenMenu("TacStr.TS_MidGameMenu.uc"); You need (I think) - ClientOpenMenu("TacStr.TS_MidGameMenu"); No ".uc"
__________________
_____________________________ I remember old school. Champion of Glaucoma Inducing Radiation Everywhere |
|
|
|
|
|
|
#16 | |
|
Quote:
__________________
German Guy: Is there an indicator to see where the blue flag is? Mark Rein: Yeah it's a blue flag |
||
|
|
|
|
|
#17 |
|
Yeh then once you've sold it, add it to the wiki. \o/
|
|
|
|
|
|
|
#18 | |
|
Registered User
Join Date: Aug. 21st, 2003
Posts: 34
|
Quote:
@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 |
|
|
|
|
|
|
#19 |
|
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.
__________________
_____________________________ I remember old school. Champion of Glaucoma Inducing Radiation Everywhere |
|
|
|
|
|
|
#20 | |
|
Quote:
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!) |
||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|