Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 9/10/09 8:39

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

Flag problem

I edited the BINACJBOFlag file for level19 and tried to convert it back to ONI.  I choose the proper destination folder, select the file, click convert then click run.  It says "press any key" in the prompt like it worked, but in the destination folder there is no file.

I tried converting the BINACJBOCharacter file for level 19 from XML to ONI in the exact same way, same destination and everything, and it worked.  So.......  Any idea?

Last edited by Leus (9/10/09 9:17)


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

Offline

#2 9/10/09 8:45

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

Re: Flag problem

Nevermind!  I put commas between the dimensional coordinates for some reason.  I deleted them and it works now.  smile


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

Offline

#3 9/10/09 8:45

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: Flag problem

It's possible that you made a typo and OniSplit is rejecting the file.  Have you tried using OniSplit on the command line to import the file?  That way you will see an error message, if there is one.  Also, if you have a program that displays XML files in a nested tag format, it will help you find errors like improperly-closed tags.

Edit: Heh, never mind here too then.

Last edited by Iritscen (9/10/09 8:46)


byproducts are fine, but where's the beef?

Offline

#4 9/10/09 8:55

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

Re: Flag problem

smile  Thanks anyway.


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

Offline

#5 9/10/09 9:23

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

Re: Flag problem

Man, this makes no sense.  First of all, I thought "movetoflag" would make them actually run to the flag, but instead it just...moved them there.

So I took that out and instead just tried to have them teleport into the room where the GrifElites appear in the final fight and then I made them "makeaware" of me...  But for some reason some of the characters still appeared at the flags I originally had the "movetoflag" to, but now those flags don't appear anywhere in the script so I have no idea why they're still appearing there...

So I tried to start it fresh and just had some other characters spawn in the GrifElite spawn room, but now it's saying that all the flags I added don't exist...

I made the FlagIds 997, 998, 999, and 981 through 989, and I can't "chr_teleport 0 0997," for instance, myself to ANY of these flags using developer mode...  Says they don't exist....


Here, let me show you guys ALL the flags I added and see if anyone can see anything wrong.

        <Object Id="12340" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-158.154205 1485 -2064.517090</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>999</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12341" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-207.938461 1485 -2064.689453</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>998</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12342" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-182.861343 1485 -2089.347656</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>997</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12350" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-150.0 1486.0 -2530.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>989</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12351" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-120.0 1486.0 -2530.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>988</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12352" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-90.0 1486.0 -2530.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>987</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12353" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-150.0 1486.0 -2560.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>986</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12354" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-120.0 1486.0 -2560.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>985</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12355" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-90.0 1486.0 -2560.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>984</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12356" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-150.0 1486.0 -2590.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>983</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12357" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-120.0 1486.0 -2590.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>982</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>
        <Object Id="12358" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-90.0 1486.0 -2590.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>981</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>


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

Offline

#6 9/10/09 11:11

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

Re: Flag problem

At work, no access to my files, but going from memory, I think, the flag numbers should go here:
<Flags>981</Flags>

Take a look at the original flag data.

Offline

#7 9/10/09 11:23

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

Re: Flag problem

In the original all the flags had "0" in the <Flags> tag, and the flag number you use to teleport guys to in the <FlagId> tag, so that's how I set mine up.

It was weird because I know it at least PARTIALLY worked because I got guys to teleport to a few of them at first, but now the game is saying that none of the new flags exist.

Last edited by Leus (9/10/09 11:24)


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

Offline

#8 9/10/09 12:13

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

Re: Flag problem

It should be FlagId.


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

#9 9/10/09 12:16

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

Re: Flag problem

That was in response to EdT, right?  If that was somehow the answer to my problem, I didn't understand it.   hmm


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

Offline

#10 9/10/09 12:45

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

Re: Flag problem

<Object Id="12356" Type="FLAG">
            <Header>
                <Flags>0</Flags>
                <Position>-150.0 1486.0 -2590.0</Position>
                <Rotation>0 33.72985 0</Rotation>
            </Header>
            <OSD>
                <Color>112 13 111</Color>
                <Prefix>17476</Prefix>
                <FlagId>Flag goes here</FlagId>
                <Notes></Notes>
            </OSD>
        </Object>

