• Welcome to Freedom Reborn Archive.
 

EZScript: Help setting up a campaign

Started by lmalonsof, April 15, 2008, 08:53:03 AM

Previous topic - Next topic

lmalonsof

Hi,

I'm trying to setup a campaign. I've done this before and I'm following the same steps, but I'm sure I've forgotten something because it's not working. This is what I have:

1.- I've tested the scripts along with the maps as mini mods (stories). Everthing is working. The first mission is just a cutscene, this is the script:
[spoiler]
Story: thug_00
# Hero1:
# Villains:
# Map:

Starting Encounters: chat1

#-----------------------------------------

Encounter: chat1
Type: Cutscene

Start Cutscene:
Set lighting to night
Unfade for 2 seconds
Camera on hero1
Narrator says, "What happens wth the villains and minions that work in the other side of the law? This is the story of one of those unknown thugs, who plays a key in the events that will threaten Patriot City in the next future..."
Narrator says, "Ladies and gentlemen, welcome to Thug's stories!"

#-----------------------------------------
[/spoiler]

2.- I've set up the different maps in different folders in the 'missions' folder. Inside each folder there are the following files: mission.txt, mission.dat, mission.mg, base.dat, base.mg, base.txt. In the first of the folders there are no base map and no base script.

3.- Using FFEdit, I've added the missions to the campdef.dat as following:

  • The first mission has no heroes (I've also tried with 1 hero)
  • The rest of them have 1 hero as Max. The hero is selected in the 'requested' list

This is what is happening:

I click on the 'Start new campaign' button. Everything is loading as usual. After that, the map appears and nothing happens. As you can see from the script above, one of the first things I order to do is to set the style of light to night and even that is not happening, the map is with usual day light.

I'm sure it must be the silliest thing on Earth and I'm feeling quite dumb because I've done this before... but this time I don't know why it's not working.

Well, thanks in advance.


M25

Set
M25USEREPORT = 1 
in m25config.py  and then send me the script.log.

lmalonsof

Here is the script.log:

>>> system/init.py executed
>>> system/localinit.py executed
>>> system\tredir.py executed

M25

OK, looking at this again, you are missing the mission.py and base.py files.  They need to be in each mission directory.  Copy them from the ezscriptcampaign directory in ffx  (and make sure you have the updated version from the ezscript wiki page).



lmalonsof

Ok, now there is a message saying something about there is no 'mission' file in my stories folde (or something like that)
here is the scrip.log:
[spoiler]>>> system/init.py executed
>>> system/localinit.py executed
>>> system\tredir.py executed
loading datfiles version 0.251000
loading cshelper ...
Starting ffx.py v. 3.2.0 build 11; branch = Gold / Release
Loading m25ai.py v. 3.2.0 build 10; branch = beta 2: m25 branch 2
importing missionobjvar.py v1.18
importing MLOG Reader 1.0.18 release
Starting General Utilities 1.0
missionobjvar(FixLongs): Fixing overflow issue with <SCSTATE_BUOYANT>
missionobjvar defining functions for Rumble Room play.
CustomHeadCurrentTime 1208277514.454000
Starting Height Check module 1.4
Starting System Utilities 1.4
OBJECTS_HEIGHT: 604 entries
NIF_OBJECTS: 482 entries
BUILDINGS_IN_OBJECTS_DAT: 30 entries
BUILDING_DIMENSIONS: 30 entries
Starting skXMapInfo.py  v 0.79 beta
skXMapInfo: m25ai available
FFX Mission Plugin 'firehydrant' imported
FFX Mission Plugin 'irradiateradius' imported
FFX Mission Plugin 'zombie' imported
Loading freeroam_keepbuildingdamage.py v.1.0.0 build 0; branch = main
FREEROAM_KBD: initialized
FFX Mission Plugin 'freeroam_keepbuildingdamage' imported
FFX Mission Plugin 'm25ai_lowjumper' imported
FFX Mission Plugin 'm25ai_realitymanipulation' imported
FFX Mission Plugin 'cutscene_power' imported
Loading     m25enc_OPENDOOR.py v.1.0.0 build 0; branch = main
FFX Mission Plugin 'm25enc_opendoor' imported
Loading     m25enc_simplechoice.py v.1.0.0 build 0; branch = main
FFX Mission Plugin 'm25enc_simplechoice' imported
Starting Built-In Function Wrapper 1.5
('Object_CalcPrestige', 'js')
ffx3\sk.py importing FFX
ffx3\missions\scripts\sk.py loaded
>>> C:\Users\lmal\AppData\Local\Irrational Games\Freedom Force vs the 3rd Reich\temp\mission.py executed
MISSION: EZScript MiniMod/Campaign Precache.
ERROR: The story file 'mission' is not in your stories directory!
! GetMapInfo
Building_GetDimensions() non-fatal error:
   template 'building' not found in list of building dimensions.
   To detect approximate dimensions, use
   getBuildingDimensions ()
...
(many many many as the previous one)
...
MISSION: On Post Init... start.
MLOG_Init(keepRunningModules=0): starting up
mlogreader.MLOG_Init: current mission = 'THUG_00'
initialising FFX: skirmish=0
mapinfocaliper0 is not a valid explosion object
mapinfocaliper1 is not a valid explosion object
mapinfocaliper2 is not a valid explosion object
mapinfocaliper3 is not a valid explosion object
MISSION: On Post Init... complete; starting story.
ERROR: Story did not load correctly.  Either it does not exist, or there is a problem in the script.
Traceback (innermost last):
 File "C:\Users\lmal\AppData\Local\Irrational Games\Freedom Force vs the 3rd Reich\temp\mission.py", line 26, in OnPostInit
   m25minimod.OnPostInit(campaign=1)
 File "C:\Program files\Irrational Games\Freedom Force vs The 3rd Reich\.\thug\missions\scripts\m25minimod.py", line 136, in OnPostInit
   MiniMod_AddStories(storyfile)
NameError: storyfile
initialising FFQ_initialiseExtras()
FFX_UpdateSun: getting default sun
FFX_UpdateSun: setting = (-45.0, 45.0, 1.0, 0.800000011921, (1.0, 1.0, 1.0))
Plugin 'firehydrant' OnPostInit() called
Plugin 'irradiateradius' has no OnPostInit()
Plugin 'zombie' has no OnPostInit()
Plugin 'freeroam_keepbuildingdamage' OnPostInit() called
Plugin 'm25ai_lowjumper' has no OnPostInit()
Plugin 'm25ai_realitymanipulation' has no OnPostInit()
Plugin 'cutscene_power' has no OnPostInit()
Plugin 'm25enc_opendoor' has no OnPostInit()
Plugin 'm25enc_simplechoice' has no OnPostInit()
[/spoiler]

M25

Double check that your story for that mission is in the file mission.txt in the same directory as the map for the first mission.



lmalonsof

Ok...
the mission name was 'mission .txt' instead of 'mission.txt'. I fixed that and now it's working.

Thanks for the help!!!