Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
📚 A new project from the admin: Check out PictureBooks.io, an AI storyteller that lets you create personalized picture books for kids in seconds. Give it a try and let me know what you think!
How do you make a message display when you start the game, a la RTW? I looked at their code, but I can't make out which bits make the message and which bits will crash my game if I copy them in.
if (gc.getGame().getGameTurnYear() == gc.getDefineINT("START_YEAR") and not gc.getGame().isOption(GameOptionTypes.GAMEOPTION_ADVANCED_START)):
for iPlayer in range(gc.getMAX_PLAYERS()):
player = gc.getPlayer(iPlayer)
if (player.isAlive() and player.isHuman()):
popup = PyPopup.PyPopup(-1)
popup.setHeaderString(CyTranslator().getText("TXT_KEY_HEADERTEXT",()))
popup.setBodyString(CyTranslator().getText("TXT_KEY_BODYLTEXT",()))
popup.launch(True, PopupStates.POPUPSTATE_IMMEDIATE)
That will produce popups like these.
Took my a long time, to find out, how they work .
I don't know, how to get more complicated popups to work, didn't have the time to dig in deeper.
I suppose you could write whatever you want instead of TXT_KEY, but using TXT_KEY allows you to edit actual text in XML instead of messing with Python which would be the preferred way of doing things I think.
It's just a matter of creating a file called whatever.xml under <civ>\Mods\<modname>\Assets\XML\Text with the following format:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Civ4GameText xmlns="http://www.firaxis.com">
<TEXT>
<Tag>TXT_KEY_WHATEVER</Tag>
<English>Your text here</English>
<French>Your text here</French>
<German>Your text here</German>
<Italian>Your text here</Italian>
<Spanish>Your text here</Spanish>
</TEXT>
</Civ4GameText>
A bit off-topic I know, but I just spotted your reskinned Spanish knight in the Downloads database. Very nice. Can we use it in our RFC Europe Mod/mod for BTS? And would you interested in contributing other figures for
the mod on request?
Yes, sure, and I'll do more - I can't use Blender yet, but I'm trying to learn. At present I do all the stuff in the little tutorial on my sig. If you people have a python expert I'd be grateful if they could give a hand round the Falklands Mod
Yes, sure, and I'll do more - I can't use Blender yet, but I'm trying to learn. At present I do all the stuff in the little tutorial on my sig. If you people have a python expert I'd be grateful if they could give a hand round the Falklands Mod
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.