Author Topic: Have a question about Modding? Ask Here!  (Read 313834 times)

0 Members and 1 Guest are viewing this topic.

Offline Griffith

  • Corporal
  • *
  • Posts: 58
    • View Profile
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #765 on: May 15, 2014, 10:57:48 am »
Nevermind. I took a wild guess and it worked.  :D

Offline Alistair

  • Sergeant Major
  • *
  • Posts: 414
  • Your Shako wielding gentleman
    • View Profile
    • 33nd Regiment of Foot
  • Nick: 33rd_Pte_Alistair
  • Side: Confederacy
Re: Have a question about Modding? Ask Here!
« Reply #766 on: May 15, 2014, 02:44:09 pm »
So the Ban Hammer model... Where's that in the brf files?  ::) Been doing lots of re texturing and the like and have looked for it many times but with no luck. Any help would be most appreciated.

Offline Parrot

  • Donator
  • *
  • Posts: 762
  • Lieutenant Colonel - Equestrian Foreign Legion
    • View Profile
    • EQFL Homepage
  • Nick: ExParrot
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #767 on: May 15, 2014, 04:22:00 pm »
So the Ban Hammer model... Where's that in the brf files?  ::) Been doing lots of re texturing and the like and have looked for it many times but with no luck. Any help would be most appreciated.

If I remember correctly, it's in one of the Russian weapons brfs, if not then it's in the French ones.
Check out mods I've worked on: Blood and Iron: Age of Imperialism, and North and South!

Offline EdwardTheGreat

  • First Lieutenant
  • *
  • Posts: 217
  • Beest TuRd na
    • View Profile
  • Side: Union
Re: Have a question about Modding? Ask Here!
« Reply #768 on: May 19, 2014, 01:37:20 am »
How do I change the main picture? Whenever I put one in with the correct size and stuff it just shows up blank. Please Help!
« Last Edit: May 19, 2014, 01:38:57 am by EdwardTheGreat »

Offline Penn

  • Lieutenant Colonel
  • *
  • Posts: 1839
  • If music be the food of love, play on.
    • View Profile
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #769 on: May 19, 2014, 03:57:55 am »
Have you saved it with the correct file format?
Penn and shitz

Offline EdwardTheGreat

  • First Lieutenant
  • *
  • Posts: 217
  • Beest TuRd na
    • View Profile
  • Side: Union
Re: Have a question about Modding? Ask Here!
« Reply #770 on: May 19, 2014, 11:44:36 am »
Have you saved it with the correct file format?

Yeah I saved it with .bmp

Offline Penn

  • Lieutenant Colonel
  • *
  • Posts: 1839
  • If music be the food of love, play on.
    • View Profile
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #771 on: May 19, 2014, 12:52:39 pm »
Have you saved it with the correct file format?

Yeah I saved it with .bmp

Save it as a .dds

Unless you mean the "main"-picture, then you've saved it correctly
Penn and shitz

Offline EdwardTheGreat

  • First Lieutenant
  • *
  • Posts: 217
  • Beest TuRd na
    • View Profile
  • Side: Union
Re: Have a question about Modding? Ask Here!
« Reply #772 on: May 19, 2014, 09:33:04 pm »
Have you saved it with the correct file format?

Yeah I saved it with .bmp

Save it as a .dds

Unless you mean the "main"-picture, then you've saved it correctly
I mean when u first go into the Modules and then the module folder it says main there. I want to know how to change that.

Offline Zelmaranth

  • Volunteer
  • *
  • Posts: 9
  • Captain of the 52nd Regiment of Foot
    • View Profile
  • Nick: Will
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #773 on: May 24, 2014, 08:08:30 am »
Not sure if this is the right place to ask, but here's my question: How would I go about restricting certain units on a server without having to constantly have admins on, a la the [FH] Zombies server?

Offline PaperSalad

  • Private
  • *
  • Posts: 26
    • View Profile
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #774 on: May 24, 2014, 06:24:52 pm »
It's the perfect place to ask. I'm actually the one who made the scripts for the zombies server. What I did, and it may not be the most efficient way of doing it, is adding a new condition in the script

check_troop_availability

right before this part at the end,
Code
(try_end),
 
(try_begin),
       (gt,":fail_message",-1),
       (str_store_string, s22, ":fail_message"),
(try_end),

add something like

Code
 
