Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Project & Mod Development > Civ4 - Fall from Heaven

Notices

Reply
 
Thread Tools
Old Aug 13, 2009, 01:44 PM   #1
sunamonster
Chieftain
 
Join Date: Aug 2009
Posts: 7
Modding the FfH2 dll? Maybe just Python?

Edit: Maybe I just need to edit python? I'm too new to know.

Hello again! High off my last modding success, I have two questions for the great sages that browse these forums.

1.
I've noticed in "vanilla" FfH2 that exploring units will ignore lairs. While playing Fall Further, the exploring units will move to lairs and stop exploring, giving me the opportunity to loot them as I wish. Is there a way I can implement this feature in my vanilla FfH2?

2.
Edit: Found the answer to my second question.

Thanks again everyone, you're all very helpful!

PS - Sorry for the edits, haven't written many forum posts the last few years!

Last edited by sunamonster; Aug 13, 2009 at 02:10 PM.
sunamonster is offline   Reply With Quote
Old Aug 13, 2009, 03:22 PM   #2
Valkrionn
The Hamster King
 
Valkrionn's Avatar
 
Join Date: May 2008
Location: Crestview FL
Posts: 14,448
You'd need to mess with the DLL for this one... The tag responsible is in ImprovementInfos, <bExplorable>
__________________
Valkrionn is offline   Reply With Quote
Old Aug 18, 2009, 02:38 PM   #3
sunamonster
Chieftain
 
Join Date: Aug 2009
Posts: 7
Thanks for the info. I'm not sure if I can do it, but now I at least know where to start looking!
sunamonster is offline   Reply With Quote
Old Aug 18, 2009, 03:01 PM   #4
Sephi
Deity
 
Join Date: Jan 2009
Posts: 2,871
All you have to do is a little bit of XML. Exploring lairs is done by spells and you can enable the AI to use such spell with the <bAllowAI> and <iAIWeight> XML tags.
__________________

Master of Mana

Turn based Strategy in a fantasy world setting
Sephi is offline   Reply With Quote
Old Aug 21, 2009, 03:36 PM   #5
sunamonster
Chieftain
 
Join Date: Aug 2009
Posts: 7
Quote:
Originally Posted by Sephi View Post
All you have to do is a little bit of XML. Exploring lairs is done by spells and you can enable the AI to use such spell with the <bAllowAI> and <iAIWeight> XML tags.
Its not so much that I want the AI to be able to explore the lairs. I don't know how to be quite clear on this. I spent some time doing more research and found in the Fall Further mod-modders thread this reference:

Quote:
<bExplorable> - Tells any unit on Automated Exploration to stop at this tile and wake up (request user input). Also makes them desire to move to this tile like it was a GoodyHut. This last part MIGHT get a bit annoying if you don't WANT to explore the lair and attempt to re-automate the unit without first moving him away a little bit. (NOTE: This field makes it so that the AI rather aggressively pursues Lairs to explore. Also note that since most units spawned from a lair are spawned by Goody, it isn't easy to have units popping up too close to your only city, or too early in the game)
From how I understand it, this tag isn't usually in the xml, it's somewhere in the dll, but I don't know how they brought it out into the xml. I tried just inserting it into the ImprovementsInfo xml, but that went over like a butcher trying to perform open-heart surgery. Anyway, any more advice is greatly appreciated!

Last edited by sunamonster; Aug 21, 2009 at 03:37 PM. Reason: Added the link
sunamonster is offline   Reply With Quote
Old Aug 21, 2009, 05:32 PM   #6
xienwolf
Deity
 
xienwolf's Avatar
 
Join Date: Oct 2007
Location: Location! Location!
Posts: 10,589
Images: 8
Making the AI chase lairs does require some DLL work, or LOTS of python work (I assume) could also accomplish it. Waking up units which walk onto a lair when automated is something you really need to be in the DLL to accomplish. I believe you could do it with Python as well, doing a check in onUnitMove, but it would slow the game down a fair chunk I imagine (unless onUnitMove is already being used for something else)
xienwolf is offline   Reply With Quote
Old Aug 21, 2009, 05:47 PM   #7
Sephi
Deity
 
Join Date: Jan 2009
Posts: 2,871
Quote:
Originally Posted by sunamonster View Post
From how I understand it, this tag isn't usually in the xml, it's somewhere in the dll, but I don't know how they brought it out into the xml. I tried just inserting it into the ImprovementsInfo xml, but that went over like a butcher trying to perform open-heart surgery. Anyway, any more advice is greatly appreciated!
Sorry, misunderstood your question. If you know some python, you can write a function there. If you want to use the XML tag, you have to modifiy the DLL first (there are some guides on the forum how to do that).
__________________

Master of Mana

Turn based Strategy in a fantasy world setting
Sephi is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Project & Mod Development > Civ4 - Fall from Heaven > Modding the FfH2 dll? Maybe just Python?

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with nvd3dum.dll and d3d9.dll crashing to desktop caduceo Civ4 - Technical Support 13 Sep 01, 2010 10:09 AM
Modding Question for any Civ4 BtS modding experts... Mattygerst Civ4 - Creation & Customization 4 Feb 22, 2008 06:51 AM
Civgamecore.dll of Blake's better AI and FfH2 marioflag Civ4 - Fall from Heaven 6 Jan 07, 2007 09:49 AM
My FFH2 and Yours(Please Post! Kael and ffh2 team, ya'll too!) lostkitten13 Civ4 - Fall from Heaven 282 Oct 08, 2006 02:49 PM
civ 2 XP (commctrl.dll & dciman.dll not found?) jefflc Civ2 - Technical Support 6 Aug 03, 2002 08:13 AM


Advertisement

All times are GMT -6. The time now is 01:31 AM.


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