Author Topic: Warband Save Tool (WBST) - alpha update #5, 2/23/2014  (Read 14195 times)

0 Members and 1 Guest are viewing this topic.

wbst

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Warband Save Tool (WBST) - alpha update #5, 2/23/2014
« on: October 24, 2013, 09:14:07 PM »
Warband Save Tool - Alpha
Download

2/23/2014: Alpha update #5. Hero troops can be renamed, the index numbers are shown for globals again, can edit player info (face, kills), more stuff shown and everything editable in General tab, troop inventory editing, gamelog viewing and editing, some bug fixes and UI tweaks.

11/17/2013: Alpha update #4. I'm not dead, I just wrote everything that I personally cared about! So there's been a slight lull, since most of the next steps involve major rework of either the internals of the code, or the UI, or both. In the meantime, an update to allow editing globals, and limited editing of parties and troops.

10/31/2013: Alpha update #3. You can now load saves with non-companion troops in the player party! You must load the save's mod before loading a save, however. Fixed some misc potential crashes and changed which item name is displayed.

10/30/2013: Alpha update #2. A few more values being displayed, but the main thing is allowing for basic, optional mod load to display troop and item names.

10/28/2013: Alpha updated! Same download link, see above. Out of control memory leaks and crashes should now be rare. Many added options for viewing save data, a few additions for transferring save data. WBST now loads all values from the save file into memory, so anything that isn't displayed currently could be. I'm also writing the save from scratch based on the internal representation of it (not using the original file at all), which means modifying anything and everything is easy from a technical perspective. User Interface is still a big hurdle to actually editing things in the tool, however. I'd like to load mod data next so I can properly read in files regardless of the composition of the player party, and display troop names and so on. Once that's done, it'll be pretty much full tilt on UI, excepting I get disgusted with the structure of the code and rewrite it all... again. :)

I've been working on a little tool to view and do some limited editing on Warband save game files. It's currently in a very rough, early state, but since I'm not aware of anything else out there along these lines, I wanted to release what I have working so far.

Thanks go out to http://mbmodwiki.ollclan.eu/, a great general resource, for cmpxchg8b's page on the save game format, without which I wouldn't have even started on this.

Please read the included readme.txt carefully to avoid current likeliest causes of failed loads, and for general requirements/usage info.

Cheers!
« Last Edit: February 23, 2014, 10:44:59 PM by wbst »

Swyter

  • Grandmaster Knight
  • *
  • »Star Wars Conquest Dev Team Leader
    • View Profile
    • [my tiny homepage]
  • Faction: Swadian
  • MP nick: Sareth | Swyter
  • WBM&BWF&S
Re: Warband Save Tool (WBST)
« Reply #1 on: October 24, 2013, 09:39:16 PM »
Hey, a mysterious first contribution by an anonymous toolmaker, spicy!

Glad that the format documentation written by cmpxchg8b in our wiki was put to good use.
Just tested it with a savegame from TLD and it started to leak memory (like 2gibs), probably because of the prisoners.

By the way, you can use the following BB code syntax to provide direct links from a Dropbox Public folder:
[iurl=https://www.dropbox.com/s/btfzo526tdn368q/wbst.zip]Download[/iurl]

wbst

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Save Tool (WBST)
« Reply #2 on: October 24, 2013, 09:52:34 PM »
Yeah, I was wondering who would be the first to jump on a strange binary by a first time poster. :twisted: It runs quite happily without admin rights, at least. :)

And yep, prisoners will lead to a memory leak/probable crash (except maybe if they're lords, I haven't tested that specifically since I'd rather just fix it entirely.) Currently it pretends player party stacks don't exist since I think I need to read troops in from the mod in order to determine the flags on those, none of the flags in the saved game itself seemed to be relevant in that case. And it quite happily charges along trying to allocate gobs of memory based on completely wrong data, as you noticed. Sanity checks are definitely in order. I'm also hoping for some feedback as to what people would find useful - and I'm sure I'll get more/better of that by saying "hey I have sorta-functional prototype here, what should I add?" rather than the drive-by first post "I'm totally gonna actually do this, trust me, please waste your time giving me suggestions based on me having spent 30 seconds writing this." Not that that ever happens...

Swyter

  • Grandmaster Knight
  • *
  • »Star Wars Conquest Dev Team Leader
    • View Profile
    • [my tiny homepage]
  • Faction: Swadian
  • MP nick: Sareth | Swyter
  • WBM&BWF&S
Re: Warband Save Tool (WBST)
« Reply #3 on: October 24, 2013, 10:05:37 PM »
Yeah, I was wondering who would be the first to jump on a strange binary by a first time poster. :twisted: It runs quite happily without admin rights, at least. :)

