Is anyone working on tools for WB?

正在查看此主题的用户

MarkQuinn

Sergeant at Arms
Specifically, BRF Edit or some other tool to add meshes to the game, a troop editor and an item editor?

I know a lot of people are curious about when the module system will come out, but I know TW will release it when they release it.  I actually prefer a proper GUI like those in the tools mentioned above.  And dammit, I'm desperate to go through every horse and pump their health up by about a hundred points each.

BTW, I did try using the M&B Troop Editor on WB.  It actually loads the troop.txt and allows you to edit whatever you want.  But then the game crashes with some kind of "unexpected end of file" error.  I was surprised I was able to get as far as I did, which tells me (though I know nothing about programming) that it might not be too hard to port.
 
OpenBRF gets models into WB just fine.
To edit txt files (until WB MS is out) use older M&B versions as a reference, the format of files is pretty similar
 
It's easy modding the horses. Open up "item_kinds1" and search for the horse you want to edit. if you are unsure what to edit open up M&B and compare the numbers. make a backup just in case :wink: it works fine. you just have to edit them seperately.

itm_hunter Hunter Hunter 2  hunting_horse 0  hunting_horse 34360000512  65537 0 810 110595670016 0.000000 60 0 18 0 3 160 44 43 108 0 24 0
0
0

Red is Hitpoints
Purple is Armor
Green is Maneuver
Yellow is Speed
Blue is Charge

Go ahead and mod the horses. :grin:


 
Hey thanks everyone for the replies.

I have been using TweakMB, and it's a great tool.  I wish I'd known about it with M&B 1.011, as it would've saved me a lot of time and effort messing with those files manually.

And thanks for the info about the horses, Moroes.  I actually do have an extensive Native overhaul in mind with new items and such, so I'm still waiting for a troop and item editor, but meanwhile these horse changes will be great.  Thanks again.
 
So, does anyone have an answer to the question about when the troop and item editors are going to be out?
 
Actually scratch that, did a lot of research and solved the manual creation of troops in text, about ready to code a troop editor myself.
 
Good to know, Shadowclaimer.

How about an item editor too?  Or an all in one troop and item editor?  Or is that too much at one time?
 
Guys, relax.
The guys responsible for the tools made are private people who made them all on their own initiative.
Asking and nagging for them is just going to annoy people. If they eventually want to port the tools, they are going to do it when they feel like it.
 
MarkQuinn 说:
Good to know, Shadowclaimer.

How about an item editor too?  Or an all in one troop and item editor?  Or is that too much at one time?

Given my knowledge is limited to VB2003 and I have no idea how to import/export text information, it would probably end up being a simple "Generates the code to copy paste into the troops.txt file" kinda thing. I spent all day manually doing it so i could add Saddarian Immortals as an upgrade to Guards.
 
Well thanks for what you're doing Shadow.  Anything to get into the guts of this game at the moment will be a blessing.

I was just trying to manually edit the troops.txt.  Over in the WB forum there's a heated discussion about the issue of troops carrying two shields around.  And I was more heated than most.  But rather than arguing about it, I decided to merely edit out the excess shields, hoping that giving each troop type just one shield to chose from will stop that.  In game, I got another "unexpected end of file error".  So it happened with the Troop Editor, and now it also happened with a manual text edit.  See if anyone can figure this out:

插入代码块:
trp_nord_recruit Nord_Recruit Nord_Recruits 0 3145728 0 0 18 74 79
  397 0 394 0 478 0 507 0 507 0 238 0 232 0 240 0 169 0 171 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 
  7 5 4 4 6
 50 50 50 50 50 50 0
0 0 0 17 4352 0 
  1 1315051091194281984 1835136 0 53435441928 5615707260354297855 2031609 0

The 507 at top represents an Old Round Shield.  You'll notice there are two of them.  I deleted one sequence of "507 0", leaving just one Old Round Shield.  In game, I crash.  What number am I missing?  Where does the text file determine how many items the soldier is supposed to have, because obviously it's expecting a certain number but returning one less.

 
Rule zum Rabensang, you've kept me from pulling all my hair out.  I have hair, now, thanks to you.

I would've thought removing a -1 0 would've done the trick.  But yes, adding it fixed the problem.  What exactly does each "-1 0" do?

Also, I'm happy to say that limiting the test troop to one shield kept him from employing the turtle defense, as I'd expected.  Again, thank you.

EDIT: Now that I read your reply again, I'm guessing each troop has a set, expected number of slots.  If the number falls below that, a "-1 0" must be added, which is an empty entry, but keeps the number constant.
 
My first WB mod:

http://forums.taleworlds.com/index.php?topic=104458.msg2586982#msg2586982

(removes multiple shields from troops)
 
trp_sarranid_immortal Sarranid_Immortal Sarranid_Immortals 0 40895488 0 0 20 0 0
387 0 183 0 182 0 161 0 160 0 515 0 277 0 356 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
10 10 10 10 30
175 175 175 0 0 175 0
274 131072 0 849 208896 0
34359738369 1315051091194281984 1835136 0 67645760199 7916447985573822463 2031036 0

Red - Tag of the Unit, used to refer to the unit in other files
Blue - Name of the unit, used to refer to the unit ingame, first one is singular, second plural, removes the _ automatically but necessary in the files.
Green - Equipment of the unit, the number is the ID number of the item (All the 0's and -1's are empty slots, if you remove an item you have to replace it with a -1)
Yellow - ID Number of the upgrade possibilities of this unit, assume the following zero is also the same
Purple - Stats of the unit, Strength/Agility/Intelligence/Charisma/Level
Orange - Proficiencies of the unit, One-Hand/Two-Hand/Polearm/Bow/Crossbow/Throwing
Grey - Not positive but I assume these are the flags that determine various things (Guaranteed gear etc.) what number they pull from I'm not sure about
Black - Various other stuff I haven't researched into yet

Thats what I've figured out so far.
 
Hey Shadow,

What do you think about this?

trp_nord_recruit Nord_Recruit Nord_Recruits 0 3145728 0 0 18 74 79
  397 0 394 0 478 0 507 0 238 0 232 0 240 0 169 0 171 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  7 5 4 4 6
50 50 50 50 50 50 0
0 0 0 17 4352 0
  1 1315051091194281984 1835136 0 53435441928 5615707260354297855 2031609 0

According to this, a Nord Recruit can upgrade to (1:cool: a Regular Fighter, (74) a Nord Footman, and (79) a Nord Huntsman.  But we know from playing that this unit can only upgrade to (74) a Nord Footman.

In one of the M&B betas, I could've sworn I was able to allow three possible upgrades in the module system.  Since that time I've only ever used the Troop Editor, which allows only two.  I've assumed this was a hard-coded limitation.

Why do you think the troop shown above seems to list three upgrades?  Three upgrades would be PERFECT for what I plan to do with my mod, so I hope it's possible.
 
Did you modify them using the troop editor? It tends to mess up a number or two.

Do those upgrades show up ingame btw? I've been wanting third upgrades.. would be so mucheasier to have infantry, archer, cavalry split.
 
No, the unit above has been unmodded (except for the removal of an excess shield which I did manually through the .txt file).  So those numbers (18 74 79) are what we all have for the Nord Recruit upgrade.

And yes, the infantry-archer-cavalry split is exactly what we need.  It would allow us to simplify and streamline our troop trees so much more.
 
后退
顶部 底部