Features- Adds a panel just above your ability bar which shows portraits of your teammates.- Each portrait shows the Name, Level, HP, and MANA of that player- Clicking on a portrait will center the camera on that player- Moving mouse over portrait will display rollover information for that ally- If the player is dead, their portrait will be greyed out.
Changelogv1.2.3- Reduced cpu overhead of mod (should cause less lag for those that noticed any).- Made health/mana/name text bigger and more readable- Health text turns red when lowv1.2.2- Fixed incompatibility with Rollover Ally Info modv1.2.1- Improved visibility of mana/health bars- Improved readability of mana/health numbers- Moving mouse over team members now activates rollover display- Fixed interaction with viewing Replaysv1.2- Made compatible with Demigod v1.2 mod system
Notes:This is a User-Interface mod, so it doesn't require anyone else to have it installed.How to Install:Easiest way is to download the installer and just run it. It will take care of everything for you. If you prefer, you can download the ZIP archive and extract the folder into the Mods directory for Demigod.eg. C:\Program Files (x86)\Stardock Games\Demigod\bindata\modsHow to Enable:Inside Demigod, and under the Mod Manager, simply enable the mod!If you have problems, make sure that your directory setup is akin to:C:\Program Files (x86)\Stardock Games\Demigod\bindata\mods\Bman Godlike Team Panel\mod_info.lua
Files modified (for mod conflict checking only):lua\ui\game\InGameUI.lua (merge-friendly so compatible with other mods that modify this file as long as they are either merge-friendly or designed to load before this mod)
Downloads:- v1.2.3 Installer (Recommended Download)- v1.2.3 ZIP Archive (For those of you that do not like to download .exe files)
Wishlist- Be able to click on a portrait when targetting a spell, like Heal. Currently engine does not expose a method to assign a target from the lua UI code.
Just thought of something. If percentage doesn't work or resizing makes it too big, then maybe you can make a button that resizes it and makes it 1.75% original size using set numbers? Have a little button that says... big res or something... I'm just being lazy I guess I could just mod the code myself and you could have multiple versions one for each resolution... I'll look into doing that and if I don't completely mess it up I'll post it here pm the link to you for your review.
Cheers,ThanatosESC
My problem is that I've placed it ontop of the ability panel, which is not scaled for resolution. So if I scale mine by resolution, then it will start to overlap the ability panel, most noticably if you are playing a general. And just about every other location on the screen is already taken up by something if you are playing at a lower resolution. There's just not alot of screen real estate to work with.
Anyway, if you want to fiddle with the size of the font/bars, open up "partyPanel.lua"
Search for the function "CreateArmyLine". Skip down about 30-40 lines to the "### Health" comment. This is the section that draws the health bar and text. The easiest thing to try is increasing the font size:
line.healthvalues = UIUtil.CreateText(line.healthbg, '', 9, UIUtil.bodyFont) # 7
Just change that 9 to a 10 or 11 and see how it looks (for reference, it was a 7 in 1.2, and I changed it to 9 in 1.21).
If you want to play with the thickness of the bars, edit both of these lines (you can see how I increased them to make them thicker--just keep the one 4 smaller than the other):
line.healthbg.Height:Set(12) # 8 line.healthoverlay.Height:Set(16) # 12
If you edit the thickness of the bars, you might have to move the text up/down to keep it centered in the bar:
LayoutHelpers.AtCenterIn(line.healthvalues, line.healthbg, -1) # 0
Change the -1: More negative moves the text up. More positive moves it down.
Also, if you change the thickness of the bars, you will probably have to adjust their position in the panel:
LayoutHelpers.AtTopIn(line.healthbg, line.Image, 4) # 8
Change the 4. Smaller number to move it up. Larger number to move it down.
The energy works similarly. It is already programmed to be below the health bar, but if you are making the bars thicker, we might want to reduce the gap between it and the health bar:
LayoutHelpers.Below(line.energybg, line.healthbg, 3) # 5
Probably change that 3 to a 1 or 2.
And finally, if we need to make the panel slightly taller to accomodate thicker bars, we can do that. If you can fiddle with text/bar size to come up with something that is usable, then I'll fiddle with the size of the panel to make it all fit.
Oh...one more thing that could help readability is to increase the contrast. Look for these lines (there is one in each section):
line.energybg:SetSolidColor('88000011') line.healthbg:SetSolidColor('88001100')
These represent the "empty" color of the energy and health bar. Change those "88" down to "66" or "55" or "44" would create more contrast between the fill color of the bar and the empty color of the bar, which might make it easier to see the bar without making it any bigger.
Thanks for tweaking:)
@Thanatosesc: if you tweak it, test it by playing a GENERAL in a single player skirmish with 4 allies. That way you can see the worst-case scenario.
Great work bman654, works a charm =]
I'll take a look tonight if I get the time. Thanks for the rundown on where to tweak ...
If i get something reasonable, I'll pm you the link to it so you can see if its worth general distribution.
Cheers,
ThanatosESC
P.S. is my idea of a scale button unfeasible? I don't know enough about the drawing mechanics to know if its possiible.
@Thanatosesc: See my earlier post about scaling - the engine supports both scaled and fixed-size UI components. But as long as this component is attached to the ability panel it needs to use the same method as the ability panel - which is fixed-size. If you can find another location for the panel that doesn't cover up something else when playing in a low resolution, then we can move it and make it scaled instead.
Great work! Thanks!!!
Awsome! Tahnk you so much! That was needed... oh my god.
...
Man when i read the modmanager is coming, i was just laughting because i was sure ppl would need a while to make mods but i am really suprised how fast those nice once are coming and i really love to see it. Thanks god they implemented this, its holding me ingame so hard.
Edit:
What the hell! Ive tested.... and really fell in love with you now. This mod is a real beauty. Now you can see if mates run into trouble, you can klick on the box to switch to them, you can see the mana.... Holy sh** what a beautiful mod...you deserver a lot of thank for it.
OK but besides all the love i have, its true, you can hardly see it. My resolution here is: 1680x1050My eyes hurt if i want to read the amount of hp my ally has hehe. So maybe there is a possibility to raise those boxes abit?
Edit2:
Oh i just read your replay #27. I will try to resize myself then, but will it not cause errors for other players if i have a diffrent version of the mod? Or does it make no diffrence because its only a font change? Sry i have no ideaD:
Only UI mod so won't affect others
Its np Lordi. You can do whatever you want with UI only mods. It doesnt affect the game, since nobody else is needed to have this mod, in order to play with you.
Bah this is so great! Wonderful! I say it again... i love you mr. bman!
i have just changed "line.healthvalues = UIUtil.CreateText(line.healthbg, '', 11, UIUtil.bodyFont) # 7" from 9 to 11, and same with energy. Looks perfect now. I can see it good on 1680x1050.
bman, this frieking rocks!
Changes the game.
Yep. It is awesome!
Once again, Good Job bman!
@ bman654
I have made an attempt to design a panel that doesn't take cover up any important space. Please check the link as see if you like it. I don't know anything about the LUA files or how they work, but from what I read it seems easy. So I will start learning that to be able to create my own mods.
Here is the link to an image I made using Photoshop.
http://www.mediafire.com/i/?3ghmyzzgjii
edit: after looking at your code in the partyPanel.lua file, there was a lot of thing that I didn't understand. Can you please recommend me where to start from if I want to learn how to create UI mods. I can understand the syntax and I've done programming before.
SWEEET.
now just need to:
love it tho
ok, after playing with it at max res. I would have the following suggestions:
Health and Mana should go to 14
Names can go to 11 or 12 (either one is fine, its really level that I'd want to see at this size, names can really stay where they are).
I do believe that this will require some resizing... however, I think there is enough realestate (tried it with a general and 4 allies) to get it done.
Starting out there's no issue, but as soon as it gets into 4-6k and 10k+ health, it'll look funny.
Thanks for absolutely all of this and let me know if I can be of further assistance!!!Cheers,ThanatosESC
Very sweet.
Much thanks for the time you put into this Bman.
If I could I would take all of the gifts back from Sten and give them to you.
@Izuz: On a small resolution that position definately covers up the "character info" box thingy you can get that shows your armor values and stuff. I'm pretty sure it also covers up the chat area. I'm actually surprised it doesn't cover up one or both of these things at your nice big widescreen resolution. As for learning LUA - Just google for LUA tutorial or something. Or if you want me to explain some bit of the code you did not understand just ask and I'll try to explain it. The most complex/hard to understand part is where I hook into the main game code to override DisplayRollover() and the InGameUI functions. Eventually you should learn how to do that but I wouldn't worry about it until you are actually ready to release a mod.
@Thanatosesc: Thanks. I'll try those sizes and fiddle a bit to make it fit. Probably not tonight though.
@Everyone asking about being able to target spells by clicking on the buttons - go re-read the OP.
@RAWRR - I just don't think I have enough room for gold. This panel is supposed to be a quick "status" of your allies. I think asking Chirmaya to add gold display to his Rollover Ally Info mod would be a good way to go since it is showing equipment and stuff also and my mod has good synergy with his.
i'm having a slight problem when using this mod. i can usually run the graphics on the highest settings, but for some odd reason, when i use this mod, i start having problems end game. I had to switch everything to the lowest setting. Is it possible that the counters for the other characters are causing my computer to slow down? Let me know. Thanks
It is certainly possible I suppose. I am updating on each Frame (which I think is the screen refresh). In the next version I'll try using the "beat" instead, which I think is the simulator beat. Maybe that will make it have less of an impact.
Dude!!!!!!!!!Thanks a lot Bman.Your work is very much appreciated.
I love thios mod it makes it so easy to monitor my teammates and know who needs the shield most.
Ok I think you are right that it cover up the chat. But just so you I don't have a big resolution like pacov, my resolution is 1024x768, which I think is pretty standard normal. Anyway I just changed and moved around the box so that they cover up the chat, and I don't think they would cover anything now. here is my other attempt. Maybe this will help you make the panel scaled by resolution.
http://www.mediafire.com/i/?imzkomoyw0j
Hmm.... I play in 1280x1024 and it looks perfect.
Maybe it is the sweet spot....
There are many great features available to you once you register, including:
Sign in or Create Account