Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 25/7/11 17:23

Lukas Kreator
Member
Registered: 7/5/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 (25/7/11 20:51)

Offline

#2 25/7/11 17:30

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 25/7/11 18:20

Iritscen
Moderator
From: NC, USA
Registered: 22/10/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?!?


byproducts are fine, but where's the beef?

Offline

#4 25/7/11 18:20

Samer
Member
From: Lebanon
Registered: 4/9/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 25/7/11 18:47

Lukas Kreator
Member
Registered: 7/5/10

Re: More questions about levels

lol, anyway, I think it is fixed now.

Offline

#6 25/7/11 20:54

Lukas Kreator
Member
Registered: 7/5/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 25/7/11 21:36

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 25/7/11 21:42

Lukas Kreator
Member
Registered: 7/5/10

Re: More questions about levels

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

Offline

#9 27/7/11 10:35

Nitr0
Member
From: Croatia
Registered: 26/11/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 (27/7/11 10:35)


Ninjabar thin

Offline

#10 27/7/11 12:13

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 27/7/11 12:30

Nitr0
Member
From: Croatia
Registered: 26/11/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 27/7/11 12:37

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 27/7/11 12:46

Nitr0
Member
From: Croatia
Registered: 26/11/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 27/7/11 13:04

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

Re: More questions about levels

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

Offline

#15 27/7/11 16:44

Nitr0
Member
From: Croatia
Registered: 26/11/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 28/7/11 13:49

Gumby
Member
From: Seattle, WA, USA
Registered: 30/8/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 28/7/11 14:48

Nitr0
Member
From: Croatia
Registered: 26/11/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 (28/7/11 14:49)


Ninjabar thin

Offline

#18 29/7/11 10:41

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

Re: More questions about levels

Anyone?


Ninjabar thin

Offline

#19 29/7/11 13:15

EdT
Moderator
From: Los Angeles, CA
Registered: 13/1/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 29/7/11 13:33

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 29/5/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 29/7/11 15:43

Nitr0
Member
From: Croatia
Registered: 26/11/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 29/7/11 16:50

Nitr0
Member
From: Croatia
Registered: 26/11/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 29/7/11 17:49

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

Re: More questions about levels

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

Offline

#24 30/7/11 5:45

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

Re: More questions about levels


Ninjabar thin

Offline

#25 30/7/11 10:45

Nitr0
Member
From: Croatia
Registered: 26/11/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