Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - SDK/Python

Notices

Reply
 
Thread Tools
Old Aug 30, 2012, 05:46 PM   #1
Alrik2002
Warlord
 
Join Date: May 2012
Location: Berlin, Germany
Posts: 187
Help with some error messages needed

Hi,

I´ve an error messages which I can´t erase.
It only shows up at the beginning of the first game I start when I´ve just loaded the game. When I go back to the Main Menu and start a new game, it doesn´t show up again.

It refers to line 4 of the following code
Code:
## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005
##
## Implementaion of miscellaneous game functions

import CvUtil
from CvPythonExtensions import *
import CvEventInterface
import PyHelpers
import Immigration

# for C++ compatibility
false=False
true=True

# globals
gc = CyGlobalContext()
PyPlayer = PyHelpers.PyPlayer
PyInfo = PyHelpers.PyInfo
PyCity = PyHelpers.PyCity
PyGame = PyHelpers.PyGame

class AlriksMultiModGameUtils:
	"Miscellaneous game functions"
	def __init__(self): 
		pass
	
	def isVictoryTest(self):
		if ( gc.getGame().getElapsedGameTurns() > 10 ):
			return True
		else:
			return False
Perhaps someone can give me a hint where the problem could be, since I´m really clueless.

Thank you very much.
Attached Thumbnails
Click image for larger version

Name:	Civ4ScreenShot0040.JPG
Views:	19
Size:	141.7 KB
ID:	330232  

Last edited by Alrik2002; Aug 31, 2012 at 12:23 PM.
Alrik2002 is offline   Reply With Quote
Old Sep 02, 2012, 08:40 AM   #2
Alrik2002
Warlord
 
Join Date: May 2012
Location: Berlin, Germany
Posts: 187
problem solved

Last edited by Alrik2002; Sep 02, 2012 at 08:49 AM.
Alrik2002 is offline   Reply With Quote
Old Sep 02, 2012, 11:56 AM   #3
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,997
Images: 51
And how did you solve it?
Might be that someone will at some point have the same problem, so it would be useful to know the source and the solution.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Sep 03, 2012, 03:07 PM   #4
Alrik2002
Warlord
 
Join Date: May 2012
Location: Berlin, Germany
Posts: 187
A part of the code in the file was commented out incorrect. When I corrected it, the error didn´t show up again. But I´ve no idea why it has referred to line 4 of the code above.
Alrik2002 is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - SDK/Python > [PYTHON] Help with some error messages needed

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 06:32 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR