Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 07/25/11 17:07

Lukas Kreator
Member
Registered: 05/07/10

More questions about levels

Hey, I'm trying to import a new level I made into oni. I have all necessary files, as described by EdT, and I made a package and already installed it.

However, when I enter the level, there is nothing but the skybox, some people dead who don't even fall, and some fire coming up from nowhere. Then I fall and die.

I have the textures as TXMPs but it is weird that it couldn't find one of my textures. The faces facing me are all front faces, I think. I don't know what to do, I'll research to know why one of my textures wasn't imported.

Last edited by Lukas Kreator (07/25/11 20:07)

Offline

#2 07/25/11 17:07

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

Re: More questions about levels

it is possible you are spawning below the level.  Edit the bsl chr_location 0 0 20 0

Offline

#3 07/25/11 18:07

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

Re: More questions about levels

Lukas Kreator wrote:

However, when I enter the level, there is nothing but the skybox, some people dead who don't even fall, and some fire coming up from nowhere. Then I fall and die.

You spawned in Hell?!?


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#4 07/25/11 18:07

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: More questions about levels

that could be an interesting level big_smile


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

Offline

#5 07/25/11 18:07

Lukas Kreator
Member
Registered: 05/07/10

Re: More questions about levels

lol, anyway, I think it is fixed now.

Offline

#6 07/25/11 20:07

Lukas Kreator
Member
Registered: 05/07/10

Re: More questions about levels

1- I kinda get stuck while going up ramps, just in the end, and then I have to stop running or jump, I just can't run from the ramp to the floor directly.

2- How do I make something intentionally invisible? I tried inverting the faces, but now I can't collide with it.

3- When I load the levels, the textures are VERY dark. Kinda black and gray.

Offline

#7 07/25/11 21:07

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

Re: More questions about levels

1) Try comparing your ramp with the ramp in the junkyard that leads you to the top of the trucks.  Maybe your ramp is too steep? At the top, could the ramp be slighly below the top so you are hitting a polygon.

2) I think you can use a transparent texture and apply it to the polygon.  if that doesn't work you will have to manually edit the dae.

Look for something similar to  the following and find the part that applies to the transparent texture.
<library_effects>
        <effect id="texture0_fx">
            <profile_COMMON>
                <newparam sid="surface">
                    <surface type="2D">
                        <init_from>texture0_img</init_from>
                    </surface>
                </newparam>
                <newparam sid="sampler">
                    <sampler2D>
                        <source>surface</source>
                    </sampler2D>
                </newparam>
                <technique>
                    <phong>
                        <ambient>
                            <color sid="ambient">1 1 1 1</color>
                        </ambient>
                        <diffuse>
                            <texture texture="sampler" texcoord="diffuse_TEXCOORD" />
                        </diffuse>
                        <specular>
                            <color sid="specular">0 0 0 0</color>
                        </specular>
                        <transparent opaque="A_ONE">
                            <texture texture="sampler" texcoord="diffuse_TEXCOORD" />
                        </transparent>
                    </phong>
                </technique>
            </profile_COMMON>
        </effect>

You need this part:

<transparent opaque="A_ONE">
<texture texture="sampler" texcoord="diffuse_TEXCOORD" />
</transparent>

3) In the IGMD folder you need to create a folder to hold your bsl.  According to your ONLVLevel.xml the name of the folder would be minipartenon from the tag <Name>minipartenon</Name>  Inside you can have a minimum of
func void main (void) {

    env_show 2010 0
    gl_fog_blue=.15
    gl_fog_red=.15
    gl_fog_green=.15
    gl_fog_start=.99
    gs_farclipplane_set 5000
}

Offline

#8 07/25/11 21:07

Lukas Kreator
Member
Registered: 05/07/10

Re: More questions about levels

Thanks a lot, I already have a script, but I will add your functions!

Offline

#9 07/27/11 10:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

I have a question (problem) with my ONLV file. When I try to convert ONLV in Oni file Oni Split shows me message:
"System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary."

What should I do? Do you need screenshot of the message window?

Last edited by Nitr0 (07/27/11 10:07)


Ninjabar thin

Offline

#10 07/27/11 12:07

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

Re: More questions about levels

Can you try using this ONLV file and modify it to fit your level: http://cl.ly/220h2y3M2V1l0m3E032F

Offline

#11 07/27/11 12:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

The ONLV work, now I'll try to run my level.

Again, question: How will Oni show parts of level without textures?


Ninjabar thin

Offline

#12 07/27/11 12:07

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

Re: More questions about levels

Nitro:  If you are using the latest OniSplit http://edt.oni2.net/OniSplit/OniSplit56.exe.zip any polygons not having textures will use a substitute, I don't know off hand the exact name but it is in level0 something like texnotfound or notex,

Offline

#13 07/27/11 12:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

I put the TXMP texture files with my level and all textures are black. hmm


Ninjabar thin

Offline

#14 07/27/11 13:07

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

Re: More questions about levels

Are the textures correctly named in the 3D program?  Which 3D program are you using?

Offline

#15 07/27/11 16:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

Yes they are... At least I think they are...
I'm using XSI 7.5


Ninjabar thin

Offline

#16 07/28/11 13:07

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

Re: More questions about levels

If you can upload the .dat that gets created, I can send it to Neo to take a look at.


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 07/28/11 14:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

I retextured all parts and now it works.
Can someone tell me these things:

1. How to put console object? I see the texture of it and when I click CTRL Konoko just walks to it all the time, until I stop it (jumping, running in other direction, etc.)

2. How to put the door object and make it locked until I use the console (In this case the console I mentioned above)?

3. How to put that light object (green-opened or red-locked light particle) near that door?

Do I need to edit something more than BINACJBO* files of my level, to do that?

Last edited by Nitr0 (07/28/11 14:07)


Ninjabar thin

Offline

#18 07/29/11 10:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

Anyone?


Ninjabar thin

Offline

#19 07/29/11 13:07

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

Re: More questions about levels

Sorry for late and not helpful response.  You are ahead of us in using consoles and doors, so you will have to experiment and tell us the results :-)
1) I don't know
2) Currently OniSplit does not support importing doors
3) I don't know

Offline

#20 07/29/11 13:07

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

Re: More questions about levels

hey Nitr0, I'm not sure how to solve your problems, but I would strongly recommend looking at some of the BSL files. I'm pretty sure doors and consoles are done in BSL. Find a door ingame, and find the part of the BSL file that corresponds to it. Examine the code, and try and replicate it for your own door.


"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 07/29/11 15:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

@EdT: lol xD
@Mukade: I was checking something but I didn't find anything useful... I'll try to find it once more.


Ninjabar thin

Offline

#22 07/29/11 16:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

EdT can you please tell me what was problem with my ONLV file, because I got same error again modifying the ONLV file you gave me? hmm


Ninjabar thin

Offline

#23 07/29/11 17:07

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

Re: More questions about levels

Nitro: can you post the ONLV.xml for me to look at

Offline

#24 07/30/11 05:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels


Ninjabar thin

Offline

#25 07/30/11 10:07

Nitr0
Member
From: Croatia
Registered: 11/26/10

Re: More questions about levels

I put the door and console in my level, but...
There isn't door object at all, you can pass throuht it. But there is something interesting. When I stand in front of the door and click action button it plays the sound (the door is locked now). When I use the console (similar situation here, no object, just texture), I unlock the door (I did the BSL part), stand in front of the doors and click action button it plays me sound of opening the door.


Ninjabar thin

Offline

Board footer

Powered by FluxBB