Tinkering with mini-mods
Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design
Tinkering with mini-mods
I was playing around with Puma's purchase mini-mod and decided to expand it a bit. I added every unit class to the purchase menu because ..... I don't know why. Just bored, I guess. I imagine someone will come up with a clever way to use it. Anyway, the air transports are particularly quirky. They use fuel as they move but not while idling in the sky. And they will only refuel on an airfield hex, not the adjacent hexes. I also added one to the number of nations available on the purchase screen, from 5 to 6. The only files involved are the purchase HTML and the little icons in the UI/purchase/classes folder.
Re: Tinkering with mini-mods
And here are the files needed. I think most of, if not all, the icons were made by Puma. I may have modified a few, can't really remember. If you decide to use this, make back-up copies of your original files before overwriting. And if you come up with novel ways to use this (such as cannon-fodder Opels), it would be nice to hear them. 
Edit: I should mention that the screenshot was from a 22" monitor. This mini-mod probably won't work well on monitors less than that and definitely doesn't work well on laptops because of the smaller screen space.

Edit: I should mention that the screenshot was from a 22" monitor. This mini-mod probably won't work well on monitors less than that and definitely doesn't work well on laptops because of the smaller screen space.
- Attachments
-
UI.zip
- (50.06 KiB) Downloaded 215 times
-
- Lance Corporal - Panzer IA
- Posts: 17
- Joined: Sat Nov 15, 2014 6:31 pm
- Location: Romania
- Contact:
Re: Tinkering with mini-mods
Interesting ,thanks .The Ships are up-gradable ? I am searching for a way to make ships up-gradable .
-
- Major-General - Jagdtiger
- Posts: 2856
- Joined: Sun Jul 01, 2012 5:32 pm
Re: Tinkering with mini-mods
Hello cw58!
Thanks for sharing! I am using Puma mini-mod and is really fun to be able to buy every unit class in the equipment. Also, I have a question and may be you can help me. I use a 32" monitor but I still cannot see all the unit categories in the mod (the last one, submarines, are not visible). I tried to edit the htm file, but I found that it is way beyond my skills and comprehension... May be you could release a "compact" version of the mini-mod with just the "classic" unit categories (without the transport types categories) best adapted to fit in a wider range of monitors? I attach a screen capture... May be making the icons a bit smaller, or even excluding the "Structures" catagory, which are, in my opinion the less useful for the player (and besides they can be modded making another unit to switch into a bunker).
I hope you can help me!
PS: I am intrigued to see a "river boat" unit category... Which kind of units are these?
Thanks for sharing! I am using Puma mini-mod and is really fun to be able to buy every unit class in the equipment. Also, I have a question and may be you can help me. I use a 32" monitor but I still cannot see all the unit categories in the mod (the last one, submarines, are not visible). I tried to edit the htm file, but I found that it is way beyond my skills and comprehension... May be you could release a "compact" version of the mini-mod with just the "classic" unit categories (without the transport types categories) best adapted to fit in a wider range of monitors? I attach a screen capture... May be making the icons a bit smaller, or even excluding the "Structures" catagory, which are, in my opinion the less useful for the player (and besides they can be modded making another unit to switch into a bunker).
I hope you can help me!

