Skyboxes "I'm sorta thinking of using them for my mod."
#1 Posted 21 April 2010 - 09:40 AM
I found some code about them but dunno the correct pic size for skyboxes.
Code is from edukewiki
skybox {
tile 3586 pal 0
front "mymod/sky_1.png" nocompress
right "mymod/sky_2.png" nocompress
back "mymod/sky_3.png" nocompress
left "mymod/sky_4.png" nocompress
top "mymod/sky_5.png" nocompress
down "mymod/sky_6.png" nocompress
}
I'm sure I must remove "mymod/" from the code but not the pic name.
#2 Posted 21 April 2010 - 10:35 AM
#3 Posted 21 April 2010 - 11:21 AM
This post has been edited by Zaxtor: 21 April 2010 - 11:21 AM
#4 Posted 21 April 2010 - 12:06 PM
I am sure I'm not doing it correctly cus I never did a skybox in my whole life.
I tried many ways I can think and it wont work.
skybox
{
tile 3586 pal 0
front sky_frnt.png
right sky_rght.png
back sky_back_3.png
left sky_left.png
top sky_top.png
down sky_down.png
}
error:
GAME.CON:14: error: expected a keyword but found `skybox'.
GAME.CON:16: error: syntax error.
GAME.CON:16: error: expected a keyword but found `tile'.
GAME.CON:16: error: expected a keyword but found `3586'.
GAME.CON:16: error: expected a keyword but found `pal'.
GAME.CON:16: error: expected a keyword but found `0'.
GAME.CON:17: error: expected a keyword but found `front'.
GAME.CON:17: error: expected a keyword but found `sky_frnt.png'.
GAME.CON:18: error: expected a keyword but found `right'.
GAME.CON:18: error: expected a keyword but found `sky_rght.png'.
GAME.CON:19: error: expected a keyword but found `back'.
GAME.CON:19: error: expected a keyword but found `sky_back_3.png'.
GAME.CON:20: error: expected a keyword but found `left'.
GAME.CON:20: error: expected a keyword but found `sky_left.png'.
GAME.CON:21: error: expected a keyword but found `top'.
GAME.CON:21: error: expected a keyword but found `sky_top.png'.
GAME.CON:22: error: expected a keyword but found `down'.
GAME.CON:22: error: expected a keyword but found `sky_down.png'.
#6 Posted 21 April 2010 - 01:04 PM
Plagman, on Apr 21 2010, 01:24 PM, said:
I see but it does same error in DEF.con.
This post has been edited by Zaxtor: 21 April 2010 - 01:05 PM
#7 Posted 21 April 2010 - 01:10 PM
defineskybox 94 0 0 skyboxmikko/fire-storm512_rt.tga skyboxmikko/fire-storm512_ft.tga skyboxmikko/fire-storm512_lf.tga skyboxmikko/fire-storm512_bk.tga skyboxmikko/fire-storm512_up.tga skyboxmikko/fire-storm512_dn.tga
(Put it in duke3d.def.)
#8 Posted 21 April 2010 - 02:34 PM
testin is the map name
I was sure before the / is the name of the specific level.
defineskybox 3480 0 0 testin/sky_rt.tga testin/sky_ft.tga testin/sky_lt.tga testin/sky_bk.tga testin/sky_up.tga testin/sky_dn.tga
3480 (tile num).
0 not sure
0 not sure
I didn't touch the zeros.
#9 Posted 21 April 2010 - 02:50 PM
so if you put the file in /highres/skybox
then it should be /highres/skybox/imagename.png
#10 Posted 21 April 2010 - 03:53 PM
Zaxtor, on Apr 22 2010, 09:04 AM, said:
Your not quite getting it are you...
You dont name "DEF" files .CON
They are named "DefFileName.DEF"
Haven't you looked at how they work in the HRP?
Try looking at my one for my mod to see how it's done correctly. (NOT A CON FILE)
https://edukeredalert.svn.sourceforge.net/s...alert/RA/RA.def
// Skyboxes dummytile 11999 512 512 texture 11999 { pal 0 { file "RA_data/Textures/Sky_Box/Lush/blue_front.jpg" } } skybox { tile 11999 pal 0 front "RA_data/Textures/Sky_Box/Lush/blue_front.jpg" right "RA_data/Textures/Sky_Box/Lush/blue_right.jpg" back "RA_data/Textures/Sky_Box/Lush/blue_back.jpg" left "RA_data/Textures/Sky_Box/Lush/blue_left.jpg" top "RA_data/Textures/Sky_Box/Lush/blue_top.jpg" down "RA_data/Textures/Sky_Box/Lush/blue_down.jpg" } dummytile 11998 512 512 texture 11998 { pal 0 { file "RA_data/Textures/Sky_Box/Winter/Snow1024_ft.jpg" } } skybox { tile 11998 pal 0 front "RA_data/Textures/Sky_Box/Winter/Snow1024_rt.jpg" right "RA_data/Textures/Sky_Box/Winter/Snow1024_ft.jpg" back "RA_data/Textures/Sky_Box/Winter/Snow1024_lt.jpg" left "RA_data/Textures/Sky_Box/Winter/Snow1024_bk.jpg" top "RA_data/Textures/Sky_Box/Winter/Snow1024_up.jpg" down "RA_data/Textures/Sky_Box/Winter/Snow1024_dn.jpg" }
#11 Posted 21 April 2010 - 04:15 PM
I'm not ready for this kind of stuff.
I'll just stick into the old school sky thing.
I have tried everything but failed.
It overwhelm me too much
This post has been edited by Zaxtor: 21 April 2010 - 04:16 PM
#12 Posted 21 April 2010 - 04:47 PM
Zaxtor, on Apr 21 2010, 05:15 PM, said:
I'm not ready for this kind of stuff.
I'll just stick into the old school sky thing.
I have tried everything but failed.
It overwhelm me too much
Zaxtor, Commander just told you exactly how to do it.
#13 Posted 21 April 2010 - 04:53 PM
I get 30 errors instead of 10 (mikko's codes)
Or maybe skybox only work when is inside a .grp file not an individual map.
This post has been edited by Zaxtor: 21 April 2010 - 04:54 PM
#14 Posted 21 April 2010 - 05:02 PM
#15 Posted 21 April 2010 - 05:11 PM
Not the folder
folder is
C:\DukeNuk\New_Pro\skyboxes\skya
sky files are png
Bold letter means is where the duke with my future mod is. DukeNuk you ignore this is my (normal duke)
This post has been edited by Zaxtor: 21 April 2010 - 05:13 PM
#16 Posted 22 April 2010 - 03:13 PM
What are the errors?
Are you still trying to put it into a CON file, I told you that it's not a CON file but a DEF file.
There is a difference, look at all the DEF files in the HRP.
#17 Posted 22 April 2010 - 08:01 PM
PS
I thought you mentioned def.con
Def means 2 things to me.
1 > Def.con
2 > def as define, definition etc,
This post has been edited by Zaxtor: 22 April 2010 - 08:02 PM
#18 Posted 23 April 2010 - 02:51 AM
Take a look at the attached map. It's my Earth Base and it uses a skybox. Just open the def file ("duke3d.def") and note the folder structure (i.e., where the actual images are).
Attached File(s)
-
mikkoville.zip (719.13K)
Number of downloads: 154
This post has been edited by Mikko_Sandt: 23 April 2010 - 02:51 AM
#19 Posted 23 April 2010 - 08:54 AM
Your skybox and map works fine.
But mine doesn't work.
I even changed by skybox folder same as yours and still does not work.
include DEFS.CON
// skyboxes
defineskybox 3480 0 0 models/skybox/sky_rt.jpg models/skybox/sky_ft.jpg models/skybox/sky_lf.jpg models/skybox/sky_bk.jpg models/skybox/sky_up.jpg models/skybox/sky_dn.jpg
Duke loads but is like the file doesn't read.
I even did a crazy test to add "include duke3d.def" in game.con and wont work.
Version of Eduke I use is latest and same version as testing your map.
#20 Posted 23 April 2010 - 09:41 AM
I bet it's something dead simple.
This post has been edited by Mikko_Sandt: 23 April 2010 - 09:41 AM
#21 Posted 23 April 2010 - 10:20 AM
I'll just scrap it.
Do the old school way.
I wasted like 3 days failing it due to (bug/corruption) reasons.
I'm tired of delaying my mod for some silly avoidive issues.
Maybe next time when I'm ready or my comp will let me accept it.
I am sure is win7 issues.
They are Jpeg / jpg.
Done renamed same as yours.
def file same as yours
100% same as yours and even same tile.
PS
Can the image size cause problems?
This post has been edited by Zaxtor: 23 April 2010 - 10:22 AM
#22 Posted 23 April 2010 - 10:26 AM
Zaxtor, on Apr 24 2010, 06:20 AM, said:
I'm tired of delaying my mod for some silly avoidive issues.
No you wasted 3 days because you still seem to think DEF files have relations with CON code.
Which they do not.
We have all tried to explain it to you in the most simplest terms there are and you have been given multiple examples. You need to read to learn how it is done and not keep jumping ahead and thinking it's CON code and putting DEF code in CON code.
This post has been edited by The Commander: 23 April 2010 - 10:27 AM
#23 Posted 23 April 2010 - 10:30 AM
I put the duke3d.def like Mikko said.
I even did like his map put pal1 in mapster on the sky
Did everything 100% same and doesn't work.
I read.
When I'm new to something I'm very unfamiliar and make mistakes is NORMAL.
Is like you invented something but it will have flaws and being unstable until you find a way to stabalize your invention.
Like when Bill Gates firstly invented windows it was loaded with bugs, errors, frequent (illegal operation) (blue screen of deaths) etc.
perfection IS IMPOSSIBLE!!!!!!.
So sorry for wasting your time I will give up this stupid non workable skybox.
Plz close/lock this thread.
This post has been edited by Zaxtor: 23 April 2010 - 10:31 AM
#24 Posted 23 April 2010 - 10:34 AM
I can't quite work out why you don't understand these examples we are giving you.
Is it a language problem?
#25 Posted 23 April 2010 - 10:45 AM
When I installed a duke from scratch to test his m0d.
Sky worked.
WHen I moved his duke3d.def to my (modified duke) folder with my maps.
Made for the sky folder models/skyboxs/ files.jpg
It wont work.
I made sure they aren't capped incase is case sensitive.
Won't work still.
Is not a bad understanding issues is a bug/glitch/incompatibility/others issues.
I don't believe in miracles, I don't believe in praying.
I believe in realism.
It it doesn't work for me it wont work if I want it to work by doing it same as Mikko.
Maybe could be my mod duke folder is inside a duke folder.
I am sure is not a folder issues.
So I'll do my way.
I forget the non-working skybox thing.
and resume my modding.
This post has been edited by Zaxtor: 23 April 2010 - 10:47 AM
#27 Posted 23 April 2010 - 11:21 AM
I defineded texture by its number like mikko did.
Number or name does same thing in general
here is my code, now is mikko's code.
(code)
include DEFS.CON
// Frozen skybox
defineskybox 94 0 0 models/skybox/frozen_rt.jpg models/skybox/frozen_ft.jpg models/skybox/frozen_lf.jpg models/skybox/frozen_bk.jpg models/skybox/frozen_up.jpg models/skybox/frozen_dn.jpg
I have a folder in same area as duke3d.def with the exact letter and not capped, models/skybox/(myfiles)
the 94 is (texture number)
This post has been edited by Zaxtor: 23 April 2010 - 11:22 AM
#28 Posted 23 April 2010 - 11:27 AM
To me it still looks like you are putting it in con files.
#29 Posted 23 April 2010 - 11:30 AM
I did not put nothing in the con.files.
I did not touch even a bit of the con file.
My duke loads fine works but the duke3d.def doesn't do nothing.
Or
I'll do my way.
I'll start my maps then the sky I'll worry about it when is all finished or ask some1 to do it for me since my computer doesn't let me.
I'll make txt file when is finished saying if you want skyboxes.
The sky tile is i.e 3480
This post has been edited by Zaxtor: 23 April 2010 - 11:32 AM
#30 Posted 23 April 2010 - 02:49 PM
Not one bit.
duke3d.def needs to go in the same directory as EDuke32.
http://wiki.eduke32....ki/DEF_Language