Freedom Reborn

Freedom Force Forums => Scripting Forum => Topic started by: John Jr. on February 16, 2010, 05:35:45 AM

Title: Missing character
Post by: John Jr. on February 16, 2010, 05:35:45 AM
Guys I have a new weird problem with my PCTales Mission. When I played it in other mod it worked fine, but wherever I try to play it inside PCtales I got a new problem.
I used "minuteman_n" (the nightmare version) as a villain in Encouter1, but when I tested it inside PCT the cs didn't played, the game frozen and I got a  message saying there's no character called minuteman_n in the library. I checked FFEdit and the character shows there. I copied the character and the template and saved it with a different name, no luck. I copied Minute Man and saved as "minuteman_n1", same message.
The same error occurred when Benton tested the mission.
May someone help me, please?
Title: Re: Missing character
Post by: BentonGrey on February 16, 2010, 05:39:29 AM
Post the pertinent section of the log, JJ.  It worked fine for me, so I don't know what the problem is.

:EDIT: Yep, I just double checked it. The mission starts fine for me.  Hopefully someone will be able to spot something in the log.
Title: Re: Missing character
Post by: John Jr. on February 16, 2010, 06:01:04 AM
Same message when I use "minuteman_n" or any of the copies:

00:01:13.77: FF: animator:(m25obj_8) setSequence idle
00:01:13.77: FF: animator:(m25obj_8) Ignoring sequence request, already animating looping idle
00:01:13.77: FF: animator:(m25obj_6) setSequence idle
00:01:13.77: FF: animator:(m25obj_6) Ignoring sequence request, already animating looping idle
00:01:13.77: FF: animator:(m25obj_12) setSequence idle
00:01:13.77: FF: animator:(m25obj_12) Ignoring sequence request, already animating looping idle
00:01:13.77: FF: animator:(m25obj_10) setSequence idle
00:01:13.77: FF: animator:(m25obj_10) Ignoring sequence request, already animating looping idle
00:01:13.77: FF: animator:(m25obj_2) setSequence idle
00:01:13.77: FF: animator:(m25obj_2) Ignoring sequence request, already animating looping idle
00:01:13.77: FF: animator:(m25obj_4) setSequence idle
00:01:13.77: FF: animator:(m25obj_4) Ignoring sequence request, already animating looping idle
00:01:13.78: FF: animator:(hero_1) setSequence idle
00:01:13.78: FF: animator:(hero_1) Ignoring sequence request, already animating looping idle
00:01:13.78: FF: animator:(hero_2) setSequence idle
00:01:13.78: FF: animator:(hero_2) Ignoring sequence request, already animating looping idle
00:01:13.82: FF: animator:(m25obj_8) setSequence idle
00:01:13.82: FF: animator:(m25obj_8) Ignoring sequence request, already animating looping idle
00:01:13.82: FF: animator:(m25obj_6) setSequence idle
00:01:13.83: FF: animator:(m25obj_6) Ignoring sequence request, already animating looping idle
00:01:13.83: FF: animator:(m25obj_12) setSequence idle
00:01:13.83: FF: animator:(m25obj_12) Ignoring sequence request, already animating looping idle
00:01:13.83: FF: animator:(m25obj_10) setSequence idle
00:01:13.83: FF: animator:(m25obj_10) Ignoring sequence request, already animating looping idle
00:01:13.83: FF: animator:(m25obj_2) setSequence idle
00:01:13.83: FF: animator:(m25obj_2) Ignoring sequence request, already animating looping idle
00:01:13.83: FF: animator:(m25obj_4) setSequence idle
00:01:13.83: FF: animator:(m25obj_4) Ignoring sequence request, already animating looping idle
00:01:13.83: FF: animator:(hero_1) setSequence idle
00:01:13.83: FF: animator:(hero_1) Ignoring sequence request, already animating looping idle
00:01:13.83: FF: animator:(hero_2) setSequence idle
00:01:13.83: FF: animator:(hero_2) Ignoring sequence request, already animating looping idle
00:01:14.01: FF: Script: resolveObj(): no object of name minutevil in factory
Title: Re: Missing character
Post by: Previsionary on February 16, 2010, 06:21:56 AM
00:01:14.01: FF: Script: resolveObj(): no object of name minutevil in factory

