Advertisement
Civilization Fanatics' Center

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Modpacks

Notices

Civ4 - Modpacks Modpack creators can post their completed creations here.
Please don't open a new thread if you don't have file to post! This rule also applies to ALL other files forums below. Use the main Civ4 Creation forum for questions & requests.

Reply
 
Thread Tools
Old Sep 07, 2011, 04:52 PM   #1
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
Super Spies v2.0 (BTS 3.19)

This is a port of Super Spies for BTS 3.19. Source code files are included for modders to merge. Source code is commented with Super_Spies or Tsheep. Thanks to Vincentz who collaborated with me to figure out how to extract the source code from RevDCM.

SUPER SPIES v2.0 for Beyond the Sword v3.19

-----OVERVIEW-----
Super Spies adds seven new promotion lines and another single promotion to spies and allows them to gain experience from successful missions. Espionage buildings are now expanded to grant spies extra experience and cities can convert production into espionage points. Finally, two new espionage missions are added, allowing spies to bribe workers and assassinate great specialists.

------GAMEPLAY------
-Spies escape to nearest city instead of the capital w/Custom GameOption
-Spies have a chance to be turned into a double agent with capture w/ Custom GameOption
-Double Agents have 50% reduction in mission cost toward previous civ
-15 New Promotion Lines
-Promotions Affect All Spy Mission
-Spies don't start with the use of enemy roads
-16 New Spy Missions
-Improved Spy AI
-Sleep for Espionage Mission
-Automated Counterespionage Mission
-3 Buildings provide Spy XP or a Promotion
-Espionage Process for Cities
-3 New Spy Attribute Modifiers

------THE PROMOTIONS------
-Alchemist (I-III): Increases the bonus from poisoning missions and can irradiate tiles.
-Deception (I-III): Allows the spy to avoid discovery
-Escape Artist (I-II): Allows the spy to escape, even after being caught.
-Improviser (I-V): Gives the spy free preparation bonuses.
-Security (I-III): Increases the spy's odds to catch enemy spies and increases visibility.
-Instigator (I-III): More unrest from Unhappiness missions and can increase Revolt time.
-Logistics (I-III): Increases the spy's movement and can unlock the use of enemy roads.
-Loyalty: The spy never reveals their nationality or cannot be captured.
-Treachery (I-III): % Assistantion Chance Bonus
-Conspiracy (I-III): % diplo penalty of Cause Incident (merge with Instigator)
-Instigation (I-III): % duration of Incite Anarchy
-Seduction (I-III): % diplo bonus of Political Marriage
-Intrigue (I-III): % duration of Create Building Missions

-----OPTIONS FOR CITIES-----
-Intelligence Agency: Provides new spies with +2 XP.
-Security Bureau: Spies start with Informant I promotion.
-Scotland Yard: Provides new spies with +3 XP.
-Espionage Process: Allows conversion of production into espionage points (available with Paper)

-----NEW MISSIONS----
-Assassinate: The spy attempts to kill a settled great specialist in the target city.
-Bribe Worker: The spy attempts to bribe a worker.
-Nuke City-Causes a Nuclear Bomb to detonate in the city. If caught, the victim nation may declare war on you.
-Disable Power: Destroys Power Supply temporarily
-War Wearniness: Increases war weariness
-Bribe city: The spy attempts to annex a target city.
-Sabotage research: Sabotages research in a target civ
-Remove religion: Removes a chosen religion in a target city
-Remove corporation: Removes a chosen corporation in a target city
-Spread Lies: Creates Misinformation building (-20% production, +4 unhappy for 5 turns)
-Exert Influence: Creates External Influence building (-75% culture for 5 turns)
-Cause Incident: -2 diplo modifier between target civ and the civ of your choice
-Political Marriage: +1 diplo modifier between target civ and you
-Incite Anarchy: Puts target player into Anarchy for 2 turns)
-Seduce Leaders: Creates Seduced Leaders building (-50% culture, -10% production for 5 turns)
-Establish Den of Spies: Creates a Den of Spies in target city (-2 production, -4 happiness for 10 turns).