And yep, prisoners will lead to a memory leak/probable crash (except maybe if they're lords, I haven't tested that specifically since I'd rather just fix it entirely.) Currently it pretends player party stacks don't exist since I think I need to read troops in from the mod in order to determine the flags on those, none of the flags in the saved game itself seemed to be relevant in that case. And it quite happily charges along trying to allocate gobs of memory based on completely wrong data, as you noticed. Sanity checks are definitely in order. I'm also hoping for some feedback as to what people would find useful - and I'm sure I'll get more/better of that by saying "hey I have sorta-functional prototype here, what should I add?" rather than the drive-by first post "I'm totally gonna actually do this, trust me, please waste your time giving me suggestions based on me having spent 30 seconds writing this." Not that that ever happens...

I played around with the executable in PEiD and 010 editor before running it. But yeah, the UI is fine, with a more correct parsing and a bit more of functionality this will pass as a pro quality tool. Reading the txt file clarified a lot, and I recommend other prospective testers to RTFM for once. It helps. Keep your task manager at hand to kill the process before the memory goes kaboom, just in case.

People have been asking for something like this for ages. Good work.

Warrior.X

  • Sergeant at Arms
  • *
  • So silent........
    • View Profile
  • Faction: Neutral
  • MP nick: Eurytion
  • WBNWWF&SVC
Re: Warband Save Tool (WBST)
« Reply #4 on: October 25, 2013, 10:00:06 PM »
This is a really cool idea

SonKidd

  • Knight
  • *
    • View Profile
  • Faction: Nord
Re: Warband Save Tool (WBST)
« Reply #5 on: October 25, 2013, 10:05:25 PM »
very nice, i tried but gave once long time ago :P.

Good luck!
SonKidd's Multiplayer Troop Item Generator (v0.9b)
http://forums.taleworlds.com/index.php?topic=197856.0
Shaking Camera Script (Earthquake):
http://mbmodwiki.ollclan.eu/wiki/Shaking_Camera_Script
Script to guarantee all melee weapons:
http://mbmodwiki.ollclan.eu/wiki/Spawn_troops_with_all_melee_weapons

wbst

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: Warband Save Tool (WBST) - alpha update #3, 10/31/2013
« Reply #6 on: October 31, 2013, 04:55:20 AM »
Several updates as detailed in the OP, including finally allowing for opening saves with non-companion troops.

Haven't gotten any specific requests or suggestions yet, so my own personal top desires are better handling picking directories (auto-detect, etc), and merging partially eaten food stacks, then we'll see what seems interesting from there. :)

silentjan

  • Veteran
  • *
  • Be silent..........:p
    • Twitter - silentjan
    • View Profile
  • Faction: Neutral
Re: Warband Save Tool (WBST) - alpha update #5, 2/23/2014
« Reply #7 on: April 02, 2014, 01:37:29 PM »
I used it different mods and it's working quite handsomely.   8-)

Quite beautiful thing to have.

In the Faction menu there is the relation  chart but it's not editable. Can it be editable?

Chazshepherd

  • Regular
  • *
  • STANNIS
    • View Profile
  • Faction: Swadian
Re: Warband Save Tool (WBST) - alpha update #5, 2/23/2014
« Reply #8 on: May 30, 2014, 05:40:05 AM »
I used it different mods and it's working quite handsomely.   8-)

Quite beautiful thing to have.

In the Faction menu there is the relation  chart but it's not editable. Can it be editable?
I also would like to know this. And when version 1.3 comes out for clash of kings, will I be able to convert from 1.2?
Stannis Baratheon the one true king of westeros

mlkjhgfds

  • Recruit
  • *
    • View Profile
  • Faction: Rhodok
Re: Warband Save Tool (WBST) - alpha update #5, 2/23/2014
« Reply #9 on: July 23, 2014, 06:22:37 PM »
For the two posters above - I could edit faction relations with "Mount & Blade SaveGame Editor & Converter" (found here)