Python Performance and Interface Overhaul (PPIO)

I can't reproduce it, perhaps a computer restart would fix it, or a reinstall of C2C and modmod.
Anyone else getting this?
Nope.
Looks like SVN failed download on him.

That is cleanup or revert should fix it.
 
Hi Toffer90,

I just loaded v5.9.6.1.7 with SVN 10157, started a new game, and there are no buildings or units appearing in the city build selection panel. Any ideas ?

Cheers
Colonelflag
 
Sorry KaTiON_PT- Chess piece ? I cant see any in that screen or a Greek building ?? Can you give me a hint at all ?
 
Tried again with rev. 10155, still getting the error message.

Unless @alberts2 can cast some light on the situation, we will have to abandon any attempt at having default values for the function and add in the last argument to all existing getBuildingHelp() calls in python.

@makotech222 I can do the python change, removing the default values defined in the dll doesn't seem important but it should be done eventually too.
I'll wait a bit to see if alberts responds to the situation.

Default arguments actually shouldn't work at all because according to the boost python documentation the exports to python must be setup differently to make defaults even possible.

Boost.Python wraps (member) function pointers. Unfortunately, C++ function pointers carry no default argument info. Take a function f with default arguments:

int f(int, double = 3.14, char const* = "hello");

But the type of a pointer to the function fhas no information about its default arguments:

int(*g)(int,double,char const*) = f; // defaults lost!

When we pass this function pointer to the def function, there is no way to retrieve the default arguments:

Source
 
It would be nice to know in what eras AI's are.

Is it possible to do so?

There is some sort of console if you have cheats enabled
; Move along
CheatCode = chipotle

You activate by pressing " ` " key, that is one below esc.

Maybe some command could be added, that prints out AI's eras?

You can look into AI capitals when uncovering whole map (ctrl+z) to check their education pseudobuildings.
But education bases exist only up to certain era.


Technically you could check tech tree of other AIs, but it doesn't work - game just freezes for a while and then nothing happens.

Spoiler :

Civ4BeyondSword 2018-09-02 21-33-13-48.jpg

 
Last edited:
I can't reproduce it, perhaps a computer restart would fix it, or a reinstall of C2C and modmod.
Anyone else getting this?
Alright, I made a few tests. A computer restart didn't help, nor did removing the NoLatitude modmod. I just tried the "pure" mod, and it worked.

The last time I got this modmod to work was 0.5.9.5.5 - I didn't get to test the versions in between. As you suggested, I deleted the BUG Main Interface.ini
 
Alright, I made a few tests. A computer restart didn't help, nor did removing the NoLatitude modmod. I just tried the "pure" mod, and it worked.

The last time I got this modmod to work was 0.5.9.5.5 - I didn't get to test the versions in between. As you suggested, I deleted the BUG Main Interface.ini
Are you sure you installed it in latest SVN version of mod?

All versions inbetween worked for me.
 
Alright, I made a few tests. A computer restart didn't help, nor did removing the NoLatitude modmod. I just tried the "pure" mod, and it worked.

The last time I got this modmod to work was 0.5.9.5.5 - I didn't get to test the versions in between. As you suggested, I deleted the BUG Main Interface.ini
Strange, I'll look into it, do you get any python logs during initialization?

Did you install the font file? Not doing so shouldn't afaik crash the game during launch though.

You could try deleting your entire UserSettings folder. But it probably won't make a difference, but what do I know, maybe it will...

Do you have warlords installed? Probably a goose chase, though I did write some code that reference python code that is in warlords folders, but I expect the same code exists in vanilla non-BtS too.
Spoiler extrapolation :
I referenced something that on my computer would lead to this file:
Sid Meier's Civilization IV Beyond the Sword\Warlords\Assets\Python\System\wx\_misc.pyc​
gambling that the same code would exist here as well:
Sid Meier's Civilization IV Beyond the Sword\Assets\Python\System\wx\_misc.pyc​
The one in warlords overwrites the one in vanilla if warlords is installed, meaning the exe prefer the files that is in warlords over those in pure vanilla.
(that statement is only valid for the files in the "python/system" folder)
 
Are you sure you installed it in latest SVN version of mod?

All versions inbetween worked for me.
Yes, I installed it in rev 10159 (and 10155 before it). Both times it failed.

Strange, I'll look into it, do you get any python logs during initialization?

Did you install the font file? Not doing so shouldn't afaik crash the game during launch though.

You could try deleting your entire UserSettings folder. But it probably won't make a difference, but what do I know, maybe it will...

Do you have warlords installed? Probably a goose chase, though I did write some code that reference python code that is in warlords folders, but I expect the same code exists in vanilla non-BtS too.
Spoiler extrapolation :
I referenced something that on my computer would lead to this file:
Sid Meier's Civilization IV Beyond the Sword\Warlords\Assets\Python\System\wx\_misc.pyc​
gambling that the same code would exist here as well:
Sid Meier's Civilization IV Beyond the Sword\Assets\Python\System\wx\_misc.pyc​
The one in warlords overwrites the one in vanilla if warlords is installed, meaning the exe prefer the files that is in warlords over those in pure vanilla.
(that statement is only valid for the files in the "python/system" folder)
I have Warlords installed as well, and I have the font file (up until 0.5.9.5.5 I never had a problem with this modmod). I can try deleting the UserSettings.

Edit: No, that didn't work either. I have a minidump, though.
 

Attachments

Last edited:
Edit: No, that didn't work either. I have a minidump, though.
Too bad that I have no idea what to do with a minidump file, perhaps MakoTech could, and would, help with that.
I'll try to help you to the extent of my abilities, to figure out what changed and how it could cause your crash.

Attached is v 0.5.9.5.5, in case you don't have it anymore.
 

Attachments

Too bad that I have no idea what to do with a minidump file, perhaps MakoTech could, and would, help with that.
I'll try to help you to the extent of my abilities, to figure out what changed and how it could cause your crash.

Attached is v 0.5.9.5.5, in case you don't have it anymore.
No, that's alright. I still have the old modmods. But I think I have to reinstall Civ4 (the GOG version this time) - right now I'm trying to find the instructions for setting up a proper shortcut with an ini file, I know it was somewhere here in the forum ...
 
User\Documents\My Games\Beyond the Sword\CivilizationIV.ini

; Specify a Mod folder (Mods\Mesopotamia), '0' for none
Mod = Caveman2Cosmos

Starting BtS will then automatically start Caveman2Cosmos by default.
Thank you, but that was not what I meant. There was a description where you first save your general settings under a name, create an ini file (which can save your mod settings) and reference that ini file in a shortcut. That way, you can still play other mods without losing your C2C settings.
 
Back
Top Bottom