Optimization suggestions

For me it took ages to load in any editor with syntax highlighting, and I have a pretty decent computer. I imagine that on a slower one it would just hang. Notepad works fine but I have to have syntax highlighting. :D

Hmm, do you use Notepad++ ? I've never had problems with CityNameManager.

The game is now so much faster in the 1900s.
 
Hmm, do you use Notepad++ ? I've never had problems with CityNameManager.
Yeah. It used to take a few seconds to open it, but now it's near-instant.

That attachment doesn't include Barbs.py , CvVictoryScreen.py , MercenaryUtils.py and MercenaryNameUtils.py . ;)
Ah, you're right. :blush: I wonder how I missed those...I'll update the first post shortly.
 
Yeah. It used to take a few seconds to open it, but now it's near-instant.

Ah, you're right. :blush: I wonder how I missed those...I'll update the first post shortly.

So can you please confirm which post has everything that is needed, including any minor updates?
 
I can't see the scores display in Rhyes since I copy/pasted this.
I don't know why that happened. It seems to work for everyone else though...could be a Civ bug, I've had similar things happen after updating mods. Try clearing the cache.

you forgot aiwars.py :)
Nope, that one was in. :p

So can you please confirm which post has everything that is needed, including any minor updates?
First post contains all the updates. Let me know if something doesn't work, because I've been busy lately and so I don't remember what I did or didn't do. I was playing around with the code and I might have forgotten to undo the changes so if it doesn't work just let me know and I'll redo the changes from scratch. I haven't had time to actually test it, so be warned.
 
First post contains all the updates. Let me know if something doesn't work, because I've been busy lately and so I don't remember what I did or didn't do. I was playing around with the code and I might have forgotten to undo the changes so if it doesn't work just let me know and I'll redo the changes from scratch. I haven't had time to actually test it, so be warned.

Sorry, but what is contained in the first post has several issues. The F2 advisor is screwed and now only shows a map of somewhere I don't recognise and I can no longer see the scores of each nation in the lower right of the main screen either. That's just what I saw from quick look around. I'm going back to my previous set of python files which weren't broken.
 
There are three files posted by musicfreak all on the first page though, which is the correct, non-buggy file to be downloading?
 
The one I use is the file in post 20, combined with my own file. These files combined is the file which is included in the file in post 1. However, for some reason that file is broken.
 
Sorry, but what is contained in the first post has several issues. The F2 advisor is screwed and now only shows a map of somewhere I don't recognise and I can no longer see the scores of each nation in the lower right of the main screen either. That's just what I saw from quick look around. I'm going back to my previous set of python files which weren't broken.

I don't have either of these problems, so perhaps it's not the files.
 
Okay, first off, got to say thanks to musicfreak for his work, this is a great idea. I wish other modders would take some of these suggestions into account. One of Rhye's main goals of RFC, besides being an Earth Simulator, is to make a fast, quick loading mod. He tries to reduce late-game turnlag by implementing things like plague to lower populations (and therefore, a nation's armies). So by "optimizing" a mod that already had Speed as one of it's primary objectives, you've possibly made it so few other mods are barely worth playing, if you're not patient and don't have a decent PC to play it on.

But anyways, here's what I've discovered. I started my first game with the Optimized files, copied over the Python folder, replacing any files it encountered with identical names. And yes, I did backup the original Python folder, although I did leave that copy (named "Copy Python Copy") in the RFC Assets folder. I decided to run as the Indians in a pacifist strategy in the 3000 BC scenario (not the Unlocked Scenario). Right away, after contacting the Babylonians and the Chinese, I noticed a small issue. The foriegn contact display on the right hand corner of the display (showing you score, war status, etc.) would not display, no matter how many times I pressed the button. But this was only minor, as I typically don't have that table open (it seems to run faster when I don't, no matter the mod). I figured musicfreak might have eliminated that to speed up the game.

But here's my big bug I've come across. Playing as a pacifist, I did little to explore beyond my own borders, more interested in acquiring the largest population in the world. It wasn't until I got Calender that I started to realize something was wrong. Where were the Persians? So, finally, with the date at 700 AD, I decided to take a little peek. I jumped into the World Builder, and behold, what do I see? Only 4 civilizations on the entire map; Egypt, Babylon, China, and me (India).

So my assumption is that the new optimization somehow prevents the game from spawning the new civilizations? I'm going to try 3 things to see if I can discover the problem. 1st, I'm going to restart a game as India, same conditions, and see if the problem happens again. 2nd, I'll run it as someone else. I might try two versions of this step, one with China or Egypt, and another with a later spawning civilization, like Rome or Greece. The last thing I will do, of course, will be to remove the optimized files and try it again, first as the original RFC, and then as RFC Optimized, but only after I manually move every file from the Optimized zip into the Python folder.

I wonder if anyone else has encountered this? I don't think so, as I didn't see any posts about this issue. But because it's compatible with previous saves, I wonder if no one has even tried to start a new game, and are merely playing with games they never finished due to impatience over turnlag.

EDIT: D'oh! Okay, so blizzrd did have this same problem, mentioned in Post 49 and down. I had forgotten about the F2 screen, which shows the stability ratings of your empire. That's what first brought my attention to the fact the scores would not show (since I rarely keep it open), because I wanted to know the risk of my empire collapsing due to overpopulation. I'll also try that after I do a little of the above testing, but this is feels like it might start to get rather messy. What files are we looking to combine? Which should be extracted first? (ie, Wessel V1, do any of your files overwrite musicfreak's?)
 
Yes I had your problems, and although I didn't play on for long enough to see the problem of no other civs ever spawning it has also been mentioned in this thread.

For some reason the files in the first post are bugged. But extract the contents of just the .rar file within the attachment of the post #20 and then also extract the files within the attachment found in Wessel V_1's post (some of which actually belong in the Mercenary Util subfolder of the python folder however) and it works fine, at least it has been for me.
 
Well, since you and me had similar problems, I'll definately do that. Thanks blizzrd. That'll save me several hours of replaying scenarios that I never really intend to finish. Just to get to 700 AD I think took 2-3 hours of my time... counting other distractions like the Olympic Gold Medal Basketball Game. :)
 
I think I posted my experiments in the first post...although I could have sworn I undid all my changes. But that would explain the weird behavior. Don't worry, I'll update the first post shortly with the working version. :)

EDIT: Done. Let me know if it doesn't work yet again, although it should because I made all the changes from scratch.
 
Is there a release for vanilla RFC?:

My BTS got corrupted or something, so i can't use it, and I love RFC and want to play it, but it's wayy to slow and hard for my computer to use.
 
Is there a release for vanilla RFC?:

My BTS got corrupted or something, so i can't use it, and I love RFC and want to play it, but it's wayy to slow and hard for my computer to use.
I'll put one up when I have time. Been kinda busy lately; school's starting soon. For now you can just go through each of the Python files in the Python folder (you can use my attachment as a reference so you know what files to edit) and change this line:
Code:
import pickle
to this:
Code:
import cPickle as pickle
That's all I really did. That line is located somewhere near the top of each file (along with all the other "import"s).
 
oh, crap. I changed the line to "import pickle as cPickle"...hmm. Looks like i'l have to change it
 
Back
Top Bottom