rds100 10 Posted January 23, 2013 (edited) Please help with adding of addon in the island. The problem is next. I made simple island (long time ago). Now I made one simple model, it is a door. When I put a door in this island in the Editor, animation (open-close) works. But, when I put the same door in that island in Visitor3, in game it appears, but animation doesnt work. I put folder of model with config.cpp in the folder Ca of the island, but it doesnt help. I dont know good about how to write config.cpp. What classes and land_classes should be, and another? Config for a door (and model.cfg) I've found in a forum, here. I take this config without any changings. With it, door works, but with a problem, what about I said (only in editor). What should to correct in it? What structure of a addon folder should be (Mydoor/ca/mydoor/mydoor.pbo?) And how to set it? Just put in a folder "Addons" of a game ("not-recommended way")? I set addon in that way. Class _land in config.cpp exists. And that is - config.cpp of the island, may be problem in it? #define private 0 #define protected 1 #define public 2 #define ReadAndWrite 0 #define ReadAndCreate 1 #define ReadOnly 2 #define ReadOnlyVerified 3 #define VSoft 0 #define VArmor 1 #define VAir 2 #define TEast 0 #define TWest 1 #define TGuerrila 2 #define TCivilian 3 #define TSideUnknown 4 #define TEnemy 5 #define TFriendly 6 #define TLogic 7 //Class df : config.bin{ class CfgPatches { class df { units[] = {"df"}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class CfgWorlds { class DefaultWorld { class Weather; // External class reference }; class CAWorld : DefaultWorld { class Grid {}; class DayLightingBrightAlmost; // External class reference class DayLightingRainy; // External class reference class DefaultClutter; // External class reference class Weather : Weather { class Lighting; // External class reference }; }; class DefaultLighting; // External class reference class df : CAWorld { access = ReadOnly; // cutscenes[] = {"ChernarusIntro1"}; description = "df"; icon = ""; worldName = "\df\df.wrp"; pictureMap = ""; pictureShot = ""; plateFormat = "ML$ - #####"; plateLetters = ABCDEGHIKLMNOPRSTVXZ; longitude = 30; // positive is east latitude = -45; // positive is south class Names { class Poselok { name = ""; position[] = {4000,4000}; type = "CityCenter"; demography[] = {"CIV",1.0,"CIV_RU",0.0}; radiusA = 1000.0; radiusB = 1000.0; angle = 0.0; }; }; class Grid : Grid { offsetX = 0; offsetY = 0; class Zoom1 { zoomMax = 0.15; format = "XY"; formatX = 000; formatY = 000; stepX = 128; stepY = 128; }; class Zoom2 { zoomMax = 0.85; format = "XY"; formatX = "00"; formatY = "00"; stepX = 1280; stepY = 1280; }; class Zoom3 { zoomMax = 1e+030; format = "XY"; formatX = "0"; formatY = "0"; stepX = 12800; stepY = 12800; }; }; startTime = 12:20; startDate = 12/07/2012; startWeather = 0.1; startFog = 0.0; forecastWeather = 0.1; forecastFog = 0.0; centerPosition[] = {1700, 2100, 300}; seagullPos[] = {1272.84, 150.0, 14035}; class ReplaceObjects {}; class Sounds { sounds[] = {}; }; class Animation { vehicles[] = {}; }; }; }; class CfgWorldList { class df {}; }; class CfgMissions { class Cutscenes { class ChernarusIntro1 { // directory = "ca\chernarus\data\scenes\intro.Chernarus"; }; }; }; Edited January 23, 2013 by rds100 Share this post Link to post Share on other sites
dragonsyr 21 Posted January 23, 2013 Try to put the addon folder in the root of your island (out of yourisland Ca folder) I think custom addons must be in the root and not in CA. Someone can confirm this Share this post Link to post Share on other sites
rds100 10 Posted January 24, 2013 (edited) in the root of your island Thanks! I'll try, but, it seems, I already did that.. Will try one more time, for exactly. By the way, I find a thread, exactly about that - http://forums.bistudio.com/archive/index.php/t-87794.html. But then, as I understand, problem was solved by adding a _land class to the name of object. In that config, what I use, land class presents from the begining, but now it doesnt work. http://forums.bistudio.com/showthread.php?114304-Custom-building-ladder-not-working - one more thread about it. they say there about viewgeometry LOD. I think, may be anyone know that problem? In that case, please tell, how do you usually set custom addon in your-made island. Share your experience. In common, this question will be so: custom object in custom island - how to set? P.S. I changed config.cpp for object. Now log gives an error: Class Land_Garage exists but there is no property class in ... p3d. What is it? Where should be this property class? Edited January 24, 2013 by rds100 Share this post Link to post Share on other sites
rds100 10 Posted January 24, 2013 http://rghost.ru/43278902 - here is that door, please somebody, who work in Visitor3, try to set it on the map and guess, why animation is disabled Share this post Link to post Share on other sites
bushlurker 45 Posted January 24, 2013 Class Land_Garage exists but there is no property class in ... p3d. What is it? Where should be this property class? You need the Named Property "class=house" in the Geometry LOD of your model... See This Wiki Page B Share this post Link to post Share on other sites
rds100 10 Posted January 24, 2013 Mein Gott! It works! ))) Bushlurker, thank you very much!! I've been looking answer for 2 days already. By the way, in past threads with such problem nobody didnt tell about that way. Share this post Link to post Share on other sites