GreuhZbug / greuh_liberation.Altis

Liberation for Arma 3
https://trello.com/b/FfUXrHn1/liberation-dev
MIT License
43 stars 40 forks source link

Insignias not showing in virtual arsenal #124

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello everyone! I'm having an issue with in game insignias in my Liberation, i will try to explain the problem: My clan and me wanted to have our contry flag in our uniforms, so me downloaded a mod. As the ARSENAL in the base and FOB's doesn't allow to change your face, voice and insignia, I edited the mission and added with this command line in the init of a commander:

this addAction ["Open Virtual Arsenal", {["Open",true] spawn BIS_fnc_arsenal}];

So this NPC would give us the option to enter the Virtual Arsenal, and there we could change our insignia.

The problem is that, beside the face, voice and insignia tab appears (as it should be), they are completely empty, even the Arma 3 original insignias aren't there. I tried to add the insignia in the virtual arsenal's game menu and then enter the game and load that profile, but the insignia is, again, not there.

The mission is Liberation Chernarus with ACE, a modification by Kaelh that added the FFAA mod. I know I should contact him too, but as you, the creators, are more aware of the code of the scripts of the missions, maybe you could solve this problem.

Thanks a lot for your time guys!

Wyqer commented 7 years ago

Sorry, I don't know the Version of Kaelh (only read a title of a Liberation version with him as creator of the edited version). But I think that's also the state of 0.924 (we're at 0.95 atm). So yeah, it would be best to ask him. But also it's intended to don't have the "appearance" tabs for face etc. in the arsenal even in this version. If you like to have them, you're free to edit everything in the code etc. it's free for everyone, so don't be afraid or something :).

By the way, these are the versions which are developed here: http://steamcommunity.com/id/wyqer/myworkshopfiles/?appid=107410

Changelog of these: https://github.com/Wyqer/kp_liberation#095

ghost commented 7 years ago

Wow! Thank you for the quick response!

Affirmative, the version of Libe is 0.924.

I'm studying computer engineering, so I don't have any kind of problem changing the code. Since you have a lot of folders, could you explain me in which file I could enable the option of having the face, voice and insignia tabs from the virtual arsenal working properly?

Again, thanks a lot for the quick response and your time!

Wyqer commented 7 years ago

Good points to start are: \scripts\client\misc\init_arsenal.sqf and \scripts\client\actions\open_arsenal.sqf

You're welcome. Also you could consider to join the discord as there are many who play, host and edit the mission. :) https://discord.gg/bpPUU48

ghost commented 7 years ago

Mmmh. It looks like init_arsenal has te key... maybe add and if with BIS_fnc_setUnitInsignia? The problem is that there is no addUnitInsignia function to the arsenal, so they are stored there, because they should be in the virtual arsenal that I placed. So it must be a line of code that removes them from the virtual arsenal or something... :(

Thanks again for your time, will try Discord and see if anyone can help me!