(try_begin),
(is_between, ":troop_no", "trp_russian_opol_nco", "trp_austrian_infantry"),
(try_begin),
   (eq,":store_messages",1),
   (str_store_troop_name_plural, s21, ":troop_no"),
   (assign, ":fail_message", "str_already_to_many_players_class_s21"),
   (str_store_string, s4, "str_zombie_partizan"),
   (multiplayer_send_string_to_player, ":player_no", multiplayer_event_show_server_message, s4),
(try_end),
(assign, ":class_ok", 0),
(try_end),

(is_between, ":troop_no", "trp_russian_opol_nco", "trp_austrian_infantry"), 
is your condition for the troops you want to restrict.

(str_store_string, s4, "str_zombie_partizan"),
(multiplayer_send_string_to_player, ":player_no", multiplayer_event_show_server_message, s4),

and these lines are optional, they only show a message to the player telling them that they have to go partizan.

Since this code is only going to be server side, it'll look like you can select these troops but in reality, once you click, you won't change.

Don't hesitate if you have any more questions.


Offline Zelmaranth

  • Volunteer
  • *
  • Posts: 9
  • Captain of the 52nd Regiment of Foot
    • View Profile
  • Nick: Will
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #775 on: May 25, 2014, 03:18:58 am »
Thanks for the information, but I seem to have trouble getting it to work. I can still choose any class I want.

In my module_scripts, starting on line 20181:
Code
  (try_begin),
(is_between, ":troop_no", "trp_french_infantry", "trp_french_ship"),
(is_between, ":troop_no", "trp_french_ship_cannon", "trp_napoleon"),
(try_begin),
   (eq,":store_messages",1),
   (str_store_troop_name_plural, s21, ":troop_no"),
   (assign, ":fail_message", "str_already_to_many_players_class_s21"),
   (str_store_string, s4, "str_prisoner"),
   (multiplayer_send_string_to_player, ":player_no", multiplayer_event_show_server_message, s4),
(try_end),
(assign, ":class_ok", 0),
(try_end),
 
      (try_begin),
        (gt,":fail_message",-1),
        (str_store_string, s22, ":fail_message"),
      (try_end),
     
      (assign,reg3,":class_ok"),
      (assign,reg4,":fail_message"),
    (try_end),
    ]),

In my module_strings, on line 806:
Code
 ("prisoner", "You must choose the Sailor class."),

Again, I really appreciate the help.

EDIT: I'm trying to only allow the Sailor troop.
« Last Edit: May 25, 2014, 03:23:00 am by Zelmaranth »

Offline PaperSalad

  • Private
  • *
  • Posts: 26
    • View Profile
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #776 on: May 25, 2014, 04:03:44 am »
It's just a small mistake, you have to replace
(is_between, ":troop_no", "trp_french_infantry", "trp_french_ship"),
by
(this_or_next|is_between, ":troop_no", "trp_french_infantry", "trp_french_ship"),

This way it creates an or between the two conditions, instead of an and.
They way you had it set up it would check if it's between french_infantry and french_ship AND between french_ship_cannon and napoleon. Which is impossible.

Also, the way you have it set up, they'll be able to choose napoleon, so you might want to replace trp_napoleon by trp_prussian_infantry.
(you can see the list of troops in the file ID_troops.)

Hope this helps.

Offline Malkolm R. Lind

  • Major
  • *
  • Posts: 1591
  • Why do drugs when you can listen to music?
    • View Profile
  • Nick: Illya
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #777 on: June 16, 2014, 08:54:37 am »
Ok, so let's say I am making a skin: How do I asign a brf file to be coloured after a specific texture?

Offline Penn

  • Lieutenant Colonel
  • *
  • Posts: 1839
  • If music be the food of love, play on.
    • View Profile
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #778 on: June 24, 2014, 04:52:44 pm »
Ok, so let's say I am making a skin: How do I asign a brf file to be coloured after a specific texture?

What exactly do you mean?
Penn and shitz

Offline Malkolm R. Lind

  • Major
  • *
  • Posts: 1591
  • Why do drugs when you can listen to music?
    • View Profile
  • Nick: Illya
  • Side: Neutral
Re: Have a question about Modding? Ask Here!
« Reply #779 on: June 24, 2014, 05:33:25 pm »
Like when you have the body of for example the 45e. How do you asign it to be coloured after a specific texture?