Jump to content

Possible to have the portraits updated


redsox

Recommended Posts

  • Replies 63
  • Created
  • Last Reply

There is a problem on my end. It seems that the game does not allow you to make changes to the portrait.big while it is running. That will cause some design changes to my program.

There's also another small problem that I wasn't aware of: After renaming a portrait fsh to a new name, you have to make a couple of edits to the fsh file. The old filename can still be found inside the fsh file. These cause the game to show a black box instead of the portrait. Those references to the old filename need to be changed to the new filename. I'll make a small program that will do that.

Link to comment
Share on other sites

There is a problem on my end. It seems that the game does not allow you to make changes to the portrait.big while it is running. That will cause some design changes to my program.

There's also another small problem that I wasn't aware of: After renaming a portrait fsh to a new name, you have to make a couple of edits to the fsh file. The old filename can still be found inside the fsh file. These cause the game to show a black box instead of the portrait. Those references to the old filename need to be changed to the new filename. I'll make a small program that will do that.

The program will be running while the game is in progress? I wasn't aware of that, but will it?

And I don't need to change anything on my part, do I?

And you just need to edit the index.fsh file, right?

Link to comment
Share on other sites

The program will be running while the game is in progress? I wasn't aware of that, but will it?

And I don't need to change anything on my part, do I?

And you just need to edit the index.fsh file, right?

Yes, my program needs to be run while your dynasty is open in the game. That's how I will determine each player's current team.

You don't have to change anything.

I tried editing the index.fsh, but that didn't seem to help. I'll just have to edit the fsh file.

Link to comment
Share on other sites

What do you mean by "I tried editing the index.fsh, but that didn't seem to help. I'll just have to edit the fsh file."?

I extracted the portrait with fshtool. Then, I edited the index.fsh and replaced the current filename with what I want the filename to be. Then, I used fshtool to build the new file. I then installed that portrait to the portrait.big file. I got the same result as when I just renamed the file.

What I mean by editing the fsh file: If the portrait file is 9000.fsh, I will edit the 9000.fsh and change the two instances of the old filename to 9000.

Link to comment
Share on other sites

So is my command-line utility supposed to take a .bmp file as an input, or a .fsh file?

Because if it's a .bmp file, it'll always be 0000.bmp and 0000-a.bmp, right?

My program would only have to take the team's abbreviation as a command-line switch, right?

Link to comment
Share on other sites

So is my command-line utility supposed to take a .bmp file as an input, or a .fsh file?

Because if it's a .bmp file, it'll always be 0000.bmp and 0000-a.bmp, right?

My program would only have to take the team's abbreviation as a command-line switch, right?

I would prefer that your program take a .fsh file as an input.

Link to comment
Share on other sites

Ty, how do I convert a char array to a string array? Because I can't work with char arrays very well, and it seems that I would have to, if I use command-line inputs.

What problems are you having? You don't need to make any changes to the char array.

If you want to convert the first command line option to a string, this is all you need to do:

string parameter1 = argv[1];

Also, if you pm me, I will respond to your questions faster.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...