-----AI-----
-Better Global Espionage Use - AIs will now prioritize their espionage targets by focusing on tech leaders and enemies rather than simply having an ever escalating EP war with everyone.
-Counter Espionage- AIs will now use counter espionage units against enemies and those who have proven they cannot be trusted (those whose spies they've caught). This is a large change from vanilla where they were never used at all.
-Better Mission Choice - AIs will now prioritize tech thievery while avoiding petty needless strikes against people they don't even care about.
-CoiunterEspionage Automation
-Auto mission for counter espionage against enemies.

---CREDITS----
-Mainly to Trojan Sheep who invented and did most of the work of this mod component and glider1 who took over and integrated it into the BTS scheme of espionage missions. Also thanks to deanej, who did the the "convert into espionage" in the first place. I only did some clean-up to make the Super Spies mod standalone again.
-Also many thanks to Dresden, solver and co. who worked on the unofficial patch, along with the RevDCM Team, Afforess, & the Dune Wars Team.

-------For Modmakers-------
-Unit Modifiers:
SpyEvasionModifier--% defense against detection ("detection evasion")
SpyEscapeModifier -% defense against detection after captured ("detection evasion")
SpyInterfectModifer -% spy detection bonus

-Promotion Modifiers:
Spoiler:

iSpyPreparationModifier-% bonus from preperation
iSpyPoisonModifier-% increase of unhealthiness
iSpyRevoltChange-% increase of revolt & Anarchy length
iSpyUnhappyChange-% increase of Unhappiness
iSpyDiploBonusChange- % diplo bonus
iSpyDiploPenaltyChange- % diplo penalty
iSpyDurationChange- % longer duration of building effect on target city
iSpyAssassinationModifier -% increase chance of Assasination
bSpyLoyalty- never reveals nationality, prevents -1 diplomatic penalty upon capture
bSpyRadiation-Affected tiles can be irradiated
iSpyInterceptChange- % spy detection bonus, 5x% counter-espionage bonus
iSpyEvasionChange- % defense against detection ("detection evasion")
iSpyEscapeChange- % to survive upon mission failure
SpyBribeWorkerChange-% Mission Cost Reduction
SpyNukeCityChange-% to survive upon mission failure
SpyDisablePowerChange-% Turns Bonus
SpyWarWearinessChange-% War Weariness Bonus
SpyBribeCityChange-% Mission Cost Reduction
SpyResearchSabotageChange-% Mission Cost Reduction
SpyReligionRemovalChange-% Mission Cost Reduction
SpyCorporationRemovalChange-% Mission Cost Reduction
SpyStealTreasuryChange-% Gold Bonus
SpyBuyTechChange-% Mission Cost Reduction
SpySwitchCivicChange-% Mission Cost Reduction
SpySwitchReligionChange-% Mission Cost Reduction
SpyDestroyProjectChange-% Mission Cost Reduction
SpyDestroyPoductionChange-% Mission Cost Reduction
SpyCultureChange-% Culture Bonus
SpyDestroyBuildingChange-% Mission Cost Reduction
SpyDestroyImprovementChange-% Mission Cost Reduction

-Commenting as david allen/advanced espionage/afforess/Super_Spies, Super Spies, TSheep, Dune Wars

-Future Plans-
-Bribe Barbs mission from RFC Classical World
-Move Double Agent text higher in gametextmanager

Version History
Spoiler:

v2.0
-Can delete double agents
-Vassal's spies no longer caught in master's territory change before
-Removed spy SAM C++
-Added Help text for all espionage missions.
-Removed C++ promotion spy exceptions
-Disable Power Turns is a global defines
-Added Amount or Turns in Mission Help Texts (War Weariness)
-Highlight attitude modifiers in Mission Help Texts
-Added city name to help text
-Added new line for some help Texts
-Added icons for Mission Help Texts
-Removed Spync and replaced with just option
-Promos affect other missions:
Spoiler:

-Bribe Worker: (SpyBribeWorkerChange)
-Nuke City- (SpyNukeCityChange)
-Disable Power: (SpyDisablePowerChange)
-War Weariness: (SpyWarWearinessChange)
-Bribe city: (SpyBribeCityChange)
-Sabotage research: (SpyResearchSabotageChange)
-Remove religion: (SpyReligionRemovalChange)
-Remove corporation: (SpyCorporationRemovalChange)
-Steal Treasury: (SpyStealTreasuryChange)
-Buy Tech: (SpyBuyTechChange)
-Switch Civic: (SpySwitchCivicChange)
-Switch religion: (SpySwitchReligionChange)
-Destroy Project: (SpyDestroyProjectChange)
-Remove Production: (SpyDestroyPoductionChange)
-Destroy Project: (SpyCultureChange)
-Destroy Building: (SpyDestroyBuildingChange)
-Destroy Improvement: (SpyDestroyImprovementChange)

-Disable Power mission fix (from Arachid)
-Remove maniupulated us from Memories
-GameOption for all memories
-Some AND text display changes
-Removed old promotion modifiers

-Version 1.92
-Mission Cost for Prisoners for Unit in GameTexManager.cpp
-Mission texts missing of ESPIONAGEMISSION_DEN_SPIES
-Extra Espionage against player if captured

-Version 1.91
-CvPlayer CTD fix for bribe worker mission

-Version 1.9
-Spy Captured from Total War
-Captured Spy Gameoption
-1/2 Captured Spy Mission cost only for Original Civ
-CvUnit.cpp additions from C2C
-SOI Spy Additions (assasination promotion, Better spy escape)
-New Promotion AI
-Removed BBAI
-Better Promo xml texts in code/sdk
-remove uneeded globals
-Nuke Mission working
-Removed tbnukefix
-Fix for Sleep mission problems (automate expionage finished)
-building missions only appear if no building present in city
-Den of spies not permenant
-Better Commenting-All commenting now as Super Spies
-Loyalty Promotion allows spies to never be captured
-Treachery Promotion give spy assassination bonus chance
-Spy duration bonuses moved to seperate promotions
-Mission duration lowered to 5 turns
-Den of Spies is termprariy for 10 turns

Version 1.8-
-ROM:AND Mission Additions (Nuke City-not working, Disable Power, War Wearniness, Bribe city, Sabotage research, Remove religion, Remove corporation)
-Dune Wars Mission Additions(Spread Lies, Exert Influence, Cause Incident, Political Marriage, Incite Anarchy, Seduce Leaders, Establish Den of Spies)
-Cannot Annex Capital from Dune Wars
-Fixed Assasinate CTD from RevDCM
-Misc RevDCM Additions
-Assasinate/Bribe AI from RevDCM
-Tech Value Weight from RevDCM
-Missions don’t appear unless have money from RevDCM.
-City flip penalty
-Gold sound from stealing treasury. Switch religion sound, player anarchy message/sound, buy city modifier (From Afforess)
-Pedias, Strategy, & Help Text for new Missions/Buildings
-Corrected Security Bureau/Scotland Yard XP for Spies
-New Spy Promo Art
-New Spy Promotion Effects
-Commenting as david allen/advanced espionage/afforess

Version 1.7
-Added CounterEspionage Automation from RevDCM

Version 1.6
-Custom Gameoption for MOD
-Corrected spy messages
-Sleep for espionage

Version 1.5
Spoiler:
-Added Lemon's Spy MOD
-Added Afforess's Improvement MOD from AND

Version 1.4
Spoiler:
-Updated to BTS 3.19

Version 1.31
Spoiler:
-Original Standalone for 3.17


Download Super Spies
Attached Thumbnails
Click image for larger version

Name:	Civ4ScreenShot0001.JPG
Views:	149
Size:	387.4 KB
ID:	329734   Click image for larger version

Name:	Civ4ScreenShot0004.JPG
Views:	132
Size:	319.1 KB
ID:	329735   Click image for larger version

Name:	Civ4ScreenShot0005.JPG
Views:	114
Size:	466.5 KB
ID:	329736   Click image for larger version

Name:	Super Spies Double Agent.JPG
Views:	25
Size:	232.9 KB
ID:	377636  

Last edited by stolenrays; Jul 12, 2014 at 06:46 PM.
stolenrays is offline   Reply With Quote
Old Sep 07, 2011, 09:34 PM   #2
glider1
Deity
 
Join Date: May 2006
Location: Where animals hop not run
Posts: 2,504
Thanks for doing that and acknowledging all involved. It was a great mod and became a lot of fun over the years. A couple of points:

1) The assassinate and bribe missions can be carried out by the AI, but are exploitable because the AI code is not particularly strong and people have complained that the missions are negative game play. I put them in essentially as an example of the basic mechanics of how espionage missions work as an instructional aid, and hopefully are commented. They can be turned off in the XML.

