Jump to content

ZN Anhor

Member
  • Content Count

    97
  • Joined

  • Last visited

  • Medals

Everything posted by ZN Anhor

  1. Hello all. I hope someone here can help me. The following problem: I would like to configure our traders so that they only buy specific items. As an an example: Heroin, cocain, dope and magic mushrooms can only and exclusively be sold at drug dealers! Not with an armory trader, hardware trader or whatever trader. At the moment every trader, no matter what he sells, buys almost everything (the armory trader allready buy hardware). And that's exactly what we want to prevent. Does anyone know how to prevent this and would you explain this to me? Many thanks in advance.
  2. This is an excerpt from the config.cpp of the exile_server_config.pbo: As you will notice, most of the Arma 3 buildings are already included, including the respective loot positions of the individual buildings. Should you now fall victim to the "great" idea that military loot should spawn in all buildings, then you just have to change the corresponding category (i.e. change table = Factories to Military) of the respective building. One of the really great things about Exile is that such changes are really easy to make.
  3. ZN Anhor

    Statusbar

    THIS is where the original came from! https://github.com/Brenner650/Exile-Status-Bar
  4. ZN Anhor

    Statusbar

    We? Who is "we"? The sole rights holder of Exile? From Exile Addons? Let the following go through your head: If not busy people like Thomas TKO would keep posting such things, then this forum and Exile would be even more dead than it is anyway. The people who actually find their way here usually have questions ........ that are neither answered with copyright references nor with raised index fingers. And that from a 54 year old adult who probably has a little more life experience than you kiddie! Sorry, but the way makes me a little upset .....
  5. A small guide for the perfect Exile server. The following considerations: - all traders must be bundled in one easily accessible place - basebuilding should be allowed from 100 meters next to the traders - missions should spawn in sufficient numbers and with a low level of difficulty very close to the trader in order to keep the paths short - it would be nice to have high-quality vehicles such as helicopters or tanks spawn around the Trader - maybe you should still think about a generous welcome money for new players, not the frustration arises because you have to do something If you take all this advice to heart you will see that your server will always be full (at least most players will be tied up for 2 to 3 days)! Shit ...... I forgot to activate the irony button ......
  6. I'm always amazed because of the question about loot tables. The loot tables are already integrated in the exile files, namely in exile_server_config.pbo, there in config.cpp The loot positions are also already integrated in this file, because the loot positions are not linked to a map but to buildings. Loot tables are only interesting if I want to spawn special items that differ from the standard. However, this should not be a problem, since all the required data are already available in the original and only have to be edited accordingly. So add special items or exchange them for existing ones. Anyone who cannot even enter such simple and trivial changes should seriously think about why they need their own server. I'm certainly not a script genius either, but creating a mission for a new map, including traders and spawn positions, won't take more than an hour or two. I've done this for most Unsung maps and RHSPKL, and these maps actually have mostly map-specific buildings.
  7. ZN Anhor

    Trader Issue [solved]

    @Whitey01 Would it help if the waste dump trader only buys vehicles but no longer "cargo"? If so, then we should ask El´ Rabito again nicely if he will watch it again 😉
  8. Who should do that? Exile was left to its own by the developers. No further development, no bug fixing and no support.
  9. ZN Anhor

    Naval Legends (WIP)

    @DSabre Would it be possible to make a US carrier from the Vietnam War era? Just a humble question .....
  10. ZN Anhor

    virolathi server files

    It's not that easy to explain now. Your first problem will practically resolve itself, that of the loot position. They are solved via the Exile Server Config. Most of the buildings that exist are already entered in the config.cpp file. The mission file is a far bigger problem, at least if you have absolutely no plan of the matter, what I'm assuming now. You would first have to position traders and what is needed in the editor (locker, roulette chairs, water coolers etc.). You have to transfer this data to an initServer.sqf and initPlayerLocal.sqf file. You also have to create a mission.sqm with spawn points and markers. You can largely take over all other files from an existing mission. It is also important that you give the end result the correct file name, so when you pack the pbo. For this you need the correct name of the map you want to use. It looks something like this: Exile.YourMap.pbo As I said, without any experience what you have set out to do is a rocky road.
  11. ZN Anhor

    Trader Issue [solved]

    @El´ Rabito I agree, perfect work!!! Thx for that buddy! I solved the problem with the Waste Dumb Trader very pragmatically ..... there is no longer any. Nothing has to work quickly or easily! We all play to pass the time ..... well, does it dawn on the contradiction to do things in games quickly and easily? Thx again Rabito ......
  12. ZN Anhor

    Trader Issue [solved]

    @El' Rabito You are the best! Tomorrow I will try to test the whole thing on the server. Whatever the outcome, thx for that!
  13. ZN Anhor

    Trader Issue [solved]

    @rgscriven It was clear to me that it could only be a misunderstanding 😉 In general, I think it would be a huge step forward if this problem could be solved. Not just for me or @Whitey01, but for the exile community in general. Just consider the possibilities that would open up .... in relation to the game or a story. It would be nice if one or the other crack would support us 🤗
  14. ZN Anhor

    Trader Issue [solved]

    Nice that I'm not the only one with this idea. And above all that someone has understood what it is about. How to assign a trader what to sell, I can do it alone, but tell him what to buy ..... I looked at some files in the exile_server, including the Exile_system_trading_network files, but didn't really get any further 🤒 I assume that the solution is hidden somewhere in the ExileServer_system_trading_network_sellItemRequest.sqf /** * ExileServer_system_trading_network_sellItemRequest * * Exile Mod * www.exilemod.com * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ private["_sessionID", "_parameters", "_itemClassName", "_quantity", "_containerType", "_containerNetID", "_playerObject", "_vehicleObject", "_sellPrice", "_playerRespect", "_playerMoney", "_noRespectItems", "_respectGain", "_logging", "_playerMoneyString", "_traderLog", "_responseCode"]; _sessionID = _this select 0; _parameters = _this select 1; _itemClassName = _parameters select 0; _quantity = _parameters select 1; _containerType = _parameters select 2; _containerNetID = _parameters select 3; try { _playerObject = _sessionID call ExileServer_system_session_getPlayerObject; if (isNull _playerObject) then { throw 1; }; if !(alive _playerObject) then { throw 2; }; if(_playerObject getVariable ["ExileMutex",false]) then { throw 12; }; _playerObject setVariable ["ExileMutex",true]; _vehicleObject = objNull; if !(isClass (missionConfigFile >> "CfgExileArsenal" >> _itemClassName) ) then { throw 3; }; _sellPrice = _itemClassName call ExileClient_util_gear_calculateSellPrice; if (_containerType isEqualTo 1) then { if (_itemClassName isEqualTo (primaryWeapon _playerObject)) then { { { if !(_x isEqualTo "") then { _sellPrice = _sellPrice + (_x call ExileClient_util_gear_calculateSellPrice); }; } forEach _x; } forEach [ primaryWeaponItems _playerObject, primaryWeaponMagazine _playerObject ]; }; if (_itemClassName isEqualTo (handgunWeapon _playerObject)) then { { { if !(_x isEqualTo "") then { _sellPrice = _sellPrice + (_x call ExileClient_util_gear_calculateSellPrice); }; } forEach _x; } forEach [ handgunItems _playerObject, handgunMagazine _playerObject ]; }; }; _playerRespect = _playerObject getVariable ["ExileScore", 0]; if !(getNumber(configFile >> "CfgSettings" >> "Escape" >> "enableEscape") isEqualTo 1) then { if (_sellPrice <= 0) then { throw 4; }; _playerMoney = _playerObject getVariable ["ExileMoney", 0]; _playerMoney = _playerMoney + _sellPrice; _playerObject setVariable ["ExileMoney", _playerMoney, true]; format["setPlayerMoney:%1:%2", _playerMoney, _playerObject getVariable ["ExileDatabaseID", 0]] call ExileServer_system_database_query_fireAndForget; _noRespectItems = [ "Exile_Item_FlagStolen1", "Exile_Item_FlagStolen2", "Exile_Item_FlagStolen3", "Exile_Item_FlagStolen4", "Exile_Item_FlagStolen5", "Exile_Item_FlagStolen6", "Exile_Item_FlagStolen7", "Exile_Item_FlagStolen8", "Exile_Item_FlagStolen9", "Exile_Item_FlagStolen10" ]; if !(_itemClassName in _noRespectItems) then { _respectGain = _sellPrice * getNumber (configFile >> "CfgSettings" >> "Respect" >> "tradingRespectFactor"); _playerRespect = floor (_playerRespect + _respectGain); _playerObject setVariable ["ExileScore", _playerRespect]; format["setAccountScore:%1:%2", _playerRespect, (getPlayerUID _playerObject)] call ExileServer_system_database_query_fireAndForget; }; }; [_sessionID, "sellItemResponse", [0, _sellPrice, _itemClassName, 1, _containerType, _containerNetID, str _playerRespect]] call ExileServer_system_network_send_to; _logging = getNumber(configFile >> "CfgSettings" >> "Logging" >> "traderLogging"); if (_logging isEqualTo 1) then { _playerMoneyString = _playerMoney call ExileClient_util_string_exponentToString; _traderLog = format ["PLAYER: ( %1 ) %2 SOLD ITEM %3 FOR %4 POPTABS AND %5 RESPECT | PLAYER TOTAL MONEY: %6",getPlayerUID _playerObject,_playerObject,_itemClassName,_sellPrice,_respectGain,_playerMoneyString]; "extDB2" callExtension format["1:TRADING:%1",_traderLog]; }; if !(_vehicleObject isEqualTo objNull) then { _vehicleObject call ExileServer_object_vehicle_database_update; } else { _playerObject call ExileServer_object_player_database_update; }; } catch { _responseCode = _exception; [_sessionID, "sellItemResponse", [_responseCode, 0, "", 0, 0, "", ""]] call ExileServer_system_network_send_to; }; if !(isNull _playerObject) then { _playerObject setVariable ["ExileMutex", false]; }; true The question is where 🙄
  15. ZN Anhor

    Trader Issue [solved]

    @rgscriven I am sure that we will talk past each other. First, it's not about vehicle traders who don't buy, they just sell. So we're talking about traders who buy and sell items. And with your option, which by the way absolutely corresponds to what I also posted, does not work. So although you can specify which traders which items SOLD, but not which ones he BUYS. You can sell each item in Exile each item traders as long as it is registered in the Arsenal. And that's my problem! I want that e.g. the hardware trader only BUYS hardware, the armory trader only BUYS armory, the food trader only BUYS food ......... it's not about SELLING! As I said, I had already run and tested the code I posted. The result was that you could ONLY buy the drugs from this dealer ...... but you could sell them to any other dealer for pop tabs. And that's exactly what I want to prevent. Poptabs for drugs are ONLY available from drug dealers, that's the goal.
  16. ZN Anhor

    Trader Issue [solved]

    @rgscriven Thanks for the help, but I've already had something like that. In the config.cpp (mission files) I had this: class Community { name = "DRUGS"; icon = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\uniform_ca.paa"; items[] = { "DDR_Item_Heroin", "DDR_Item_Mushrooms", "DDR_Item_Drugs_Cocaine", "DDR_Item_Drugs_Weed" }; }; and this: class Exile_Trader_CommunityCustoms { name = "DRUGS"; showWeaponFilter = 0; categories[] = { "Community" }; }; Of course with a own trader in initPlayerLocal.sqf: ["Exile_Trader_CommunityCustoms", ["InBaseMoves_HandsBehindBack1"], "Exile_Trader_CommunityCustoms", "AsianHead_A3_04", [[],[],["uns_bhp","","","",["uns_13Rnd_hp",13],[],""],["UNS_VC_K",[["uns_13Rnd_hp",3,13]]],["UNS_M1956_A1",[]],[],"UNS_Conehat_VC","UNS_Scarf_PL",[],["","","","","",""]], [5113.08, 1140.4, 5.30497], [0.143609, 0.989635, 0], [0, 0, 1]], However, that is not the solution. As soon as the corresponding items have been added to the arsenal, they are also bought by every other trader. Not adding the items to the arsenal is of course not a solution either ...... because then NO trader would know the price. As they say in Germany: The cat catch her own tail. Rabito's approach is arguably the way to go. However, I have to admit that I have too little experience with the Exile Code. Thanks anyway.
  17. ZN Anhor

    Trader Issue [solved]

    I repeat my question again: Is it possible to configure one (or all traders) so that they only BUY the items that they sell? Even a simple no would be welcome because then I don't have to think about it any further. Nevertheless, thank you in advance for every answer.
  18. The fact is, whoever wrote something for Exile ...... the project has been dropped and is being kept alive by the few enthusiasts here. And whoever digs whatever, by whom, and makes it accessible to the general public here, I owe my thanks. Because the real "fathers" have left their "child" to its fate.
  19. He does. Every single file has this in the header: /** * Exile Mod * www.exilemod.com * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ With this, the credit is given! Otherwise, Exile is technically "Abandonware", the developers provides no longer support, further development or troubleshooting. For this case check out this: https://en.wikipedia.org/wiki/Abandonware especially the paragraph "Community Support"! In the future it will become more and more necessary to edit the original code of Exile in order to keep it alive.
  20. ZN Anhor

    GF Building Replacement Script - Mod

    Hi Folks, I need a little help with a problem i have encountered. I replaced a certain building with another. That works pretty well so far. However, I have the problem that the new building should actually spawn rotated by exactly 180 degrees. Unfortunately, I have not yet figured out how to do this in the script. Is there a solution for this? And if so, would anyone be willing to show them to me? Regards Anhor
  21. Well, than it´s pretty easy. You can change or delete things on the map with the Eden Editor (Click on F5 at the top right and search for the corresponding function). You can create new things on the map by re-creating initServer.sqf (create buildings and other things with the editor) and initPlayerLocal.sqf (re-create dealers). If you are looking for something you should find appropriate tutorials either here in the club or in the Arma 3 forum.
  22. ZN Anhor

    Roaming AI A3XAI

    This question is not that easy to answer, because it depends on what you expect. Do you want shooting gallery characters or real challenges? Do you want an AI that the player can fight alone or do you want to motivate the players to work together against the AI? From personal experience I can tell you that you should set the requirements as low as possible if you want to attract a lot of players (the majority of arma players). Very few current players can deal with challenges or even losses. On our server, we tend to target the 1% of the community who can deal with setbacks (personal progress), challenges and stress. But that has a lot to do with the "setting" of our server, because we try to represent a historical event as accurately as possible.
  23. Correct me if I´m wrong ...... but did Chernarus Redux 2.0 not exist? Your question (or intention) is a bit unclear for me. Do you wanna make some changes on a existing map? Or do you create a new map? If is the second one ....... well, let me know in about 2 or 3 years if you made progress ...... map building is some of the most horror I can imagine.
  24. ZN Anhor

    Roaming AI A3XAI

    In the exile_server_config is a file called config.cpp In that file you find the following part: maxLandPatrols = 2; //in this case 2 vehicle patrols spawning levelChancesLand[] = {0.00,0.00,0.50,0.50}; //what skill level and percent the AI is. in this case only level 2 and 3 spawning respawnLandMinTime = 600; //minimal time for respawn after destroying respawnLandMaxTime = 1200; //maximum time for respawn after destroying landVehicleList[] = { //list of vehicle types {"uns_BTR152_DSHK",2}, {"uns_Type55_patrol",2} }; landGunnerUnits = 2; //how many gunners in the vehicle landCargoUnits = 4; //how many groundforces in the vehicle maxLandPatrols = "number"; The "number" says how much vehicle patrols are spawning (2, 3 or more) The rows from @Rosso777 are completly custom and you must add these manual.
  25. ZN Anhor

    Building Replacement Addon

    I tested the addon posted by @chernaruski yesterday and it works perfectly. I just stumbled upon one little problem: all buildings that spawn as replacements on the map are rotated exactly 180 degrees. Virtually all the entrances are on the wrong side, and since many of these buildings are on a river, that's a bit inconvenient 😄 Maybe one of you know how to solve this problem? I'm pretty sure that the solution can be found in fn_buildingReplace.sqf, probably even in this part: I admit that my knowledge is unfortunately not enough.
×