Unit Portrait

Moderator: rbodleyscott

Post Reply
Rosedelio
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 509
Joined: Fri Oct 23, 2020 4:54 am

Unit Portrait

Post by Rosedelio »

Is it possible to make it so the icon with the selected unit has a still portrait like in Pike and Shot or Sengoku Jidai? Or is it forced to be the idle unit model animation? Unit texturing is a rare skill and I'm not sure how much I can edit to fit my mod idea.

Edit: Looking more into it, if it's at all possible, it's related to the defunct IconID column of the squads.csv file. Seems like the UI battle script file would be involved too. Is there a way to code this functionality back in or is it hardcoded out?
Touhou mod for FOGII: Medieval: https://www.slitherine.com/forum/viewtopic.php?t=111582
My FOGII and FOGII Medieval focused channel: https://www.youtube.com/@Rosedelio
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Unit Portrait

Post by rbodleyscott »

Rosedelio wrote: Mon Mar 06, 2023 4:47 am Is it possible to make it so the icon with the selected unit has a still portrait like in Pike and Shot or Sengoku Jidai? Or is it forced to be the idle unit model animation? Unit texturing is a rare skill and I'm not sure how much I can edit to fit my mod idea.
If your modded units are good enough to appear on the battlefield, surely they are good enough to appear in the unit portrait? People will zoom in anyway.
Edit: Looking more into it, if it's at all possible, it's related to the defunct IconID column of the squads.csv file. Seems like the UI battle script file would be involved too. Is there a way to code this functionality back in or is it hardcoded out?
Conveivably, but it is an old feature left over from Pike and Shot, and you are pretty much on your own if you want to try to implement it.
Richard Bodley Scott

Image
Rosedelio
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 509
Joined: Fri Oct 23, 2020 4:54 am

Re: Unit Portrait

Post by Rosedelio »

rbodleyscott wrote: Tue Mar 07, 2023 7:54 am
Rosedelio wrote: Mon Mar 06, 2023 4:47 am Is it possible to make it so the icon with the selected unit has a still portrait like in Pike and Shot or Sengoku Jidai? Or is it forced to be the idle unit model animation? Unit texturing is a rare skill and I'm not sure how much I can edit to fit my mod idea.
If your modded units are good enough to appear on the battlefield, surely they are good enough to appear in the unit portrait? People will zoom in anyway.
Edit: Looking more into it, if it's at all possible, it's related to the defunct IconID column of the squads.csv file. Seems like the UI battle script file would be involved too. Is there a way to code this functionality back in or is it hardcoded out?
Conveivably, but it is an old feature left over from Pike and Shot, and you are pretty much on your own if you want to try to implement it.
Ah, alright. I'll stick to my original plan of releasing with just armies and banners first. Then I'll worry about textures later.
Touhou mod for FOGII: Medieval: https://www.slitherine.com/forum/viewtopic.php?t=111582
My FOGII and FOGII Medieval focused channel: https://www.youtube.com/@Rosedelio
Post Reply

Return to “Field of Glory II: Medieval - Modding”