2) Might be worth doing a search of the RevolutionDCM forum, because people had a few ideas for super spies that never happened. I think from memory, Phungus420 tidied up the spy promotion code to make it completely compatible with how the rest of the promotion system works, because at one stage it was not so.

3) Might be worth linking to the original super spies thread as well because at one stage Tsheep turned up to find what had happened to his mod, was pleased, offered a comment on that forum and disappeared never to return to my knowledge.

4) In the latest release of RevDCM, there was a very important unit automation I coded for spies I personally think. It gave the player the ability to automate counter espionage missions so that this did not have to be micromanaged if the player didn't want. The AI is far from perfect but more often than not, the tedium of having to manually counter espionage every ten turns is well worth skipping, for the sake of automated counter espionage spies that operate a litte sub-optimally. In order to extract that automation, you would have to understand the unit automation system that is standard in BTS and that Afforess extended as did I. But again, it is essentially all commented under the category of automation or the like. There is a game play issue where if you try to automate the spy in the new world, the spy conducts counter espionage, then is instantly transported back to the old world capital, and I think at that point begins trying to find sources in the old world only, leaving the new world alone.

5) Enjoy whatever happens with super spies. I personally thought that espionage in BTS was a lot of fun.

Cheers
__________________
Joint modder of the Buffed AI Mod for BNW and RevolutionDCM mod for BTS

