Everything you said accurate but the problem is that I don't necessarily want the pCity, it's the CvPlot selected (concerned) when the popup is launched that I want.
I don't know the command to get this CvPlot. I've been looking into the function 'OnOkClicked(...)' for something similar and...
I have followed your 'debugging' post and VS says that the error comes from the 2nd of the following lines :
CvCity* pCity = GET_PLAYER(GC.getGameINLINE().getActivePlayer()).getCity(info.getData1());
int x = pCity->getX();
I honestly am not sure how 'data1' is being generated so here is...
back from a month of 55 hours of work per week
I'm in the process of debugging this new mod and I'm wondering how to get the CvPlot where the user in WB is modifying the amount of bonus resources (I'll just start with that for now) but from the CvDLLButtonPopup::OnOkClicked(...) function...
Also I need to call my ISRM.py (only once) from somewhere python object in the game. Is there a suggested place to put it ?
Also :) I need to call a function in my ISRM object declared above from the SDK with the CvPlot concerned in 'args'. I saw a function call that resembled...
Back later than I thought...
I'm slowly editing the CvPlot::setBonusType() function and I'm at the point where I want to launch a popup (through Python, in WB) in which the user will enter an integer representing the amount of resources he/she wants on the plot.
Not knowing how to launch a...
Thanks for all your input :)
I thought of something else after reading your comments and being naturally hard-headed I ignored all that you have said and tried something else :)
I found a file in the Python folder of the Vanilla version named 'CvWBPopups.py'. On examination of this file I...
How do I do that from the SDK ? I can launch a popup with text from python but not to the point of launching one with a 'textfield' that would require an integer.
Thanks for the tip about if WB is open :)
There must be a way to do this by hand...
I fiddled a bit into the python file for WB (CvWBDesc.py) and...I'm not sure what to do with it. I wanted to generate a popup when a strategic resource would be added. I saw the popup while loading a game but it disappeared before I could click 'ok'...
I hate python. I started out with Java then C++. I'm used to a serious programing language. An indentation sensitive language is a joke to me sorry.
I will try your links and will still hope that there is another way out
Thank you for your answer
hi, it's been a while since I have modded Civ4 so I might of forgotten some things over time.
I've been playing Civ5 for a month and I want to reproduce it's Strategic Resources (SR) 'management' but in Civ4.
Now so far, I have edited the CvPlot and CyPlot classes for accessors, modifiers...
In the following code sections the '...' indicate only that the code between the above and following line are not important for this discussion. I also assume that you have already created an unit that I have chosen to call UNIT_CHEVALIER that represents your unique unit.
Make sure that your...
As anyone done this ? It's one of the features of CiV I like but modding CiV is boring compared to Civ4. I've looked around but only saw ppl doing unit fuel mods.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.