View Full Version : Modded Hall of Fame showing Won/Loss state...
Fallblau Nov 10, 2005, 05:14 AM Hey guys...
One thing that has bugged me since the release has been that while the Hall of Fame screen is really neat, and you can see replays and all, it does not state whether or not you actually won or lost the game!
I'm sure that this is something Firaxis will get around to fixing, but until then, I've come up with this:
103296
CURRENT VERSION
105629
Archival Versions
103409
103303
To Install, you will need to create a new folder in your Custom Assets\python folder (in my case, it is "My Games\Civ4\Custom Assets\python") called "Screens". This IS case-sensitive, and it must appear exactly as "Screens". (See Item 1 below)
EDIT: It has since been brought to light that if a (lowercase) "screens" folder appears in your directory, you may or may not need to case-sensitize it. Some have, some haven't... So try it and see.
103301
Next, unzip the mod attachment into this newly created folder. (See Item 2 above)
Go to the "Screens" folder, and rename the unzipped file from "MODIFIED_CvHallOfFameScreen.py" to just "CvHallOfFameScreen.py". (See Items 3 and 4 below)
103302
Launch the game! It's maybe not the most elegant solution, but it eases my warped little mind until Firaxis fixes it... :)
Enjoy!
Fallblau Nov 10, 2005, 05:20 AM I just realized that I've let the entire world know how bad I stink at this game... GAAAAHHHHH!!! :)
Just imagine all the multiplayer "wanna join this game?" requests I'd get right now... :)
woodelf Nov 10, 2005, 05:21 AM You're not the only warped mind around. I found the HoF lacking as well. I like what you've done.
Fallblau Nov 10, 2005, 05:25 AM The neat thing about it is that it shows just how moddable the game really is... I wasn't sure that the engine would parse an entirely new folder in the Custom Assets section (i.e., one that it didn't build itself), but it caught it without a problem...
Pounder Nov 10, 2005, 05:34 AM So this mod picks out the victories form past games and displays them properly, not just newly finished games.
Great job.
Fallblau Nov 10, 2005, 05:45 AM Thanks, Pounder...
Yeah, the methodology I'm using is pretty brute-force, but seems to be effective... Every time you go in to the HoF, it repopulates the data from all of your stored Replay files themselves, and not from a fixed "table".
Here's what I did:
103305
The sections in green are the original Firaxis code, the red is what I added. Basically, as it parses the replay, I get the last turn of the game, and set a variable to zero. Then, using an index of the number of players in the game, I run through and gather each of their scores on that last turn, setting the variable to the higher value each time. When that is complete, I get the player's final score. If it matches, victory, if not, loss.
BearMan Nov 10, 2005, 08:45 AM Actually, I think the hall of fame shouldn't include losses at all !
Tell me one other hall of fame that includes "losers" ? ;)
Fallblau Nov 10, 2005, 08:47 AM >Tell me one other hall of fame that includes "losers" ?
I dunno... The Darwin Awards? :)
Reminds me... We saw "Meet the Fockers" the other night... Pretty bad, actually, but it contains the line "I didn't know they even MADE "Sixth-Place" ribbons!"
:)
Stilgar08 Nov 10, 2005, 09:35 AM Great job!!! Thank you! First mod I inserted in my game!!! :)
Wyz_sub10 Nov 10, 2005, 09:40 AM Kudis on your detailed install screens. This shold help a lot of people looking for how/where to install files.
Ktulu Nov 10, 2005, 11:14 AM Sweet. I just noticed this problem last night when I lost by space race and the HOF did not distinguish between games I had won or lost.
nevs69 Nov 10, 2005, 11:57 AM Awesome... I noticed this also and I am glad you added the column.
Other things we noticed besides your score:
1. You are logged into your computer as Shelly
2. Your computername might be: GOOBERCO-BADASS (or did you put that name in)
3. You are a fan of the GTA series (ditto!)
Demon Rob Nov 10, 2005, 03:26 PM To Install, you will need to create a new folder in your Custom Assets\python folder (in my case, it is "My Games\Civ4\Custom Assets\python") called "Screens". This IS case-sensitive, and it must appear exactly as "Screens". (See Item 1 below)
but I've already got a lower case 'screens' directory there?
oh well, loaded it there and I'll see what happens....
The lower case screens directory is empty so I can always delete it.
Pounder Nov 10, 2005, 03:58 PM but I've already got a lower case 'screens' directory there?
oh well, loaded it there and I'll see what happens....
The lower case screens directory is empty so I can always delete it.
I tryed renaming the screens folder Screens and it did not work.
Seems to be date sensitive.
It didn't work for me until I renamed the screens folder orgscreens (just to keep it backed up with original date) and then created a new folder called Screens.
Pounder Nov 10, 2005, 04:00 PM http://www.civfanatics.net/uploads10/hofbug.jpg
Raggamuffin Nov 10, 2005, 05:06 PM Thanks man! :goodjob:
Stupid really that this wasn't included from the start.
Fallblau Nov 10, 2005, 06:08 PM Thanks for all the remarks, guys... I really appreciate it... My random map thing fell on mostly deaf ears... This makes it worth it... :)
Nevs... Now I'm waiting for the black helicopters, man! :) And yeah, GTA remains most rockin'... :)
Demon Rob
but I've already got a lower case 'screens' directory there?
Huh... I didn't... Inconsistency in the game initialization stuff, or had you perhaps installed another mod as well? And if so, does THAT one work now?
Pounder... DAMMIT! :) I went on the assumption that winning the game would actually give you the higher score... As one would assume, really... Damn, damn, damn... I'll look deeper and see if I can find something else... But seriously, thanks!! Given my limited set of data, victory meant high score, always... Odd that it wouldn't really... Really odd, but I guess I can see it happening... Is there any chance I could get you to upload the replay file for that one, so I can use it in testing? Would truly be helpful... In the vernacular, "you da man"... :)
OK guys... I'm going to go hunting again...
Fallblau Nov 10, 2005, 08:51 PM OK, I think I've got it... Methodology has changed... Try this one, especially Pounder, since it should pick up on your issue...
(ATTACHMENT moved to Post #1)
If it works, Pounder, let me know, and I'll edit the top post to hold this one...
Again, thanks all... :crazyeye:
Demon Rob Nov 10, 2005, 09:14 PM Demon Rob
Huh... I didn't... Inconsistency in the game initialization stuff, or had you perhaps installed another mod as well? And if so, does THAT one work now?
no, you're the first mod. congratulations! Seems Pounder had the same lower case directory too (see his post a few ago). Mine is a default Australian (DVD) install.
Fallblau Nov 10, 2005, 09:55 PM =Mine is a default Australian (DVD) install.
Maybe that's the difference... Custom US/CDROM here. Could just be something with the initialization...
Moxx Nov 10, 2005, 10:15 PM Great Mod! I was very surprised when I saw that this was not already included and I am thankful you posted it. However I still see one bug with regards to winning in a permanent alliance. When you win it says "2000 Ad: Moxx/Catherine wins by a Space Race Victory!!" so when you check if the name matches your name it won't pick up the match.
I am not sure how easy it is in python to see if your name is a sub-string of the final line with the victorious name/alliance is but that's what I think would fix it. The only problem would be is my name was Cath and Catherine had won so I guess maybe you need to check if a '/' character is in the string before you check for substrings.
Fallblau Nov 11, 2005, 04:39 AM Hey, Moxx... Thanks! Hadn't seen a permanent alliance situation yet, so didn't know that... I'll have to take another look. Would it be possible for you to upload that replay file for testing purposes?
While we're at it (and now that I think about it), does anyone have one (or at least the Victory Announcement text) for a multiplayer team win?
Pounder Nov 11, 2005, 05:22 AM That did the trick, thanks alot.
BTW, I have the North Amercican CD Version and I had the screens folder already there. Like I said in the previous post, it did not work by just renaming the folder, I had to create a new folder (it's like it was date sensitive).
Here it the pic.
http://www.civfanatics.net/uploads10/fixedhof.jpg
Fallblau Nov 11, 2005, 06:05 AM it did not work by just renaming the folder, I had to create a new folder (it's like it was date sensitive).
That is truly wierd... But lots of stuff is, just look at AboveTopSecret sometime... :) And that high score is truly impressive!
OK, I did some stuff that may work for the split victories like Moxx showed... Try this one...
(Snip: Moved to post #1)
Let me know... So far it DOESN'T blow mine up, and the stuff still shows accurately, so it isn't fundamentally flawed...
Thanks again, all!
P.S. - Y'know... Had they simply set a byte in the replay and added a "getWinner" function to CyReplayInfo, we wouldn't have this problem... :)
Steve2000 Nov 11, 2005, 09:17 AM I had the same issue as Pounder (another folder called screens - all in lowercase already in that python folder). Mine is a US-CD version as well. I used his solution of renaming the original "screens" folder, and adding a new "Screens" folder. It works fine - although I only have 3 completed games, so it is not so impressive.
Sonic_Sabbath Nov 12, 2005, 12:40 AM I like some other people in here have had the lower case 'screens' folder in my my 'CustomAssets\python' folder, and i just unzipped Fallblau's patch into the lowercase 'screens' folder as is, ran Civilization 4 and it seems to be showing the W/L thing in the Victories column as it should be according to the details of your patch.
I also have homegrown's 'Simple Game Clock Mod' running at the same time, but i dont think this would be affecting anything. I am running an original Australian copy (DVD-ROM) of the game, so i dont know if this could be why it's running. For curiosities' sake, how many people here have tried just running the mod through the lowercase 'screens' folder? I know Fallblau did say that the folder is case-sensative, but it is working for me never the less.
By the way - very nice mod Fallblau, muchly appreciated. ^.^
Fallblau Nov 12, 2005, 08:19 AM Thanks, Steve and Sonic_Sabbath... Perhaps I need to modify that, but I seem to remember that it did not work without being "cased", and since Python itself is case-sensitive for many things, it seemed to make sense... I'll amend that text to say it may or may not need to be "cased", and go with that, as it could be, as Pounder thought, date-sensitive instead, in which case renaming it would update the date flag...
If I ever hear back from Moxx, I'll update post #1 with the V3 version...
Ur Mum Nov 12, 2005, 05:20 PM hello. thanks for the mod.
just downloaded and put the file in my already existing "screens" folder. it worked fine. (UK DVD version)
Fallblau Nov 23, 2005, 08:37 AM Anybody out there with a Team/Permanent Alliance split victory that could tell me whether Version 3 from Post #24 works properly?
I can't manage to get anybody to go PA with me in-game to get a test victory... sniffle... Do I smell that bad? :D
Finarfin Nov 25, 2005, 12:59 PM This is something that I immediately noticed needed remedying. After a couple of games I couldn't remember if the entry was a win or a loss. Does anyone know, however, how to keep your saved games from changing the player name to the PC name you are playing on? I've even changed my PC name but every time I load a saved game, even one started after I changed the PC name, the saved game uses the old PC name as player name.
Pounder Nov 25, 2005, 03:33 PM This is something that I immediately noticed needed remedying. After a couple of games I couldn't remember if the entry was a win or a loss. Does anyone know, however, how to keep your saved games from changing the player name to the PC name you are playing on? I've even changed my PC name but every time I load a saved game, even one started after I changed the PC name, the saved game uses the old PC name as player name.
C:\My Documents\My Games\SID MEIER'S CIVILIZATION 4\CivilizationIV
Open the above file with WORD or something similar. In the top third of the file there are 3 or four places that have your computer name listed as the default to various alias', just rename them and save the file, on the next new game they will be used.
Finarfin Nov 25, 2005, 03:53 PM Excellent! Thanks a lot. That was really starting to annoy me.
Pounder Nov 26, 2005, 06:51 AM @Fallblau
Your mod still works with the 1.09 release, which is great because, Firaxis hasn't done anything yet.
Request: With version 1.09, they added difficulty level to the calculation of the final scores. I know that you have had a look a the HOF/replay files, would you know if it is possible to refresh the scores to apply the difficulty level to the existing scores posted on the HOF.
I don't know if you should need them, but here are the factors they have applied.
Settler : 0.4
Chieftain : 0.6
Warlord : 0.8
Noble : 1.0
Prince : 1.2
Monarch : 1.4
Emperor : 1.6
Immortal : 1.8
Deity : 2.0
Fallblau Nov 26, 2005, 01:09 PM Finarfin... Thanks!
Pounder... As far as applying the modifiers to old replays goes, I don't see any way to tell a pre-patch replay from a post-patch one, at least from just opening the thing in notepad/wordpad and glancing at it, i.e. no version numbers or anything... So I'm thinking it's really not possible, unless I can find a "version number" tag or something eventually.
If you still have saved games from the old replays, I suppose you could reload them under 1.09 and "re-finish" the games, which should give you the new calculation, but it will show up as another replay, not overwrite the old one...
Pounder Nov 26, 2005, 01:52 PM Finarfin... Thanks!
Pounder... As far as applying the modifiers to old replays goes, I don't see any way to tell a pre-patch replay from a post-patch one, at least from just opening the thing in notepad/wordpad and glancing at it, i.e. no version numbers or anything... So I'm thinking it's really not possible, unless I can find a "version number" tag or something eventually.
If you still have saved games from the old replays, I suppose you could reload them under 1.09 and "re-finish" the games, which should give you the new calculation, but it will show up as another replay, not overwrite the old one...
I tried loading a saved game that was saved on the last turn and it worked by adjusting the score correctly.
The problem is most of the games were not saved on the last turn and there may be 30 or 40 turns before the last turn occured. If I tried to replay the last several turns, the outcome will certainly be different and the scores will be wrong.
Thanks for checking.
Fallblau Nov 27, 2005, 11:17 AM >The problem is most of the games were not saved on the last turn and there may be 30 or 40 turns before the last turn occured.
Understood... I actually blew away all my saves when I installed the patch, so I'm in the same boat.
Hey, thanks for keeping up with it! It's just nice to see it being used... :)
By the way, still looking for confirmation on the alliance/split win thing, if anybody's got one...
Moxx Nov 28, 2005, 08:34 PM Hey sorry about not replying for so long! I have been busy with some university projects and haven't paid much attention to Civ 4 lately. :( I just tested your version 3 and it worked fine for my PA victory and with the new patch. If you still want a reply I think I can find ya one.
Thanks again!
edit - It also works for a 3-way PA also.
Strange Nov 28, 2005, 11:55 PM It bothered me as well, Thanx a million!
Fallblau Nov 29, 2005, 05:30 AM Hey Moxx! Glad to hear you hadn't fallen off the edge of the earth... :)
it worked fine for my PA victory
Cool! I'll have to relink the first post to version 3, and yeah, I'd like to see the replay if you can...
Strange, thanks!!
Fallblau Nov 29, 2005, 02:10 PM OK, I think it is in a good enough state to declare it releasable at this point, so I'm going to create an entry in the "Completed Modpacks" section...
I'd still like to see that replay, though, Moxx...
Thanks for all your input and help, guys! I really appreciate it...
jpinard Dec 04, 2005, 07:03 AM Thanks for a great addition Fallblau! Quick question just to clarify... since "screens" was already present in my directory tree... should I leave the "s" lowercase, or uppercase it?
Fallblau Dec 04, 2005, 10:23 AM Different people have reported different behaviours, so I'd say just put it in "screens" and see if it works... if not, then try renaming it.
zorven Dec 10, 2005, 01:06 AM Great mod...thanks!
automator Dec 20, 2005, 12:03 AM thanks.
after each game I'd wonder if I'd checked some weird box somewhere that hid my win/loss. I had to guess each time.
Pounder Dec 29, 2005, 05:54 AM @Fallblau
In 1.52 they messed up the last column for the game speed, everything was changed to Epic for any thing that wasn't Marathon ( and then the Marathon is messed up as well). Is this something that can be easily corrected?
BTW, did they incorporate your mod into 1.52? I renamed the screens folder in the custom assets before I loaded 1.52, so I could see if they modded the HOF and to see if a few other screens had improved, and your mod was still there, in fact my screens folder is still called 999screens and I still see the win/loss tags you put on.
bonscott Dec 29, 2005, 07:56 AM No, they didn't incorporate it. I removed all mods before installing 1.52 and I didn't put this one back as I didn't see an update that it was compatible with the new patch and the "W" and "L" are gone.
Fallblau Jan 06, 2006, 04:50 AM Hi all...
Re: The amazing morphing game speeds... Is this something that can be easily corrected?
I'd have to look... If you'll notice, when you load a mod that adds new game speeds (like FeFex's), that monkeys 'em up as well. So we'll see...
Fallblau Jan 06, 2006, 05:15 AM OK, I refitted my custom code to the new v1.52 seeded object... The customization still works, so here is your "Patch compatible" object...
110499
The game speeds on old replays are STILL MESSED UP... But the are ALSO messed up in the new seeded ("actual Firaxis") object, so it isn't anything I'm doing...
Sounds similar to the scores on pre-1.09 games being wrong in v1.09.... I don't know if anything can really be done about it, at least until the SDK, where we can actually see the library code to see what CyHallOfFameInfo is actually doing... We may be able to do something, or there may be so little information actually stored in the replay, that nothing at all can be done...
And, frankly, who knows if we'll all still care at that point... :) I've gotten very, very bored with the game as it stands now... Unless somebody can fix the artillery, and the game pacing, I feel kind of done with C4.... There are only so many times you can hit next turn, and as long as they keep increasing building/training times in proportion to game turns, the only thing that will happen is you will hit "next turn" a lot more often...
Fallblau Jan 06, 2006, 05:33 AM OK, in this thread, Grumbler found the problem... The Firaxians stuck the new "Marathon" speed at the head of the list, rather than the tail, which skews the index by one...
http://forums.civfanatics.com/showthread.php?t=149288
So.... Put this file in your CustomAssets/XML/gameinfo folder...
110505
This resolves the issue with both my custom and the seeded HoF screens....HOWEVER, doing so will cause any current saved games to misregister their speed/current turn in game, so I would not suggest replacing the file mid-game. And there is still some possibility that games since the 1.52 patch but before replacing this file may misstate their speed in the HoF screen, so choose wisely...
Pounder Jan 09, 2006, 05:10 AM OK, in this thread, Grumbler found the problem... The Firaxians stuck the new "Marathon" speed at the head of the list, rather than the tail, which skews the index by one...
http://forums.civfanatics.com/showthread.php?t=149288
So.... Put this file in your CustomAssets/XML/gameinfo folder...
110505
This resolves the issue with both my custom and the seeded HoF screens....HOWEVER, doing so will cause any current saved games to misregister their speed/current turn in game, so I would not suggest replacing the file mid-game. And there is still some possibility that games since the 1.52 patch but before replacing this file may misstate their speed in the HoF screen, so choose wisely...
Thanks for your work, much appreciated.
The epic and normal games appear properly now, but the marathon game I just completed shows up as epic. BTW, I installed the patch after I completed the marathon game, as per your suggestion.
Steve2000 May 18, 2006, 04:23 PM So.... Put this file in your CustomAssets/XML/gameinfo folder...
110505
This resolves the issue with both my custom and the seeded HoF screens....HOWEVER, doing so will cause any current saved games to misregister their speed/current turn in game, so I would not suggest replacing the file mid-game. And there is still some possibility that games since the 1.52 patch but before replacing this file may misstate their speed in the HoF screen, so choose wisely...
Any chance of getting an updated version of this for 1.61?
|
|