[MOD] - Portrait Picker for BGEE+SOD and BG2EE (v2.1+)
Mr2150
Member Posts: 1,170
So... I finally got around to finishing a few things off with the Portrait Picker. And here's the first official launch!
Manual fix for v2.3:
BG1EE+SOD (non-scaled) and BG2EE = For v2.3 of the games you will need to make one slight amendment to ensure compatibility. After installing as per the instructions - go in to the UI.menu file in a text editor and search for 'rectangle 5' ... there should be only one instance in the whole file. Change this to 'rectangle 6'.
Screenshots:
Thanks to everyone that's helped me along the way! I really appreciate it.
Features:
- For v2.1+ of BGEE+SOD and BG2EE
- Updated Interface
- Supports scaled/non-scaled interface
- Supports French, Czech, German, Italian, Polish, Brazilian Portuguese and English
- Ability to give descriptions to all default portraits
- Ability to give descriptions and genders to all custom portraits
- Filters portraits by Male & Female
- Ability to make portraits appear in both Male/Female lists
- Ability to exclude portraits
- Four sorting options: Default > Custom, Custom > Default, Alphabetical and Reverse Alphabetical
- Powerful searching: Two filters supporting simultaneous AND filtering and toggles to turn them individually into NOT filters (eg search for Mage AND elf, or search for NOT Dwarf AND NOT Cleric)
- Automatic registration of portraits available via WEIDU installer
- Large / Medium portrait management to allow different portraits to appear in the character screen vs sidebar
- Comprehensive Instructions with pictures for installation
- Coming soon: a graphical interface for creating and editing the M_BG.lua
To make the most of the portrait picker you will need to edit the M_BG.lua and M_nicks.lua files manually with descriptions. This does not need to be done straight away.
If there are any questions, suggestions, or problems, please let me know!
To Install: Just download Portrait Picker v1 .zip and follow the instructions.
Manual fix for v2.3:
BG1EE+SOD (non-scaled) and BG2EE = For v2.3 of the games you will need to make one slight amendment to ensure compatibility. After installing as per the instructions - go in to the UI.menu file in a text editor and search for 'rectangle 5' ... there should be only one instance in the whole file. Change this to 'rectangle 6'.
Screenshots:
Thanks to everyone that's helped me along the way! I really appreciate it.
Features:
- For v2.1+ of BGEE+SOD and BG2EE
- Updated Interface
- Supports scaled/non-scaled interface
- Supports French, Czech, German, Italian, Polish, Brazilian Portuguese and English
- Ability to give descriptions to all default portraits
- Ability to give descriptions and genders to all custom portraits
- Filters portraits by Male & Female
- Ability to make portraits appear in both Male/Female lists
- Ability to exclude portraits
- Four sorting options: Default > Custom, Custom > Default, Alphabetical and Reverse Alphabetical
- Powerful searching: Two filters supporting simultaneous AND filtering and toggles to turn them individually into NOT filters (eg search for Mage AND elf, or search for NOT Dwarf AND NOT Cleric)
- Automatic registration of portraits available via WEIDU installer
- Large / Medium portrait management to allow different portraits to appear in the character screen vs sidebar
- Comprehensive Instructions with pictures for installation
- Coming soon: a graphical interface for creating and editing the M_BG.lua
To make the most of the portrait picker you will need to edit the M_BG.lua and M_nicks.lua files manually with descriptions. This does not need to be done straight away.
If there are any questions, suggestions, or problems, please let me know!
To Install: Just download Portrait Picker v1 .zip and follow the instructions.
Post edited by Mr2150 on
23
Comments
I am sure you do not want to miss this gem
I tested it myself and the result is GREAT!
1) It now filters on Gender selected during character creation automatically. This filter is only applied during the character creation phase (just in case you decide to change gender later).
2) As you can see from Aedan's pictures, I moved the filter to the bottom and added a second filter which works in tandem with the first... eg you can search for Elf at the top and Mage at the bottom and you will retrieve all descriptions with both "Elf" and "Mage" in them.
Ideally I'd like a couple more volunteers to give it a go, so I appreciate any support you can give.
Thanks in advance,
- mr2150
There isn't a specific number needed for the mod, I just wanted to put it through it's paces and stretch things (eg try to break it) and a larger volume is easier for that. Consider yourself signed-up however!
@Sids1188 - Also, not a problem - I wrote some instructions for setting it all up yesterday as I went through the process with @Aedan and so it would be a good opportunity to try them out.
BOTH - I will message you shortly with all the details!
Everyone, I think I have enough testers now - so thanks! Watch this space ...
By the way, which portrait packs are you guys using? Those are looking very smart (especially random man and random woman).
http://www.shsforums.net/files/file/1091-isandirs-portrait-pack/
Here's a side-by-side comparison.
https://forums.beamdog.com/discussion/55237/mod-minor-npc-portraits-for-bgee/p1
I'm guessing the instructions worked ok, and you could follow them ok @lefreut ?
Please message me any feedback or suggestions!
@lefreut you got some really nice portraits there, mind sharing with us over here
- Completed BG2EE setup - process is almost identical to BGEE + SOD and the same setup files can be used for both games with a few tweaks.
- Nearly completed full instructions for installation.
- I've added default portraits into my scollbar and removed the up/down arrows as these are no longer needed.
- I've added a Sort button to sort the portraits as follows - each press toggles to the next option.
- DEFAULT then CUSTOM
- CUSTOM then DEFAULT
- A to Z by description
- Z to A by description
- I've modified the layout slightly to just tweak the look and feel by game.
- There is a bug when using the GENDER GIRDLE but there is workaround that you can use to fix this.
- Disabled the DONE button until you click a portrait. CANCEL will return NO CHANGE (in-game) or CHOOSE GENDER (in character creation)
- Found out some more issues with importing portraits relating to filesize (resizing the images fixes the problem)
- A minor bug exists if you scroll to the bottom and then filter, clicking out of the filter refreshes the screen and resolves.
It's as stable as I can make it currently - I've personally loaded over 200 portraits in and it works without fault - so the plan is to release this as a standalone mod shortly after 2.2 comes out however it is fully 2.1 compatible too...
I've also been working closely with @Pecca - whose suggestions and input have been invaluable - and he will be using a modified version in the WIDESCREEN MOD as detailed in the OP.
Thanks also to my testers @Pecca @Aedan @bengoshi @Sids1188 @lefreut @smeagolheart - If you are using an older version than you see below then the good news is that the format of the M_BG.lua regristraion file hasn't changed and I can provide you the new UI.menu code if you would like OR you can wait for the final release, your choice.
A video here, and screenshots below.
Sorted CUSTOM > DEFAULT
One filter:
Both filters in tandem:
I'll be finalising things and then releasing very shortly I expect.
It's completely customisable so you can call the existing portraits whatever nickname you want...
https://mega.nz/#!3AhkXAhB!obaOQS9ndHobJBAcyfB1anqMBLk3Tqh1xaq3JANOT-k
I was wondering what your thoughts are on merging them. Multiple layouts with similar functionality would be interesting. Open question really. Probably I would do that myself. Could just be a case of an if-else incorporation around both ui codes where ingame we can set the toggle button to switch between the layouts. Thinking out loud here. Perhaps that allows for even more ui layouts in the future.
From his code I can see that the way he grabs the portraits is quite different from mine (his uses the existing code to display the matrix - mine builds a new table which you can filter against) and whilst there can easily be a toggle to switch between the solutions either/or, a blended approach would ultimately be better - the search and filter functionality of mine, with the layout of his...
I'm sure that such a solution must ultimately be possible though...
However, as he builds the array of portraits in each page, it might be possible to apply a filter at that stage thus giving the ultimate result... (I've sent him the details of how my filters works currently and a few suggestions of how it might be done).