where is it drawing the bolded name from?
Title: Re: Missing character
Post by: John Jr. on February 16, 2010, 04:38:11 PM
When it could not find the minuteman_n I copied Minuteman and saved it as a villain called "Minutevil". I had the same result with both characters. The game can't find any of them.
If it's playing right in Benton's pc the problem is on my PCTales, right? I'll try re-install it. 
Title: Re: Missing character
Post by: BentonGrey on February 16, 2010, 04:46:39 PM
Hmm...have you added any new characters (other than those copies of evil minute man)?  If so, maybe you should run the control center.
Title: Re: Missing character
Post by: John Jr. on February 16, 2010, 04:50:08 PM
Only Red Moon.
And since the Mission plays (with Minuteman_N) in my other mod, I believe there's something wrong with my PCT.
Title: Re: Missing character
Post by: BentonGrey on February 16, 2010, 04:57:32 PM
Right, but messed up complex numbers could (possibly) cause that, and those would be different between mods.  However, you've got my templates.dat, which should have all of that already worked out.  You're right in the idea that this is definitely a problem specifically of your PCT folder.  Try installing it fresh and then installing my update over it.  See if it still gives you troubles.
Title: Re: Missing character
Post by: John Jr. on February 17, 2010, 05:08:18 AM
I was right. It was my PCT folder. I deleted it and reinstalled, no more missing character.
Thanks to all who tried to help!
Title: Re: Missing character
Post by: BentonGrey on February 17, 2010, 10:43:52 PM
Alright, the last CS for this mission isn't playing, and I can't spot anything particular that would cause it.  I'm seeing a strange report in the script.log, but I can't decipher it:

Spoiler
Traceback (innermost last):
  File "C:\Program Files\Irrational Games\Freedom Force vs The 3rd Reich\.\PCTales\missions\scripts\skXMapInfo.py", line 685, in MapInfo_CheckObjects2
    Object_UpdateGridPos (ms)
  File "C:\Program Files\Irrational Games\Freedom Force vs The 3rd Reich\.\PCTales\missions\scripts\skXMapInfo.py", line 565, in Object_UpdateGridPos
    if ts not in ff.MapInfo [maGrid
  • ] [maGrid [1]]:
    KeyError: -4
    clearCarrierRegistration: clearing attribute 'limeyluretoicepatchhero_1' for destroyed object 'sue'
    clearCarrierRegistration: clearing attribute 'powernulltostaticcagehero_2' for destroyed object 'sue'
    jane red_moon truth_ally1
    m25obj_26 ice_queen truth_ally2
    Traceback (innermost last):
      File "C:\Program Files\Irrational Games\Freedom Force vs The 3rd Reich\.\PCTales\missions\scripts\m25cutscene.py", line 93, in PlayCurrentCutscene
        exec cs_string
      File "<string>", line 1, in ?
      File "C:\Program Files\Irrational Games\Freedom Force vs The 3rd Reich\.\PCTales\missions\scripts\m25cutscene.py", line 201, in CS_Camera
        js.Camera_LookAtObject(obj, dist,pitch,yaw,speed,path,action)
    SystemError: NULL result without error in call_object
    initAttribsForChar: working on jane (red_moon)
    initAttribsForChar (red_moon): looking at attribute danger sense
    initAttribsForChar (red_moon): looking at attribute flier
    initAttribsForChar (red_moon): looking at attribute invulnerable
    execInitAttrib: init invulnerable attribute
        on jane of template red_moon (red_moon)
    initAttribsForChar (red_moon): looking at attribute battery
    execInitAttrib: init battery attribute
        on jane of template red_moon (red_moon)
    initAttribsForChar: working on m25obj_26 (ice_queen)
    initAttribsForChar (ice_queen): looking at attribute jumper
    initAttribsForChar (ice_queen): looking at attribute heavy lifter
    initAttribsForChar (ice_queen): looking at attribute bedevilled
Title: Re: Missing character
Post by: John Jr. on February 18, 2010, 12:42:49 AM
The CS would only show Red Moon talking with an Ice Queen,but is vital to the Mission, but I can't make it work. First we got a repeat of the earlier CS, then nothing.
May someone help us, please?
Thanks in advance!
Title: Re: Missing character
Post by: Previsionary on February 18, 2010, 03:51:40 AM
Can you also post the pertinent part of the actual mission script?
Title: Re: Missing character
Post by: BentonGrey on February 18, 2010, 05:27:12 AM
Yep:

Spoiler
#-------------------------------------------------------------------------------

Encounter: Eclipse1
Type: Custom
Actions: villain stops at one quarter health
Villains: red_moon named sue
Primary Objective: "Defeat Red Moon" for 200 prestige and 10 xp
next: Reveal1
marker: full

