Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 9/10/09 12:13

Leus
Member
From: Boone, NC
Registered: 28/5/09
Website

Character problem

Sigh.  Well I guess I'm officially delving into the world of XML dabbling, maybe inspired by Samoko's recent journey into the BSL world...  But stuff keeps not working.  smile

So here's what I'm working with now.  I added two new characters to the Compound AKA level19.  They're a cop female and a cop male.  Their scripts are exactly the same as a cop female and cop male from TCTF HQ first encounter, or level8, except that I changed their object IDs, names and start positions/rotations.

I want them to be able to come up in the helicopter at a certain point, so I changed their start positions/rotations to match those of GrifOps01 and GrifOps02.

Earlier on, I have Griffin and all three GrifOps show up just so I can test having multiple helicopter loads of people come.  Griffin and his men show up fine.  Then the cinematic starts that's supposed to have the cop female and cop male show up, only this time the helicopter is empty.

I tried just spawning the cops and teleporting them to known working flags (still having gotten my custom flag issue worked out, either), but they don't show up there either.  Somehow they just don't exist in the level.

So let me show you what I've got for them:

        <Object Id="31999" Type="CHAR">
            <Header>
                <Flags>0</Flags>
                <Position>-133.431183 1485 -2722.87183</Position>
                <Rotation>166.891556 353.131317 102.228622</Rotation>
            </Header>
            <OSD>
                <Flags>RandomCostume NotInitiallyPresent</Flags>
                <Class>CopfemA2</Class>
                <Name>CopGirl1</Name>
                <Weapon>w1_tap</Weapon>
                <Scripts>
                    <Spawn></Spawn>
                    <Die></Die>
                    <Combat></Combat>
                    <Alarm></Alarm>
                    <Hurt></Hurt>
                    <Defeated></Defeated>
                    <OutOfAmmo></OutOfAmmo>
                    <NoPath></NoPath>
                </Scripts>
                <AdditionalHealth>0</AdditionalHealth>
                <Job>
                    <Type>None</Type>
                    <PatrolPathId>0</PatrolPathId>
                </Job>
                <Behaviors>
                    <CombatId>0</CombatId>
                    <MeleeId>35</MeleeId>
                    <NeutralId>3</NeutralId>
                </Behaviors>
                <Inventory>
                    <Ammo>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </Ammo>
                    <EnergyCell>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </EnergyCell>
                    <Hypo>
                        <Use>0</Use>
                        <Drop>1</Drop>
                    </Hypo>
                    <Shield>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </Shield>
                    <Invisibility>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </Invisibility>
                </Inventory>
                <Team>TCTF</Team>
                <InitialAmmo>50</InitialAmmo>
                <Alert>
                    <Initial>Low</Initial>
                    <Minimal>Lull</Minimal>
                    <JobStarting>Low</JobStarting>
                    <Investigating>Medium</Investigating>
                </Alert>
                <AlarmGroups>0</AlarmGroups>
                <Pursuit>
                    <Strong>5</Strong>
                    <Weak>1</Weak>
                    <StrongSeen>6</StrongSeen>
                    <WeakSeen>4</WeakSeen>
                    <Lost>0</Lost>
                </Pursuit>
            </OSD>
        </Object>
        <Object Id="31998" Type="CHAR">
            <Header>
                <Flags>0</Flags>
                <Position>-154.98201 1485 -2725.328</Position>
                <Rotation>180 330.371979 180</Rotation>
            </Header>
            <OSD>
                <Flags>RandomCostume NotInitiallyPresent</Flags>
                <Class>CopmaleA1</Class>
                <Name>CopGuy1</Name>
                <Weapon></Weapon>
                <Scripts>
                    <Spawn></Spawn>
                    <Die></Die>
                    <Combat></Combat>
                    <Alarm></Alarm>
                    <Hurt></Hurt>
                    <Defeated></Defeated>
                    <OutOfAmmo></OutOfAmmo>
                    <NoPath></NoPath>
                </Scripts>
                <AdditionalHealth>0</AdditionalHealth>
                <Job>
                    <Type>None</Type>
                    <PatrolPathId>0</PatrolPathId>
                </Job>
                <Behaviors>
                    <CombatId>2</CombatId>
                    <MeleeId>4</MeleeId>
                    <NeutralId>5</NeutralId>
                </Behaviors>
                <Inventory>
                    <Ammo>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </Ammo>
                    <EnergyCell>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </EnergyCell>
                    <Hypo>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </Hypo>
                    <Shield>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </Shield>
                    <Invisibility>
                        <Use>0</Use>
                        <Drop>0</Drop>
                    </Invisibility>
                </Inventory>
                <Team>TCTF</Team>
                <InitialAmmo>100</InitialAmmo>
                <Alert>
                    <Initial>Low</Initial>
                    <Minimal>Lull</Minimal>
                    <JobStarting>Low</JobStarting>
                    <Investigating>Medium</Investigating>
                </Alert>
                <AlarmGroups>0</AlarmGroups>
                <Pursuit>
                    <Strong>5</Strong>
                    <Weak>1</Weak>
                    <StrongSeen>6</StrongSeen>
                    <WeakSeen>4</WeakSeen>
                    <Lost>0</Lost>
                </Pursuit>
            </OSD>
        </Object>


If we don't change the direction we're going, we'll likely end up where we're headed.

Offline

#2 9/10/09 13:29

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/07
Website

Re: Character problem

What did you do with the modified BINACHAR file?

Did you replace the one Samer made in the Final Fight package?

Offline

#3 9/10/09 19:41

Leus
Member
From: Boone, NC
Registered: 28/5/09
Website

Re: Character problem

I think that may have been the problem.  I made mine into a package and installed it instead of Samoko's final fight and the cops showed up this time.

Thanks, EdT smile


If we don't change the direction we're going, we'll likely end up where we're headed.

Offline

#4 11/10/09 10:00

Samer
Member
From: Lebanon
Registered: 4/9/09
Website

Re: Character problem

shn bot and casey rule tongue  cool  hehe kidding hope it works out for u and we get to see what u're working on soon smile if u need help with xml editing i'm getting kinda good at it big_smile


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

Board footer

Powered by FluxBB