OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: hurlothrumbo on 02 Apr 2003, 18:43:58
-
Hi, I need help. I'm making a MP mission for a server that doesn't have addons. I know you can add buildings to your mission without addons, in fact I know how to do it, but I don't know where to find the names of the buildings I want to add. Specifically, I want the name for the scaffolding structures from resistance. Thanks. Even info on how to find it myself from the resistance files would be cool. I can depbo and all that stuff.
-
I found a list of buildings before, but it was just for Cold war Crisis.
The Kylikki addon thing is great but I cant use it on this server :(
-
I also have the Cold war list, but I need names of trees. Anyone? Plz.
-
Lalalalalalalalalalalala...........why does everyone need help one this. You can find this stuff at http://www.ofpnews.com
-
where abouts exactly? Dont see it in tutorials and most of the rest is locked off.
Nice site tho, very retro.
-
That site does not have anything like a list of buildings on it. Does anyone else know please?
-
Just had a read... How do you insert buildings?
-
Just had a read... How do you insert buildings?
u can either camcreate them or hack the .sqm file.
-
C-c-c-cam? create? camcreate?.... :-\ Yes... of course..... Camcreating... Why I know how to do that! Hehehe...
P.S. What does camcreate mean
-
Look it up in the command ref. Which, to be fair, talks mostly about cameras and not objects. But the point is that you can create an object out of thin air. Don't use it for units - they have no AI - just objects like buildings, tank shells or fences.
Search the forums.
-
cld u pos give an example of this, cause ther only Camcreate examples ive seen so far only tell u how to create a new camera!
-
Search the forums.
-
bomb="shell125" camcreate getpos SomeDude
Will for instance camcreate a shell in SomeDudes arse. Have fun!
-
it want till i just read a ques short after posting a reply on this i reliced that i alrdy knew that command. But i didnt know that it cld create objects. Now i want that list!!
-
There are lists of all Res objects contained in the O.pbo on this site:
Editors Depot..........Tutorials.............References....2nd Page.
Planck
-
Thanks for all the replies so far. In my defence, the list of objects isn't obvious as to what it is unless you already know (IE searching for resistance buildings won't flag it)
Right. Now I know what the building is called, but I've ran into another problem: Creating it doesn't work right. I can camcreate things like jeeps, trucks, tents etc no problem, but when I use ( example)
Ascaf= "leseni4x" camcreate [(getpos amarker select 0), (getpos amarker select 1), (getPos amarker select 2)+5]
it doesn't work. Do I have to use some sort of folder description eg "/misc/leseni4x" (that doesnt work)
?
The above code works to create jeeps and other things, but not seemingly anything in the resistance folder.
Sorry if this is a stupid question, I really have tried looking for it.
Oh- I forgot. When I say 'doesn't work', I mean I cant see anything in the mission preview, but there are no error messages. When I try with a jeep I can see it fine.
-
Ahhh I found the problem, the list of houses by planck are all labelled wrong!
Instead of Houseleseni2x it just says leseni2x!
Or instead of reshousewhatever!
Thanks guys!
-
Were there trees in 0.pbo too? I really need the trees list :-\.
-
i need help with the list on the o-pbohous95 file (lst and pics of all buildings). i tried
object = "posed" camcreate getpos posed
(posed is a tower)
this doesnt work, when i replace "posed" with m1abrams it does work. So i think the list is either wrong or the names are different for the english version (as all the building names look forign)
-
yes there are trees but I dont know what the names are. The houses and stuff need the prefix house- or reshouse- to work but the other objects, I dont know what the prefix is :(
titan could try houseposed or reshouseposed, but I dont know what would help armstrong, sorry.
-
titan, you're also using getpos for something you haven't created yet. Try using a game logic called something else; for one called Adude -
"object = "posed" camcreate getpos Adude"
-
atually the getpos posed wld work, cause posed was the name of my trigger!
also is it pos to create smething at a marker, i tried...
object = bla bla bla getmarkerpos posed
(marker named posed) but it doesnt work, not even for units...any idea?
-
There isn't an object called "posed". Look again at the example
bomb="shell125" camcreate getpos SomeDude
There is a thing called shell125. There is a thing called Abrams. You have to tell the game what object to create.
bomb="T72" camcreate getpos posed
-
there is a thing called a posed, its a small tower.
what i mean is how can u create smething at a marker
ive tried..
object = "reshouseposed" camcreate getmarkerpos here
getmarkerpos is telling it to find the position of a marker called here.
this doesnt work, even if you tell it to create a bomb or smething there it still doesnt work!
-
I got it to work with just getpos instead of getmarkerpos
-
The O.pbo when depboed contains 11 folders and a lot of textures.
The 11 folders are:
Anim - Animation files
char - Various characters and textures
divk - Ruin objects and texturtes
Guns Gun objects and textures
Hous - Building objects and textures
Misc - Miscellaneous objects and textures
Music - Music files
Road - Road objects and textures
Skal - Rock objects and textures
Tree - Tree objects and textures
Vehl - Vehicle objects and textures
The Anim folder contains no objects, only animation files.
The Music folder contains only .ogg music files.
The object lists in the Editors depot relate to the remaining 9 folders thus:
O-PBOchar(10)........char folder list
O-PBOdivk(16)........divk folder list
O-PBOGuns(19)......Guns folder list
O-PBOHous(95)......Hous folder list
O-PBOMisc(93).......Misc folder list
O-PBORoad(66)......Road folder list
O-PBOSkal(15).......Skal folder list
O-PBOTree(41)......Tree folder list
O-PBOVehl(9)........Vehl folder list
All very logical really.
@hurlothrumbo
The file names in all the lists are labelled correctly, they are the object file names found in each folder contained in O.pbo.
-
try this titan
something = "whatever" camcreate getmarkerpos "here"
getmarkerpos works with strings ;)
-
you absolute genius! thankyou.
2 more things i need now 1)does anyone know what the name for empty veichles are.
2) when you do make a building or smething how do you rotate it so its at a certain angle?
-
the name for empty vehicles is just the name of the vehicle, like bmp, if you need the crew you have to create them seperatly, its
soldierecrew
if I remember right and to set the direction use
setdir 0-360
depending on the direction you want.
-
@hurlothrumbo
The file names in all the lists are labelled correctly, they are the object file names found in each folder contained in O.pbo.
Yeah I know what the structure is (now) but still don't know what the names are to create the objects
EG some stuff in the same directory has different prefixes. How do you know what to call something to create it?
-
Not sure what you mean by prefixes.
All other files in these folders are texture files (.paa and .pac)
The filenames for the objects are the exact file names, for example:
leseni2x.p3d
This is the file name for one of the scaffold objects.
I imagine it would be referenced by just using:
leseni2x
But you say it doesn't work.
Sorry I am unable to help more.
Planck
-
Right, sorry.
What I mean by prefixes and my blathering about name to create objects and stuff is
The title given to the object to create it in the editor.
For example, a west jeep is just 'jeep.' I see where you are coming from with the filenames but they don't work like that, for some reason to create the scaffolding leseni2x you have to use 'houseleseni2x.' And some have to be 'reshousewhatever.'
I'm not really bothered now cos I got the scaffolding I wanted but armstrong still needs the trees and nobody seems to now the name format for them (because of this prefix thing.)
thanks