| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
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. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#82 |
|
Deity
|
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?![]() |
|
|
|
|
|
#83 |
|
Deity
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
|
|
|
|
|
|
#84 |
|
Deity
|
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?![]() |
|
|
|
|
|
#85 |
|
Political Activist
|
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. |
|
|
|
|
|
#86 |
|
Deity
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 |
|
|
|
|
|
#87 |
|
Golden Python
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()): |
|
|
|
|
|
#89 |
|
Golden Python
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 I hate this style of indentation. Why can't they just use tabs... Adjust the indentation yourself lol
__________________
Wonders and Projects, Traits and Promotions, Artifacts, Enhanced Great People XP Cap, Natural Wonders, World Builder, Unique Names, Repair Improvements Bad People, Hidden Promotions, Migrating Great People Last edited by platyping; Apr 17, 2012 at 07:52 PM. |
|
|
|
|
|
#90 |
|
Deity
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) |
|
|
|
|
|
#91 |
|
Golden Python
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 |
|
|
|
|
|
#92 |
|
Deity
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
|
|
|
|
|
|
#93 |
|
Golden Python
Join Date: Oct 2010
Location: Singapore
Posts: 2,044
|
iCultureBoost = pCity.getCulture(iPlayer)* iCulturePercentageBoost /100
1 extra bracket lol |
|
|
|
|
|
#94 |
|
Deity
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 |
|
|
|
|
|
#95 |
|
Golden Python
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
|
|
|
|
|
|
#97 |
|
Golden Python
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 |
|
|
|
|
|
#98 |
|
Deity
|
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?![]() Last edited by j_mie6; Apr 18, 2012 at 12:29 AM. |
|
|
|
|
|
#99 |
|
Prince
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 |
|
|
|
|
|
#100 |
|
Deity
|
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?![]() |
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|