Author Topic: Creating a new selection for classes.  (Read 399 times)

0 Members and 1 Guest are viewing this topic.

Bravo2255

  • Knight at Arms
  • *
  • The best weapon against an enemy is another enemy.
    • View Profile
  • Faction: Neutral
  • MP nick: KK-A_Nr4_Tromp_Alex
  • WBNW
Creating a new selection for classes.
« on: May 04, 2012, 02:39:44 AM »
I have finally got around to doing this, I would like to see what you guys want (Drawing, Whatever you would like to see the selection as.) I would like to aim for something like MM's troop selection, But I can only find the items positioning, Any help?

This will be OSP, I may make more than one for certain mods if I get the hang of this.

What/ where the basics are:
(click to show/hide)

I would like to make the classes already made, Like MM, also where is the code for the Character at the Host and Join game?
« Last Edit: May 04, 2012, 02:55:05 AM by Bravo2255 »
Do what is right, because it is right. -Anonymous
A tree is known by its fruit; a man by his deeds. A good deed is never lost; he who sows courtesy reaps friendship, and he who plants kindness gathers love. Saint Basil
“Laugh as much as you breathe and love as long as you live.” -Anonymous
“Life is full of beauty. Notice it. Notice the bumble bee, the small child, and the smiling faces. Smell the rain, and feel the wind. Live your life to the fullest potential, and fight for your dreams.” -A.S.

Bravo2255

  • Knight at Arms
  • *
  • The best weapon against an enemy is another enemy.
    • View Profile
  • Faction: Neutral
  • MP nick: KK-A_Nr4_Tromp_Alex
  • WBNW
Re: Creating a new selection for classes.
« Reply #1 on: May 04, 2012, 02:52:02 AM »
Does it matter where you put your string such as:
Code: [Select]
("choose_a_troop", "Choose a troop class:"),Then:
Code: [Select]
("American_Standard_Line", "Choose a Regiment:"),
Note: I am using terms from my mod.
Note: I will place these, Just finding out if there is a certain place to put it in the Strings.
Do what is right, because it is right. -Anonymous
A tree is known by its fruit; a man by his deeds. A good deed is never lost; he who sows courtesy reaps friendship, and he who plants kindness gathers love. Saint Basil
“Laugh as much as you breathe and love as long as you live.” -Anonymous
“Life is full of beauty. Notice it. Notice the bumble bee, the small child, and the smiling faces. Smell the rain, and feel the wind. Live your life to the fullest potential, and fight for your dreams.” -A.S.

MadocComadrin

  • Water-Borne Annelid
  • Grandmaster Knight
  • *
  • ...et cum iustis non scribantur.
    • View Profile
  • Faction: Neutral
  • MP nick: MadocComadrin
  • M&BWBWF&S
Re: Creating a new selection for classes.
« Reply #2 on: May 04, 2012, 08:17:46 AM »
Within module_strings itself? Not technically, but in general the bottom is always better. You might want to consider using inline strings for labels and such: with presentations, the less you have to manage, the better.
Resident Wereparakeet - Tasty and Dangerous Pastry
Madmin - Sophistacted tools for responsible admins


Bravo2255

  • Knight at Arms
  • *
  • The best weapon against an enemy is another enemy.
    • View Profile
  • Faction: Neutral
  • MP nick: KK-A_Nr4_Tromp_Alex
  • WBNW
Re: Creating a new selection for classes.
« Reply #3 on: May 04, 2012, 11:41:11 PM »
Where do I find or make inline strings?
Do what is right, because it is right. -Anonymous
A tree is known by its fruit; a man by his deeds. A good deed is never lost; he who sows courtesy reaps friendship, and he who plants kindness gathers love. Saint Basil
“Laugh as much as you breathe and love as long as you live.” -Anonymous
“Life is full of beauty. Notice it. Notice the bumble bee, the small child, and the smiling faces. Smell the rain, and feel the wind. Live your life to the fullest potential, and fight for your dreams.” -A.S.

