(greyTiger's) Courthouse Judge Mod (V2)

greyTiger

Warlord
Joined
Oct 7, 2010
Messages
198
Location
Australia
For those looking for additional options in generating happiness for your empire.

1. Courthouse can now be built in all cities. +1 Happiness, 1 Judge Specialist. Now available from Writing technology.
2. New Judge Specialist: +1 Happiness.
3. New National Wonder: Supreme Court: +2 Happiness, +2 Culture, 2 Judge Specialists.
4. Modified Happiness tooltip on top panel to show Happiness from Specialists.

Note: This mod changes CityView.lua and TopPanel.lua so it probably wont work with any mods that change these files. If you want to merge the files so you can play multiple mods all of my code changes start with "-- begin: greyTiger" and end with "-- end"

Mod now available in browser InGame.
All feedback welcome. Enjoy :)

Keep an eye out for my other mod (greyTiger's) Horticulture Mod. Version 3 should be available soon.
 
Thanks.

I think my next version of this mod will include a new technology, something like "Code of Laws" which I think was in Civ4 (or maybe it was Civ2) which will unlock the Courthouse and Supreme Court buildings.

The concept of a great person linked to this specialist is something I considered, but perhaps the ability to gain free Social Policies would be a bit overpowered. If perhaps there was some way to perform a Culture bomb that affected the culture score instead of empire borders perhaps.
 
Version 2 now available:

1. New Tech: Alphabet. Leads to Writing
2. Writing now requires Alphabet, not Pottery.
3. New Tech: Code of Laws. Requires Philosophy. Unlocks Courthouse and Supreme Court.

If anyone has ideas for something to be unlocked as part of Alphabet then please feel free to discuss them here :)
 
Tech trading :)

More seriously, you'd have to add a new building or unit because the only one without requirements is the monument, which really shouldn't have any. There's already stiff competition among early techs between husbandry (worker tech+reveal horses) mining (worker tech, leads to warfare stuff although bronze working isn't great right now) and pottery (leads to several great techs and wonders, even without writing).

You could make the national epic require it, although that's not a huge impact. You could restrict communication with city states (gifts etc) until after the tech was discovered, although that may not be possible within the ruleset. Also possible limit trading in general, so no selling luxes until after you're got it.
 
interesting idea. like the work

I would make the supreme court require a courthouse to be already in all cities (as per national epic/barracks)
 
jenks

Yep. Thats how it works currently. Was in a test game last night and saw this work. Only issue now may be balance of happiness when playing on the higher difficulties and anexing a lot of cities as managing conquered cities is now more difficult (as the courthhouse no longer corrects occupation unhappiness in a city).
 
I'll play around with the balance a little, but I think I will probably change either the amount of happiness per Judge, or have the courthouse once again affect unhappiness in an occupied city.
 
Cool Concept.
I think I will give it a try.

I do like the idea of leaving the courthouse more in line with what it was in Vanilla, maybe with just a judge specialist, and the ability to be built in all cities.

One option is to create a 2nd building (called Jail or so), that is basically a vanilla courthouse, so there is still a building that eliminates occupation unhappiness, however like you said, the balancing of happiness bonuses would have to be adjusted.

Regarding a Statesman Great Person, their special ability could be to build a Courthouse in a city (like how in Civ4 Scientists could build the Academy), in addition to starting a golden age.
 
I guess there are two issues with the Great Politician/Statesman for me.

1. Im not too good with the art stuff, so creating a convincing unit would be beyond my abilities :)
2. I only know of 1 Great Politician/Statesman (at least currently). That being Dr Ron Paul, and it may look a little strange to have every Great Politician named after him :lol:
 
I guess there are two issues with the Great Politician/Statesman for me.

1. Im not too good with the art stuff, so creating a convincing unit would be beyond my abilities :)
2. I only know of 1 Great Politician/Statesman (at least currently). That being Dr Ron Paul, and it may look a little strange to have every Great Politician named after him :lol:

I take it you are saying that tongue-in-cheak :),
Seriously though, I think the naming of great Politician/Statesman (GP going forward) could be relativly easy.
One could actually make civ-specific named great people, and have the GP be named after all those leaders that arent used. Thats one thing have been trying to code, but havent got around to actually testing.
For example America could have FDR, Lincoln, Jefferson, Adams, etc..
 
Great American Politicians ;)

PS you can name them Great Thinkers/Philosophers/Humanists/Ideologists i think, not politicians
i always missed this sort of GP in Civ

