[Civ2] Civilization II MGE User Interface Additions (CIV2UIA)

The correct EXE is the official v5.4.0f patch EXE available from this site. They aren't allowed to provide links to unofficial stuff, so you're on your own there I'm afraid.
 
This's a purely aesthetic, but I was curious if it were possible to only change the icons of cities from the default Civ icon to the Industrialized and Modern era ones if they happen to build a Factory for Industrialization, and a Superhighway or Mass Transit for the Modern type.

I know this's a bit of a pointless feature request, but I think that it's one that could add a lot of flavour to the game. It always looked really silly when even the tiniest towns suddenly became factory aesthetic when they barely even exist as a town.
 
Hey guys, please help me. I used this patch and everything works except the science menu. This means the game is running, I can build cities etc. but I never get a window where I can choose Alphabet, Code of Laws etc. So everybody around me evolves but I can't. Would anyone be so kind as to help me with this? Desperate here.... (also I am on win11) PS: I attached a screenshot of how the Science advisor looks. Thank you so much for any help :)
 

Attachments

  • Snímek obrazovky (338).png
    Snímek obrazovky (338).png
    730.4 KB · Views: 38
Hey guys, please help me. I used this patch and everything works except the science menu. This means the game is running, I can build cities etc. but I never get a window where I can choose Alphabet, Code of Laws etc. So everybody around me evolves but I can't. Would anyone be so kind as to help me with this? Desperate here.... (also I am on win11) PS: I attached a screenshot of how the Science advisor looks. Thank you so much for any help :)
So I found a solution - by going to shift+T I changed from Luxuries to Science as Science was on 0%. I was desperate for months not knowing this. This must be a bug as it never happened to me before while starting a new game. Before when I built my first city the Science window appeared.
 
So I found a solution - by going to shift+T I changed from Luxuries to Science as Science was on 0%. I was desperate for months not knowing this. This must be a bug as it never happened to me before while starting a new game. Before when I built my first city the Science window appeared.
To be clear, the research prompt occurs at the start of the next turn, when economic activity is processed. If there's no beaker production, you won't be asked for a goal.

And yeah, that's weird behaviour, but I don't think it's to do with UIA. Usually a new game maxes science, but I've seen a few starts that use the tax rate from previous sessions; it may have to do with launching a new game without completely closing the programme, but I haven't investigated in depth.
 
I've been looking high and low for a way to play Civ 2 on my newer laptop that does not have a CD-Rom. I used to play this game for HOURS and absolutely loved it.

I've visited the Github link that was attached, and I download the file, but upon attempting to extract the file, I get an error message stating I need to change the permissions of the file, then it disappears from my download folder. I just flat out cannot access the file.

I must be doing something wrong...
 
I've been looking high and low for a way to play Civ 2 on my newer laptop that does not have a CD-Rom. I used to play this game for HOURS and absolutely loved it.

I've visited the Github link that was attached, and I download the file, but upon attempting to extract the file, I get an error message stating I need to change the permissions of the file, then it disappears from my download folder. I just flat out cannot access the file.

I must be doing something wrong...
Sounds like antivirus reaction. Try to whitelist the file or try another version. For example https://github.com/FoxAhead/Civ2-UI-Additions/releases/tag/v1.20.3
 
Uh oh.. looks like the virus scanners are out for you again @FoxAhead

Our latest false positive is for AndroidOS/Multiverse lol.

View attachment 682794
Just use 1.20.3.770. It was released more than a year ago as pre-release. And I was lazy to publish it as a full release. It has minor changes: some overlay-drawing optimizations and fix for units limit patch.
This version was "cleaned" from most antivirus warnings by sending false-positive reports to main AV-vendors.
https://www.virustotal.com/gui/file/d0cc030344450dfec96515a5d025dc6abd57769362140752fd50bd79e8a718f9

So here it is:

New version 1.20.3 (build 770).
Refactoring:
MapOverlay optimizations. Skip a full copy of the frame if there is nothing to draw on it.
Fix:
UnitsLimit fix. Added more addresses for limits number patching. And increased the memory allocation size by 2 for the two technical array elements used by the game.

Download
https://github.com/FoxAhead/Civ2-UI-Additions/releases/tag/v1.20.3
 
Just use 1.20.3.770. It was released more than a year ago as pre-release. And I was lazy to publish it as a full release. It has minor changes: some overlay-drawing optimizations and fix for units limit patch.
This version was "cleaned" from most antivirus warnings by sending false-positive reports to main AV-vendors.
https://www.virustotal.com/gui/file/d0cc030344450dfec96515a5d025dc6abd57769362140752fd50bd79e8a718f9

So here it is:

New version 1.20.3 (build 770).
Refactoring:
MapOverlay optimizations. Skip a full copy of the frame if there is nothing to draw on it.
Fix:
UnitsLimit fix. Added more addresses for limits number patching. And increased the memory allocation size by 2 for the two technical array elements used by the game.

Download
https://github.com/FoxAhead/Civ2-UI-Additions/releases/tag/v1.20.3
Oh wow.. hadn't even noticed I was 2 releases behind lol. Cheers I'll go get that.
 
Yeah there's the internal version number and there's "what microprose called it at the time". Why those two numbers are so different I don't know!
 
Is it possible to have an option to swap the graphics in throne room? It bothers me that I "upgrade" smooth walls to cave-like. I guess it may be outside of this project's scope but seeing the insane amount of quality of life additions / bugfixes I want to check first here before trying to learn how to modify pv.dll in Civ2 :)
Do you mean just reordering the progression? I could whip something up. Now that you mention it, it would make more sense to chisel out from a rough cave.
 
And done! I had to edit the layers a bit as the original Level 0 borders were showing through when used as upgrade layers, but otherwise it was a simple swap. Unfortunately this is not compatible with UIA, as the launcher appears to apply the vanilla fix overtop pv.dll, thus superseding the edit. UPDATE: Fixed!

You may be onto something that the original is backwards: note the fur bunting between this and the original:

Spoiler :
level1_new-png.702334


level1_orig-png.702335
 
Last edited:
Unfortunately this is not compatible with UIA, as the launcher appears to apply the vanilla fix overtop pv.dll, thus superseding the edit.
Civ2UIA replaces resource #105 only if it has size of 74478 bytes.
https://github.com/FoxAhead/Civ2-UI...3b2504aeac2d55005d/src/Civ2UIA_Ex.pas#L87-L91
C-like:
  DllGifsToBeFixed: array[1..3] of TDllGifsToBeFixed = (
    (ResNum: 105; WrongSize: 74478),
    (ResNum: 229; WrongSize: 29923),
    (ResNum: 250; WrongSize: 27741)
    );
So, to prevent the intervention of Civ2UIA just make 105.gif of the size other than 74478.
 
As luck would have it, just re-saving the GIF shrunk it by ~5KB. Now works. :D

Civ2 isn't exactly a big programme these days, but now I'm wondering if it's worth optimizing all the .dlls...
 
As luck would have it, just re-saving the GIF shrunk it by ~5KB. Now works. :D

Civ2 isn't exactly a big programme these days, but now I'm wondering if it's worth optimizing all the .dlls...
I would double check why the size has decreased. Has there been any loss of quality?
 
Visually identical as far as I can see. Palette hasn't changed, same dimensions, but it's been almost thirty years so GIF encoding may have improved since they were originally created.
 
Visually identical as far as I can see. Palette hasn't changed, same dimensions, but it's been almost thirty years so GIF encoding may have improved since they were originally created.
where can I download this gif image or the modified library file?
under spoilers png picture
 
Back
Top Bottom