Great Works

Moriboe

King
Joined
Nov 30, 2010
Messages
661
Location
Belgium
Get it here.

Culture bombs are now called Great Works, and grant an additional 350 :c5culture: + 50 :c5culture: per era. A simple message indicates that the Great Artist created one of his famous works of art. See the screenshot attached.
Also adapts the Sagrada Familia wonder by Pouakai and sukritact (if installed) to grant an additional 50 :c5culture: per era when a Great Work is created (on top of the current free artist).

This component is part of my current effort for Uomo Universalis to make chasing victories more interesting. I'll put it on the mod browser later.
I've added a great work for every artist name in the game. Should people here want more: give and I shall add! Just no modern artists. Here's the format:

Spoiler :
Code:
<Unit_UniqueNames>
  <Row>
    <UnitType>UNIT_ARTIST</UnitType>
    <UniqueName>TXT_KEY_GREAT_PERSON_JOHANNES_BRAHMS</UniqueName>
  </Row>
</Unit_UniqueNames>

<GreatWorks>
  <Row>
    <WorkName>TXT_KEY_GREAT_WORK_JOHANNES_BRAHMS</WorkName>
    <ArtistName>TXT_KEY_GREAT_PERSON_JOHANNES_BRAHMS</ArtistName>
  </Row>
</GreatWorks>

<Language_en_US>
  <Row>
    <Tag>TXT_KEY_GREAT_WORK_JOHANNES_BRAHMS</Tag>
    <Text>the Hungarian Dances</Text>
  </Row>
</Language_en_US>
 

Attachments

  • greatWorks.jpg
    greatWorks.jpg
    197.9 KB · Views: 1,572
Ooh. I was working on something similar, except instead of a one time boost to culture, it would actually create the work of art in the closest city. The theory was that if the art physically existed it could be looted by other civs.
 
Interesting twist. A lot of the great works are not really physical though, such as music and literature. But I might add a hefty looting bonus for my upcoming Legendary cities...

Forgot to put in the OP: for this effect I edited UnitPanel.lua (didn't see another way), so:
- It most likely will not apply for the AI players (but they get a hefty reduction in culture costs anyway on the higher difficulties).
- Other mods altering the file (including CiVUP) will require a manual merge. The new portion of code is tagged with my nickname.
 
I have no shame.

I'm glad you don't - I've been hoping for a mod like this for some time, but didn't notice this thread!:D

- Other mods altering the file (including CiVUP) will require a manual merge. The new portion of code is tagged with my nickname.

I want to merge this with CivUP/VEM, can you give me instructions on how to do the above? Thanks Moriboe!

PS - My lua sucks, so please keep it simple.:cringe:
 
Ok, you'll need to edit the file UnitPanel.lua.

First open my version (inside this mod's folder) of the file. Look for the lines -- Moriboe added and -- end of Moriboe's changes (with some white space before). Everything between (and including, for reference) these lines you'll have to copy.

Now open CiVUP's version of the file. Look for it (inside CiVUP's mod folder) in CiVUP_CivVUnofficialPatch\Core\Units. Within the file, look for the line function OnUnitActionClicked( action ). A bit lower you'll see a line saying just --alpaca (with some white space). Create an empty line before it. Copy and paste my code there.

When done, just delete UnitPanel.lua from this mod.
A quick way to see if it works is the use the Ingame Editor mod; just give yourself an artist and use it. Enjoy :)
 
Uploaded version 2. The only change is a letter "K" in a table tag, the absence of which was causing the message for Dvo&#345;ák's New World to go bad. No need to re-merge or anything.
 
Ok, you'll need to edit the file UnitPanel.lua.

First open my version (inside this mod's folder) of the file. Look for the lines -- Moriboe added and -- end of Moriboe's changes (with some white space before). Everything between (and including, for reference) these lines you'll have to copy.

Now open CiVUP's version of the file. Look for it (inside CiVUP's mod folder) in CiVUP_CivVUnofficialPatch\Core\Units. Within the file, look for the line function OnUnitActionClicked( action ). A bit lower you'll see a line saying just --alpaca (with some white space). Create an empty line before it. Copy and paste my code there.

When done, just delete UnitPanel.lua from this mod.
A quick way to see if it works is the use the Ingame Editor mod; just give yourself an artist and use it. Enjoy :)

Thank you for the detailed instructions! I followed them to the letter (I think), but unfortunately I did not receive any culture from the "culture bomb" though:( (when using IGE and giving myself a GA on turn 1 after building my capital). MUD and cache cleared. I know Thal has done some modding of culture to make it behave like a normal yield, perhaps there's a conflict?

If you get a moment to look into it, I'd appreciate it.:) I've attached the UnitPanel.lua file from CiVUP/core/units if it helps.
______________

The text on the cooldown message in the popup has a grammatical error in it, btw - it should read "You have created a Great Work recently, and may not do so again for another {1_Num} turns" not "You have a Great Work recently ..."
 

Attachments

  • UnitPanel.zip
    11 KB · Views: 76
Fixed it (see OP for link to v3). Apparently there was an error if you didn't have the Sagrada Familia wonder installed :blush: Also fixed the grammar. Thanks for trying and the great feedback :goodjob:
 
No. It was ented on the culture bomb, which is no longer an artist action in G+K (effect moved to the citadel). I thought about using the great work names when putting down a landmark, but decided it wouldn't be very fitting.

If I ever get round to making a mod component out of BMF's three city culture victory, I'll need the culture bomb back and I'll put this in. If ever...
 
Moriboe, have you ever considered a (small) culture per turn from Great Works from Libraries, Amphitheaters, Opera Houses, Broadcast Towers, CN Tower, etc.? It would be more realistic.

Also, you should allow these Great Works to be built by any Great Person, but with a different flavor (ie a Great General's great work would improve city combat strength, a Great Scientist's Great Work would boost Science from Science Buildings/Specialists, GM GW would improve CS :c5influence: from missions or boost Merchant specialists, etc.)
 
I have not considered the culture per turn options, it would basically be more of the same: clicking end turn until enough accumulates. I wanted a different way of getting culture: instantly.

I do agree about the symmetry with other GPs being broken by giving the GA one more ability, but giving more to all others is not included in my goals.
 
Top Bottom