Author Topic: three basic modding questions  (Read 3824 times)

0 Members and 1 Guest are viewing this topic.

Javolenus

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
three basic modding questions
« on: November 08, 2008, 09:05:23 AM »
Hi There,

I'm new to M&B and would like to make some simple changes. I've done some basic modding to other games but I'm not a 'mod god' so need some help. I would like to ask 3 specific questions:

1. Names of Heroes: I'd like to change these. I already worked out how to change the names in troops.txt but how do you change names in the ingame dialogue? I want the heroes to refer to each other by the new names but don't know how to do this.

2. Plate armour: I'd like to get rid of plate armour in order to give the game a Dark Ages feel. I'd like to edit the game so that no troops have late medieval armour. But how to do this?

3. Music: I'd liie to add my own music. I tried already, using a very clear tutorial by Archonsod, but without success. I'm guessing that I must have done something wrong. I'm wondering if the problem has something to do with editing music.txt? This file contains lots of numerical values and I do not know what they mean. I simply want to indicate which mp3 files to play on the strat map, and which to play during battles.

Many thanks in advance for replies.

Ruthven

  • Revs lil' helper
  • Grandmaster Knight
  • *
  • crushie crushie crushie
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Ruthven
Re: three basic modding questions
« Reply #1 on: November 08, 2008, 09:15:00 AM »
Hi There,

I'm new to M&B and would like to make some simple changes. I've done some basic modding to other games but I'm not a 'mod god' so need some help. I would like to ask 3 specific questions:

1. Names of Heroes: I'd like to change these. I already worked out how to change the names in troops.txt but how do you change names in the ingame dialogue? I want the heroes to refer to each other by the new names but don't know how to do this.

2. Plate armour: I'd like to get rid of plate armour in order to give the game a Dark Ages feel. I'd like to edit the game so that no troops have late medieval armour. But how to do this?

3. Music: I'd liie to add my own music. I tried already, using a very clear tutorial by Archonsod, but without success. I'm guessing that I must have done something wrong. I'm wondering if the problem has something to do with editing music.txt? This file contains lots of numerical values and I do not know what they mean. I simply want to indicate which mp3 files to play on the strat map, and which to play during battles.

Many thanks in advance for replies.
1. Go into module_strings.py, and Ctrl+F (quickfind) then type in Nizar, for example, to locate the companion dialogues. Scroll around and change what you like.

2. Go into module_troops.py, and Ctrl+F "itm_plate_armor" and remove it wherever it appears. Then go into module_items.py, Ctrl+F "plate_armor", and either remove the "itp_merchandise" flag or put a "#" beside the item's line(s).

3. Well, on this, I have no clue. If Arch's guide didn't work, I don't know what to suggest.

Javolenus

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #2 on: November 08, 2008, 12:30:48 PM »
Many thanks indeed for this speedy response - I really appreciate it. I'll follow your instructions. But can I just ask: could I not just make some changes to the Native txt files or do I have to edit the Python files? I'm completely new to M&B modding so am not sure about this. If I edit the Python files, what do I have to do to get the changes to show up ingame? Apologies for basic questions! I guess I'll check out this forum and see if I can work things out myself - though any guidance appreciated.

As for the music mod, I think I must have goofed somewhere, as the tutorial is very clear. I'll try again. (I noticed that the 'native' music files are ogg format - should I use that too? I just converted Windows media files to mp3.)

Thanks again for your help - much appreciated.
« Last Edit: November 08, 2008, 01:47:47 PM by Javolenus »

HokieBT

  • Grandmaster Knight
  • *
  • may the force be with you
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #3 on: November 08, 2008, 02:40:18 PM »

FYI - the module_music.py file changed quite a bit between 0.960 and 1.x, so its possible those tutorials are no longer accurate.  I'm still trying to figure out how to get music working in my mod.  MP3 files should work tho.
 

