Afforess's Modmods

Excellent catch. That's because I forgot that Zappara added 2 upgrades for the workboat, and I never updated the modmod for them. A plain old workboat should be able to build them, if you feel like "giving" yourself a few.

I will fix this for the next release.
Oh good, it's not me. I was beginning to go nuts over the fact that that I was missing them. Kinda like when I found out that I could only build chemical plants and oil refineries CAN ONLY be built in cities on rivers. That one confused me for a minute.
 
I didn't expect the Realistic Diplomacy to work so well :) In my previous game (which I had to abandon, because of the missing chopping buttons issue - I mentioned it in the Os79 storm fix thread) right after the start, I saw Celts sitting very close to me. Just to get an advantage in development, and to restrain their expansion towards best locations, I sent three javelliners which destroyed celtic infrastructure around AIs capital, stole a worker and put them afterwards on forrest hills one spot near Bibracte. Boudica was scared to do any moves, just producing spearman (she got 7 or 8....). The state of war lasted many many turns. Then, after signing peace, in relatively short period of time, Boudica forgot my bad behavior, and the relations went to -1, just because of the "bad first impression". It is amazing.
 
Oh good, it's not me. I was beginning to go nuts over the fact that that I was missing them. Kinda like when I found out that I could only build chemical plants and oil refineries CAN ONLY be built in cities on rivers. That one confused me for a minute.

I changed the way the game works so that it will show buildings that you can not build because of a lack of river or coast, instead of hiding it.

I didn't expect the Realistic Diplomacy to work so well :) In my previous game (which I had to abandon, because of the missing chopping buttons issue - I mentioned it in the Os79 storm fix thread) right after the start, I saw Celts sitting very close to me. Just to get an advantage in development, and to restrain their expansion towards best locations, I sent three javelliners which destroyed celtic infrastructure around AIs capital, stole a worker and put them afterwards on forrest hills one spot near Bibracte. Boudica was scared to do any moves, just producing spearman (she got 7 or 8....). The state of war lasted many many turns. Then, after signing peace, in relatively short period of time, Boudica forgot my bad behavior, and the relations went to -1, just because of the "bad first impression". It is amazing.

Glad to hear you liked it. You can see the effects in detail on the OP, if you're into math.
 
Narrowed down an issue with the WorldFair Event. Attached log, and posting a section from the python from both WorldFair.py and BugEventManager.py

WorldFair.py said:
#55 if self.oldcity <>[-1,-1]:
#56 otherplayer = gc.getPlayer(self.oldcity[0])
#57 othercity = otherplayer.getCity(self.oldcity[1])
#58 othercity.setNumRealBuilding(gc.getInfoTypeForString("BUILDING_WORLDSFAIR"),0)
#59 CyInterface().addMessage(self.oldcity[0],false,20,CyTranslator().getText("TXT_KEY_CIRCUS_LOST",(othercity.getName (),othercity.getName ())),'',0,'Art/Interface/Buttons/General/warning_popup.dds',ColorTypes(gc.getInfoTypeForString("COLOR_RED")), othercity.getX(), othercity.getY(), True,True)
#60 self.oldcity = [iPlayer,iCity]
BugEventManager.py said:
#356 def _handleDefaultEvent(self, eventType, argsList):
#357 if self.EventHandlerMap.has_key(eventType):
#358 for eventHandler in self.EventHandlerMap[eventType]:
#359 try:
#360 eventHandler(argsList)
#361 except:
#362 BugUtil.trace("Error in %s event handler %s", eventType, BugUtil.escapeXml(eventHandler))
 

Attachments

Narrowed down an issue with the WorldFair Event. Attached log, and posting a section from the python from both WorldFair.py and BugEventManager.py

Yeah, it doesn't work. I need to figure out how to save global variables in modular python, or mod it in the SDK. I forgot to disable it in the installer. The easiest fix is to open the WorldFair.py and change the year line to something really high, like 9999, so it never appears, and then remove all existing world fairs via the worldbuilder.
 
@Afforess - should I look at your WorldFair python to see if I can fix it. None of my test games have gotten that far.

Go ahead, I know what the problem is, the city location is saved in a global variable initialized at gamestart, but I don't know how to do global variables with modular python. If you could get it to work, I would be grateful.
 
Try the following. You had the variable defined to the WorldFair event not globaly. I just made the WorldFair a real global object so now the variable should also be global.
 
Can't believe I never saw this before and I've been playing RoM for a bit now...

For MP purposes, I'm sticking with 2.71 until a new, stable version of RoM is available and won't cause OOS every couple turns ;). Is it possible to install two different versions of RoM (2.71 for mp and 2.8 for SP) and use this modmod?
 
Can't believe I never saw this before and I've been playing RoM for a bit now...

For MP purposes, I'm sticking with 2.71 until a new, stable version of RoM is available and won't cause OOS every couple turns ;). Is it possible to install two different versions of RoM (2.71 for mp and 2.8 for SP) and use this modmod?

Sure, just rename the 2.71 version to "Rise of Mankind(MP)", then install 2.8 v4ersion.

