Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 06/22/08 14:06

Striker
Member
From: Toronto, ON
Registered: 03/10/08

Characters

Hey guys! I have a question: Can you spawn a character if it is not in the chapter you are using? If it is possible, please tell me how. Thanks wink


Click here to see the Oni Roleplay map. Click here to roll the dice. Click here to see the proper troop terminologies.

Offline

#2 06/22/08 14:06

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

Re: Characters

Quite possible. You need to edit the BINACJOCharacter to add new characters into a level (Found in level_# folder).

Here's a tutorial: http://wiki.oni2.net/AE:Adding_spawnable_characters
You'll need a hex editor.


"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

#3 06/22/08 15:06

Striker
Member
From: Toronto, ON
Registered: 03/10/08

Re: Characters

Thanks, but it's too complicated. My brain isn't fast and strong enough to get this. I'm only 13.


Click here to see the Oni Roleplay map. Click here to roll the dice. Click here to see the proper troop terminologies.

Offline

#4 06/22/08 15:06

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

Re: Characters

I'm only 14 =P


"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

#5 06/22/08 15:06

Striker
Member
From: Toronto, ON
Registered: 03/10/08

Re: Characters

Can anyone tell me another way if there is?


Click here to see the Oni Roleplay map. Click here to roll the dice. Click here to see the proper troop terminologies.

Offline

#6 06/22/08 15:06

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

Re: Characters

We got a alternative method recently. It looks much but is actually easier.

-----

http://cid-639aa31296681bfe.skydrive.li … _beta4.zip

Unzip it and place onisplit_beta.exe into "edition\GameDataFolder".
(Level 18 and 19 will be just examples.)


Enter following into your window address bar:
onisplit_beta -extract:xml xml_dir/18 level18_Final/BINACJBOCharacter.oni
wait a second and enter the next line
onisplit_beta -extract:xml xml_dir/19 level19_Final/BINACJBOCharacter.oni

This was for PC.
In case you have a Mac: use:
mono OniSplit_beta.exe


Now there is folder named "xml_dir" and subfolder named "19" and "18". There you find the converted BINACJBOCharacter files.
Open BINACJBOCharacter.oni in "18" by using a text editor. Copy everything from the start object tag to the end object tag "<Object Id="819" Type="CHAR">" "</Object>"
(These tags included. It's 71 lines in total for me.)


Paste it into BINACJBOCharacter (folder "19") under "<ObjectCollection>"
Save it.
Go to "edition\GameDataFolder" and enter the following line into the window address bar.
onisplit_beta -create oni_dir xml_dir/19/BINACJBOCharacter.xml

Go to folder "oni_dir", copy BINACJBOCharacter.oni into edition\GameDataFolder\level19_Final
Recompile your level by using step9999.bat or a modified bat file.


You can make a new bat like this:
Open text editor, copy following into it, save it, place it into edition\install, start it.

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

The code can be smaller but it doesn't matter.

See the 19 there? You can create other bat files for other levels...

Last edited by paradox-01 (06/22/08 16:06)

Offline

#7 06/22/08 17:06

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

Re: Characters

O_o your method looks more complicated than mine...but mine might have required more manual copypasting. *shrugs*


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

#8 06/22/08 22:06

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

Re: Characters

My brain isn't fast and strong enough to get this. I'm only 13.

Striker: Don't underestimate yourself, you did a very good job on your first script.  if you have the desire to learn, you can learn hex editing or anything you want.

Offline

#9 06/23/08 07:06

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

Re: Characters

paradox-01 wrote:

We got a alternative method recently. It looks much but is actually easier.

-----

http://cid-639aa31296681bfe.skydrive.li … _beta4.zip

Unzip it and place onisplit_beta.exe into "edition\GameDataFolder".
(Level 18 and 19 will be just examples.)


Enter following into your window address bar:
onisplit_beta -extract:xml xml_dir/18 level18_Final/BINACJBOCharacter.oni
wait a second and enter the next line
onisplit_beta -extract:xml xml_dir/19 level19_Final/BINACJBOCharacter.oni

This was for PC.
In case you have a Mac: use:
mono OniSplit_beta.exe


Now there is folder named "xml_dir" and subfolder named "19" and "18". There you find the converted BINACJBOCharacter files.
Open BINACJBOCharacter.oni in "18" by using a text editor. Copy everything from the start object tag to the end object tag "<Object Id="819" Type="CHAR">" "</Object>"
(These tags included. It's 71 lines in total for me.)


Paste it into BINACJBOCharacter (folder "19") under "<ObjectCollection>"
Save it.
Go to "edition\GameDataFolder" and enter the following line into the window address bar.
onisplit_beta -create oni_dir xml_dir/19/BINACJBOCharacter.xml

Go to folder "oni_dir", copy BINACJBOCharacter.oni into edition\GameDataFolder\level19_Final
Recompile your level by using step9999.bat or a modified bat file.


You can make a new bat like this:
Open text editor, copy following into it, save it, place it into edition\install, start it.

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

The code can be smaller but it doesn't matter.

See the 19 there? You can create other bat files for other levels...

so,the new OniSplit can Mod BINACJBOCharacter file as xml now?
and could it do all the things the old OniSplit can do?

Offline

#10 06/23/08 09:06

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

Re: Characters

coool wrote:

so,the new OniSplit can Mod BINACJBOCharacter file as xml now?
and could it do all the things the old OniSplit can do?

"Yes" to both questions.

Offline

#11 06/24/08 00:06

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

Re: Characters

thanks,i hope we can mod TRAC as xml soon big_smile

Offline

#12 06/24/08 03:06

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

Re: Characters

You can mod them as xml already. smile

Offline

#13 06/24/08 04:06

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

Re: Characters

Oh,sorry ,I mean TRAM,not TRAC
but it seems we can mod TRAM as xml already big_smile

hmm...I saw all messages about animations in TRAM.xml,but I can't make xml files to .oni files sad

Last edited by coool (06/24/08 04:06)

Offline

#14 06/24/08 07:06

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

Re: Characters

coool: Importing TRAMs are more difficult, since they include RAW data (parts of the information is located in the level0_Final.raw file). Hopefully, one day, we will be able to edit TRAM in .xml.

Offline

#15 09/05/08 11:09

lawl
Member
Registered: 09/05/08

Re: Characters

Greetings people! I'm new to this forum but already have a problem. I'm trying to do the same thing - add all characters to all levels to be able to switch to any of them any time - but I'm doing this for the vanilla Oni. No Anniversary Edititon, no .dll, no nothing. AE is a really solid mod, it just alters the gameplay too much for me. So i followed the instructions above, I extracted the files from a .dat, converted BINACJBOCharacter.oni to .xml, modified it and took the same steps backwards. But when I started the game and loaded up the corresponding map only the original characters were selectable, the ones before any of the hacking took place. I even compiled my data file with the very same BINACJBOCharacter.oni the AE uses, as it provides all characters for all maps, but got the same results. So I'm either screwing up big time - don't know how - or not altering the file I should be. Come to think of it, it is kinda strange that using the AE mod the same list of models are selectable on every level, yet each BINACJBOCharacter.oni differ in size.

By the way I'm not really into coding, so you have to spoon-feed me on this one if you choose to help me big_smile


Cheers everyone and thanks in advance.

Last edited by lawl (09/05/08 13:09)

Offline

#16 09/05/08 22:09

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

Re: Characters

Hello! I can help you there.

Without installing AE, you don't have globalized characters, which is a bit of a problem. The AE install process hasn't been split up properly into different "modular mods". I think I can help you though, because I recently started work on splitting it up (with geyser's permission). HOWEVER, I have been using a shared computer recently, so haven't had uninterrupted time. Luckily, I just got my new computer today (woot!), so I have time to mod, BUT NOT TONIGHT. This computer came with nothing installed, no software, no OS, no drivers (yuck), no nothing (and no bloatware ^_^). I can help you in a day or two.


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

#17 10/09/08 17:10

lawl
Member
Registered: 09/05/08

Re: Characters

I'm sorry to bother you, but is it going to happen any time soon? big_smile

Offline

#18 10/10/08 12:10

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

Re: Characters

* spontaneous drop by *
Following zip pack contains a modified "AE". (There are no patches at all ("step4" was killed), only the globalization making is kept.) For Mac, for PC.
Consider yourself hired for beta-testing.  smile

Offline

#19 10/10/08 16:10

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

Re: Characters

D: I am horrible at commitments. I had completely forgetten about this. sad Thank you very much paradox!


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

#20 10/23/08 16:10

lawl
Member
Registered: 09/05/08

Re: Characters

Sir, yes sir!

Oookay, found one bug so far. There's a brown Striker in the first mission - the warehouse - just at the end of a staircase. He's at the bottom and you come from the top. Now for some reason this guy is turned into a midget. Like the ones you encounter on the dream level.

I haven't had much time recently so I'm a little behind schedule on the extensive bug search program but I'll do my best.

Oh and by the way thanks again for fixing me this light version.

Last edited by lawl (10/23/08 16:10)

Offline

#21 10/23/08 18:10

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

Re: Characters

That means you are using an old version of the Edition. Please refer to http://oni.bungie.org/community/forum/v … php?id=676 .


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

#22 10/27/08 15:10

lawl
Member
Registered: 09/05/08

Re: Characters

Umm, nooo... I reinstalled Oni and then applied AE lite. The one posted above. Not the standard AE. So it's a problem inherent to the lite edition. I guess...

Offline

#23 10/27/08 18:10

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

Re: Characters

....yes, there would be a problem. There is a bug with broken ONCCs (I think thats what it is) and character globalization. One of the steps in the normal AE fixes the bug...

http://mods.oni2.net/sites/default/file … (lite).zip

That should fix the problem.

Last edited by Gumby (10/27/08 18:10)


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

#24 11/14/08 18:11

lawl
Member
Registered: 09/05/08

Re: Characters

It did! Well everything seems to work just fine. No bugs encountered so far. Thanks again for helping.

Offline

#25 12/31/08 06:12

A8D
Member
Registered: 12/06/08

Re: Characters

For a script, I'd like to be able to spawn Mukade in the first level. I've modified the BINACJBOCharacter.oni file correctly (I hope), but I'm not sure how to recompile the level... Is it with the -import parameter in OniSplit ?


Where there's a will for Oni II, there's a way !

Offline

Board footer

Powered by FluxBB