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

Notices

Reply
 
Thread Tools
Old Apr 15, 2012, 08:00 PM   #81
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
Looks good but the wonders do not start in the game? they aren't there
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 15, 2012, 11:45 PM   #82
j_mie6
Deity
 
j_mie6's Avatar
 
Join Date: Dec 2009
Location: Swindon
Posts: 2,595
Images: 10
post the code in CvEventManager under on GameStart. make sure you have python exceptions enabled!

is it the new ones or the old ones that are not working?
__________________
My mods = Jamie's Rome Mod 1.3.2, No Global Warming Mod My units = Great Generals, Ninja!, Desert Marine, African Marines, Chinese Rocketeer My utilities: XML text cleaner, City Optimiser/Simulator

Yay! 2 A* Grades, 6 A Grades and 2 B Grades!

State Property, the new Forbidden Palace?

Jamie
j_mie6 is offline   Reply With Quote
Old Apr 16, 2012, 05:44 PM   #83
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
the original ones do not work, I did not edit a thing from what you gave me and I played a normal game, duel size, ancient era, and nothing showed up
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 17, 2012, 12:10 AM   #84
j_mie6
Deity
 
j_mie6's Avatar
 
Join Date: Dec 2009
Location: Swindon
Posts: 2,595
Images: 10
what about with exceptions... I tested everything and it all worked perfectly
__________________
My mods = Jamie's Rome Mod 1.3.2, No Global Warming Mod My units = Great Generals, Ninja!, Desert Marine, African Marines, Chinese Rocketeer My utilities: XML text cleaner, City Optimiser/Simulator

Yay! 2 A* Grades, 6 A Grades and 2 B Grades!

State Property, the new Forbidden Palace?

Jamie
j_mie6 is offline   Reply With Quote
Old Apr 17, 2012, 01:38 PM   #85
Voyhkah
Political Activist
 
Voyhkah's Avatar
 
Join Date: Apr 2009
Location: Earth
Posts: 1,444
Images: 17
Can you post a list of the natural wonders included in the mod.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway!
"I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo
Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower
Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more!
I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig.
Voyhkah is offline   Reply With Quote
Old Apr 17, 2012, 03:30 PM   #86
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
@ Voyhkah, the only three right now in are devil's head, Sugarloaf Mountain and Uluru

@J_mie 6 sorry I reinstalled civ and I had python exceptions before obhvoiusly and never realized they wouldnt be enabled after reinstalations, just didnt put 2 and 2 together

I get an error when I load (the unedited version of what you gave me ) a game
Attached Thumbnails
Click image for larger version

Name:	Civ4ScreenShot0005.JPG
Views:	19
Size:	80.0 KB
ID:	319264  
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 17, 2012, 05:48 PM   #87
platyping
Golden Python
 
platyping's Avatar
 
Join Date: Oct 2010
Location: Singapore
Posts: 2,044
Line 381
Code:
                                if (not pPlot.isWater() and not pPlot.isAdjacentToLand()) or (gc.getFeatureInfo(pPlot.getFeatureType()).isNaturalWonder()):
platyping is offline   Reply With Quote
Old Apr 17, 2012, 07:42 PM   #88
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
Thanks , now I get this error though
Attached Thumbnails
Click image for larger version

Name:	Civ4ScreenShot0007.JPG
Views:	9
Size:	75.4 KB
ID:	319291  
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 17, 2012, 07:47 PM   #89
platyping
Golden Python
 
platyping's Avatar
 
Join Date: Oct 2010
Location: Singapore
Posts: 2,044
Because if there isn't a Feature on the plot, then pPlot.getFeatureType() == None lol

Change to this:
Code:
		if iFeatureType != -1:
		        if gc.getFeatureInfo(iFeatureType).isNaturalWonder()): continue
		if not pPlot.isWater() and not pPlot.isAdjacentToLand(): continue
P.S.
I hate this style of indentation. Why can't they just use tabs...
Adjust the indentation yourself lol

Last edited by platyping; Apr 17, 2012 at 07:52 PM.
platyping is offline   Reply With Quote
Old Apr 17, 2012, 07:56 PM   #90
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
That worked very nice, I still got an error when i took my first turn but it didn't seem to do anything. All of the wonders spawned, I got messages when Enemy found one, when I found one I got a message and it showed movie, and when i put city next to it I got huge culture, it looks realy good

here the error (enemy found one when i took a turn, not sure if that matters since I didnt get errors when I found one. and I didnt get error next turn I took)
Attached Thumbnails
Click image for larger version

Name:	Civ4ScreenShot0009.JPG
Views:	13
Size:	83.5 KB
ID:	319294  
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 17, 2012, 08:01 PM   #91
platyping
Golden Python
 
platyping's Avatar
 
Join Date: Oct 2010
Location: Singapore
Posts: 2,044
Because you are stuffing a float value into where it can only take an integer value

Change that line to
Code:
 iCultureBoost = pCity.getCulture(iPlayer))* iCulturePercentageBoost /100
platyping is offline   Reply With Quote
Old Apr 17, 2012, 08:04 PM   #92
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
Do you mean to replace this line?