I don't know what you did either. Is it possible you forgot to convert back to .oni and recompile the dats after making these changes?


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

#11 9/10/09 12:54

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

Re: Flag problem

I definitely did convert it back because, like I was sayin', for a while there guys WERE being spawned at my custom flags.  But hey, maybe I should just try a fresh conversion.  Hang on...

...No...  Still same problem.  It says something along the lines of "Flag '989' does not exist," "Flag '988' does not exist," etc...


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

Offline

#12 9/10/09 14:08

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

Re: Flag problem

upload your package, please


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

#13 9/10/09 19:40

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

Re: Flag problem

Oh, alright...  I gotta read up on how to make it a package first real quick smile

...

Whaaaaaaaaaaaaaaaaaaaaat.  I combined my modified BINAFLAG and BINACHAR files into a package and installed and tested it...  It seems to ALL be working now.  Dudes appeared at my custom flags, and the cops were there jumpin' off the helicopter.

Sweet.   big_smile I pretty much literally never end up solving problems by having any idea what I'm doing.....  But thanks, Gumby.   smile


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

Offline

#14 9/10/09 19:42

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: Flag problem

See?  Packages are a good thing :0)


byproducts are fine, but where's the beef?

Offline

#15 10/10/09 12:37

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 29/5/07

Re: Flag problem

wait so Leus, are you getting more than 3 ppl to jump off the copter?


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#16 10/10/09 14:15

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

Re: Flag problem

Leus any modifications u make to oni files have to be made into a package tongue
the game reads its data from the raw and dat files in the game data folder not from the .oni files ... once u make a package and hit install the installer will gather all the oni from the different packages and combine them to the dats and raws ... the .oni that are in the game data folders are also used by the installer to complete the dat and raw files.. I advice u not to make permanent changes to these ones tongue copy the .oni files u need, edit them in a different folder then put them in a package folder ... Note : demos_k Onisplit Gui easily makes packages smile

Last edited by Samer (10/10/09 14:18)


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

Offline

#17 10/10/09 14:17

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 29/5/07

Re: Flag problem

i believe the exception to this is BSL, all you need to do is simply replace BSLs


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#18 10/10/09 14:22

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

Re: Flag problem

hehe yeah i was just editing my post to say  "any modifications u make to oni files"
I beat u to it tongue


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

Offline

#19 10/10/09 20:14

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

Re: Flag problem

New flag problem:

I have the AI take control of the player and then have the player chr_facetoflag 0 xxxx, but no matter where the player is standing and no matter what flag is in the script, the player always turns to face the same direction.  If you're looking from the satellite to the door in the final fight setting, it's about ten degrees to the left.  Assuming that the line from the satellite to the door is the "default" direction to be facing, no matter where the player is and no matter what flag they should be facing to, they always face about ten degrees left of the "default" direction.


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

Offline

#20 10/10/09 21:17

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 29/5/07

Re: Flag problem

can't help you there, sorry sad


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#21 10/10/09 21:52

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

Re: Flag problem

Okay I "figured it out," in that I figured out what was happening but it still really doesn't seem like what SHOULD be happening.

So instead of actually making the character face TOWARDS the flag, apparently it makes the character face the direction the character is facing in the BINACHAR file.............  Which, doesn't make any sense.  But whatever, I think I made it so it works well enough for me now.

Hm.


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

Offline

#22 10/10/09 22:08

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 29/5/07

Re: Flag problem

well then all you have to do is create a new flag with the rotation that you want, and input that command


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#23 10/10/09 22:35

Iritscen
Moderator
From: NC, USA
Registered: 22/10/07

Re: Flag problem

Or change the character's rotation in the BINAChar file wink


byproducts are fine, but where's the beef?

Offline

#24 10/10/09 22:39

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

Re: Flag problem

Yeah I had to change the rotation in the BINACHAR file...  It doesn't actually seem to have anything to do with flags, despite the implications of the script.


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

Offline

#25 11/10/09 1:10

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

Re: Flag problem

Eh? Since when? sad You get the oddest bugs...


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

Board footer

Powered by FluxBB