Last edited by glider1; Sep 07, 2011 at 09:44 PM.
glider1 is offline   Reply With Quote
Old Sep 07, 2011, 10:16 PM   #3
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
I appreciate the input, prasie, and I'm happy to share this with everyone because I think it is a really good mod. I've seen people asking for a 3.19 standalone version so I figured people would want it for their mods.

In a future input I was thinking of adding the missions from Dune Wars and A new Dawn if I can extract the code successfully.

Merging unit automations has given me a CTD the two times I have tried to merge it with my mod in progress, but not super spies. It would be a good addition.
stolenrays is offline   Reply With Quote
Old Sep 08, 2011, 05:38 PM   #4
keldath
LivE LonG AnD PrOsPeR
 
keldath's Avatar
 
Join Date: Dec 2005
Location: israel
Posts: 5,799
sweet,
finally some1 took the initiative to do this.

great work my friend!
__________________
keldath is offline   Reply With Quote
Old Sep 08, 2011, 06:24 PM   #5
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
THanks Keldath. I couldn't get RevDCm to merge properly with my mod so I did the next best thing and tried to extract super spies from it.
stolenrays is offline   Reply With Quote
Old Oct 25, 2011, 12:27 AM   #6
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
Maybe somebody can take a look at my attached unworking mod. I've tried to add many of the missions (sleep, food, nuke, etc.) from a new dawn, but the game ctd when pressing play a new game or cutom game, etc. I included the source files as well.

The new source code is commented as afforess.

Last edited by stolenrays; Mar 06, 2012 at 03:25 PM.
stolenrays is offline   Reply With Quote
Old Nov 03, 2011, 03:58 PM   #7
mtr12
Prince
 
mtr12's Avatar
 
Join Date: Nov 2008
Posts: 596
One of the best mods I've played. I use the version merged with RevDCM.
mtr12 is offline   Reply With Quote
Old Nov 28, 2011, 11:34 AM   #8
Red Key
Modder
 
Red Key's Avatar
 
