Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 21/11/07 13:11

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

OniSplit bug ?

How do I use OniSplit?

When double clicking the 120kb EXE some kind of black window appears and disappears instantly.

When using the commando "- help" the window disappears also in less than a second. It's too fast, I cannot read it. sad

Offline

#2 21/11/07 13:28

geyser
Member
From: beyond the veil
Registered: 14/1/07
Website

Re: OniSplit bug ?

It's "OniSplit -help". No space between "-" and "help".


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

#3 21/11/07 13:51

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

Re: OniSplit bug ?

Ok, sorry for posting the space. But "-help" has the same effect. What now?

Offline

#4 21/11/07 13:58

geyser
Member
From: beyond the veil
Registered: 14/1/07
Website

Re: OniSplit bug ?

You shouldn't double click it because it doesn't pause upon completion.
You should open a command prompt (Start/All Programs/Accessories).
I also recommend TotalCommander as a substitute for File Explorer smile
Anyway, the final Edition won't require the user to run OniSplit like that.


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

#5 21/11/07 15:52

m2
Member
Registered: 22/1/07

Re: OniSplit bug ?

When I start the program an error message pops up and tells me: "The application could not be initialized correctly (0xc0000135). Press OK to close the application."

The program is located in my Oni folder and I use Win XP. Do I need a special library (Java, .NET, etc.) to run OniSplit?

You should open a command prompt (Start/All Programs/Accessories).

Does not work for me. It produces the same message as above.

Offline

#6 21/11/07 16:09

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

Re: OniSplit bug ?

m2: Here are some basic instructions for using OniSplit. (Thanks to geyser)

You may need to install mono.  (Mac users must install mono to run OniSplit)
http://www.mono-project.com/Main_Page

Put OniSplit in the GameDataFolder
For the levels you want to change create a folder inside the GameDataFolder, such as level0_Fnal

In the terminal cd to the location where OniSplit is located.
Then in the terminal enter "mono OniSplit.exe -export level0_Final level0_Final.dat" (without the "")
This will split the level data into standalone resources.

Look inside the level0_Folder, there you will find named resources (including subrecources).
You can move or copy these resources between levels.

For example, create another folder level1_Final
Then in the terminal enter "mono OniSplit.exe -export level1_Final level1_Final.dat"
Go to the level1_Final directory and type:
"mono OniSplit.exe -copy ../level0_Final TRAMNINCOMfireball.oni"

Back up the original dat/raw (and sep for Mac users) files.
Then enter "mono OniSplit.exe -import level0_Final level0_Final.dat"
This wil create new level0_Final dat/raw/sep files.

Now you should be able to access the animation in any level.
To test: just enter "chr_animate 0 NINCOMfireball" at the console.

There may soon be scripts available that can automate the process.

Offline

#7 21/11/07 16:11

geyser
Member
From: beyond the veil
Registered: 14/1/07
Website

Re: OniSplit bug ?

You need .NET on PC and Mono on the Mac.
http://www.microsoft.com/downloads/deta … laylang=en
http://www.mono-project.com/Mono:OSX

Ed, have you tried the thing on OS X 10.5?

Oh, BTW, the current version is here:
http://cid-639aa31296681bfe.skydrive.li … _Debug.zip

Somebody please test it on OS X 10.5 smile

EDIT: Ed's instructions are OK, except that on PC you'll call OniSplit without the "mono ".
You can also type "onisplit" instead of "OniSplit.exe": case-insensitive, default extension.

Last edited by geyser (21/11/07 16:18)


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

#8 21/11/07 16:15

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

Re: OniSplit bug ?

geyser: Nope, still at work...

Question: To add characters to level0_Final what files do you need to copy over?
For example Barabas from the Lab level.

Something for me to try later on.

Last edited by EdT (21/11/07 16:35)

Offline

#9 21/11/07 17:11

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

Re: OniSplit bug ?

With "command prompt" and -help I get also a fast closing window. But not important.

I typed "-export level0_Final level0_Final.dat" like Edt and OniSplit did it job.
Then I did same with level1_Final and further instructions.
A test activation in devmode failed... hmm Will try it tomorrow again.

