Ah ha... updateGate, I tried applying it earlier, while doing V1, after looking at some of the other panels but I didn't realize what it did until I added a few console logs just now. As I said, first time mod builder. I didn't even know the inner workings of the game when I started. I'm getting a good understanding now. To be honest, I hardly even used mods, lol.latest version (1.2.1) still has excessive lag when selecting or moving packed commanders. the game actually stutters while the units are moving, like it does when it's about to crash. i suspect that your data model is handling multiple events for each packed unit, instead of consolidating them all into one update with an UpdateGate (or similar timing mechanism). i see that your data model does define an UpdateGate, but none of the update code seems to pass through it. (oh and your model class declares its constructor twice. consider using eslint to reduce that kind of error.)
there's also a new usability problem in this version: selecting a unit hides the Unit Management panel, which makes it very difficult to click through the list to find a specific unit. this wouldn't be so bad if the game had an easy way to deselect units, but it doesn't, and it's especially bad for garrison units.
couple of comments regarding the config option processing: first, it shouldn't require a full UI reset to switch between interfaces; it should be enough to just set a variable and toggle a CSS class somewhere. second, the interface doesn't update properly when switching the option off, so the mod gets stuck in an unusable state until the player reloads.
btw you can post in this thread to get your discussion thread linked to the mod resource page:
We have a separate download database, which has some advantages over attachments to posts:
- It allows bigger attachments
- You can replace an upload and it will keep your download stats
- everything is neatly in one place
- We already have subcategories in there
You can add a new "resource" if you click on any of the subcategories, the button is on the top right.
- The_J
- Replies: 83
- Forum: Released Mods
Great idea, I'll see what I can do in version 2Thanks for creating this mod it's improved my Civ 7 experience immensely!
I have one minor request - would it be possible to display the total # of military units and commander slots somewhere on the panel? Would make planning for Age transitions a lot easier so I wouldn't have to manually add them up.
yeah, UpdateGate is a great way to make sure you don't churn on data updates faster than the game can display them. if that doesn't solve all of the performance problems, you might also want to take a look at theAh ha... updateGate, I tried applying it earlier, while doing V1, after looking at some of the other panels but I didn't realize what it did until I added a few console logs just now. As I said, first time mod builder. I didn't even know the inner workings of the game when I started. I'm getting a good understanding now. To be honest, I hardly even used mods, lol.
Thanks tremendously Beezany, you have been invaluable to my learning.
BTW, for the life of me, I can't find how to DM people here. How do you DM on this forum?
Databind.for
method and the data-bind
attributes, which uses the rendering engine to flesh out your lists instead of building them in Javascript. you can find a good example in the resource allocation screen (base-standard/ui/resource-allocation
).Yeah, originally I started with databind but I ran into some issues early on so I bailed out on that but I might revisit it now that the smoke is settling. No button on others profiles, must be an issue with my account.yeah, UpdateGate is a great way to make sure you don't churn on data updates faster than the game can display them. if that doesn't solve all of the performance problems, you might also want to take a look at theDatabind.for
method and thedata-bind
attributes, which uses the rendering engine to flesh out your lists instead of building them in Javascript. you can find a good example in the resource allocation screen (base-standard/ui/resource-allocation
).
and to DM somebody, go to their forum profile, there's a button
Go figure the button mysteriously appeared all of a suddenYeah, originally I started with databind but I ran into some issues early on so I bailed out on that but I might revisit it now that the smoke is settling. No button on others profiles, must be an issue with my account.
probably a restriction on newer users (by age or by number of posts)Go figure the button mysteriously appeared all of a sudden
Looks much nicer, I just threw a helmut up because I needed something. I didn't expect so many people would use the mod. Thanks for downloading Pale7!I changed the icon to a sword just for fun because I prefer it over a helmet![]()