Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
A request for help with Python coding.

Hi, I am making a personal civ-mod for single-player gaming. It is based on K-Mod but I want to add some changes from Close to Home and also some stuff of my own making.
Unfortunately, my modding abilities are limited to messing with XML files and some of the things I want from CtH require Python expertise. Can anyone give me a hand? What I want is simply to transfer the respective code from CtH to my mod so that the respective XML tags are enabled. The functionality I want is very limited, almost exclusively related to leader traits: things like the Protective bonus for internal trade and extra barrage for the aggressive trait. Those cannot be implemented through XML alone.
Reply

I know some python but it seems that CtH defines the leader traits in an xml and the dll portion is in C?
Reply

CtH introduces new xml tags for leader traits. For some reason, I assumed they are coded in Python but what you are saying is more logical. In any case, I have extremely vague understanding of anything beyond XML and would like to lean on the expertise of people who know more smile
Reply

Funny, I'm currently on the same track.

I'm not even sure how to set up Visual Studio to be able to handle the CTH code or how to fetch the latter.
Reply

(July 29th, 2024, 13:16)civac2 Wrote: Funny, I'm currently on the same track.

I'm not even sure how to set up Visual Studio to be able to handle the CTH code or how to fetch the latter.

CtH code should all be at https://github.com/Charriu84/CloseToHome. I have been working with python a bit, but haven't dug into Civ4's code much past the XML yet. (And won't have a chance to for a bit.)
Reply

I downloaded the zip file for the code. But I'm currently unable to compile it. Still need the Civ4 SDK but I don't think that will be the only issue.
Reply

I did downloaded the CtH Code and took a quick look.
I don't think any (important) CtH Change is in Python ?
There seems to be a few things from the PB Mod and from the BUG/BUFFY Mod, so I think, you could copy the XML files and get most changes ?

Otherwise, Python is a relative easy and you can use a okay IDE with Visual Studio Code and a Python Application.
SDK for the .dll is something else.
Reply

I haven't been able to install any version of the Platform SDK. Currently on Windows 7 because my main laptop died.
Reply



Forum Jump: