Crazmanian Posted September 4, 2014 Report Share Posted September 4, 2014 Hey i have been looking all day on the forum and the server files and im wondering how to add the storage space next to the trader name. I thought i found it in the cfgvehicle.hpp file but it hasnt seemed to work. Any ideas ??? Thanks Link to comment Share on other sites More sharing options...
0 TheZog Posted September 4, 2014 Report Share Posted September 4, 2014 I really wish the backpacks had their storage listed much more than I care about the vehicles. If someone could add that it would be fantastic. Link to comment Share on other sites More sharing options...
0 Crazmanian Posted September 7, 2014 Author Report Share Posted September 7, 2014 Bump Link to comment Share on other sites More sharing options...
0 Zupa Posted September 8, 2014 Report Share Posted September 8, 2014 make me a list of the storage space per vehicle ^^ and i'll do it Link to comment Share on other sites More sharing options...
0 Zupa Posted September 8, 2014 Report Share Posted September 8, 2014 Nevermind, i can let that be randomly calculated ingame, no need for an list. Link to comment Share on other sites More sharing options...
0 Zupa Posted September 8, 2014 Report Share Posted September 8, 2014 I'll release it this evening. Link to comment Share on other sites More sharing options...
0 Zupa Posted September 8, 2014 Report Share Posted September 8, 2014 Follow the development here: https://github.com/DevZupa/AdvancedTradeMenu shadow_fl 1 Link to comment Share on other sites More sharing options...
0 Crazmanian Posted September 8, 2014 Author Report Share Posted September 8, 2014 Have added the files and the vehicle menus display no vehicles at all. have added the hive line and the config lines still nothing works Link to comment Share on other sites More sharing options...
0 Zupa Posted September 8, 2014 Report Share Posted September 8, 2014 can you post your rpt? Cus i cant test it being at work ^^ Link to comment Share on other sites More sharing options...
0 Zupa Posted September 9, 2014 Report Share Posted September 9, 2014 Can someone give me test results ^^ i didnt had the time last evening. RPT logs would me amazing Link to comment Share on other sites More sharing options...
0 Sukkaed Posted September 9, 2014 Report Share Posted September 9, 2014 You need to change the _item to _name. I have pretty much same thing with hint box. If anyone is interested, I can throw it here. Link to comment Share on other sites More sharing options...
0 Zupa Posted September 9, 2014 Report Share Posted September 9, 2014 You need to change the _item to _name. I have pretty much same thing with hint box. If anyone is interested, I can throw it here. You're right, thx. Added the github files! Link to comment Share on other sites More sharing options...
0 Zupa Posted September 9, 2014 Report Share Posted September 9, 2014 Would be amazing if someone can provide a screenshot of it, and confirms it is working. I'll make an official topic about it then. Link to comment Share on other sites More sharing options...
0 Sukkaed Posted September 9, 2014 Report Share Posted September 9, 2014 I doubt that it all fits on a trader menu, at least not in lower resolutions. Works fine on top right hint box. Looks something like this. In player_traderMenu.sqf or player_traderMenuConfig.sqf or what ever it's called Find: _header, _File Replace with: _header, _File, _type, _afile Find: while {count TraderItemList < 1} do { sleep 1; }; _item = TraderItemList select _index; Add below: _name = _item select 0; _type = _item select 10; _afile = _item select 11; _theName = getText(configFile >> _type >> _name >> "displayName"); _image = getText(configFile >> _type >> _name >> "picture"); if(_type == "CfgVehicles") then { if (_afile == "trade_backpacks") then { _mags = getNumber (configFile >> "CfgVehicles" >> _name >> "transportMaxMagazines"); hintSilent parseText format [" <t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/> <img size='6' image='%2'/><br/> <t align='center' color='#FFFFFF' size='1.2'> Slots: %3 </t> ", _theName, _image, _mags ]; } else { _seats = getNumber (configFile >> _type >> _name >> "transportSoldier"); _weapons = getNumber (configFile >> _type >> _name >> "transportMaxWeapons"); _mags = getNumber (configFile >> _type >> _name >> "transportMaxMagazines"); _packs = getNumber (configFile >> _type >> _name >> "transportMaxBackpacks"); hintSilent parseText format [" <t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/> <img size='6' image='%2'/><br/> <t align='left' color='#FFFFFF' size='1.2'> Seats: %3 </t><br/> <t align='left' color='#FFFFFF' size='1.2'> Gear: %4/%5/%6 </t> ", _theName, _image, (_seats + 1), _weapons, _mags, _packs ]; }; } else { _whatIsthis = getText(configFile >> _type >> _name >> "descriptionShort"); hintSilent parseText format [" <t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/> <img size='6' image='%3'/><br/> <t align='center' color='#FFFFFF' size='1.2'> %2 </t> ", _theName, _whatIsthis, _image ]; }; Link to comment Share on other sites More sharing options...
0 Crazmanian Posted September 9, 2014 Author Report Share Posted September 9, 2014 I doubt that it all fits on a trader menu, at least not in lower resolutions. Works fine on top right hint box. Looks something like this. In player_traderMenu.sqf or player_traderMenuConfig.sqf or what ever it's called Find: _header, _File Replace with: _header, _File, _type, _afile Find: while {count TraderItemList < 1} do { sleep 1; }; _item = TraderItemList select _index; Add below: _name = _item select 0; _type = _item select 10; _afile = _item select 11; _theName = getText(configFile >> _type >> _name >> "displayName"); _image = getText(configFile >> _type >> _name >> "picture"); if(_type == "CfgVehicles") then { if (_afile == "trade_backpacks") then { _mags = getNumber (configFile >> "CfgVehicles" >> _name >> "transportMaxMagazines"); hintSilent parseText format [" <t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/> <img size='6' image='%2'/><br/> <t align='center' color='#FFFFFF' size='1.2'> Slots: %3 </t> ", _theName, _image, _mags ]; } else { _seats = getNumber (configFile >> _type >> _name >> "transportSoldier"); _weapons = getNumber (configFile >> _type >> _name >> "transportMaxWeapons"); _mags = getNumber (configFile >> _type >> _name >> "transportMaxMagazines"); _packs = getNumber (configFile >> _type >> _name >> "transportMaxBackpacks"); hintSilent parseText format [" <t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/> <img size='6' image='%2'/><br/> <t align='left' color='#FFFFFF' size='1.2'> Seats: %3 </t><br/> <t align='left' color='#FFFFFF' size='1.2'> Gear: %4/%5/%6 </t> ", _theName, _image, (_seats + 1), _weapons, _mags, _packs ]; }; } else { _whatIsthis = getText(configFile >> _type >> _name >> "descriptionShort"); hintSilent parseText format [" <t align='center' color='#52bf90' shadow='1.5' size='1.75'> %1 </t><br/> <img size='6' image='%3'/><br/> <t align='center' color='#FFFFFF' size='1.2'> %2 </t> ", _theName, _whatIsthis, _image ]; }; Cant get this to work theres no hint box is there something else i need to do to get the hint boxes? Link to comment Share on other sites More sharing options...
0 Sukkaed Posted September 9, 2014 Report Share Posted September 9, 2014 Cant get this to work theres no hint box is there something else i need to do to get the hint boxes? Are you using Zupa's single currency or config traders? Link to comment Share on other sites More sharing options...
0 Crazmanian Posted September 9, 2014 Author Report Share Posted September 9, 2014 Are you using Zupa's single currency or config traders? No we havent got single currency running and traders im not 100% on but think its hive traders. Best way to tell? Link to comment Share on other sites More sharing options...
0 Sukkaed Posted September 9, 2014 Report Share Posted September 9, 2014 No we havent got single currency running and traders im not 100% on but think its hive traders. Best way to tell? Then you are probably not using config traders. So then you have to take player_traderMenuHive.sqf from dayz_code, redirect from compiles and do those same changes to that file. Link to comment Share on other sites More sharing options...
0 Crazmanian Posted September 9, 2014 Author Report Share Posted September 9, 2014 with file do i redirect it in and what code will it be to do that Link to comment Share on other sites More sharing options...
0 Sukkaed Posted September 9, 2014 Report Share Posted September 9, 2014 with file do i redirect it in and what code will it be to do that umh.. you need custom compiles. Try google. Link to comment Share on other sites More sharing options...
0 Crazmanian Posted September 9, 2014 Author Report Share Posted September 9, 2014 its ok thought it would be the compiles just wanted to check Link to comment Share on other sites More sharing options...
0 OSUapoc Posted September 11, 2014 Report Share Posted September 11, 2014 We're running Zupa 2.0 (Soul variant 1) and I've made the suggested edits to player_traderMenu.sqf within the custom/gold directory However, I'm not getting the hint window. Here's the file: http:\\www.pastebin.com/atcctY9V We're running JAEM, which I believe may use a modified hint window, as well as a couple of other mods with custom GUIs, though I don't believe any of those should affect this. Ideas on why the hint window would be giving me the finger? We also have Infistar running as well. Link to comment Share on other sites More sharing options...
0 Sukkaed Posted September 11, 2014 Report Share Posted September 11, 2014 You're missing couple commas here File, type, afile Link to comment Share on other sites More sharing options...
0 OSUapoc Posted September 11, 2014 Report Share Posted September 11, 2014 D'oh! Thanks, chief! Fixed the problem entirely. Link to comment Share on other sites More sharing options...
0 Kimzer Posted November 7, 2014 Report Share Posted November 7, 2014 Error in expression <_type = _item select 10; _afile = _item select 11; _theName = getText(configFile> Error position: <select 11; _theName = getText(configFile> Error Zero divisor Getting this in client.rpt Link to comment Share on other sites More sharing options...
Question
Crazmanian
Hey i have been looking all day on the forum and the server files and im wondering how to add the storage space next to the trader name. I thought i found it in the cfgvehicle.hpp file but it hasnt seemed to work.
Any ideas ???
Thanks
Link to comment
Share on other sites
24 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now