Offline

#10 21/11/07 18:02

geyser
Member
From: beyond the veil
Registered: 14/1/07
Website

Re: OniSplit bug ?

Whatever a "test activation" is, paradox...

With "command prompt" and -help I get also a fast closing window.

Maybe we're not talking of the same command prompt.
The command prompt I suggested is a black window.
It should be there before you run OniSplit from it...
And it shouldn't close after OniSplit has completed.


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

#11 21/11/07 20:33

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

Re: OniSplit bug ?

geyser: mono and OniSplit works on 10.5 and Intel Macs.


I tried the command: chr_animate 0 NINCOMfireball, however it comes out chr_animate 0 nincomfireball and then I get the error message that the animation is not found.  Holding down the SHIFT or CAPSLOCK key does not make a difference.  Its probably the same issue with the RETURN key.  Though in-game the SHIFT key works.

Oh well, I'm ready to test more things with OniSplit!

Last edited by EdT (22/11/07 0:32)

Offline

#12 22/11/07 8:41

geyser
Member
From: beyond the veil
Registered: 14/1/07
Website

Re: OniSplit bug ?

Ed, we've been through this. If you can't type any capitals (we'll look into that problem ASAP), you can still script anything you want.
Just try the following level logic in a level that doesn't have any ninja or droids originally (i.e., chapters 2-7, 12, and 13) and report.

func main {
        fork GreatBallsOfFire
}
func GreatBallsOfFire {
        chr_wait_animtype 0 Punch
        chr_animate 0 NINCOMfireball
        sleep 30
        fork GreatBallsOfFire
}

Other than that, great news that OniSplit now works on all platforms.

Here's 0.7: http://geyser.oni2.net/proggies/OniSplit_v0.7.zip
0.7 EXE alone: http://geyser.oni2.net/proggies/OniSplit.exe
We'll be writing automatic recombination scripts now.
And advertising everywhere we can smile

Last edited by geyser (22/11/07 9:40)


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

#13 22/11/07 10:14

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

Re: OniSplit bug ?

Edt wrote:

Go to the level1_Final directory and type:
"mono OniSplit.exe -copy ../level0_Final TRAMNINCOMfireball.oni"

1) What is meant by the first line? I can't open there a cmd...

2) I looked into the extracted "level0_Final" folder but there wasn't a file called "TRAMNINCOMfireball.oni"
There is:
BINA3RAPenv_fireball_e01.oni
BINA3RAPenv_fireball_p01.oni
BINA3RAPenv_fireball_p02.oni
TXMPfireball.oni
TXMPw5_fireball.oni

You see I'm confused like always.

However, I don't want that you waste time by explaining me how your beta is working. I will wait til OniSplit is idiotsafe controllable.^_^ Cheers.

Offline

#14 22/11/07 11:30

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

Re: OniSplit bug ?

geyser: I got the console message: no particle found for anim NINCOMfireball particle 'fireball'

EDIT: OK this is interesting, I tested the command on other levels (including level 1) that has ninjas such as the compound level and I still got the same error message: no particle found for anim NINCOMfireball particle 'fireball'

Also, I found another problem, in the terminal after I cd to the level1_Final folder, the command:
"mono OniSplit.exe -copy ../level0_Final TRAMNINCOMfireball.oni"
produces the message: "Cannot open assembly OniSplit.exe."

(Originally, I just manually copied and pasted TRAMNINCOMfireball.oni into the level0_Final folder, but I thought I should test out the terminal command)

I'm not sure what is the correct syntax for that command.


paradox: You first need to export level1_Final, then in that folder you'll find TRAMNINCOMfireball.oni.  That's the file you move to level0_Final.  Though as you can see for me, I'm missing the particle.

Last edited by EdT (22/11/07 12:10)

Offline

#15 22/11/07 13:29

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

Re: OniSplit bug ?

Okay, thanks. It seems that I didn't type right the command.
Now I copied the file from level1 folder to level0 folder and let building OniSpilt the new archive.
BTW, the particles are missing on PC as well. hmm
Maybe they are not global and we have to search them in levels where they are for sure (state / roof /...).
Or Konoko can't use the particles. Once I tested Muro's DreamLab-dying-animation in compound. Result was that Konoko can't use them but Griffin and some others. If that's the case maybe you can edit the links in OUP. Just an idea.

