Thread Tools
Old September 5, 2003, 21:47   #1
Patine
Scenario League / Civ2-Creation
King
 
Patine's Avatar
 
Local Time: 02:18
Local Date: November 2, 2010
Join Date: Mar 2002
Location: Edmonton, Canada
Posts: 1,135
Mod or hack needed
I'm not a programmer myself, but does anyone know of a mod or hack to MGE (or someone who could make one) that would allow forcing gov'ts and creating barbarian units in the events.txt. It would be a handy feature in several of my scenario projects, and I imagine hundreds of other scenario makers (at least) could also benefit.
Patine is offline  
Old September 5, 2003, 23:37   #2
techumseh
Civilization II PBEMScenario League / Civ2-Creation
Emperor
 
techumseh's Avatar
 
Local Time: 02:18
Local Date: November 2, 2010
Join Date: Apr 1999
Location: of the frozen North.
Posts: 4,197
You don't need a hack to create barbarian units. Just edit the events text manually. The built in editor doesn't allow it.

As for forcing government, I assume you mean forcing a change from one gov't type to another at some point during the scenario. You may be able to get the desired effect by giving the relevant tech for the new gov't by events. If It's a higher level gov't the AI may initiate a revolution, as long as you don't toggle "forbid government switching" in the scenario special rules.

If you use Test of Time, you could use the "TakeTechnology" action to remove the old gov't tech so the AI couldn't switch back.
__________________
Tecumseh's Village, Home of Fine Civilization Scenarios

www.tecumseh.150m.com
techumseh is offline  
Old September 6, 2003, 08:47   #3
Elok
Scenario League / Civ2-Creation
Emperor
 
Elok's Avatar
 
Local Time: 04:18
Local Date: November 2, 2010
Join Date: Mar 2003
Location: Having tea with the Third Man...
Posts: 6,169
I think you have to re-embed the events after you edit them somehow though, by using delevents.exe or something. Or is that unnecessary in MGE?
__________________
"May I be forgiven for the ills that I have done/Friends I have forsaken and strangers I have shunned/Sins I have committed, for which others had to pay/And I haven't met the whiskey that can wash those stains away."
-Brady's Leap, "Wash."
Elok is offline  
Old September 6, 2003, 12:17   #4
Goingonit
Warlord
 
Goingonit's Avatar
 
Local Time: 03:18
Local Date: November 2, 2010
Join Date: Apr 2001
Location: Toronto, Canada - AECCP member
Posts: 192
no, you do have to do that.
__________________
I refute it thus!
"Destiny! Destiny! No escaping that for me!"
Goingonit is offline  
Old September 11, 2003, 00:58   #5
H Tower
Civilization II Democracy Game: ExodusScenario League / Civ2-CreationCivilization II Democracy Game: Red FrontCivilization II Democracy GameNationStates
 
H Tower's Avatar
 
Local Time: 03:18
Local Date: November 2, 2010
Join Date: Jul 2001
Posts: 6,135
Quote:
Originally posted by Elok
I think you have to re-embed the events after you edit them somehow though, by using delevents.exe or something. Or is that unnecessary in MGE?
your current scenario that you are playing would have to have a delevents run on it, but any future game you start would work with the new events file
H Tower is offline  
Old September 11, 2003, 10:19   #6
William Keenan
Scenario League / Civ2-Creation
Prince
 
William Keenan's Avatar
 
Local Time: 03:18
Local Date: November 2, 2010
Join Date: Sep 1999
Location: New Jersey, USA, Earth, Sol, Milky Way
Posts: 705
Simply taking the tech has not, in my experience, caused the AI to switch to a lower level government type. IMHO the only way to accomplish that is by using CSPL and ToT to change the value of the field in memory during play.
William Keenan is offline  
Old September 11, 2003, 11:59   #7
Patine
Scenario League / Civ2-Creation
King
 
Patine's Avatar
 
Local Time: 02:18
Local Date: November 2, 2010
Join Date: Mar 2002
Location: Edmonton, Canada
Posts: 1,135
How do I find or create a delevents.exe and what do you mean by CSPL and changing the value of the field in memory?
Patine is offline  
Old September 12, 2003, 18:16   #8
Mercator
Scenario League / Civ2-Creation
Emperor
 
Mercator's Avatar
 
Local Time: 10:18
Local Date: November 2, 2010
Join Date: Dec 1969
Posts: 3,079
delevents.exe should be located in your main civ2 directory. If not, some recent scenarios contain the file as well. You can do a search on the filename with the Windows file search...

CSPL is short for Civilization Scenario Programming Library. It's a set of functions that allow you to edit the civ2 game memory while civ2 is running. That means you can basically create your own events, and change things like AI government at any moment during play.

But... so far, CSPL only works for Civilization II: Test of Time.
__________________
Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)
Mercator is offline  
 

Bookmarks

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 On

Forum Jump


All times are GMT -4. The time now is 04:18.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team