Simple Python Things

I remember something like that too...just checked...a few pages...it's on page 18, at the bottom, nearly 2 years ago :D (click). How time flies!

@building: The circus itself is a free building, check the code ;).

@"mini GA": That would be a bit ugly, since it would require additional checks after removing the wonder.
The only temporary thing which can easily be done per city is changing :), everything else would be more complicated.
 
Three Requests, all simple
1)Anyway you can make this longer to fit 60 civs?
2)Can you make this have notifications? so when you capture an enemy unit you know why you have a random battleship that came out of no where?
3)Lastly can you make a sevopedia page for me? It would seam very seimple just a one line change probably. It would just be a simple copy of the building one, except for the building to be in that page it would need to be triggered via xml (something like <extrasevopage>1</extrasevopage>)
 
1) The code should automatically adjust the size to the maximum number of players, if I see that right.

2) platyping was faster :D.

3) not sure if I understand you.
You want another building separation, based on a special XML tag?
I don't really have any experience with the sevopedia, but I can tag a look at that.
 
1) The code should automatically adjust the size to the maximum number of players, if I see that right.

2) platyping was faster :D.

3) not sure if I understand you.
You want another building separation, based on a special XML tag?
I don't really have any experience with the sevopedia, but I can tag a look at that.

1)It does not, once you get past a certain number of civs (probably something around 35), any players that are on the top of the scores just disapear. Also it definatly doesnt, ebcause even if your playing with 3 civs, it has the full scroll.

2) Ill ask him about that

3) What i want is something like the wonders or national wonders page. It knows when you have

<iMaxGlobalInstances>1</iMaxGlobalInstances>
in the xml to put that into the wonders page. I want another page, that there is a new xml tag, that makes it go to a new page. I didnt think it would be that much work since it wouldnt be creating anything, just copying the already made page and triggering it via xml.
 
1) :hmm: I'll check that.

2) Just look at the last page of the thread ;).

3) I'll take a look at it.
For the difficulty...you're right, "cloning" something shouldn't be too problematic, but I'll have to see where to make these changes.
Should work, but might need some time, we'll see.
 
1) :hmm: I'll check that.

2) Just look at the last page of the thread ;).

3) I'll take a look at it.
For the difficulty...you're right, "cloning" something shouldn't be too problematic, but I'll have to see where to make these changes.
Should work, but might need some time, we'll see.

1) I remember I actually had this problem before when trying to mod GEM, you told me what to switch via python, i think you didnt have civ installed or something, there was a reason you couldnt and you tried to explain it to me and well im not very good at python:eek:

2)will doo

3) Thanks:goodjob:, i really need it for my mod
 
:hmm: I can confirm the bug in the scroll panel.
I'm currently checking what exactly causes it. Seems we've already been on the right track in the other thread, but the obvious tests don't fix it :hmm:.
Will need some time more.

Alright thanks man, pretty bad at python but anyway i can help just comment
 
Okay, found the problem. Sadly not a Python issue, but rather an engine limitation :sad:.
As explanation: The score list is placed on a scroll panel. This panel has ALWAYS the same size like the screen, only the size of the scrollable area can be manipulated.
And on 1024*768, the size of the screen only allows to display 36 civs.

To change this behaviour, someone would have to manipulate the scroll panel itself.
But a) that's an enum, defined somewhere in the SDK, so the definition is probably also somewhere in the SDK (if not even in the .exe, what I rather suspect) and b) other displays probably also use it, so it would be a bad idea to change it, so it would rather require a new panel.

tl;dr: Not an issue with the scrollable score board, but an issue with the engine, which can't be fixed with Python (AFAIK).
 
3)Lastly can you make a sevopedia page for me? It would seam very seimple just a one line change probably. It would just be a simple copy of the building one, except for the building to be in that page it would need to be triggered via xml (something like <extrasevopage>1</extrasevopage>)

Okay, I think I understand now how the screens work, and added another one.
Not yet totally working, because I forgot a modification, but that needs only a few minutes.