Last edited by paradox-01 (22/11/07 13:29)

Offline

#16 22/11/07 13:36

geyser
Member
From: beyond the veil
Registered: 14/1/07
Website

Re: OniSplit bug ?

@paradox:
1) Once you open a command prompt, you can navigate to any folder with cd whatever.
See here, for example: http://www.geocities.com/tlawlessrr/dos.htm (upper right table cell)
If you have drives other than C, say, D, then just enter d: (just that, no "cd") to go there.
I recommend TotalCommander, which allows you to run the prompt from any folder.

2) You misread Ed's instructions: TRAMNINCOMfireball.oni is in the level1_Final folder.

@ EdT:
I completely forgot about the particle having to be in the character's ONCP, but it won't matter.
You should have seen the animation play even if the character is missing the particles for it smile
And if a particle-less NINCOMfireball is not good enough, well, how about NINCOMtaunt2? wink

As for "Cannot open assembly OniSplit.exe.", that's totally my fault. Bad instructions.
You'll get this error whenever OniSplit.exe can't be found in the current folder.
Either you copy OniSplit.exe to level1_Final (which I did, as a dirty quick hack).
Or you can try "mono ../OniSplit.exe -copy ../level0_Final TRAMNINCOMfireball.oni" from "level1_Final",
or "mono OniSplit.exe -copy level0_Final level1_Final/TRAMNINCOMfireball.oni" from "GameDataFolder".

Rest assured that there will be foolproof clickable/platypusable batch scripts Soon Enough (TM).

Last edited by geyser (22/11/07 13:43)


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

#17 22/11/07 16:36

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

Re: OniSplit bug ?

Hmmm... this is cool, I was able to modify BINACJBOMelee Profile.oni with Loser's melee profile, by using a hex editor.

Does this mean a program similar to OUP could be written that runs on a Mac?  I tried looking at a file in OUP and the one created by OniSplit. The file with OniSplit has more data at the beginning but at some point they are the same.  I guess this is the offset point in OUP.

geyser: Thanks for the corrected instructions.

Offline

#18 22/11/07 19:18

geyser
Member
From: beyond the veil
Registered: 14/1/07
Website

Re: OniSplit bug ?

@ paradox and other Windows users:
As detailed HERE, you can save the following:

REGEDIT4
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="Open Command Window Here"
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd.exe /k \"cd %L\""
[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@="Open Command Window Here"
[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@="cmd.exe /k \"cd %L\""

as whatever.reg, then Start/Run regedit (gasp!) and File/Import it.
You should then be able to Open Command Window Here anywhere.

@EdT:
An .oni file is basically a .dat file built according to Oni's standards.
The only exception is that the raw/sep data is appended to the .dat.
So the "data at the beginning" of an .oni file is just the .dat header.
OUP handles that header too, but never lets you see or edit it.
Instead, OUP shows you the .dat one resource at a time.

An .oni file can, generally speaking, store more than one resource.
In fact, it stores the whole subtree down to other named resources.
So, e.g., for an animated texture it would store the whole animation.

The sweet thing is that BINACJBOMelee Profile.oni is now completely compatible across versions. You can very easily share any changes you make.
The user can either overwrite his own BINACJBOMelee Profile.oni file with your version or, better, impress the actual changes on it with a delta patch.

Does this mean a program similar to OUP could be written that runs on a Mac?

Well, of course it's possible, but no one really wants to code that. The idea for now is that OUP can still be used to work with select .oni files
(You can recombine a small collection of .oni files into shpadoinkle.dat/raw/sep, then edit that one in OUP as usual, then split it again, etc)
Neo, for one thing, is not interested in writing a cross-platform GUI for editing the resources. He'd rather export the resources as ASCII smile
Anyway, the biggest priority for the Seventh Anniversary is not a neat modding tool, but a neat mod, and OniSplit allows for that already.


Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.

Offline

Board footer

Powered by FluxBB