Code:
 #Create Effects for discoverers
                                                        for pPlayer in lPlayers:
                                                                iPlayer = pPlayer.getID()
                                                                for iCity in xrange(pPlayer.getNumCities()):
                                                                        pCity = pPlayer.getCity(iCity)
                                                                        iCultureBoost = (float(pCity.getCulture(iPlayer))/100) * iCulturePercentageBoost
                                                                        pCity.changeCulture(iPlayer, iCultureBoost, True)

                                                        return
Because if I replace just that line with what you get me i get a lot of errors when loading mod, dont even wanna try to start a game
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 17, 2012, 08:06 PM   #93
platyping
Golden Python
 
platyping's Avatar
 
Join Date: Oct 2010
Location: Singapore
Posts: 2,044
iCultureBoost = pCity.getCulture(iPlayer)* iCulturePercentageBoost /100

1 extra bracket lol
platyping is offline   Reply With Quote
Old Apr 17, 2012, 08:16 PM   #94
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
worked perfectly thanks!

Mod is now working really clean, everything works as it should, now i just am going to add more wonders, add improved terrain graphics, and movies and it should be released by the end of the week, thanks to Platyping for the python help
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 17, 2012, 08:20 PM   #95
platyping
Golden Python
 
platyping's Avatar
 
Join Date: Oct 2010
Location: Singapore
Posts: 2,044
You better try all those CityBuilt, CityAcquiredAndKept and CityLost codes as well

Then I can bill jamie the post sales maintainence fees
platyping is offline   Reply With Quote
Old Apr 17, 2012, 08:33 PM   #96
dacubz145
Deity
 
dacubz145's Avatar
 
Join Date: Jun 2010
Location: chicago
Posts: 3,097
Assuming this error would be under CityLost?

Gained culture and after it being razed by enemy, still there
Attached Thumbnails
Click image for larger version

Name:	Civ4ScreenShot0010.JPG
Views:	27
Size:	124.8 KB
ID:	319295  
__________________
All of my stuff here

Check out the new Travel Through Time Sub-Forum
dacubz145 is offline   Reply With Quote
Old Apr 17, 2012, 08:41 PM   #97
platyping
Golden Python
 
platyping's Avatar
 
Join Date: Oct 2010
Location: Singapore
Posts: 2,044
This you will have to wait for jamie lol
I only use CityRazed and CityAcquired codes, I dont use CityLost codes.

Anyway, looking at the codes, it appears that culture added is a fixed 4000 value.
You may want to adjust it according to game speed, so that it is not too high for quick or too low for marathon
platyping is offline   Reply With Quote
Old Apr 18, 2012, 12:25 AM   #98
j_mie6
Deity
 
j_mie6's Avatar
 
Join Date: Dec 2009
Location: Swindon
Posts: 2,595
Images: 10
what?! I wasn't getting those errros

well actually I didn't test the code where I forgot brackets or the feature type -1 (urg I feel so stupid... I would have fixed those in two seconds)

btw I don't like not using floats when doing percentages because the decimal point gets dropped. use the original line but encase everything after = with round(...)... I think I will do some improvements tonight...

and I did not think that culture thing would happen surely if a city is razed all cutlure is destroyed.... ahh well I will fix it all tonight (and I love that indenation style, keeps code smaller) though I believe it could be because I set bPlots to True...

edit: and yes I will add a modifier for that culture value for game speed.

I will reupload CvEventmanager with my changes tonight... Thanks plat for error finding in my absense.
__________________
My mods = Jamie's Rome Mod 1.3.2, No Global Warming Mod My units = Great Generals, Ninja!, Desert Marine, African Marines, Chinese Rocketeer My utilities: XML text cleaner, City Optimiser/Simulator

Yay! 2 A* Grades, 6 A Grades and 2 B Grades!

State Property, the new Forbidden Palace?

Jamie

Last edited by j_mie6; Apr 18, 2012 at 12:29 AM.
j_mie6 is offline   Reply With Quote
Old Apr 25, 2012, 07:03 AM   #99
hrochland
Prince
 
hrochland's Avatar
 
Join Date: Apr 2006
Location: Czech Kingdom
Posts: 1,539
Hi dacubz145
I have naturals wonders idea for some time.
I´m working on some natural locations what I can send you after finishing.
Can You for me to do a separate part that allows the discovery of the natural wonders on the map? For starters I'll suffice to my seven natural wonders appeared on the map. I use a system that will allow cities to work with them .
(special improvements)
nice day
Hroch
__________________
________________________________________
HROCHland
hrochland is offline   Reply With Quote
Old Apr 25, 2012, 11:38 AM   #100
j_mie6
Deity
 
j_mie6's Avatar
 
Join Date: Dec 2009
Location: Swindon
Posts: 2,595
Images: 10
there is discovery

when the first player sees a natural wonder they get a culture boost
__________________
My mods = Jamie's Rome Mod 1.3.2, No Global Warming Mod My units = Great Generals, Ninja!, Desert Marine, African Marines, Chinese Rocketeer My utilities: XML text cleaner, City Optimiser/Simulator

Yay! 2 A* Grades, 6 A Grades and 2 B Grades!

State Property, the new Forbidden Palace?

Jamie
j_mie6 is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Natural wonders development thread

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 10:45 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