Requesting following features

I actually have a clever question: Should the Pictic ability be limited to the Bristish Isles? North West Europe? Because it helps if the code only needs to check a limited portion of the game map.

Give me some coordinates!
 
do you think you can do gaul as well though?

also what about the forest chop!:lol:
 
@ post 61

That is a good point! as soon as the picts leave england they would have better food sources (check out the screenshot of their starting position :lol:)

I say the british isles only (possibly northern france as they do seem to like there in the mod :D)

Do you need the co-ordinates of britain?
 
I'll look into other Civs later. I'm all about the Picts right now.

Yeah, give me the coordinates. Bottom left tile and top right tile, please.
 
This may take a bit of figuring... Please hold...
 
Enable cheat mode and hover the tiles in question while holding shift key. The tile coordinates are shown in the lower left part of the game interface.
 
Amm... NOT being an experienced modder myself, but a C++ programmer, which I've noticed you need.

If you need some minor SDK programming, I don't mind doing it.
I suggest exposing some missing events or methods to the python API (to CyPlot, for example). Minimum work for me, maximum flexibility for you :D

I can't even get confirmation on that the canDoCivic() call is happening, so I guess I'm missing something here. :p

You should set USE_CAN_DO_CIVIC_CALLBACK in PythonCallbackDefines.xml to 1.
 
I suggest exposing some missing events or methods to the python API (to CyPlot, for example). Minimum work for me, maximum flexibility for you :D
I'm pretty much done with the improvements solution for the Picts at this point, but I guess that if tile yields could be changed properly with Python by including a custom DLL file to the mod, then I'd say we should go for it... I can wait.

But ask j_mie6 before doing any actual work!

You should set USE_CAN_DO_CIVIC_CALLBACK in PythonCallbackDefines.xml to 1.
j_mie6: Are you following?
 
Asaf, actually, if you could expose some stuff from the SDK to Python I would probably be able to do a great many of j_mie6's requests... Lets see - something along these lines would be very helpful:

CyCity.setExtraUnhappiness()
CyCity.setRevoltChance()
CyCity.setDomainExtraYield()
CyPlayer.setCityExtraDefense()
CyPlayer.changeWarWearinessPercent()
CyPlayer.setMaintenanceDiscount()

...or something. :p I actually have no idea what is currently available in the C++ and what would have to be written from scratch. :rolleyes:
 
x=0,y=40 is the bottom left (there is land directly above it at 0,43 this is Ireland)

now there are two options

Britain only - x=10,y=51
Britain and Norway 'Blob' - x=19,y=51

I'm not sure which I want

Btw the carthagian works now!
 
Map tiles are actually counted bottom-up, so tile 0/0 is the lower left corner of the map. But you don't actually have to count individual tiles to get the coordinates. See above.

Try again? And I'll make it really easy for you to tweak the coordinates once my work is done. :goodjob: So practically any valid coordinates should do for testing purposes - even if it means that the code will process the whole map... :rolleyes:
 
sorry was Butchering an octopus :D

I don't really understand the convo...
 
I worked it out in 2 mins lol anyway I think I will take Britain only...

ANYWAY I don't really know what asaf was saying elaborate?
 
I'm not sure what you don't understand...

1. enable cheat mode in CivilizationIV.ini
2. start your scenario
3. decide on a rectangular map area that is the area of effect for the Pictic ability
4. hover the lower left corner of this map area with the mouse arrow while holding down the shift key
5. repeat #4 with the upper right corder of the area
6. write down the map coordinates displayed in the information field in the lower left corner of the game interface while looking them up

So what I need are the map coordinates of two map tiles, like 23/34 and 45/56, or whatever. Either that or I need to know how many tiles the map spans on the X and Y axis respectively. (Don't count! Look it up in the WBS.)
 
I didn't count I used my senario file... The two co-ordinates are:

x=0,y=40
x=10,y=51

I don't understand the asaf convo :lol:
 
I worked it out in 2 mins lol anyway I think I will take Britain only...
No you didn't. See above. :rolleyes:

ANYWAY I don't really know what asaf was saying elaborate?
The CivIV Python is basically mirroring the C++ code in the SDK. But not everything is available for the Python modder - tons of things seem not to have been "exposed" to Python. But this is something that obviously can be done in the SDK - add functions, methods and constants to the Python API. Which opens up new possibilities not available before.

BTW - did you get the Greek ability working yet? Because Asaf explained that you need to enable a Python callback in the XML. Look if you can't find the file and the entry for canDoCivic. Please?
 
I don't know what convo means. :confused:
 
Ok, What I did was decided in game and put a battleship where I wanted it and then opened a new WBS and looked for the battleships :D

Have not checked the XML... What does the Callback do?

Convo is short for Conversation
 
Have not checked the XML... What does the Callback do?
It runs the custom script I supplied. Just set it to 1 as Asaf said. Because it seems to be disabled by default to avoid endless callbacks with no actual code to run.

And thanks of the coords.
 
This is what the tile settings look like in the code:
Code:
iBritainTL = Map.plotNum(0, 40)
iBritainBR = Map.plotNum(10, 51)
Easy enough to edit, eh? :D
 
Top Bottom