...so, what exactly do you want?
Separating the normal buildings from your new buildings will need a modification, which can't be made generic, which has to be specialized for each case.

Another thing: In case someone is adding new XML tags in the SDK, he/she also has to expose them to Python, else this will not work.
 
Okay, I think I understand now how the screens work, and added another one.
Not yet totally working, because I forgot a modification, but that needs only a few minutes.

...so, what exactly do you want?
Separating the normal buildings from your new buildings will need a modification, which can't be made generic, which has to be specialized for each case.

Another thing: In case someone is adding new XML tags in the SDK, he/she also has to expose them to Python, else this will not work.

Just a new page for buildings, that can be triggered in xml. ive never messed with the xml schema, but if it requieres sdk im assuming it requires dll, which i already have one and not beijng able to mod it myself would be a problem. so could you possibly have it be triggered by an xml that is already in buildingsinfo? if you can then ill look and pick pick one out, actuallythinking about it, maybe can all the techs triggered by the same tech be the reason why the buildings are on that page? thanks:goodjob:
 
Just a new page for buildings, that can be triggered in xml. ive never messed with the xml schema, but if it requieres sdk im assuming it requires dll, which i already have one and not beijng able to mod it myself would be a problem.

New XML tags will definitely require SDK work, else they'll not have any effect.

so could you possibly have it be triggered by an xml that is already in buildingsinfo?

That's what I currently have.
I arbitrarily separated all buildings which provide :) into an extra page.
But it's not so that you can write the XML tag in the Python code. Every tag has a special python command in the API, which has to be added instead.

if you can then ill look and pick pick one out, actuallythinking about it, maybe can all the techs triggered by the same tech be the reason why the buildings are on that page? thanks:goodjob:

All buildings, which need the same tech? That's doable :)

Will do it tomorrow (because now my bed is calling :)).
 
Okay...you hopefully don't have any custom code in your sevopedia yet, else it will be not that easy to merge.
3 files are affected, the new code is labeled with "another special screen".
There are 7 changes in CvPediaMain, 2 changes in CvPediaBuilding and 1 change in CvPediaEnums.
The one in enums is probably the most confusing: The numbers in there show, in which order the screens will appear. If you want to have the new buildings screen in there, it means you'll have to change all the following numbers, because you insert one screen in between.
Else not much has to be changed, besides at 3 places the tech. I've currently set it to TECH_MASS_MEDIA, so you can see a building, 2 wonders and a corp in the new part of the screen.

Hope applying it will work well :scared:.
 

Attachments

Okay...you hopefully don't have any custom code in your sevopedia yet, else it will be not that easy to merge.
3 files are affected, the new code is labeled with "another special screen".
There are 7 changes in CvPediaMain, 2 changes in CvPediaBuilding and 1 change in CvPediaEnums.
The one in enums is probably the most confusing: The numbers in there show, in which order the screens will appear. If you want to have the new buildings screen in there, it means you'll have to change all the following numbers, because you insert one screen in between.
Else not much has to be changed, besides at 3 places the tech. I've currently set it to TECH_MASS_MEDIA, so you can see a building, 2 wonders and a corp in the new part of the screen.

Hope applying it will work well :scared:.

Thanks man really appreciate it, ill try it tonight or 2moro since I've taken a step back last couple days, but plan to come back into the game;)

Applying it shouldn't be to hard, I apply platypings with no problem every time, so shouldn't be to big of a prob plus my mod has little to python
 
Do you want scripted war declarations?
mmhh...I guess also scenario dependent (if I read that right in your thread), yes?
mmhh...needs scenario file (if), date, text, and both opponents.
mmhh...that could take a bit longer, because it needs testing.
 
Do you want scripted war declarations?
mmhh...I guess also scenario dependent (if I read that right in your thread), yes?
mmhh...needs scenario file (if), date, text, and both opponents.
mmhh...that could take a bit longer, because it needs testing.

that is all correct, if you read the thread you also do know we are still working on the scenario, so my question is can we edit the scenario after? If not i think we should wait untill the scnarios complete
 
Back
Top Bottom