Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 27/11/15 18:32

Scarlett
Member
From: Jamaica
Registered: 25/11/15

Troubles with adding character to a level

So I created my character and I can use her with all the custom moves I gave her as I wish, however I wanted to see how it would work as an AI, so I modified a melee profile.oni and a BINACJBOCharacter.oni for the tctf headquarter level. My character spawns well but once she gets in combat, oni crashes. Added some combos to the melee profile (I don't remember that the melee profil file is called),  and add copied one of these:


        <Object Id="8733" Type="CHAR">
           <Header>
               <Flags>0</Flags>
               <Position>-112.0837 1486 -2619.775</Position>
               <Rotation>0 171.3265 0</Rotation>
           </Header>
           <OSD>
               <Flags>NotInitiallyPresent Omniscient Boss</Flags>
               <Class>Naomi</Class>
               <Name>naomi</Name>
               <Weapon />
               <Scripts>
                   <Spawn />
                   <Die></Die>
                   <Combat />
                   <Alarm />
                   <Hurt />
                   <Defeated />
                   <OutOfAmmo />
                   <NoPath />
               </Scripts>
               <AdditionalHealth>0</AdditionalHealth>
               <Job>
                   <Type>None</Type>
                   <PatrolPathId>0</PatrolPathId>
               </Job>
               <Behaviors>
                   <CombatId>0</CombatId>
                   <MeleeId>43</MeleeId>
                   <NeutralId>0</NeutralId>
               </Behaviors>
               <Inventory>
                   <Ammo>
                       <Use>0</Use>
                       <Drop>3</Drop>
                   </Ammo>
                   <EnergyCell>
                       <Use>0</Use>
                       <Drop>3</Drop>
                   </EnergyCell>
                   <Hypo>
                       <Use>1</Use>
                       <Drop>0</Drop>
                   </Hypo>
                   <Shield>
                       <Use>0</Use>
                       <Drop>0</Drop>
                   </Shield>
                   <Invisibility>
                       <Use>0</Use>
                       <Drop>0</Drop>
                   </Invisibility>
               </Inventory>
               <Team>Syndicate</Team>
               <InitialAmmo>100</InitialAmmo>
               <Alert>
                   <Initial>Low</Initial>
                   <Minimal>Low</Minimal>
                   <JobStarting>Low</JobStarting>
                   <Investigating>Low</Investigating>
               </Alert>
               <AlarmGroups>0</AlarmGroups>
               <Pursuit>
                   <Strong>4</Strong>
                   <Weak>1</Weak>
                   <StrongSeen>4</StrongSeen>
                   <WeakSeen>4</WeakSeen>
                   <Lost>0</Lost>
               </Pursuit>
           </OSD>
       </Object>

And modified to what you see above except for the alert and pursuit because I copied those from RED_HARD_1. So can anyone tell me what I did wrong?

Offline

#2 28/11/15 4:29

paradox-01
Member
From: Germany
Registered: 14/1/07

Re: Troubles with adding character to a level

You should make small changes at a time and see where it breaks.

E.g. test your CHAR as Ai with an original MELE id. If it's good continue with a cloned id with only a few changes.

Last edited by paradox-01 (28/11/15 4:56)

Offline

Board footer

Powered by FluxBB