View Full Version : [Need Help] to change CharClassInfo=class via a menu
07-31-2010, 04:41 PM
ok as the title says i realy need help to change the CharClassInfo=class in the UTPlayerReplicationInfo class via a menu.
i know i can change the class by editing and re-compiling but this doesn't help the player when he want's to change the class on a packaged game
any help, tips, code would be most greatful
08-01-2010, 03:09 AM
Maybe this Thread (http://utforums.epicgames.com/showthread.php?t=739653&highlight=character) is a good start.
As I don't know how to bind menu functions to script yet I can't help you with that part, but I guess I would create a similar UIScene to what Epic did in UT3.
So for example just a single button which once pressed changes the CharClassInfo to the next one from a list of specified classes.
08-01-2010, 01:42 PM
i had a look at the Sapitu system before but it completely lost me, guess i'll have to try again :(
08-02-2010, 12:29 AM
Yeah the way it usually works for providers is your "class'characterclass'" will be stored as a string in a Data Provider with all other associated info like Friendly Names used for localization. The reason it is stored like this not an Array<class<CharClass> > is because class variables arnt allowed to be of secondary type config at object level.
So a function returns all the providers and you filter the list until you get the results that youre looking for, like a list of Friendly Names which are associated directly to your class strings much as in the Weapon Replacement mutator :cool:
08-02-2010, 02:04 PM
Hi Mons, i don't suppose you have time to sort this out for me.
so i need a Data Provider Class and a data store and a whole lot more, time to start digging again, i thought more like the gametype/map selection to show a pic but i'll have another look
08-03-2010, 12:41 AM
Unfortunately spare time and me dont get along so well :p
Yeah data provider and a store, its not that tricky, the harder part will be sorting the info for display (I usually get lost about here). My suggestion might be to try out some of the scaleform tutorials, use the data providers and stores to do something in there instead of UIScene. Its just a big headache with alot of repetition.
08-03-2010, 01:38 PM
ok mate no probs, same thing here, been looking at some of the scaleform tut's so we'll see where we get.
thanks for your time and tips
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.