Fallen_Ro

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #4 on: November 08, 2008, 02:41:34 PM »
Hello.
I am new to Mount and Blade and not an expert in modding either. I was wondering how could i change the city/castles/villages names?
I have Mount and Blade V0.7.3.

Thank you

HokieBT

  • Grandmaster Knight
  • *
  • may the force be with you
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #5 on: November 08, 2008, 03:14:26 PM »
Hello.
I am new to Mount and Blade and not an expert in modding either. I was wondering how could i change the city/castles/villages names?
I have Mount and Blade V0.7.3.

Thank you
city/caste/village names are stored in the parties.txt file so you could edit this directly if you wanted or modify the module_parties.py file if you are using the module system.  make sure to make a backup of your file before changing it, and I think you need to start a new game to see any changes.
 

Fujiwara

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #6 on: November 09, 2008, 06:46:44 AM »
People, the module system for v1.01 is out. Get it. Read it. Python is probably one of the easiest language to read. No one is expecting you to become a l33t Python h4x0r. Editing the txt files directly is folly at best.
M&B: Onin no Ran - THE Japan Mod

Pythonic Module Editor

Johnny is a hacker's son
But Johnny is not 133t
What Johnny thought was ADD_AND_SHIFT
Instead was REG_DELETE

Fallen_Ro

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #7 on: November 09, 2008, 01:31:03 PM »
Thanks. I found it right after i posted the question :D

BTW, what's with the python talk here? I don't see any .py files in my version of the game. Are the newer versions made in python?

Pii100

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: three basic modding questions
« Reply #8 on: November 09, 2008, 01:54:02 PM »
Thanks. I found it right after i posted the question :D

BTW, what's with the python talk here? I don't see any .py files in my version of the game. Are the newer versions made in python?
I think the actual game files are compiled from python scripts. (Expect engine and stuff, I think).
When you item things with modulesystem, you edit some .py files containing scripts.

Javolenus

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #9 on: November 09, 2008, 04:29:51 PM »
People, the module system for v1.01 is out. Get it. Read it. Python is probably one of the easiest language to read. No one is expecting you to become a l33t Python h4x0r. Editing the txt files directly is folly at best.

Hi Fujiwara,

Many thanks for this advice. I'm completely new to M&B as well as editing Python files. I downloaded the module system for v1.01 but could not see any instructions as to how to edit the files. I also downloaded your Python editor, which looks great, but again, I saw no instructions on how to use it. I'm keen to learn how to mod M&B correctly and efficiently, but need some basic (very basic!) advice on how to take the first steps. Your Python editing tool looks impressive - should I start here? If you could tell me where to find the instructions, I'd be happy to make a start. Again, many thanks and apologies for noobie-type questions!

Ruthven

  • Revs lil' helper
  • Grandmaster Knight
  • *
  • crushie crushie crushie
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Ruthven
Re: three basic modding questions
« Reply #10 on: November 09, 2008, 07:53:57 PM »
People, the module system for v1.01 is out. Get it. Read it. Python is probably one of the easiest language to read. No one is expecting you to become a l33t Python h4x0r. Editing the txt files directly is folly at best.

Hi Fujiwara,

Many thanks for this advice. I'm completely new to M&B as well as editing Python files. I downloaded the module system for v1.01 but could not see any instructions as to how to edit the files. I also downloaded your Python editor, which looks great, but again, I saw no instructions on how to use it. I'm keen to learn how to mod M&B correctly and efficiently, but need some basic (very basic!) advice on how to take the first steps. Your Python editing tool looks impressive - should I start here? If you could tell me where to find the instructions, I'd be happy to make a start. Again, many thanks and apologies for noobie-type questions!
Go to the modding link in my sig, and scroll down until you find a link underneath the title: "Module system documentation". Read through there, and you should be able to easily grasp the concept on editing python files.

Javolenus

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #11 on: November 09, 2008, 11:28:38 PM »
People, the module system for v1.01 is out. Get it. Read it. Python is probably one of the easiest language to read. No one is expecting you to become a l33t Python h4x0r. Editing the txt files directly is folly at best.

Hi Fujiwara,

Many thanks for this advice. I'm completely new to M&B as well as editing Python files. I downloaded the module system for v1.01 but could not see any instructions as to how to edit the files. I also downloaded your Python editor, which looks great, but again, I saw no instructions on how to use it. I'm keen to learn how to mod M&B correctly and efficiently, but need some basic (very basic!) advice on how to take the first steps. Your Python editing tool looks impressive - should I start here? If you could tell me where to find the instructions, I'd be happy to make a start. Again, many thanks and apologies for noobie-type questions!
Go to the modding link in my sig, and scroll down until you find a link underneath the title: "Module system documentation". Read through there, and you should be able to easily grasp the concept on editing python files.

Hi Ruthven,

Many thanks for taking the time to answer this query. I've now successfully located the relevant tutorials and shall study them before jumping in and changing stuff. Once again, many thanks for your time - much appreciated.

Fujiwara

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
Re: three basic modding questions
« Reply #12 on: November 10, 2008, 06:38:38 AM »
I would DL Notepad++, rather try and use IDLE. It loads faster and the text editing features are VASTLY superior.
M&B: Onin no Ran - THE Japan Mod

Pythonic Module Editor

Johnny is a hacker's son
But Johnny is not 133t
What Johnny thought was ADD_AND_SHIFT
Instead was REG_DELETE

GetAssista

  • Grandmaster Knight
  • *
  • TLD corovan robber
    • View Profile
  • Faction: Neutral
  • M&B
Re: three basic modding questions
« Reply #13 on: November 10, 2008, 08:00:12 PM »
I would not DL Notepad++, rather than try and use IDLE. It loads faster and the text editing features are VASTLY superior.
Fujiwara, I wonder what one of those bolded two you meant and missed :)

Thymo

  • Sergeant at Arms
  • *
  • Snow and science!
    • View Profile
  • Faction: Nord
  • M&B
Re: three basic modding questions
« Reply #14 on: November 10, 2008, 10:41:36 PM »
3. Music: I'd liie to add my own music. I tried already, using a very clear tutorial by Archonsod, but without success. I'm guessing that I must have done something wrong. I'm wondering if the problem has something to do with editing music.txt? This file contains lots of numerical values and I do not know what they mean. I simply want to indicate which mp3 files to play on the strat map, and which to play during battles.


I've skimmed through this topic and couldn't see anyone answering this.. It's quite easy so i'm sorry if i'm stating the obvious, but here i go:

1. Download module system!

2. Follow the instructions on how to get it to work, and right-click the "module_music.py".

3. Select "edit with IDLE" (or notepad..)

4. The spoiler beneath contains how the bottom of the file looks unedited:
(click to show/hide)

Copy the second last line, and paste it right beneath, so it looks like the spoiler below..
(click to show/hide)

5. Change the two names in the second line (red) to the name of your track.. Example below using "ramund_hin_unge". (remember to edit the type of file if needed {original= ".ogg" and mine's ".wma"})

(click to show/hide)

6. Add "mtf_module_track" to the description. (this is to tell the file to read from the module folder)..

(click to show/hide)

7.  Edit/add/replace the description so that the track is played when you want it to play.. Here i have an example to make it play at the very start of Mount&Blade..

(click to show/hide)
note that if you want it to play at the start of MnB, you need to put an "#" before the original title song..
(which looks like:)
(click to show/hide)

(change it to:)
(click to show/hide)

8. You can mess around with the MS to play the track when you want it to play by editing the description, or the "mtf's". Just look at how the other tracks are arranged..

9. Add the file of the song to Mount&Blade/Modules/(your mod)/Music

10. Open Mount&Blade and you'll hear the changes..



Thymo


PS: Sry about the tediousness of the post, wanted to make it detailed to impress!  :mrgreen:
« Last Edit: November 14, 2008, 07:43:24 PM by Thymo »
e^(i*π)+1=0