couple sdk? problems

Ahwaric

Shrubbery-hugger
Joined
Nov 12, 2005
Messages
1,217
Location
Kraków, Poland
I try to finally add some SDK-requiring things to orbi.
However I have some problems:

1) Guild screen
I edited CvGameInterface.cpp and added:

Code:
	case CONTROL_GUILD_SCREEN:
and

Code:
	case CONTROL_GUILD_SCREEN:
		gDLL->getPythonIFace()->callFunction(PYScreensModule, "showCorporationScreen");
		break;
while compiling I get the following error:
CvGameInterface.cpp(1301) : error C2065: 'CONTROL_GUILD_SCREEN' : undeclared identifier
CvGameInterface.cpp(1301) : error C2051: case expression not constant
CvGameInterface.cpp(1717) : error C3861: 'CONTROL_GUILD_SCREEN': identifier not found, even with argument-dependent lookup
CvGameInterface.cpp(1717) : error C2051: case expression not constant

Any other files I should edit to make it work? I guess so, but no idea which one...

2)Year display
I miss it - now there is no way to check when the city/religion/guild was founded - dates do not show. I would like to get it back. Any idea where it was blocked? I am not even sure if it is sdk...

3)Display of the ranged attack strength. There is enough space in the interface, so I think it would be great to get it displayed. Any ideas how to add it?
 
Which compiler are you using? Can help a bit to know how to give even more detailed instructions on what you are capable of.

Anyway, I am pretty sure that every compiler offers the ability to search the entire project, so do a full project search CONTROL_CORPORATION_SCREEN and it'll show you exactly what you need to do, since I imagine you are just trying to use a new name to generate a replacement Corporation screen.


It might be a little bit easier though to create a new screen for Somnium instead, and just restore the corporation controls to what they were before the cardgame came along.
 
Thanks, after project searching I have found that I need to edit CvEnums.h and CyEnumsInterface.cpp. After that, it compiled fine.

I am still far from succes as after cloning and editing old corporation entries in python, I got python error on program start :(
Looks like I still have a lot to do...
Maybe your idea of moving somnium will do the trick.
 
Back
Top Bottom