New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert building from Focs to python #4815
Comments
Should be fixed in #4816 . Could you try other buildings? |
So far I worked on 4 buildings and plan to continue today. I'll submit my progress after #4814. PS. Keep in mind that it xmas in Europe and Geoff and Vezzra might be busy with it. Many people take this and next week as vacations. So maybe we could go ahead and merge these changes now, and get post review. |
Will be implemented in #4838 |
It looks like
I guess the condition should became |
Yes, and it was already implemented. |
I removed my comments and moved all missed items to the issue body. Currently, I am not sure what is missing, because all modules import buildings, and buildings have an error with 4 missed functions with a starlane in their name (they are in the list). |
@o01eg could you please look into this? Because of multiple missed methods, I'm blocked from the conversation. |
It's a condition |
Thank you, I have updated the issue with recent changes. Could you prioritize the following functions for the next update? They are used in building macros, and all modules fail on that.
|
An issue for requests and questions for the Building conversion. It should be closed when buildings are fully converted.
SetPlanetType type = Barren
andSetSpecies name = "SP_EXOBOT"
in https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/ART_FACTORY_PLANET.focs.txt#L25. I triedSetPlanetType(type = Barren)
andSetSpecies(name = "SP_EXOBOT")
and it did not work.CreateField type = "FLD_SUBSPACE_RIFT" size = 100
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/BLACK_HOLE_COLLAPSER.focs.txt#L17SetSpecialCapacity
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/COLONY_INDEPENDENCE_DECREE.focs.txt#L45ProducedByEmpire
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/CONC_CAMP.focs.txt#L89All
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/CONC_CAMP_REMNANT.focs.txt#L6Industry is not working in that context https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/CONC_CAMP_REMNANT.focs.txt#L29
Described
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/CULTURE_ARCHIVES.focs.txt#L7NumberOf
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/EVACUATION.focs.txt#L29HasStarline
PS: from is a reserved keyword in Python. https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/buildings.macros#L113Design name = "SM_EXP_OUTPOST"
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/EXPERIMENTOR_OUTPOST.focs.txt#L73AddStarlanes
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/EXPERIMENTOR_OUTPOST.focs.txt#L257RemoveStarlanes
https://github.com/freeorion/freeorion/blob/master/default/scripting/buildings/EXPERIMENTOR_OUTPOST.focs.txt#L75C23-L75C39The text was updated successfully, but these errors were encountered: