• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

[PYTHONCOMP] Civ4lerts: Alert messages about in game events

Officer Reene said:
@Spocko
I'll PM u if I have any problems ....

....and report my progress...

One question... does your events "pop up" like the DR in the events log?
(I just want to know where to look for the changes :p )

thanks for all your help and patience with this noob modder! ;)
Glad to help - I'm only an intermediate modder, so I can learn by helping.

I've never paid attention to the events log... but during gameplay the Icons popup along the edges of the camera view, centered over the city that pertains to the message.

I'll check into Jeckel's suggestions for uploading files so I will be better prepared to help out, if necessary. I was once able to upload files with no difficulty, but lately I've had no success using at least two different methods for creating a zip file on my drive that is acceptable to this Forum.

No problem, I'll figure out something. Good luck!
Spocko
 
mikezang said:
Where can I find file Art/Interface/mainscreen/cityscreen/angry_citizen.dds?

Those are part of the game, so they should be wherever you installed the game, typically something like C:\Program Files\Firaxis\Sid Meier's Civilization IV\Assets\...
 
Spocko said:
Glad to help - I'm only an intermediate modder, so I can learn by helping.

I've never paid attention to the events log... but during gameplay the Icons popup along the edges of the camera view, centered over the city that pertains to the message.
Spocko

No.. .thank you for your help! :D

I should be finished with my new modding my Thurs (hopefully:mischief: )

then I should be able to add it and test it by Fri

but now I know where to look :p


Spocko said:
No problem, I'll figure out something. Good luck!
Spocko

thx for all your help again! I'll keep you posted ;)
 
jonpfl said:
Will this work in mplayer now?

One of the users of my mod had helped me identify a bug with team multiplayer for the HOF version of this mod. I have provided a choice of tentative patches for my mod in my thread. I would appreciate it if one of you would test them out, as I only have a single PC.

If anyone would like to separate out the component, that's fine with me.
 
Gaurav said:
One of the users of my mod had helped me identify a bug with team multiplayer for the HOF version of this mod. I have provided a choice of tentative patches for my mod in my thread. I would appreciate it if one of you would test them out, as I only have a single PC.

If anyone would like to separate out the component, that's fine with me.

When you get a finished product, please let us know

Thx
jonpfl
 
Here's a quick and dirty version that appears to work in Warlords. Note that this will not work with Civ4 Classic. This is just a short term solution that always looks at the Warlords installation directory instead of the Classic installation directory. So far it doesn't seem like any other changes are required.

Um, what the heck? The forum's file manager won't let me attach a ZIP file. This always worked before. Anyone got any suggestions?

Civ4lerts Warlords Beta
 
Dr Elmer Jiggle said:
Here's a quick and dirty version that appears to work in Warlords. Note that this will not work with Civ4 Classic. This is just a short term solution that always looks at the Warlords installation directory instead of the Classic installation directory. So far it doesn't seem like any other changes are required.

Um, what the heck? The forum's file manager won't let me attach a ZIP file. This always worked before. Anyone got any suggestions?

So this works in multiplayer now?
 
jonpfl said:
So this works in multiplayer now?

I doubt it. It works with Warlords. As far as multiplayer goes, I only play single player, so someone is going to need to tell me what's wrong and/or how to fix it. At this point all I know is that it supposedly doesn't work, but I have no idea what to do to fix it.
 
Dr Elmer Jiggle said:
Here's a quick and dirty version that appears to work in Warlords. Note that this will not work with Civ4 Classic. This is just a short term solution that always looks at the Warlords installation directory instead of the Classic installation directory. So far it doesn't seem like any other changes are required.

Um, what the heck? The forum's file manager won't let me attach a ZIP file. This always worked before. Anyone got any suggestions?

You need to post the file through the new "File Database" and then post the link to the "File Database" upload.
 
A more official update is now linked from the thread's first post. This one should work with both Warlords and Classic. Of course, you need to install them separately (since they reside in different directories), but the same mod files should work without change with either version of Civ4.

Multiplayer is still an oustanding issue.
 
auldian said:
Hi,
I'm hoping to see this mod work on my games. I play single-player vanilla 1.61. I've seen zero alerts from this in hours of play. I've checked the location I unzipped the files & folders per the instructions:The civ4alert files seem present as well as their folders.
Is there a switch in the Civilizationiv.ini I need to enable as well, to permit this to run?
Thank you :)
[edit: Just as additional info, Civ is installed on my F: partition, not my system partition, if it matters.]


I too had this problem, couldn’t get alerts to work in either 1.61 or Warlords. They would work occasionally after I made a small change and tested with a quick game using the "Play Now" option. But when I loaded a "Custom Game" with my preferred settings it wouldn’t work anymore.

After days of frustration and playing around I finally made the connection, when playing a Custom Game I always had 'Lock Modified Assets' checked to remove the temptation to peek at the map. Unchecking this option fixed my problem and it works great now, even if it does require a little more willpower :)

Great mod, keep up the good work!
 
Should the line "load_module Civ4lerts" be in my PythonErr2.log file if it loaded correctly? It is not mentioned at all in that file. It doesn't ever show Alerts, and I don't know why.....

Any help is appreciated.
 
wotan321 said:
Should the line "load_module Civ4lerts" be in my PythonErr2.log file if it loaded correctly?

Yes. The last several lines of my PythonErr2.log are

Code:
load_module Civ4lerts
load_module CvConfigParser
load_module ConfigParser
load_module CvPath
load_module _winreg
load_module CvModName
CvModName import failed
PY:OnInit
load_module CvAppInterface

Do you have any of those listed? Are there any actual errors listed in PythonErr2.log or PythonErr.log?

Note that "CvModName import failed" is expected. It's not a "real" error.

Are you using this with Warlords or Civ4 Classic? What is the full path to the folder where your Civ4lerts.py file is located (for example, mine is C:\Documents and Settings\Gill\My Documents\My Games\Warlords\CustomAssets\python)?
 
# City will grow on the next turn
# City will become unhealthy on the next turn
# City will become angry on the next turn

Does it warn even if the city is set to not expand?
 
Thank you Dr. Jiggle for your help.

I am attempting to combine Paasky's WorldWar2:SF&B mod into your Civ4Alerts component, and though I have his events working, the Alerts are not. I am a python newbie, so I appreciate your patience.

To answer your question, no, none of that shows in my PythonErr2.log

Attached is the cobbled effort.... if you have time to look it over.

Again, thanks.
 
Hey there, great work getting this up to warlords speed.
Can we get some Merge instructions please. I am on one mod team and working on my own mod as well and would like to add this into the mix but the install instructions are missing.

The reason I ask, is that I have it installed and I have merged the files needed. I am seeing Civ4Alerts.py load in logs but I am not seeing the event's firing. I have the ini file in the root of the mod directory
/mods/[mod name]/root
And have both left the civ4alerts.ini file and added the necessary tags to my mods .ini file
I have also tried changing the civ4alerts.ini hardcode in the python file line to my own mods .ini file with the updated tags with no luck.

I would love to get my mod out in .05 form this week and would love to include this mod, any help would be wonderful!
Thanks
 
Back
Top Bottom