Caba`drin

  • Administrator
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • M&BWBWF&SNW
Re: Creating a new selection for classes.
« Reply #4 on: May 05, 2012, 12:01:48 AM »
Use the @ sign at the beginning designates it as a quick string.
"@Text there"
vs
"str_string_in_the_strings_file"



MadocComadrin

  • Water-Borne Annelid
  • Grandmaster Knight
  • *
  • ...et cum iustis non scribantur.
    • View Profile
  • Faction: Neutral
  • MP nick: MadocComadrin
  • M&BWBWF&S
Re: Creating a new selection for classes.
« Reply #5 on: May 05, 2012, 12:02:12 AM »
(click to show/hide)
Resident Wereparakeet - Tasty and Dangerous Pastry
Madmin - Sophistacted tools for responsible admins


Bravo2255

  • Knight at Arms
  • *
  • The best weapon against an enemy is another enemy.
    • View Profile
  • Faction: Neutral
  • MP nick: KK-A_Nr4_Tromp_Alex
  • WBNW
Re: Creating a new selection for classes.
« Reply #6 on: May 05, 2012, 12:29:24 AM »
(click to show/hide)

I am new to this, So saying (create_text_overlay, reg0, "@Choose a troop class", 0)

Is using a "String" that does not exist in the Strings file?
Do what is right, because it is right. -Anonymous
A tree is known by its fruit; a man by his deeds. A good deed is never lost; he who sows courtesy reaps friendship, and he who plants kindness gathers love. Saint Basil
“Laugh as much as you breathe and love as long as you live.” -Anonymous
“Life is full of beauty. Notice it. Notice the bumble bee, the small child, and the smiling faces. Smell the rain, and feel the wind. Live your life to the fullest potential, and fight for your dreams.” -A.S.

Bravo2255

  • Knight at Arms
  • *
  • The best weapon against an enemy is another enemy.
    • View Profile
  • Faction: Neutral
  • MP nick: KK-A_Nr4_Tromp_Alex
  • WBNW
Re: Creating a new selection for classes.
« Reply #7 on: May 05, 2012, 02:51:51 AM »
Where is the code for the Character, as in when you see Join game, and Host game?
Do what is right, because it is right. -Anonymous
A tree is known by its fruit; a man by his deeds. A good deed is never lost; he who sows courtesy reaps friendship, and he who plants kindness gathers love. Saint Basil
“Laugh as much as you breathe and love as long as you live.” -Anonymous
“Life is full of beauty. Notice it. Notice the bumble bee, the small child, and the smiling faces. Smell the rain, and feel the wind. Live your life to the fullest potential, and fight for your dreams.” -A.S.

sirwho

  • Knight
  • *
  • Stop loading your damn gun and FIGHT me!
    • View Profile
    • The Brunswick Corps.
  • Faction: Neutral
  • MP nick: Vulkaan
Re: Creating a new selection for classes.
« Reply #8 on: May 08, 2012, 12:36:42 AM »
Where is the code for the Character, as in when you see Join game, and Host game?

You mean the character that shows up there? Its near the top in "module_troops". Anything to do with the format of the screen should be in "module_presentations", but I never messed with it.

Bravo2255

  • Knight at Arms
  • *
  • The best weapon against an enemy is another enemy.
    • View Profile
  • Faction: Neutral
  • MP nick: KK-A_Nr4_Tromp_Alex
  • WBNW
Re: Creating a new selection for classes.
« Reply #9 on: May 09, 2012, 12:32:14 AM »
There is not much in presentations, But this is something I found that may be it, Please tell me if it is

Code: [Select]
   (create_text_overlay, reg0, "str_character", tf_center_justify),
      (position_set_x, pos1, 175),
      (position_set_y, pos1, 670),
      (overlay_set_position, reg0, pos1),
[/s]

EDIT: I saw this:
Code: [Select]
(store_mul, ":cur_troop", "$g_quick_battle_troop", 2), #with weapons
      (create_mesh_overlay_with_tableau_material, reg0, -1, "tableau_game_party_window", ":cur_troop"),
      (position_set_x, pos1, 25),
      (position_set_y, pos1, 370),
      (overlay_set_position, reg0, pos1),

I want to add it into the position, In the MP slot where Equipment selection, is there a certain place I need to add it?
« Last Edit: May 09, 2012, 01:36:33 AM by Bravo2255 »
Do what is right, because it is right. -Anonymous
A tree is known by its fruit; a man by his deeds. A good deed is never lost; he who sows courtesy reaps friendship, and he who plants kindness gathers love. Saint Basil
“Laugh as much as you breathe and love as long as you live.” -Anonymous
“Life is full of beauty. Notice it. Notice the bumble bee, the small child, and the smiling faces. Smell the rain, and feel the wind. Live your life to the fullest potential, and fight for your dreams.” -A.S.

sirwho

  • Knight
  • *
  • Stop loading your damn gun and FIGHT me!
    • View Profile
    • The Brunswick Corps.
  • Faction: Neutral
  • MP nick: Vulkaan
Re: Creating a new selection for classes.
« Reply #10 on: May 11, 2012, 11:33:08 AM »
I'm a bit confused about what you want to do now, but the lines you need to look at to change the item selection in "Module_Presentations" starts with this:

Code: [Select]
  ("multiplayer_item_select", prsntf_manual_end_only, 0, [
    (ti_on_presentation_load,
     [(set_fixed_point_multiplier, 1000),
      (multiplayer_get_my_player, ":my_player_no"),

If your still trying to make a MM style troop select my best guess would be to find the code:
Code: [Select]
  ("multiplayer_troop_select", prsntf_manual_end_only, 0, [

go down to the bottom of that code where is says:
Code: [Select]
        (start_presentation, "prsnt_multiplayer_item_select"),
 
and quote that out. Hopefully then the player will spawn without getting the item selection menu, only getting whatever basic equipment you assigned them in "module_troops". Its only a beginning thought though...it probably will require a bit more work to get it all to work correctly.