a few names:
Hammurabi
Solomon
Plato
Epicurus
Solon
Jesus Christ
Gautama Buddha
Laozi
Confucius
Machiavelli
Francis Bacon
Sir Thomas More
Thomas Hobbes
John Locke
Voltaire
Rousseau
Proudhon
Karl Marx
Friedrich Nietzsche
Sigmund Freud
Carl Jung
Martin Luther King
George Orwell
Kurt Vonnegut
Isaac Asimov


also Germany could be given +50% philosophers spawn bonus :)
 
greyTiger,

I was trying to adjust happiness with a simple mod a few weeks ago, but my biggest problem was that there was no happiness yield. Good to see that you could create that :).

Have you thought about adding police station as a building in a similar way as the courthouse, and to give happiness bonus to the aritst specialist (for the cost of a few golds/turn)?

Creativus
 
Creativus

Yeah. I've been playing with the idea of a new technology following the "Code of Laws" called "Law Enforcement" which would unlock a building "Constabulary". This would replicate the original functionality of the Courthouse. It would mean that conquering cities earlier would be more costly to your civs happiness as the "Law Enforcement" tech is not available until the Renaissance Era.

If I add this then I'll drop the Judge back down to +1 Happiness (as I changed it to 2) so happiness from the courthouse is not too overpowered.

As for the Artist providing Happiness, that was something I'm including in the mod I'm working on at the moment.
 
Last night I was playing a game on a Large map with 10 civs ( testing both my mod and the performance mod that limits the number of workers when I came across an issue with my Judge :( )

In my previous test games I had no issue with the +:) value that was applied to the total for the civ for each Judge employed, but last night I had some very strange values appear. When I first built a Courthouse and went to employ a Judge I found that it increased my Happiness by 327 :confused:. This was not an issue with my calculation as the tooltip for the Judge showed this value too :confused:

So, I decided not to use the Judges and investigate later (as I wanted to test the performance mod through the late game). Around the Medieval Era I saved off my game, and returned to it about an hour later, and decided to see if the error had corrected itself. This time I found that the value for the Judge was empty in the tooltip, but employing a Judge would subtract over 300,000 happiness from the civ total. :eek: It seems that the GetSpecialistYield(specialistId, yieldId) function of the City object provided to us in lua was returning this value.

So I obviously have an issue with my mod, but as the tooltips are affected and I dont perform the calculations for those, it may be that the Yield system has some funny quirks.

Has anyone who has tried my mod come across these strange numbers? Or has anyone trying to implement something similar in their mods has issues like this?

Cheers
 
When I first run the mod tested it in the Modern Era, the judge got 169 happiness. But I was running it with other mods, when I switched them off the happiness numbers were correct.
 
When I first run the mod tested it in the Modern Era, the judge got 169 happiness. But I was running it with other mods, when I switched them off the happiness numbers were correct.

Interesting. I was using a few other mods in the game last night, and when I did my previous test games I was running it stand alone. Don't know if this is just just a coincidence or some issue with accessing the yields table once other mods are active?

Seems this is something Im gonna have to keep in mind as I roll the judge mod into a larger mod that will affect happiness, unhappiness, culture and hopefully introduce corruption, pollution and health in much the same manner.

Perhaps I'll just have to create some lua classes for reading the value from the database directly :)
 
I just discovered a strange issue. When your mod was active, I couldn't scroll the map north by moving the mouse to the top of the screen. Not sure if it's a conflict with other mods I have active or not, I'll have a look tomorrow. (Just to clarify, turning off your mod seemed to fix the issue, so I am certain your mod contributed to the issue.)

Also, I really like the Judge specialist idea. I'm working on making an Entertainer specialist, but I'm clueless with regard to Lua, so I'm going to back burner that idea :p. Good luck with your mod, I look forward to see where your taking it next. ^___^
 
I just discovered a strange issue. When your mod was active, I couldn't scroll the map north by moving the mouse to the top of the screen. Not sure if it's a conflict with other mods I have active or not, I'll have a look tomorrow. (Just to clarify, turning off your mod seemed to fix the issue, so I am certain your mod contributed to the issue.)

Also, I really like the Judge specialist idea. I'm working on making an Entertainer specialist, but I'm clueless with regard to Lua, so I'm going to back burner that idea :p. Good luck with your mod, I look forward to see where your taking it next. ^___^

I have not come across this. I'll check it out tonight when I get home.

As for where I take this, well, I have lots of ideas (may start a thread dedicated to it to get input I think), but little time in which to implement them. Im new to Lua and modding so its a bit of a learning curve for me.

Though its been quite enjoyable at times, at others its been very frustrating. :crazyeye:
 
Top Bottom