Alert Cutscene:
red arrow on red_moon

Start Cutscene:
camera on sue
sue says, "You need look no further, Liberty Lad. I'm here."
cinematic camera on liberty_lad
liberty_lad plays animation melee
liberty_lad says, "At last! I'm tired of your delaying tactics and mind games!"
sue says, "The voyage spent most of my power. I needed time to recharge and complete my equipment. But you are more resourceful than I thought. You found me..."
sea_urchin says, "Ok, tall, blond, and crazy, it's time to be a good villainess and explain all your plans. Because I don't understand why you are doing it at all!"
camera on sue
sue says, "Villain?! You are the villains here!!! Freedom Force destroyed my father's life, his honor and his own sanity!"
sue plays animation power
sue says, "I have only half of my power, but it will be enough to do justice and punish you for your father's crimes! And then I'll destroy the rest of your cursed Freedom Force!!"
sea_urchin says, "Woooohooo! she's totally bonkers!"
liberty_lad says, "Maybe so, but she's really powerful. We have to stop her or she will hunt down our partners!"   

End Cutscene:
camera on sue
sue says, "It's not over yet! I'll fight untill my dying breath!"
sea_urchin says, "Hey! What's happening with psycho blondie?"
liberty_lad says, "She's dissapearing?!"
sue says, "What? No! I spent too much energy! I'm being pulled back!!!"
sue says, "Noooo! It's not fair! I have to save my father! I have..."
sue is destroyed
camera on sea_urchin
sea_urchin says, "Do you have any idea of what happened here, LL?"
liberty_lad says, "No. I'm afraid we'll never know who Red Moon was..."
liberty_lad says, "And you know what? It doesn't matter! We defeated her and saved our partners. that's all that matters!"
sea_urchin plays animation power
sea_urchin says, "Yeah! We're the greatest!"
sea_urchin says, "Maybe we should make our own team! Something like Teen Freedom or Teen Force!"
sea_urchin says, "We just need a speedster, every  team needs one, and an archer and..."
fade for 3 seconds

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

Encounter: Reveal1
Type: Cutscene
Allies: red_moon named jane, ice_queen
marker: truth

Start Cutscene:
Unfade for 3 seconds
play music music_04winter_nw
cinematic camera on jane
jane says, "No! It's not fair! I was so close!"
ice_queen moves to jane
ice_queen says, "You are back already?! What happened?"
jane turns to ice_queen
jane says, "I failed, Olga... I couldn't save my father..."
jane says, "I hadn't energy enough to travel back to the right time. I arrived after Time Master's first defeat."
ice_queen says, "But that was too late! Your father had already been changed!"
jane says, "Freedom Force had disbanded after their victory over Time Master. I tried to change the past and destroy them before the team was reformed."
ice_queen says, "So you father would never try for his revenge and wouldn't betray our country. It was a great plan, darling!"
jane says, "No! I failed! They defeated me! They condemmed my father to a living hell...again!"
jane says, "And I'll never get energy enough for a new time jump..."
ice_queen says, "Who stoped you? You said Freedom Force has disbanded."
jane says, "Liberty Lad and Sea Urchin... Even as children they are my tormentors! But I won't give up, Olga!"
jane plays animation melee
jane says, "If I can't save my father I can still have my vengeance! I will destroy Freedom Force!"
jane plays animation power
jane says, "Such is the vow of Red Moon, such is the vow of Sukhov!!!"
fade for 3 seconds
Title: Re: Missing character
Post by: BentonGrey on February 18, 2010, 06:27:32 AM
Alright, working on a hunch, I teleported our first encounter's red_moon/sue instead of destroying her, and now everything plays properly....sorta....that first encounter's end CS plays three times, and THEN the next one starts.  It turns out this has been the problem the entire time.  That CS was trying to play three times, but with RM destroyed, it simply choked instead.

:EDIT:  I'm a super genius!  Okay, it turns out that the encounter was set up as a custom, with an action "Villain Stops at Quarter Health," which has always been a bit on the buggy side.  It wants its own CS, and since it didn't have one, it was apparently playing badly with the End CS.  I changed it to an Interrogate CS, and we're all set.  Everything is working!
Title: Re: Missing character
Post by: John Jr. on February 18, 2010, 10:50:13 PM
Thanks for the help, Benton. I made some minor fixes and already sent the package to you. I'll probably never would think the "custom encounter" angle.
Thanks again!