Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 06/27/08 03:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Question about add NPC's to existing levels

I have Open BINACJBOCharacter.oni from level8_Final folder

and i try to add a npc name is "B_Lbo26"
i change this like:
78 27= 2778 ...299c= 9c29
70 27= 2770 ...2994= 9429

and run the *.bat white this:

ECHO OFF
ECHO Recombining final level archives...
FOR %%L IN (8) DO (
    FOR %%D IN (..\GameDataFolder\level%%L_Final) DO (
        IF EXIST %%D (
            IF EXIST ..\..\GameDataFolder\level0_Final.sep (
                OniSplit.exe -import:sep %%D %%D.dat
            ) ELSE (
                OniSplit.exe -import:nosep %%D %%D.dat
            )
        )
    )
)

Now i try to use the npc in level ...but it can't appear in savepoint 1

if (save_point eq 1)
    {
        my_save_point=1;    
        dprint restore1
        set_objective_1
        particle smoke start
        particle security_locklight01 do start
        env_show 398 0
        #turn off unbroken curtain wall
        env_show 98 0
        #turn on broken curtain wall
        env_show 99 1
        #show gunk van 
        env_show 101 1 
        env_show 103 1
        env_show 104 1
        env_show 105 1
        env_show 106 1
        env_show 107 1
        env_show 108 1
        env_show 444 1
        env_show 97 0
        #show gunk motorcycle
        env_show 110 1
        env_show 111 1
        env_show 112 1
        #show door gunk
        env_show 321 1
        env_show 322 1
        env_show 323 1
        env_show 324 1
        env_show 325 1
        env_shade 321 325 .3 .3 .3
        ai2_spawn lobby_striker_01
        ai2_spawn lobby_striker_02
        ai2_spawn lobby_striker_03
                                ai2_spawn B_Lbo26
                                chr_teleport B_Lbo26 1
        music_intro
        restore_game
        sleep 7
        sound_dialog_play c07_22_01konoko
        particle LobbyWall do explode
    }

Last edited by gmsly (06/27/08 04:06)

Offline

#2 06/27/08 04:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Question about add NPC's to existing levels

is konoko spawned at flag 1?


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#3 06/27/08 04:06

coool
Member
From: China Haikou
Registered: 02/12/08

Re: Question about add NPC's to existing levels

you can post the oni file and we can test it

Offline

#4 06/27/08 04:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

Gumby wrote:

yes it is

Offline

#5 06/27/08 04:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

coool wrote:

Upload now smile

Offline

#6 06/27/08 09:06

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

Re: Question about add NPC's to existing levels

gmsly: It works fine for me, B_Lbo26 spawns next to Konoko.

Offline

#7 06/27/08 09:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

Why it can not works for me....why ...my system is vista sp1

Last edited by gmsly (06/27/08 09:06)

Offline

#8 06/27/08 09:06

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

Re: Question about add NPC's to existing levels

gmsly: Can you confirm that level8 has been rebuilt using the bat file.  Take a look at the modification or creation date of level8_Final.dat

Offline

#9 06/27/08 09:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

OH... the bat  can not rebuilt a new file... what can i do

Offline

#10 06/27/08 10:06

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

Re: Question about add NPC's to existing levels

gmsly: Are all the files in the same location when you first installed AE?

What happens when you run step9999.bat, does that rebuild all the levels?

If so, then I think this command should work for you when you want to rebuild a certain level.

OniSplit.exe -import:nosep ..\GameDataFolder\level8_Final ..\GameDataFolder\level8_Final.dat

Offline

#11 06/27/08 11:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

yes .all the files in the same location
when I run the step9999.bat... levels rebuild only level8_Final.dat and level8_Final.raw...why .. i only rework the BINACJBOCharacter.oni in level8_Final

and when i run the *.bat to rebuild level8..and the cmd show the bat.jpg like...i don't know the jpg what it mean.

Last edited by gmsly (06/27/08 11:06)

Offline

#12 06/27/08 11:06

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

Re: Question about add NPC's to existing levels

Nor sure what that means.  Do you have the latest version of OniSplit?

The error messages should provide more detail about what's wrong.

Did you check the level8_Final folder to see if there are some files that don't belong there: .gif, .jpg, .txt, and so on.

Offline

#13 06/27/08 19:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

haha... find a the problem is : i add a new folder name is "backup" in level8_Final folder......and it can't work

now i remove the "backup" and it run...the lesson is told us not to add any thing in level*_Final folder... =.=

Last edited by gmsly (06/27/08 19:06)

Offline

#14 06/27/08 19:06

Barneyhater
Member
From: New York City, NY, USA
Registered: 04/13/08
Website

Re: Question about add NPC's to existing levels

Cool! I look forward to what you do with it wink


"It is not hatred but indifference that will destroy us." -Unknown
"One death is a tragedy. The death of a million is a statistic" -Joseph Stalin

Offline

#15 06/27/08 20:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

cool

Offline

#16 06/27/08 21:06

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

Re: Question about add NPC's to existing levels

gmsly: Take a look at the follow me script by Gumby:


You might be able to use it with B_Lbo26

Offline

#17 06/27/08 23:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

Thank you EdT smile

Offline

#18 06/27/08 23:06

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Question about add NPC's to existing levels

Wow...I had forgotten about that script...


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#19 06/27/08 23:06

gmsly
Member
From: VY CMa
Registered: 05/17/08

Re: Question about add NPC's to existing levels

And Thank you Gumby.this script is interesting and I learn a lot big_smile

Offline

Board footer

Powered by FluxBB