Join Date: Sep 2011
Location: USA
Posts: 384
Great work stolenrays! This is exactly what I need for a mod I'm planning. I was considering using RevDCM with everything but Super Spies turned off, but this will be much cleaner. All I really wanted was Better BTS AI and Super Spies. Hopefully I will actually get around to making my mod soon.
Red Key is offline   Reply With Quote
Old Nov 29, 2011, 10:41 AM   #10
Red Key
Modder
 
Red Key's Avatar
 
Join Date: Sep 2011
Location: USA
Posts: 384
Quote:
Originally Posted by stolenrays View Post
Thanks. What mod are you working on?
Well the one I was referring to is only in the planning stage, but it will be a fantasy mod loosely based on the game Age of Wonders. Before I seriously start working on that I need to get my Super Forts mod to a complete version because that will also be merged into the fantasy mod.

Last edited by Red Key; Mar 09, 2012 at 12:41 PM.
Red Key is offline   Reply With Quote
Old Feb 03, 2012, 04:44 AM   #11
LeBashar
Warlord
 
Join Date: Feb 2012
Location: France
Posts: 124
Is here a way to add in this modcomp a choice for make spy after a mission not return in the capital city but in the closest frontier city ?
LeBashar is offline   Reply With Quote
Old Feb 03, 2012, 12:15 PM   #12
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
Yes, that code was suggested by someone else in this thread I believe. It requires sdk changes. I unfortunately am unable to do that at this time because of PC problems that required a system restore.
stolenrays is offline   Reply With Quote
Old Feb 07, 2012, 04:09 AM   #13
LeBashar
Warlord
 
Join Date: Feb 2012
Location: France
Posts: 124
I have use this mod, with no other sdk mods, and the assassinate mission seem don't work :
- it ask me what unit in the city I want to kill (and not what great people)
- the game crash if I select any unit
LeBashar is offline   Reply With Quote
Old Feb 07, 2012, 11:16 AM   #14
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
Quote:
Originally Posted by LeBashar View Post
I have use this mod, with no other sdk mods, and the assassinate mission seem don't work :
- it ask me what unit in the city I want to kill (and not what great people)
- the game crash if I select any unit
The assasinate mission removes a specialist from a city, not a great person actually I believe. I'll check it out again, but I thought it worked when I tested it before release.
stolenrays is offline   Reply With Quote
Old Jul 07, 2012, 10:19 PM   #15
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
I've uploaded a new version of the mod.
It adds two things
  1. Added Lemon's Spy MOD
    -Successful spy missions take a spy back to the nearest city if applicable.
  2. Added Afforess's Improvement MOD from AND
    -Successful spy missions not in a city don't cause a spy to escape anywhere.

It took a while to figure out the coding, but I was able to merge these two together.
stolenrays is offline   Reply With Quote
Old Jul 09, 2012, 05:57 PM   #16
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
Lemon, maybe you can take a look at this ZIP. I've ported sleep for espionage from ROM:AND, but it always crashes after I click on play game.

Last edited by stolenrays; Mar 17, 2013 at 01:25 PM.
stolenrays is offline   Reply With Quote
Old Jul 29, 2012, 06:07 PM   #17
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
I've added all the new missions from Dune Wars & ROM:AND to Super Spies. They all work except the Nuke mission. It never appears in the mission selection popup.
stolenrays is offline   Reply With Quote
Old Jul 31, 2012, 02:39 PM   #18
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
I added sleep for espionage and added fixed the successful spy missions messages/code. Now when you sabotage an improvement and stay put, the message tells you which city you are closest to.
stolenrays is offline   Reply With Quote
Old Aug 14, 2012, 01:05 PM   #20
stolenrays
Deity
 
stolenrays's Avatar
 
Join Date: Aug 2009
Posts: 2,054
Quote:
Originally Posted by LeBashar View Post
I have use this mod, with no other sdk mods, and the assassinate mission seem don't work :
- it ask me what unit in the city I want to kill (and not what great people)
- the game crash if I select any unit
You are correct. It is also only supposed to assasinate a settled great person. I'll have to Debug it and probably use some RevDCM source code.
stolenrays is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Modpacks > [BTS] Super Spies (BTS 3.19)

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 11:02 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
This site is copyright Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR