Author Topic: how to "take" troops from your lords??  (Read 3327 times)

0 Members and 1 Guest are viewing this topic.

General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
how to "take" troops from your lords??
« on: February 22, 2011, 06:50:12 PM »
hello

is there a way to take troops from your lords (here you can only give troops and reset) just like with your own castle/city (there you can give and take troops)

general wvpm

Ritter Dummbatz

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Khergit
Re: how to "take" troops from your lords??
« Reply #1 on: February 22, 2011, 07:52:57 PM »
Use this if you want it like it is done for garrisons.

(change_screen_exchange_members,1),

I am not sure what the number means....wouldn't be difficult to find out though.


This is used in the dialog between you and your vassal btw.
(change_screen_give_members, "$g_talk_troop_party"),

so I would say it is just another window (and another file)

General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: how to "take" troops from your lords??
« Reply #2 on: February 23, 2011, 09:28:41 AM »
thanks for the reply

but where do i put it? (sorry if this is a stupid question but i'm not an expert in modding)

Ritter Dummbatz

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Khergit
Re: how to "take" troops from your lords??
« Reply #3 on: February 23, 2011, 10:24:37 AM »
I haven't tried it so I actually don't know but what I would be trying is to do change the line

(change_screen_give_members, "$g_talk_troop_party"),
to
(change_screen_exchange_members,"$g_talk_troop_party"),

and see how it works out.
The may be utterly wrong though.

Anyway. Just search for '(change_screen_give_members, "$g_talk_troop_party"), ' in module_dialogues.
I think there is no other dialogue using this so it is probably the first hit. You should check the code where this is used and find out if you are at the right place.

General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: how to "take" troops from your lords??
« Reply #4 on: February 23, 2011, 11:15:07 AM »
i'm sorry but i can't find that line. (the only match i found was in dialog_states it says: "exchange_members" and in a file called variables i found this: "g_talk_troop_party")
in which file is it? (the change_screen part)

btw thanks for the fast reply.
« Last Edit: February 23, 2011, 11:18:07 AM by General WVPM »

Ritter Dummbatz

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Khergit
Re: how to "take" troops from your lords??
« Reply #5 on: February 23, 2011, 11:44:20 AM »
Then try a search for

"I want to give some troops to you."

The operation is right below that sentence.

General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: how to "take" troops from your lords??
« Reply #6 on: February 23, 2011, 12:07:40 PM »
ok i found it in the conversations file
Code: [Select]
dlga_lord_talk:lord_give_troops 69631 628  2 31 2 144115188075855989 432345564227567630 2147484208 3 144115188075855987 8 0 I_want_to_give_some_troops_to_you.  740  0 NO_VOICEOVER
dlga_lord_give_troops:lord_pretalk 4095 740  0 Well,_I_could_use_some_good_soldiers._Thank_you.  157  1 2056 1 144115188075855993 NO_VOICEOVER
but which number do i need to add??
« Last Edit: February 23, 2011, 12:12:06 PM by General WVPM »

Ritter Dummbatz

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Khergit
Re: how to "take" troops from your lords??
« Reply #7 on: February 23, 2011, 12:11:10 PM »
Oh, ...lol...now this changes everything.

I didn't know that you were editing .txt files. I thought you were using the module system. I have no clue of what to do with .txt files. It is perhaps not even possible to change it that way... *shrugs*

EDIT: You should refrain from using the module system though. All you need is to install python 2.6 and download that module system. After that it is just a tiny change to make it work so you can make your own .txt files. All that you need to know about the installation is well described and to be found in the upper sticky threads.
« Last Edit: February 23, 2011, 12:15:08 PM by Ritter Dummbatz »

General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: how to "take" troops from your lords??
« Reply #8 on: February 23, 2011, 12:13:01 PM »
what module system?
is there an editor? (i searched for one but couldn't find one)

EDIT: ok thanks i will try that.
« Last Edit: February 23, 2011, 12:16:21 PM by General WVPM »

Ritter Dummbatz

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Khergit
Re: how to "take" troops from your lords??
« Reply #9 on: February 23, 2011, 12:18:20 PM »
Here is a link to a very good introduction to the module system and how to install python.

http://www.freewebs.com/jikbyond/40kTut/M&B%20Module%20System%20Doc2-3.pdf

btw. I meant 'you should'nt refrain from using' of course.  :P

General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: how to "take" troops from your lords??
« Reply #10 on: February 23, 2011, 02:07:33 PM »
ok thanks i will try

EDIT: ok i downloaded it and all that but now i'm stuck how do i open the files?
         btw i use warband 1.134 and diplomacy (don't by angry at me for modding it, it's for me and i won't post it)

btw sry for late reply i was away :oops:
« Last Edit: February 23, 2011, 02:38:26 PM by General WVPM »

Caba`drin

  • Dovie'andi se tovya sagain
  • Forum Legend
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • WBM&BWF&SNWVC
Re: how to "take" troops from your lords??
« Reply #11 on: February 23, 2011, 02:51:53 PM »
You can mod Diplomacy to your heart's content. It is open source. There are no problems there.
Just download Diplomacy's specific module system from within the Diplo board (I think the source is available in the "craftsmen" thread or some such).



General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: how to "take" troops from your lords??
« Reply #12 on: February 23, 2011, 03:01:41 PM »
oh thanks i'll try.

EDIT:when i finally think i've figured it out it comes up with error 13 in the build_module.bat file it says that it doesn't have permission please help.
         btw i didn't see the conversations file and i've found an editor called pythonic module editor 0.95 where i did found the excact line and i could edit it but couldn't save it.
« Last Edit: February 23, 2011, 03:44:42 PM by General WVPM »

Ritter Dummbatz

  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Khergit
Re: how to "take" troops from your lords??
« Reply #13 on: February 23, 2011, 03:44:38 PM »
You mean windows gives you this error message?

Then it would be something related to user rights. Make sure you are logged in as administrator, take a look at your rights within your mod folder. Right click on it and checking the properties should help. You probably need to uncheck the 'read only' option.
Just an idea, never had such an issue myself.

General WVPM

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: how to "take" troops from your lords??
« Reply #14 on: February 23, 2011, 04:09:17 PM »
i did that already it's realy wierd
i found the line now i only need to add it to the game  :(
btw i already edited some troops and items and other things with morghs editor and tweakmb do i lose those changes??
« Last Edit: February 23, 2011, 04:16:34 PM by General WVPM »