PS: I am intrigued to see a "river boat" unit category... Which kind of units are these?
- Attachments
-
- 2018-01-28 10_41_33-.png (84.9 KiB) Viewed 5635 times
Re: Tinkering with mini-mods
For example, look at this side:guille1434 wrote:Hello cw58!
PS: I am intrigued to see a "river boat" unit category... Which kind of units are these?
https://en.wikipedia.org/wiki/President ... _(monitor)
Sorry for my bad scoolenglish
https://www.designmodproject.de/
https://www.designmodproject.de/
Re: Tinkering with mini-mods
Hi Guille,guille1434 wrote:Hello cw58!
Thanks for sharing! I am using Puma mini-mod and is really fun to be able to buy every unit class in the equipment. Also, I have a question and may be you can help me. I use a 32" monitor but I still cannot see all the unit categories in the mod (the last one, submarines, are not visible). I tried to edit the htm file, but I found that it is way beyond my skills and comprehension... May be you could release a "compact" version of the mini-mod with just the "classic" unit categories (without the transport types categories) best adapted to fit in a wider range of monitors? I attach a screen capture... May be making the icons a bit smaller, or even excluding the "Structures" catagory, which are, in my opinion the less useful for the player (and besides they can be modded making another unit to switch into a bunker).
I hope you can help me!
PS: I am intrigued to see a "river boat" unit category... Which kind of units are these?
It looks like you're using Puma's actual mod (which is what you said

Later today, I should have more time and I will post a screenshot of the part of the HTML file and show you which lines need to be removed to do what you asked. I'm no expert at HTML files either but this is fairly simple. It should allow anyone to customize the purchase list to their specific needs.
Re: Tinkering with mini-mods
Found some extra time this morning after all.
Here's the section of the purchase file that needs to be modified. In this example, removing the highlighted section would remove structures from your purchase list. I recommend leaving no blank lines between after you've removed it. Not sure what would happen but it would probably break it
So whatever you want off your list, just remove the 2 lines associated with it. I haven't tried it but the height of the entries can probably be modified with the "height:5px". I do know that has an effect on the FlagList directly above, which incidentally, is where you can modify the number of nations showing up in the purchase list. As always, make back-ups. 
Here's the section of the purchase file that needs to be modified. In this example, removing the highlighted section would remove structures from your purchase list. I recommend leaving no blank lines between after you've removed it. Not sure what would happen but it would probably break it


- Attachments
-
- purchase.jpg (619.63 KiB) Viewed 5612 times
Re: Tinkering with mini-mods
I think upgrading ships would be a function of the equipment file.wrm76 wrote:Interesting ,thanks .The Ships are up-gradable ? I am searching for a way to make ships up-gradable .
Hmm, just did a quick check and I could not upgrade a light cruiser to a battlecruiser. So I'm guessing that might be hard-coded because looking at the e-file, it should be possible. I'll do some testing but maybe someone else already knows the answer.
-
- Lance Corporal - Panzer IA
- Posts: 17
- Joined: Sat Nov 15, 2014 6:31 pm
- Location: Romania
- Contact:
Re: Tinkering with mini-mods
Is it not a function of equip.file , it is of Gui parameters . how to make-it work ? I don't know . I am making a mod and i am using a lot of ships , butt i cant upgrade a battle ship to another superior one , par example . If someone find a fix ,it will be very helpful .
Re: Tinkering with mini-mods
I am not familiar with "Gui parameters".wrm76 wrote:Is it not a function of equip.file , it is of Gui parameters . how to make-it work ? I don't know . I am making a mod and i am using a lot of ships , butt i cant upgrade a battle ship to another superior one , par example . If someone find a fix ,it will be very helpful .

-
- Major-General - Jagdtiger
- Posts: 2856
- Joined: Sun Jul 01, 2012 5:32 pm
Re: Tinkering with mini-mods
Thanks cw58 for the tips! Finally I could "mod"the mod and make it work visually right in my monitor!!! I had to edit the purchase.htm file and also chang de dimensions of the unit classes icon buttons (made them 27x33 pixels instead of the original 33x33 pixels. I only had to make lower the AA class icon to make a good fit in the new "compact" button. Also, I had to tinker with the height measure and position of the little flag windows and the prestige and core units slots counters. I think it all looks rather good and functional. I tried to add the sixth flag window, and make the complete six window row a little less wide to achieve a better fit in the frame, but couldn't do that...
Now I can purchase all combat unit classes (no transports), including structures (put that category in the last place of the list), and I am also able to use the "Show all Nations" check box. That's great, and it was possible thanks to you... thanks for taking the time! 
I attach a screenshot...


I attach a screenshot...
- Attachments
-
- 2018-01-28 20_58_53-.png (366.19 KiB) Viewed 5581 times
Last edited by guille1434 on Mon Jan 29, 2018 2:34 am, edited 1 time in total.
-
- Major-General - Jagdtiger
- Posts: 2856
- Joined: Sun Jul 01, 2012 5:32 pm
Re: Tinkering with mini-mods
Also, here is a .rar file with all the files I changed (and backups of the original game files and the ones from Puma's mod when this apply), in case someone has a similar problem likeI had, or just want to try the modified UI.
Cheers!
Cheers!
- Attachments
-
Guille Purchase UI mod.rar
- (94.2 KiB) Downloaded 188 times
Last edited by guille1434 on Mon Jan 29, 2018 2:35 am, edited 1 time in total.
Re: Tinkering with mini-mods
I'm glad that you were able to work it out, Guille. I will download your file and save it.
I am still curious about the difference in our displays. Your monitor is much bigger than mine (32">22") but still couldn't fit all the icons. The icons I'm using are 33x33 pixels and yet I can see all 20 classes with enough room at the bottom for at least one more. Anyway, you made it work and that's what counts
I am still curious about the difference in our displays. Your monitor is much bigger than mine (32">22") but still couldn't fit all the icons. The icons I'm using are 33x33 pixels and yet I can see all 20 classes with enough room at the bottom for at least one more. Anyway, you made it work and that's what counts

-
- Major-General - Jagdtiger
- Posts: 2856
- Joined: Sun Jul 01, 2012 5:32 pm
Re: Tinkering with mini-mods
Yes, I don´t know why, may be my monitor is a defective one... For example, I can't use it in full resolution 1920x1080 because part of windows desktop (or any other Window) looks cropped (I can barely see a part of the start button, for example). So I can best use it in 1600x900... Besides, when I start Panzer Corps the resolution is automatically changed to a lesser value (I can see that by making alt-tab and seeing other active windows while the game is executing... I spent a lot of time trying to figure why is this, but I learned to let it go... I'm thinking about buying a 40" screen...hehe!!
Again, thanks for your help and advice!
Again, thanks for your help and advice!
-
- Brigadier-General - 15 cm Nblwf 41
- Posts: 1912
- Joined: Thu Sep 13, 2012 7:42 am
Re: Tinkering with mini-mods
I've used this in one of my half completed mods.wrm76 wrote: If someone find a fix ,it will be very helpful .
Create an upgrade scenario lasting three or four turns.
Mark up one or more hexes with a really obvious name eg Shipyard, Destroyer, Workshop.
Place deployment hex or hexes within one move of the special hexes, but not on the hex.
Create a script that performs a unit action on each of the marked hexes at the end of the last but one turn to change any unit into the planned upgrade (enter the unit ID number of the new unit).
You can add a prestige action to charge the player for the upgrade (eg Add -200 prestige will charge you 200 for the upgrade).
Adding a message can be useful when testing it.
For ships, it's probably best to set this on the sea rather than a port as otherwise you could end up converting a land unit into a battleship with it's very own truck transport.
For practicing, it's best to use one conversion site, but I've done several conversions at once and tried a choice of two or three workshops so you have a choice of where to send your unit - for example so you can upgrade an AT gun to an SP version or to a more powerful towed one.
This method can also be used to convert your artillery Stug 3B into an AT Stug 3F or your 38t into a Hetzer or a standard unit to an SE one.
-
- 1st Lieutenant - 15 cm sFH 18
- Posts: 818
- Joined: Sun Dec 04, 2016 6:47 am
- Location: Behind your backs
Re: Tinkering with mini-mods
Seriously ? For PzC ? You are real PzC Big Manguille1434 wrote:I'm thinking about buying a 40" screen...hehe!!

PS. Im was played with purchasable abilities in PzC (UI) (special Trucks/ defence Structures). So..
Its a fun but without global map/scenario design its looking useless

When im died - I must be a killed.
Re: Tinkering with mini-mods
That would be one heck of a truck! But that's a nice workaround, captainjack. It would be better if you could upgrade ships like the other units but you gotta work with what you havecaptainjack wrote:For ships, it's probably best to set this on the sea rather than a port as otherwise you could end up converting a land unit into a battleship with it's very own truck transport.wrm76 wrote: If someone find a fix ,it will be very helpful .

But you never know when someone will come up with a very creative idea that will expand this grand old game. For example, your own work with the movement types. Some very interesting ideas you've put forth.Yrfin wrote:Seriously ? For PzC ? You are real PzC Big Manguille1434 wrote:I'm thinking about buying a 40" screen...hehe!!
PS. Im was played with purchasable abilities in PzC (UI) (special Trucks/ defence Structures). So..
Its a fun but without global map/scenario design its looking useless
For me, that's half the fun of this game. Coming up with new ideas and then trying them out

-
- 1st Lieutenant - 15 cm sFH 18
- Posts: 818
- Joined: Sun Dec 04, 2016 6:47 am
- Location: Behind your backs
Re: Tinkering with mini-mods
Don't get me wrong.cw58 wrote: For me, that's half the fun of this game. Coming up with new ideas and then trying them out
I salute to all people who make PzC more interesting with Modding/tweaking.
McGuba, Intenso, Guille, Puma, Nikivdd and so.
Id like Terminator idea about additional "Nations". (I don't have enough time to implement it

And of coz idea about Extended Purchase are good.
When im died - I must be a killed.
-
- Major-General - Jagdtiger
- Posts: 2856
- Joined: Sun Jul 01, 2012 5:32 pm
Re: Tinkering with mini-mods
Of course! PzCorps and X-Com are still "The Games" for me!! 

Re: Tinkering with mini-mods
I found a picture of an He 115 that was just about the right angle and decided to make an icon of it. It turned out decent so I thought I would post it here if anyone wants it.
Last edited by cw58 on Mon Mar 12, 2018 10:07 am, edited 1 time in total.