Character Selection GUI
by Christian S · in Torque Game Engine · 09/18/2005 (9:31 am) · 16 replies
Hey, I have been looking at this for a couple of days now and cant make it work. Im really new to C++ and Torque, but still determined to figure this out. But now at the point where some help would come inhandy to a pretty tired guy.
I am trying to make a character selection process where the 'PreviousModel', and 'NextModel' button selects PlayerCharacters from either the Male or the Female folder I have created in the PlayerFolder. I plan to have a button 'Gender', that mchanges the folder pointer to either of the two floders, so that only proper gender models are browsed.
I have (Upon suggestion in IRC) looked at the Realm Wars code.
And I have Client:Scripts:selectScreenGui.cs, Client:Ui:selectScreen.gui placed into my own project (as workbase) alongside the Menus and SelectScreen folders with content.
I plan to make a function GenderChoice() and a variable %GenderPath(%Gender) as soon as I get the Gui working.
But when I change my own MainMenuGui's start button into command = "Canvas.setContent(selectScreenGui);"; nothing at all happens when I try pressing it.
I cant seem to figure out what is wrong at all, but Ill bet its something simple that theese tired eyes are totally overlooking -so anyone got a idea ?
I am trying to make a character selection process where the 'PreviousModel', and 'NextModel' button selects PlayerCharacters from either the Male or the Female folder I have created in the PlayerFolder. I plan to have a button 'Gender', that mchanges the folder pointer to either of the two floders, so that only proper gender models are browsed.
I have (Upon suggestion in IRC) looked at the Realm Wars code.
And I have Client:Scripts:selectScreenGui.cs, Client:Ui:selectScreen.gui placed into my own project (as workbase) alongside the Menus and SelectScreen folders with content.
I plan to make a function GenderChoice() and a variable %GenderPath(%Gender) as soon as I get the Gui working.
But when I change my own MainMenuGui's start button into command = "Canvas.setContent(selectScreenGui);"; nothing at all happens when I try pressing it.
I cant seem to figure out what is wrong at all, but Ill bet its something simple that theese tired eyes are totally overlooking -so anyone got a idea ?
#2
Edited: I did put one up a while ago, but it's just basic model selection.
09/18/2005 (10:15 am)
Someone really should put up a character selection resource. I have one implemented but it's not the best, and I would like some insight on a good way to do it.Edited: I did put one up a while ago, but it's just basic model selection.
#3
And the console Log shows this error.
Loading compiled script fps/client/ui/selectScreenGui.gui.
Warning: (d:\torque\engine\gui\guitypes.cc @ 293) GuiControlProfile: requested gui profile (GuiRWLargeProfile) does not exist.
Warning: (d:\torque\engine\gui\guitypes.cc @ 293) GuiControlProfile: requested gui profile (GuiRWInfoProfile) does not exist.
setContent(): Invalid control: selectScreenGui
And Chris your absoloutly right on that, but...
09/18/2005 (10:25 am)
After some aid in IRC, I now remembers to Exec the GuiAnd the console Log shows this error.
Loading compiled script fps/client/ui/selectScreenGui.gui.
Warning: (d:\torque\engine\gui\guitypes.cc @ 293) GuiControlProfile: requested gui profile (GuiRWLargeProfile) does not exist.
Warning: (d:\torque\engine\gui\guitypes.cc @ 293) GuiControlProfile: requested gui profile (GuiRWInfoProfile) does not exist.
setContent(): Invalid control: selectScreenGui
And Chris your absoloutly right on that, but...
#4
09/18/2005 (10:54 am)
Give me some time and I can make one I have one in my game that I pulled form dreamers tutorials it did take a little bit of fixing to fit my needs though. But if you need it now check out realm wars because they have one also.
#5
I would also be interested in how you adapted Dreamers Character Selection GUI. I am trying to pick a team then isolate 6 models to that specific team selection.
11/21/2005 (8:54 pm)
@Master TrebI would also be interested in how you adapted Dreamers Character Selection GUI. I am trying to pick a team then isolate 6 models to that specific team selection.
#6
11/22/2005 (2:03 pm)
It would be sweet to see a good tut on character selection in detail and what files go where and are needed, Whether its from RWs are not . Dreamers character selection hmm must go look that one up been trying to get something like this for some time now. <
#7
06/11/2006 (8:43 pm)
Any status on the character selection tutorial?
#8
06/12/2006 (8:11 am)
The MMOKit (dreamer is a dev on) has a very advanced character selection set of functions and GUI files. www.mydreamrpg.com
#9
it would be interesting to see the dreamrpg as well.
06/12/2006 (2:39 pm)
Thanks Jon I will definitely check this out. I was messing with the Realmwars version, butit would be interesting to see the dreamrpg as well.
#10
06/14/2006 (1:44 pm)
Does anyone have any screen shots of this working. Add the resource or attatch a link to a vid or something of it being done
#11
06/14/2006 (2:33 pm)
I just got the MMOKit the other day and I have to tell you - it's definately worth every penny. It has a great implementation of a character selection GUI.
#12
06/14/2006 (3:49 pm)
The MMOKIT is awesome great character selection gui.
#13
Here are some screenies:
First, choose a model:

Then, finetune the appearance:
06/14/2006 (3:59 pm)
Yeah guys I did the coding for the character selection GUI in the MMOKIT, it's using a modified version of ObjectModelView. Ours supports mesh hiding/unhiding though, so the player can toggle through all the available starting meshes for a player. Hair, eyes, clothes, etc; whatever the modeller has created!Here are some screenies:
First, choose a model:

Then, finetune the appearance:
#14
06/14/2006 (8:25 pm)
So does this kit use a mission? I have been thinking about doing that for the selection screen and have it loaded while running other missions. This would be a client only mission.
#15
06/15/2006 (1:31 am)
The kit helps you to set up a dedicated server to use as a game server in a persistent world. The server runs a zone (mission) and people connect to it whenever they like. The character selection screens are client side non-connected functionality; you dont need a server connection to build a character. Of course they do talk to a server once the character is created to write it to the database, but its a kit, meant to be customized. We have a single player port of the kit almost complete, to act as a true RPG Single Player starter kit, and as a kit owner, you're free to use whatever components you like.
#16
06/15/2006 (10:29 pm)
Here is my client Felswourne. The server should be up and running most of the time now that I have a version checker to make sure old clients can't try to log into new server code. This is complete with character storage, selection, stats, kill and death counter (no Kork doesn't count as a kill). I would be willing to answer any questions you may have on how I did it.
Torque Owner Christian S
Oak-Entertainment