Then when you are ready to play MP, just rename the 2.8 to "Rise of Mankind(2.8)" and erase "(MP)" from 2.71 version and play.

Repeat the above for the reverse.
 
Sure, just rename the 2.71 version to "Rise of Mankind(MP)", then install 2.8 v4ersion.

Then when you are ready to play MP, just rename the 2.8 to "Rise of Mankind(2.8)" and erase "(MP)" from 2.71 version and play.

Repeat the above for the reverse.

Yes, I have to do this a lot, I have devolper editions of Rom, clean copies, certain versions, a version I am playing with, etc... See for yourself:
Spoiler :

My%20Mod%27s%20Folder.png



And yes, all those names make sense, to me. And that's what's important. But if you think that's bad, you should see my archive of old source code... Or my External HDD, it has a folder labeled "junk" that's over 30gb... ;)
 
Try the following. You had the variable defined to the WorldFair event not globaly. I just made the WorldFair a real global object so now the variable should also be global.
Nope, still gives the same attribute error:
PythonErr.log said:
Traceback (most recent call last):
File "BugEventManager", line 360, in _handleDefaultEvent
File "WorldFair", line 59, in onBeginGameTurn
AttributeError: WorldFair instance has no attribute 'oldcity'
I think it has something to do with the 'oldcity' thing. I've been looking at what controls those and I think it has something to do with the iCity tag. If you could manipulate that tag, you shouldn't get that error. I'm trying to tinker with file to figure out how to get the file to recognize the previous city as 'oldcity'. I think it may have something to do with the BugEventManager.py file.
 
Nope, still gives the same attribute error:

I think it has something to do with the 'oldcity' thing. I've been looking at what controls those and I think it has something to do with the iCity tag. If you could manipulate that tag, you shouldn't get that error. I'm trying to tinker with file to figure out how to get the file to recognize the previous city as 'oldcity'. I think it may have something to do with the BugEventManager.py file.

Silly me, I had forgotten to intialise the 'oldcity' variable in the definition of the class. Another simple mistake I made last week.
 
Silly me, I had forgotten to intialise the 'oldcity' variable in the definition of the class. Another simple mistake I made last week.
Looks good, I'll try it later. Now that I'm starting to learn python it looks like algebra. To define variables or "attributes" you use the same formula ie: if n = x then x + y = z, etc. I'll let you know how it works out after I try it in a moment.

Edit: Yep, works like a charm. Huzzah! No more duplicate, triplicate, etc. World Fairs :D
 
Yes, I have to do this a lot, I have devolper editions of Rom, clean copies, certain versions, a version I am playing with, etc... See for yourself:
Spoiler :

My%20Mod%27s%20Folder.png



And yes, all those names make sense, to me. And that's what's important. But if you think that's bad, you should see my archive of old source code... Or my External HDD, it has a folder labeled "junk" that's over 30gb... ;)

Lol yeah sounds familiar to me.

Btw the screenie of your "libraries" shows a folder "Afforess's Modmod's". I suppose the correct spelling would be simply "Afforess' Modmods", right? :scan: (But don't be upset, surveys show most americans are unable to do this right, even on commercial plates...^^)

Spoiler :
Kids+Eat+Free.JPG
 
DRJ,

You are aware Americans is a proper name, and therefore needs to be capitalized, right? See, that'd be sorta like me using germans. Sorta insulting, right? And you wouldn't want to insult people and make them very angry with constant asinine behavior, right?

By the way, would you mind providing links to these surveys? I'd be interested in the science and demographics used to verify why you felt compelled to separate the Americans from the rest of the world with your comment.

Edit: I noticed you already edited your message, so you've already scanned over it for errors on Nov 18, 2009 at 07:36 AM...so please don't try to correct the error and claim you never made it. Or saw anything wrong with not capitalizing a proper name. Or miss the obvious hypocrisy. Etc...
 
Lol yeah sounds familiar to me.

Btw the screenie of your "libraries" shows a folder "Afforess's Modmod's". I suppose the correct spelling would be simply "Afforess' Modmods", right? :scan: (But don't be upset, surveys show most americans are unable to do this right, even on commercial plates...^^)

Spoiler :
Kids+Eat+Free.JPG

DRJ,

You are aware Americans is a proper name, and therefore needs to be capitalized, right? See, that'd be sorta like me using germans. Sorta insulting, right? And you wouldn't want to insult people and make them very angry with constant asinine behavior, right?

By the way, would you mind providing links to these surveys? I'd be interested in the science and demographics used to verify why you felt compelled to separate the Americans from the rest of the world with your comment.

Edit: I noticed you already edited your message, so you've already scanned over it for errors on Nov 18, 2009 at 07:36 AM...so please don't try to correct the error and claim you never made it. Or saw anything wrong with not capitalizing a proper name. Or miss the obvious hypocrisy. Etc...

Who Cares? DRJ is a self-proclaimed Hedonist. Terribly ironic, considering his condemnation of Nazi's.

Regardless, this kind of drivel belongs in the Adolf Hitler thread, not here. Please stay on topic.
 
Back
Top Bottom