#arma3_config

1 messages · Page 75 of 1

hard chasm
#

@warm skiff Nice fix, congrats

warm skiff
#

Saved me from getting 3 more grey hairs 😄

nimble sequoia
#

Is this inheritance properly formed?

class CfgVehicles {
class Car;
class Car_F : Car {
class HitPoints {
class HitBody;
};
};
class MyNewCar : Car_F {
...
class HitPoints : HitPoints {
class HitBody : HitBody {
name = "body";
};
};
};
};

The reason I'm asking is that rpt's show:
"Updating base class ->Car_F, by mypath\config.bin/CfgVehicles/MyNewCar/ (original mypath\config.bin)"

hard chasm
#

your config template is good. requiredaddons= has not been set to bring in the car_f config first.

nimble sequoia
#

no, that's fine, there's more to the config than I've typed out

hard chasm
#

'good' means you aren't adding or disturbing the inheritence tree. that's what makes it a 'template'. whether it's telling the truth is a diferent matter. Ie in the car_f config if above is actually true.

nimble sequoia
#

I just wanted to make sure I wasn't messing with Car_F at all, because of the rpt line.

hard chasm
#

agreed

#

two causes of updating base class are:

  1. you lied OR
  2. requiredaddons[]=
nimble sequoia
#

I don't understand what you mean with 1)?

hard chasm
#

well where is the config.cpp that actually contains car_f ??

nimble sequoia
#

A3_Soft_F ...I think

#

requiredAddons[] = {
"A3_Soft_F",
"A3_CargoPoses_F"
};

hard chasm
#

k. i'll check

nimble sequoia
#

Can you tell me how to check pls? Would like to know

hard chasm
#

but essentially you have got the technique correct

#

i've checked, what you said above is correct, and nicely done.

nimble sequoia
#

Thanks, good to know.

#

So it's not your point 1). Or 2)?

hard chasm
#

as for how to check, the answer is those classes really do exist at the indent level you said they were at, OR, you lied.

#

neither 1 or 2 apply. you've done it correctly.

nimble sequoia
#

So do you know of any other reasons why the rpt says the base class was being updated? Do I not need to worry about it?
I do see lots of mods (eg RHS) that have many similar lines.

hard chasm
#

then they break the underlying master config.BIN

#

disturbing the inheritence tree is never acceptable,. you can see the mess bis themselves have made with rscDisplays

nimble sequoia
#

So you think the rpt line indicates a problem?

hard chasm
#

definate

nimble sequoia
#

but no idea why?

#

at least from the info I've shown

hard chasm
#

well you haven't exactly pasted a real config have you;

#

but first remove your addon altogether and check what the underlying rpt says.

nimble sequoia
#

There are lots and lots of rpt lines with similar "updating base class" notifications. Many seem to be BIS...perhaps they're present without mods, haven't checked.
1:07:46 Updating base class ->Default, by a3\weapons_f\config.bin/CfgWeapons/ItemCore/ (original a3\weapons_f\config.bin)
1:07:46 Updating base class ->Bag_Base, by a3\weapons_f\ammoboxes\config.bin/CfgVehicles/B_AssaultPack_Base/ (original a3\weapons_f\ammoboxes\config.bin)
1:07:46 Updating base class ->B_AssaultPack_Base, by a3\weapons_f\ammoboxes\config.bin/CfgVehicles/B_AssaultPack_rgr/ (original a3\weapons_f\ammoboxes\config.bin)
1:07:46 Updating base class ->B_AssaultPack_Base, by a3\weapons_f\ammoboxes\config.bin/CfgVehicles/B_AssaultPack_cbr/ (original a3\weapons_f\ammoboxes\config.bin)
1:07:46 Updating base class ->Bag_Base, by a3\weapons_f\ammoboxes\config.bin/CfgVehicles/B_Kitbag_Base/ (original a3\weapons_f\ammoboxes\config.bin)
1:07:46 Updating base class ->Bag_Base, by a3\weapons_f\ammoboxes\config.bin/CfgVehicles/B_TacticalPack_Base/ (original a3\weapons_f\ammoboxes\config.bin)
1:07:46 Updating base class ->Bag_Base, by a3\weapons_f\ammoboxes\config.bin/CfgVehicles/B_FieldPack_Base/ (original a3\weapons_f\ammoboxes\config.bin)
1:07:46 Updating base class ->Bag_Base, by a3\weapons_f\ammoboxes\config.bin/CfgVehicles/B_Carryall_Base/ (original a3\weapons_f\ammoboxes\config.bin)

hard chasm
#

anything rscDisplay is bis trying to cope with the underyling xbox elite config

#

almost anything else is a foriegn addon upsetting things.

sweet crescent
#

I know virtually nothing about configs, but is it possible and fairly simple to make a "patch" addon that reduces backpack capacities?

hard chasm
#

yes. providing the backpack itself is a class of yours, not the original.

#

you can inherit the same model, same basic characteristics, but you go altering things, then it has to be your class not the class everyone else uses. You get hate mail

nimble sequoia
#

mikero, how did you check whether car_f was in A3_Soft_F, or otherwise find where it resides?

sweet crescent
#

Ok thanks mikero, looks like I've got some learning to do 😃

nimble sequoia
#

Oh, I think it's obvious, sorry.

hard chasm
#

you can change whole-of-game to sing songs in mongolian, if you want to. but whether everyone else wants to hear moingolian is a different matter. Normally for your mod, your missions, you provide an addon that Inherits the original, so that only your mod, your missions are affected.

stoic lily
#

@Apollo#1366 from the looks of it you have an older version of your config/pbo (or a second version) with faulty requiredAddons

sullen fulcrum
#

can somebody help me out.. i ve added cargoturrets to vehicle and now units are invincible when they get on it(outside). what do i have to add in cfg so they can take damage?

fathom thorn
#

@sullen fulcrum
add the proxies in the fire geometry

#

"Proxies for the driver & passenger must be present into this LOD as well (they can be copied from the Resolution LOD). Otherwise the units will be invincible. One should also do any geometry validation before adding the proxies, otherwise they will not be functional. "

boreal heart
#

G'day all

#

What config code would I need to chuck into a config to remove the BI UI for vehicle info and weapons?

#

Would rather use the HUD on the vehicle than those

#

I'm wanting to keep the Sensor display UI stuff, but not the rest

untold temple
#

would need to change the unitInfoType

sullen fulcrum
#

@fathom thorn Yeah thanks i did figure it out yesterday. But thanks anyways 😃

clever kestrel
#

How exactly does a display in a config access variables like speeed on a vehicle?

untold temple
#

idc output

clever kestrel
#

I'm not sure how that would look, have any resources or examples?

untold temple
#

most are found in class RscIngameUI>>>class RscUnitInfo

#

speed ui displays (typically class CA_Speed) takes values from idc = 121;

clever kestrel
#

Gotcha. I'll take a look

woeful escarp
#

Anyone know what an EPE manager is?

jade brook
#

PhysX collision handling

#

EPE "external physics engine"

woeful escarp
#

How would one fix this

#

?

#

Would the mod Arma Enhanced Movements cause this error, that used to be on the server in the commandline

jade brook
#

Post full RPT

woeful escarp
#

ok

#

Where do I post this?

#

I doubt the log will fit in one text

jade brook
#

pastebin

#

github gist

woeful escarp
#

Ok

#

That link should work

jade brook
#

That is not the full RPT file.

#

It's missing at the top.

woeful escarp
#

Ok

#

Sorry been at this for almost 5 hours and doing stuff for my unit at the same time

jade brook
#

And it crashes the game?

woeful escarp
#

No

#

What happens is this; Lobby, mission loads, waiting for host, loading screen, back to lobby

#

I check the RPT logs, find no dependency issue, I just see that EPE manager at the end

jade brook
#

The last line is not necessarily the cause for a crash.

#

The game fails to start the mission because of the config errors in the OPTRE mod weapons.

woeful escarp
#

I can't find what would be crashing it.

jade brook
#

OPTRE mod is.

woeful escarp
#

Ok

#

It's that MA5B_AC then

#

Strikes me as odd because I got the same error on a different mission, and that mission is working fine

jade brook
#

Doesn't matter. The freeze happens because of an old bug with pop up errors preventing a mission from loading.

#

But there shouldn't be a pop up error in the first place.

#

OPTRE has to be fixed, otherwise it will crash missions.

woeful escarp
#

Ok

#

I'll ask one of the devs about it

#

Least it's narrowed down to another problem

#

thanks!

jade brook
#

It seems that the authors of OPTRE don't know much about how to set up a proper config. There are a lot of UBC errors in their mod.

#

107 lines of errors.

woeful escarp
#

The update took about two months from their announcement, but I don't judge because Idk what's it like to mod or their personal life.

jade brook
#

I am allowed to judge I think.

#

Wasn't meant in any negative way. It's just true.

grand zinc
#

@jade brook Lobby, mission loads, waiting for host, loading screen, back to lobby
Answer The freeze happens because of an old bug with pop up errors preventing a mission from loading.
What freeze? There is no freeze :D
The issue is probably in the serverside RPT and not in the clientside one. Because it's the server that's kicking you back to lobby for some error.
OPTRE is still broken though.

pulsar fox
#

Quick question, can you have a hyphen in a class name? e.g
class CfgUnitInsignia
{
class Squad1-1 <--- this bad boy
{
displayName="Section 1-1";
};
};

grand zinc
#

afaik no. Just use _

pulsar fox
#

Thanks.

hard chasm
#

in c++ the hyphen is a delimeter betwen 'words'

#

c coders use the compiler supplied isalpanumeric(int c) to distinguish boundaries. An alpha numeric is defined in c (and all derivitives such as perl and php) as a->z 0->9 A->Z and the ' _'character, a->z is local codepage dependent. for us ascii it is 26 chars, for cyrliic it is 32. for katakana, it is around 2,500 codepoints.

#

but to answer your question properly, the bis engine would have no trrouble with:

c;lass РабТУФХ

it is a valid sequence of utf encoded alpahnmeric characters

jade brook
#

@grand zinc Same diff.

sullen fulcrum
#

Does enableDebugConsole in a mod need be under a class or just in config.cpp?

grand zinc
#

If it would be under a class where would you put it @sullen fulcrum ?

sullen fulcrum
#
CfgPatches {
    myMod {
        // here?
    };
};
grand zinc
#

Ah... So you think it could be inside a class and the Wiki wouldn't tell you in which of the thousands of possible places it should be?

#

Or does the Wiki not tell you in which class because it is actually not in a class?

sullen fulcrum
#

Probably the latter.

grand zinc
#

😉

sullen fulcrum
#

Thanks.

#

Lol, it breaks the mod.

#

Works: ```CPP
#include "script_component.hpp"

class CfgPatches {
class nev_debug_menu {
name = "Mutipurpose Debug Menu";
author = "Neviothr & jameslkingsley"; // https://github.com/jameslkingsley
units[] = {};
weapons[] = {};
requiredVersion = 1.0;
requiredAddons[] = {"Extended_EventHandlers"};
version = 1.6.2;
versionStr = "1.6.2";
versionAr[] = {1, 6, 2};
};
};

#include "CfgSettings.hpp"
#include "CfgNotifications.hpp"
#include "CfgEventHandlers.hpp"
#include "ui\BaseDefines.hpp"
#include "ui\DebugMenu.hpp"
#include "ui\AiCount.hpp"
Doesn't work:CPP
#include "script_component.hpp"

class CfgPatches {
class nev_debug_menu {
name = "Mutipurpose Debug Menu";
author = "Neviothr & jameslkingsley"; // https://github.com/jameslkingsley
units[] = {};
weapons[] = {};
requiredVersion = 1.0;
requiredAddons[] = {"Extended_EventHandlers"};
version = 1.6.2;
versionStr = "1.6.2";
versionAr[] = {1, 6, 2};
};
};

enableDebugConsole[] = {"76561198141761169"};

#include "CfgSettings.hpp"
#include "CfgNotifications.hpp"
#include "CfgEventHandlers.hpp"
#include "ui\BaseDefines.hpp"
#include "ui\DebugMenu.hpp"
#include "ui\AiCount.hpp"

grand zinc
#

looks good to me tho

#

Why doensn't that work?

#

Does your pbo packer or Arma just pop a Message box that says "Doesn't work" ?

sullen fulcrum
#

Hmm, well, the mod does stuff in-game, like add addActionss, display dialogs, assign keybinds with CBA. With enableDebugConsole, it doesn't do any of those. It just... loads...

grand zinc
#

That's interesting ^^

sullen fulcrum
#

I can link you the whole source if that'll help.

grand zinc
#

No. That one line shouldn't change anything

#

Maybe you are doing something wrong when packing that you didn't do wrong before

sullen fulcrum
#

Nope, packing is done exactly the same, I tried it multiple times with, and without enableDebugConsole.

#

Wait.

#

CBA issue claims 1.73 dev, wiki claims v1.71.

grand zinc
#

He is listing what version he is running when he created the issue. And apparently he is running 1.73. That's completly unrelated to the wiki

sullen fulcrum
#
On arma 1.73 dev branch the debug console can now be made active when an addon is loaded with enableDebugConsole = 2 in the config root. 
grand zinc
#

That was one day before 1.72 release

sullen fulcrum
#

Was it in the RC, though?

#

Doesn't the RC branch fork from dev branch, at which point it stops?

#

So dev continues while RC gets only bug fixes and such.

normal sleet
#

Quick question: I'm losing some hair over a config.bin in an addon that has some rscTitles stuff in it. Here's my debug process

  1. Use CfgConvert to get the config.bin to cpp, change nothing in the cpp, then convert back to bin
  2. (Making sure I only have the newly converted bin in it) I repack the pbo and test it.
  3. Nothing works. Note that the only difference is the bin here, nothing else was changed.

Sanity check: If I repack the addon pbo with the bin that it originally had in it everything works.

hard chasm
#

yep.

sullen fulcrum
#

@grand zinc does this mean something? ```
17:28:00 NEV_Addons\Addons\nev_debug_menu\config.bin.enableDebugConsole: Cannot update non array from array

grand zinc
#

yes

#

delete enableDebugConsole;
enableDebugConsole[] = ...

sullen fulcrum
#

Hmm, that's what I did enableDebugConsole[] = {"76561198141761169"};

jade brook
#

Yes, bit I'm not sure the game allows this. Maybe it's not possible to use the array version in config.

sullen fulcrum
#

Wiki claims ```
Array of UIDs is also supported here.

jade brook
#

Do you have another mod that sets this value (as number, not array)?

grand zinc
#

Yeah.. It is bugged. Same as the script that checks your priviledge was horribly bugged till current dev branch

#

it is by default set to 0

jade brook
#

Is it set to 0 as default or does it default to 0?

sullen fulcrum
#

Same thing if you can't change it ^

jade brook
#

No. One does explicitly set the value to 0 and the other assumes 0 if the value is not set.

sullen fulcrum
#

If it's broken it means the value is 0 anyway.

jade brook
#

No, you could set it to 1 or a string.

#

Just not to an array.

#

Yes, it is explicitly set to 0:

enableDebugConsole = 0;
#

This means you can't change it to an array.

sullen fulcrum
#

What I mean is if enableDebugConsole doesn't work, there's nothing to set, so it assumes 0.

jade brook
#

You can set to a number or string.

#

What you can't do is change the entry to an array entry.

#

Because the game already uses a number in vanilla.

sullen fulcrum
#

Wiki's misleading then.

jade brook
#

They broke it by setting it explicitly to a number instead of assuming 0 if it's undefined.

sullen fulcrum
#

Needs a [Broken ATM] disclaimer.

jade brook
#

Maybe it worked at some point and then they got overzealous and added the = 0; entry to config.

#

Try:

delete enableDebugConsole;
enableDebugConsole[] = {...};

first.

sullen fulcrum
#

Alright (it's gonna take a bit, PC's slow 😐).

#

Well, it doesn't break the addon. But, there's no debug console in mission where it's disabled (ie BIS showcases).

jade brook
#

Well yeah. If it's explicitly disabled in the mission, it's supposed to overrate the addon.

sullen fulcrum
#

As per the order of precedence on the wiki.

grand zinc
#

They added it when the new security thingy was already broken

jade brook
#

Nice trick with using delete, Dedmen.

sullen fulcrum
#

I'm assuming delete is used to, well, delete entries, classes, etc?

jade brook
#

entries.

sullen fulcrum
#

Alright, cool. Thank you for your help guys 😄

jade brook
#

Non-inherited entries to be precise. It's pretty limited.

#

Someone should put it on the wiki that it's needed to redefine enableDebugConsole to an array.

sullen fulcrum
#

Does one of you have an account?

jade brook
#

I'll add it.

sullen fulcrum
#

👍

jade brook
#

Now I'm waiting for KK to delete it again. ☕

sullen fulcrum
#

Again? 😂

jade brook
#

He'll probably not understand it and be even more dense than you :S

sullen fulcrum
#

I'm not that dense... 😦

jade brook
#

Yeah, you just pretended.

sullen fulcrum
#

Let's go with that 😉

grand zinc
#

@jade brook You can remove it again. Fixed in dev branch afaik

jade brook
#

They removed the entry from vanilla, right?

grand zinc
#

Think so

jade brook
#

Eh, let KK delete it.

#

For now, it's true.

idle coral
#

Anyone up for helping on a project? got everything ready just need the config. (paid)

#

Smoke grenades and a gas mask, nothing too funky I dont think

sullen fulcrum
sharp stone
#

So following from a discussion in #arma3_scripting, id like to sneak some changes into the particle effects of a missile explosion. Never messed around in this corner of the engine, where are the particle effects defined exactly? I know of: cfgCloudlets, where the particle effects are, but not sure which one actually gets used. The ones in the hitEffects subclass of the ammo? Or something else? Maybe the explosionEffect parameter?

strange egret
#

what ya mean by nose dipping?

#

the 'fight controlls' thing?

#

if it is not doable by changing the draconic* parameters then it is not doable without touching the model itsel and it's weight balance, to my knowledge

nimble sequoia
#

It's likely to be tied to the centre of gravity in the Geometry LOD.

strange egret
#

yeah

#

actually, envelope array (controlls lift vs speed curve) and angle of incidence affects lift, so that should have an effect as well

#

draconic controlls the "sliding" parameters mostly. But it is REALLY weird. I hate that flightmodel -.-

sullen fulcrum
#

anyone familiar with circular addon dependency ? got that error

nimble sequoia
#

me too

#

Mod A requires Mod B. Mod B requires Mod A.

strange egret
#

do you use pboProject? it makes automatic dependency based on used ressources (classes, models, textures, ...)

sullen fulcrum
#

yes i use that

strange egret
#

so yeah, somewhere .pbo A uses content of B and B uses content of A

sullen fulcrum
#

i see but not sure how to change that

strange egret
#

check the cfgPatches in the packed .pbo's to see what pbo's you have in there

nimble sequoia
#

Or if you are making Mod A and Mod B, then roll them into one Mod?

strange egret
#

well there is only one way to change it: dont use component B in A if B requires A

#

either create component C that requires A and B, or combine A and B

sullen fulcrum
#

well its all packed in one pbo ... those are just different rextexture uniforms .. like desert and woodland

#

ah damn i ve binarised it

strange egret
#

but you have multiple config.cpp in your pbo, likely

sullen fulcrum
#

yeah

strange egret
#

every config.cpp is one "addon" and requires one cfgPatches class

nimble sequoia
#

combine CfgPatches

strange egret
#

you could just use one config.cpp, and for every individual thing you have you #include it in the main .cpp

nimble sequoia
#

rather, combine config.cpp

strange egret
#

more organised than a monster.cpp with everything in it

boreal heart
#

That can be a multitude of issues

#

Wheels, Suspension, geometry

#

Then if its PhysX suspension for example, you have like 20 different values you can change and they all affact one another

sullen fulcrum
#

anyone got error with externs(model.cfg) when tryed to pack pbo?

#

i just cant seem to get it to work

kindred moss
#

@sullen fulcrum what do pack with?

#

if you have something like class Default; in you model.cfg then that would be it

#

change it to this

class CfgModels
{
    class Default
    {
        sectionsInherit="";
        sections[]={};
        skeletonName="";
    };
    ....your other stuff below...
};```
#

but to be sure post your model.cfg on pastebin or alike, and link it here

nimble sequoia
#

armer's 'circular addon dependancy' problem was cured by 1) adding missing requiredAddons[] in CfgPatches, and 2) unchecking 'rebuild cfgPatches' in the Setup of proProject.

jade brook
#

Yeah, that rebuilding CfgPatches feature is pure cancer.

hard chasm
#

(sigh)

#

I've seen your overhwelmingly helpful answers in other channels on discord commy2, you've earned and deserve respect. Please reciprocate.

sullen fulcrum
#

What does rebuilding CfgPatches do?

stark gust
#

Any way to do code/script or anything for a config/

grand zinc
#

More specific please?

#

You can have script in a config. And you can have script to make a config. But I don't know what you mean by "for a config"

stark gust
#

Either change all config values (mods included) and change fovInit/fovMin/fovMax for all.
or have a value like fovInit = (CHANGEABLE VALUE HERE); so it can be changed for all

grand zinc
#

not really

untold temple
#

no

#

apart from the diagnostic .exe, config values cannot change in play

stark gust
#

How about something that copies configs from in-game to a file/clipboard

grand zinc
#

easy as you can read config with sqf

untold temple
#

yeah, and there are various config dump utilities around

stark gust
#

Thanks

stark gust
#

What's the simples way to overwrite all configs?

#

overwrite initFov in all configs

#

Or change all weapons to use the same magazine?
For ex. I need a list of ALL weapons that I have (including mods) and change the magazine types for those to be the same one.
So all 556 guns fit the same mags

sharp stone
#

no simple way

hard chasm
#

What does rebuilding CfgPatches do?

start programs->mikero->tools->documentation

modern coral
#

I want to implement this dynamic blur effect for the spyglass in my mod (and animate it so it slides forward and back as you focus) -- any ideas how this is done? ( i pm'd him at arma forum but he doesnt seem to be active there anymore) https://www.youtube.com/watch?v=gJx0t-cHKTk

willow skiff
#

Is it possible to create new categories for markers? I've been making some new markers and they work nicely when categorised as flags but I was hoping to have them in a separate category. Ideally I'd also like to have them not appear in the usual marker list when in the game itself but still be accessible by scripts, is that doable?

round dust
#

yeah, marker categories are defined in CfgMarkerClasses @willow skiff

willow skiff
#

I can't find anything specifically about CfgMarkerClasses, I'm trying to cobble this together from stuff I've read about adding new unit types. In the same config.cpp as I'm defining the markers, I'd need to add something like:

class CfgMarkerClasses
{
class MySpecialMarkers
{
displayName = "MySpecialMarkers";
};
};

and in the definition of the markers themselves, set the class as MySpecialMarkers and it'll populate a new category, is that about right?

round dust
#

yeah i think that's all you have to do

#

you're safe to have spaces in displayName btw

willow skiff
#

Cool, I'll give that a crack when I'm on my gaming pc next, cheers.

#

Hot damn, that code I wrote off the top of my head based on a guess was exactly correct... What IS the temperature in hell at the moment anyway?

grand zinc
#

@willow skiff 10.6 °C But it is supposed to reach about 28 °C today

willow skiff
#

Thats a fairly significant increase, sounds like australia...

grand zinc
thorn leaf
#

Is there any way to make airFriction work on grenades?

untold temple
#

doesn't it already? Are you using a negative value?

thorn leaf
#

Adjusting it in cfgAmmo, it doesn't seem to do anything.

#

I want to make it basically stop and fall in mid air.

jade brook
#

Not all config entries affect all simulation types. Apparently airFriction does nothing for grenades, as you discovered. I think hand grenade flight paths are a PhysX thing in A3. This is why they fly through thin walls... Yay PhysX.

wind bluff
#

a

#

the heck

#

@jade brook

#

Wow

sullen fulcrum
#

Grenades fly through thin walls? That's... broken...

grand zinc
#

But everytime I try to throw a grenade through an open window it bounces back to my feet 😄

craggy pike
#

@jade brook wasn't there a note about collisions only guaranteed to work when geo LOD > .5m. width or something? Actually, does that mean the entire object or the selection?

jade brook
#

Idk, but sounds like it could've something to do with that.

craggy pike
#

yeah, "Geometry objects should have a thickness of at least 0.5 meters in order to work properly." as quoted on wiki. Still not sure if talking about entire object or selections.

strange egret
#

its about components. Each component (see geometry validation) should be this thick to work reliably for collision.

craggy pike
#

Ahh thank you!

strange egret
#

idk about physx but there certainly is a minimum thickness for it too. If it's 0.5m or not idk

craggy pike
#

So what does this actually mean though? Because my 1cm pieces are actually doing fine, perfect I would say.

#

then again, I have yet to throw them at a window lmao

strange egret
#

the note is for 0.5m is for GeoLOD, not for physx

#

if you can provide minimum thickness values for physx (by testing) that would be valuable

#

the 0.5m for geo LOD is also due to the nature of infantry and cameras... if the wall is thin, you can peek through it as infantry

craggy pike
#

Well tbh, Geo and Geo physx are mostly identical for me? Or isn't that what you were talking about?

strange egret
#

what object are we talking about?

craggy pike
#

In this particular case, the 1cm object is a chess piece, but that's irrelevant I guess.

strange egret
#

no its very relevant

craggy pike
#

Like, there's a function allowing you to throw it into the air, but I swear the board turns into a killing machine... Every piece is lethal ^^

strange egret
#

sounds about right... relying on physx for accurate positioning in arma is bound to fail

craggy pike
#

Yeah I tried setting the pieces a mass of 1 or trying to disable collision, to no avail, they kept killing peeps. 😃
This was all mostly local in 3DEN btw.

strange egret
#

i would think you have more success with scripting the thing. Have memorypoints for each field on the board, attach the figures to those memorypoints.

craggy pike
#

^Exactly what I did ^^

#

It's working now really, I just wondered about the minimim of . 5m. 😃

strange egret
#

i see. Yeah, 0.5m obviously is not required for physx, since weapon physx is also smaller and mostly works. But 1cm object with tiny mass is a bit of a stretch

craggy pike
#

^It's now finished, video's a week old. But this is basically it 😃

strange egret
#

private video apparently

craggy pike
#

Well the goal was to like say fuck this game and throw the board into the air, I expected pieces to bounce off players, that's not what happened. lol.

#

sorry, suggest you cut the sound tho

#

wasn't meant to be recording that. (Yahtzee anyone ^^)

jade brook
#

Why are the white pieces brown?

craggy pike
#

Oh now that I see the video again,anyone knows why the pieces take time to have the actions added to them?

#

White and brown is because black pieces gave a bad visibility. It's often done.

strange egret
#

@jade brook racial diversity

craggy pike
#

lololol

#

yeah that

jade brook
#

Because actions are only available if the players avatar knowsAbout the object with the action.

craggy pike
#

oooh haven't seen that one yet. 😃 ty

jade brook
#

Also, the action menu is super annoying. You should do a custom ui, where you can at least enter the moves with keyboard.

strange egret
#

is it known how often the useraction conditions are checked? I would assume that checking every frame isnt done for performance?

craggy pike
#

thx, will give it a try right away. Well to be fair @jade brook that's why you don't see the mod on public websites.

jade brook
#

Every frame as long as the unit holding the action is within the specified range (15m by default) of the players current cameraOn.

strange egret
#

ok interesting

craggy pike
#

And how would one play chess with a keyboard? Note: I play a lot of chess.

jade brook
#

Kc4 ?

craggy pike
#

Can't imaging players being like queen to ehhhhh .... ehhhh... G .... ehhh 5

#

Lol you expect people to understand kc4

strange egret
#

you can put it on the board...

#

on the sides

jade brook
#

knight, move to C4 :S ??

craggy pike
#

Commy, most people don't know how the knight moves.

strange egret
#

if you dont understand that, how do you even map in arma ? 😄

jade brook
#

Arma players will understand that lingo.

craggy pike
#

milsim players*

jade brook
#

Life is not Arma

craggy pike
#

That's what I meant, milsim lol

jade brook
#

*hides*

strange egret
#

not milsim, just regular arma

craggy pike
#

Well you're right on one thing. the addAction bothers me, always had.

grand zinc
#

there is a knight in chess? :u googles chess

jade brook
#

It's the horse, dedmen.

grand zinc
#

Ouhh. the horse

jade brook
#

lol

craggy pike
#

quietly moves back to facepalm

strange egret
#

pffffhhhhh 😄

#

the ting with the cross, i like that one 😄

craggy pike
#

oooh shiny

#

lolol

grand zinc
#

You could do a looot of fancy stuff for that. ACE Interaction to select a piece. And then point to the target with a ACE-laser that turns green when you can actually move there. and then you confirm with the leftclick mouse thingy from ACE

jade brook
#

I'd rather play chess on a 2D interface tbqh

craggy pike
#

That's the original thought. but still involves players looking at the piece.

jade brook
#

With the mouse.

#

drag and drop

craggy pike
#

^Commy2 it's true, 2D would'v been easier.

grand zinc
#

Or you select also select it with a laser from far away

strange egret
#

keyboard arrows to preselect, enter to select a field...

#

many ways...

grand zinc
#

wtf just happened with my brain

craggy pike
#

I've thought about keyboard yeah. How do you handle diagonals?

strange egret
#

one left, one up????

craggy pike
#

^I get that, but 2 keys for 1 move?

#

I've thought about most suggestions here. (reveal being the newest addition, trying that out)

jade brook
#

You need multiple keystrokes, even for moving a pawn the first time.

craggy pike
#

But unfortunately, the addaction seems the easiest and most complete integration...

#

Moving pawn first time now only requires a variable that's set on start and removed after first move.

strange egret
#

rip middle finger

craggy pike
#

+2 move solved.

jade brook
#

Speed chess with the finicky action menu :/

craggy pike
#

Rip middle finger indeed. hence why no release, it's not what I call playable.

strange egret
#

😄 yeah i think mind chess is easier than action-(menu)-chess

craggy pike
#

What I've done in a later version is swap out text for icons. Vastly improved readability of moves but problem still isn't solved.
I think, as @jade brook suggested, I'll maybe add a 2D version as well, to allow players to play the 3D game in 2D...)
Spectators see the 3D game move, players use a 2D screen.

strange egret
#

action menu needs to die.

jade brook
#

It would be amazing if you could use a dialog with mouse and could touch the chess pieces that way.

#

Some intersect magic.

#

translate the field into screen positions with posWorldToScreen and then have drag and drop.

craggy pike
#

Exactly, I saw killzone kid once achieve such a thing, with a laptop and a can I think.

#

Actually, if one could lock a players view this might be possible?

jade brook
#

Well, if you open a dialog, you can make it so the player can no longer move.

#

And the camera doesn't shake except when a bomb goes of or some high caliber weapon fires nearby.

#

The crosshair shakes, but that doesn't affect the cursor.

craggy pike
#

Well anyway, I like chess a lot and just thought it'd be cool to play other players like this, no idea why. (I've been searching for like army stories on reddit of guiys playing chess between missions, but sadly never found a single one .

#

So wait, you're saying there might be a way?

jade brook
#

Sounds more likely than things people try all the time despite me saying to them that it's futile.

craggy pike
#

I'll just give it a try this evening then, have a re-read through all the suggestions.
Why were we discussing this here actually? lol

#

@jade brook ahh that is the best careful confirmation someone gave me today. ^^ Will give it a try.

craggy pike
#

@jade brook having a go at the intersect command, and it's quite promising, as you previously mentioned.
Stumbled upon something though... I defined the selections in the .p3d (http://prntscr.com/g6foy8) and defined the sections in the model.cfg (http://prntscr.com/g6fpd2), but:

Sto = []; 
Fn = { 
  { 
    Sto set [_foreachindex,[cursortarget,_x] intersect [(asltoagl (eyepos player)),(screentoworld [0.5,0.5])]]; 
  } foreach ["FIRE","VIEW","GEOM","IFIRE"]; 
  hintsilent format ["FIRE: %1, VIEW: %2, GEOM: %3, IFIRE: %4",Sto select 0,Sto select 1,Sto select 2,Sto select 3]; 
}; 
["sample_id","onEachFrame","Fn"] call BIS_fnc_addStackedEventHandler;

returns [];

jade brook
#

I was more thinking about modelToWorld and worldToScreen.

#

Translate the squares on the chessboard to screen positions and do cursor magic with the ui eventhandlers.

craggy pike
#

Hmm, I see, as I said before, I'll be trying out different methods anyway, so will try that as well.
The idea for this attempt was using ace_interaction or similar and allow players to actually move pieces and recognise the selection on placement attempt.

nimble sequoia
#

Can I double check please that if I have this in my mods config.cpp:
soundGetIn[] = {"A3\Sounds_F\vehicles\soft\Hatchback_01\Hatchback_01_door", 0.56234133, 1};
then I should add "A3_Sounds_F" to the CfgPatches { requiredAddons[] } ?

hard chasm
#

yes, although, pboProject will do that for you.

nimble sequoia
#

pboProject will do it for me if I tick the "rebuild cfgPatches" in Setup? @hard chasm

#

that would be excellent

#

does it delete anything that might already be there and replace it?

nimble sequoia
#

I'm trying this, but finding that my config.cpp is unchanged after crunching (full build) with rebuild cfgPatches selected; requiredAddons[] remains blank.

hard chasm
#

it can't

clever kestrel
#

Is it possible to include a definition globally like i would in the description.ext . like this: #define isC cookieObj . and then using this externally in a script or in the world somehow?

#

In an addon?

jade brook
#

Put the definition into a common header file and include that one in every script / config.

clever kestrel
#

Okie dokie. Thanks commy

thorn shadow
#

how do I extend an existing config.
Addon1 adds a class NAME1
Addon2 schould extend class NAME1 with stuff 2, 3 ,4 ....
?

hard chasm
#

requiredAddons[]={Addon1};

class NAME1:whatever
{
add changes
};

#

Do not use FULL_UPPER_CASE

#

altertnatively
class name1;
class name2:name1
{
make your changes here so that name remains un-affected
};

Do not use FULL_UPPER_CASE

thorn shadow
#

the class name has to stay the same, alternative 2 is no option.
I've tried version 1 but there is no parent I can inherit

sharp stone
#

only the topmost classes dont have parents, which one are you trying to edit?

thorn shadow
#

a custom one, added by addon1.
It's like a dialog class I wand to edit.

hard chasm
#

so do so. if it hasn't any inheritence what's the problem? if it has inheritence, what's the problem?

thorn shadow
#

it gets overriden by addon2 , and the "requireAddon is set ..

hard chasm
#

but that's what you said you wanted.

#

Addon2 schould extend class NAME1 with stuff 2, 3 ,4 ....

thorn shadow
#

extend not override

#

I want to keep al the stuff addon1 added to the class

hard chasm
#

it stays there unless you change it.

#

class thingy
{
good stuff;
};
class whatsit:thingy
{
all the good stuff is there
};

#

ditto
class thingy
{
more stuff;
};

thorn shadow
#

addon1
class thingy
{
class stuff;
};

addon2
class thingy
{
class morestuff;
};

result
class thingy
{
class stuff;
class morestuff;
};

hard chasm
#

yep

thorn shadow
#

it's the result I want not the one I get

#

I get

class thingy
{
class morestuff;
};

#

and I checked there is no typo (thingy is there only once)

hard chasm
#

yes: ok

thorn shadow
#

well thanks for your time, I guess there is no easy solution so I'll find another way not config based.

hard chasm
#

paste your configs somewhere.

#

both of them

#

it is very common to add a class to an existing class, that's how cfgVehicles actually works.,

thorn shadow
hard chasm
#

the only way a class gets emptied (not deleted, emptied) is

class whatsit { };

#

that's how turrets are removed from cars

#

class GVAR(checkUserPin)

is NOT over-writng scribbling into a class of the same name

#

obvioulsy i don't know the contents of the #define, but there's no connection between userpin and any other class

sharp stone
#

from looking at it, this should work even if requiredAddons isnt set.

#

is EGVAR(armory,PredefinedEvents) in addon2 actually resolving to the same as GVAR(PredefinedEvents) in addon1?

thorn shadow
#

It should, I haven't seen a second class

#

*it the ace script_macros of main .

hard chasm
#

wouldn't matter if it did, the userpin is a completly new class

sharp stone
#

sure but he might just be looking in the wrong place thinking it didnt get added 😛

hard chasm
#

ok. yes. understood

thorn shadow
#

addon2 adds a class to cfg vehicles where ADDON is correc so I assume they're linking right

sharp stone
#

assuming they resolve to the same, the only reason i can see it doesnt show up is the mod never gets loaded

thorn shadow
#

I'll check cfg patches if it loads it should state so

#

both entrys there.

sharp stone
#

error somewhere else then.

class A {
    class B {};
};
class A {
    class C {};
};

resolves to

class A {
    class B {};
    class C {};
};
thorn shadow
#

I am deeply sorry to have wasted your time guys, I don't know when I dit this but the class was acctually commeted out -.-

sharp stone
#

get a syntax validator, itll show you with colours when something is commented out

hard chasm
#

haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

thorn shadow
#

well, it was the include .....

sharp stone
#

mod never gets loaded 😄

thorn shadow
#

guess I'll have to pay into the "stupid questions found" ...

hard chasm
#

np Odrson, this can catch all of us out with our trousers round our ankles.

thorn shadow
#

thanks.

hard chasm
#

been there, dun that, got the bullet wounds in the T shirt.

analog salmon
sharp stone
#

You cant just point to missionConfigFile from normal config

#

description.ext loads into a different configFile than addons

analog salmon
#

not mine, thats in a3\eden\config.bin\Cfg3DEN\Attributes\Combo

sharp stone
#

ah, never seen that before. Is the bit in description.ext supposed to be a root class, or does this expect other classes around it? It's a bit obtuse to read.

analog salmon
#

path[] is from the root path

sinful steppe
#

Hello guys anyone know what are the 3 last parameters in this line sound[] = {"FY_NissanTitan_2017\sound\Idle.ogg", db-13, 1, 150};

grand zinc
#

volume, pitch, distance

sinful steppe
#

Thanks!

azure vector
#

Should I ask here for dialog related stuff?

kindred moss
#

what would make uniform fall trough the ground when equipped on character? Its semi config/model issue but I cant figure out whats going on, first time I see this... got autocenter=0 in memory lod and have all required lods ( copied from sample )

strange egret
#

fall through ground? the soldier falls through the ground? Into the void or just some cm?

kindred moss
#

falls trough ground completely

#

into the void

#

noticed that I ommited copying some small point in land contact might be it... testing

kindred moss
#

yeah that was it, fixed

lyric flume
#

Need help with the whole _name = worldName script
Can someone join out TS for assistance on that? PM me if you can
@everyone

sullen fulcrum
#

@kindred moss could be the autocenter issue?

#

wait shit didn't see that you fixed it ^^

forest garden
#

Anyone know how the categories for zeus editing crate contents are defined?. I.e the Rifle, LMG, Sniper categories

inland gulch
#

Anyone know where the map markers view distance are configured?

#

I am trying to make roads visible in the map from the farthest zoom

slender prawn
#

Hi, I need help with making a Model config and the bind pose file

inland gulch
#

wrong channel

slender prawn
#

Thanks

real cloak
#

just to make sure, what the correct way of making nested arrays in config?

#

this ? :
static_locations[] = {
//{ {x,y}, {sizex,sizey}, "name" }
{{11039,8466}, {125,125},""},
....
};

grand zinc
#

yeah

hard chasm
#

"" at end might be incorrect. it's syntax is fine, but unusual (null)

#

ah no scrap that. i can 'see' how it's formed as two entries

real cloak
#

alright thanks guys :)

boreal heart
#

If I wanted to hide backpacks from the backpack menu in Arsenal so it doesnt clog everything up, but still be spawned in with the units that carry them, would I use scope for that?

#

In other words, I'm just hiding them from the backpack menu so its cleaner

grand zinc
#

you would use scopeArsenal for that

boreal heart
#

Fuckin legend mate cheers

thorn shadow
#

Is it possible to show cargo content on specific proxy slots?
What I want:
A shelve where all uniforms are neatly on a stack, the rick on a hanger, all pistols next to one another and one or two assault rifles leaning next to it.

What I got:
A container with "showWeaponCargo=1" and several "\A3\characters_f\Proxies\weapon.p3d" proxies.

The problem:
The cargo contents are displayed on different proxys depending on the index they got the moment they were added.
Using other proxys like "pistol" or "equipment" doesn't work (won't show), probably an engine thingy.

The question:
Is there a "simple" config solution to have the item types only on specific proxys?

sullen fulcrum
#

So I tried to update script_component.hpp in one of my mods, but now PREP() doesn't see the correct path to scripts 😕

#

This is the error 18:26:58 Warning Message: Script \NEV_Addons\addons\nev_debug_menu\fnc_addToZeus.sqf not found the actual path is \NEV_Addons\addons\nev_debug_menu\functions\fnc_addToZeus.sqf.

grand zinc
#

CBA default behaviour is to not have functions subfolder

#

You have to add that yourself if you need it

sullen fulcrum
#

Adding lines 87-93 to the end of script_component.hpp should do it.

#

And #define DFUNC(var1) TRIPLES(ADDON,fnc,var1).

proud brook
#

What's the clue about the *.inc files which is now be used by some Mods instead of *.hpp files? Are there any difference or is this just Semantic?

sharp stone
#

semantic

#

they dont need a *.extension anyway

#

bis uses both of them, too

proud brook
#

thanks for the answare i was just confused ^^

jade brook
#

*.hpp is the extension of C++ header files, so it helps with syntax highlighting on github / your favourite text editor.

nimble sequoia
#

Is there a noticeable problem with calling an A3 pbo in CfgPatches { requiredAddons[]= } when in fact it is not required? It seems very bad to miss one that is needed (because it can break game classes or give weird inheritance), but is the opposite true?
Example: requiredAddons[] = {"A3_Soft_F", "A3_CargoPoses_F"}
where A3_Soft_F is required, but A3_CargoPoses_F is not (perhaps left in by accident)

hard chasm
#

no harm done at all.

nimble sequoia
#

That being the case, why aren't all of the A3 files 'included' automatically (I don't mean by pboProject, but in general), so that they don't need to be declared, leaving requiredAddons[] just there for 3rd party mods? I mean, it's an unusual mod that doesn't need Arma.

hard chasm
#

it causes a circular dependency if addon A demands addon B is loaded first, AND addon B demands addon A is loaded first.

jade brook
hard chasm
#

you're right commy2. i misread the question. since a3 doesn't rely on cup, that wouldnt' cause a problem.

jade brook
#

This was carried over from AGM. And I did it there, because the mod had a lot of contributors and I trust no one.

hard chasm
#

yep, indeed. My mistaken point was, which you'll agree with, is you couldn't eg apply the same logic to add all of the ace addons together to need each other.

#

in cwr2 we had a very modest version of the above. we required the contributor to simply need cwr2 and we'd bring in all the rest of the usual suspects.

jade brook
#

In ACE, ace_main requires essentially the whole game, and then every ace PBO requires ace_main.

hard chasm
#

yep, it's a lovely setup. it ensures you don't get blamed for rpt spam induced by the user, because there can't be any.

jade brook
#
array[] = __EVAL([]);

says: encountered '_', expected '{'.

array[] = {__EVAL([])};

results in:

array[] = {"[]"};

__EVAL doesn't work with arrays period?

sharp stone
#

__EVAL({})?

#

Interesting that the [] gets stringified

#

Actually what i suggested wouldnt work since it encounters the _ from __EVAL

#

So an error from before preprocessing

#

Would mean it doesnt work period

jade brook
#

You can't use curly brackets for code blocks in __EVAL either. Because apparently it terminates after the first }, even though there were enough { before it, and then it complains about the next character not being ;

#

It's fucked, doesn't work with arrays.

#

And you can't use code blocks in the SQF

sullen fulcrum
#

The preprocessor could use more attention.

fathom thorn
#

Hi guys. I'm trying to add my own vehicle class like this:
class cfgVehicleClasses
{
class Walkers
{
displayName = "Walkers";
};
};

and using this in my cfgVehicles
vehicleClass = "Walkers";

#

my vehicle is still showing under APC's in Eden

#

whats wrong here?

grand zinc
#

@Neviothr#0132 Config parser != preprocessor
checks his claim
Yes confirmed. Parser.

hard chasm
#

EVAL (and EXEC) expressions cannot return an array type. contents for an array, yes, but there's no 'type' available to return an array itself.

grand zinc
#

@jade brook
it replaces __EVAL(<code>) just get's replaced by <evaluated code> so it calls the code and puts the returned value into the config.
You might be able to return a string like {1,2,3} But I guess it would just copy the quotation marks over

#

No forget that

#

can only Int/Float/Word

hard chasm
#

array[] = {__EVAL([])};

this is correct, the array is formed by the presence of { } and the [] is a string to begin with since it has no operators

grand zinc
#

EVAL only checks for 3 types after evaluating the expression. 2 of them are Number if they don't match then String

hard chasm
#

{1,23,3} would be return as a sting.

#

yes to above dedmen, we're on the same page

#

actually a fourth, a boolean true false

grand zinc
#

I guess the integer check probably internally takes care of that

hard chasm
#

it's a genuine boolean 'true' and 'false' it's not a number

#

6>7 eg

grand zinc
#

But it turns that boolean into a 1/0 in the end right? because there are no true/false in cfg

hard chasm
#

in fact, it doesn't.

#

this is where bis cannot get their act together, because you normally apply #include <commondefs.h>

#

within which is
#define true 1

#

left unattended true and false are strings var="true";

grand zinc
#

What is it then if not a number?.. Yeah.. okey. So a string then?

hard chasm
#

yes. sorry for not explainign myself well.

sullen fulcrum
#

@grand zinc: make it both 😛

hard chasm
#

var= EVAL(6>7) will have the string value "false"

#

this, of course, is unnacptable. which is where #define false 0 comes in

grand zinc
#

So it actually doesn't have support for bool
Because the check is if (isNumber) then {addNumber} else {addString}

hard chasm
#

the bis compilers (there are 6 of them) don't support bool

#

an exception is the compiler for model.cfg

grand zinc
#

They could just put a true/false check into the getNumber function. and fix it everywhere from one place

hard chasm
#

well sqf can be so badly coded that one person will look for string compares, and another weill exppect it to have been #defined out of the way.

#

so yes, i agree with you,

#

the lack of #defines is so endemic, few people realise they need it, that my dll willl automatically convert true and false respectively. it will not convert "true" and "false"

#

description.ext is one of the 6 separate compilers of rap code in the bis engine. because there's no actual binary produced, i've never investigated wether, similar to the compiler for model,.cfg, 'true' and 'false' are converted to 0 and 1.

#

but all others (including fsm) treat it as a string.

#

buit to get back to the original issue, the result of a boolean eval expression is are the words 'true' or 'false'

jade brook
#
getNumber [configEntry, defaultValue]

😢

astral oasis
#

Im working on a phone messaging system, and the way I was doing it was ctrlcreate, but that wasnt working, one way I did get it to work, was to make seperate controls in the controlsGroup Per message...
but
I was just wondering if there is a way to autoIncrement so

        class Lega_Phone_MessageControl11 : Lega_Phone_MessageControl1{
            idc = 762;
        };
        class Lega_Phone_BackgroundControl12 : Lega_Phone_BackgroundControl1{
            idc = 773;
        };

becomes

        class Lega_Phone_MessageControl12 : Lega_Phone_MessageControl1{
            idc = 772;
        };
        class Lega_Phone_BackgroundControl13 : Lega_Phone_BackgroundControl1{
            idc = 783;
        };

etc

hard chasm
#

yes indeed, use EXEC and EVAL

astral oasis
#

Could you give an example ?

hard chasm
#

nnoope

astral oasis
#
$BackgroundIDC = 673;
$TextIDC = 672;

for($i = 0; $i < 200; $i ++){
    $BackgroundIDC = $BackgroundIDC + 10;
    $TextIDC = $TextIDC + 10;
    echo"
    class Lega_Phone_BackgroundControl$i : Lega_Phone_BackgroundControl1 {
        idc = ".$BackgroundIDC.";
    };
    class Lega_Phone_MessageControl$i : Lega_Phone_MessageControl1 {
        idc = ".$TextIDC.";
    };
    ";
};
``` I did some php that outputted. but that would make file sizes huge
hard chasm
#

you start off with:

EXEC(var=1;);

in a #define you use:

#define THINGY
class Lega_Phone_MessageControl##__EVAL(var)
EXEC(var=var+1)\

and so on

#

the biki contains information on exec and eval, and the documenation in my tool set expands on it a little more

astral oasis
#

I messed up

#

lel, I found one way of doing it xD

#

just a huge file size xD

hard chasm
#

you can shorten it down by:

#define LEGA_PHONE(class_id, idc_val) // blah blah;

#

but if you're 'complaining' about the sheer number of classes, that's how many there will be in the binarised result.

#

if it were me I would most certianly be using a macro. There's an almost garantee that doing each one by hand will have typos

astral oasis
#

i did it with a php echo in the end, got the same result 😃 thanks for the help, ill take a better look into it when i get time, I have your tools, what doc should I look at ?

hard chasm
#

depbo docs

#

if you're using php code to generate the classes, i doubt exec / eval could do any better for you, since, within php itself, you can use it's own version of something similar.

astral oasis
#

yeah instead of going through and replacing later on i did it so it generated the whole file xD

#

amount being the amount of groups i wanted xD

hard chasm
#

well the first thing to say is what you already know, the fastest crunch times come from full body text where no preprocessing has to occur. so size isn't an issue. especially if you have no need to read it (other than debugging)

but if it concerns you simply declare a #define with all the constant var= that don't change and embed that in each class

#

5 of the vars starting with sizeEx don't change, so you could simply say

PLUS_THIS;

mild valley
#

Which could explain to me what CUP Terrain - Core serves and if its really matter to use it

hard chasm
#

i think it contains all the buildings and vegetation doesn't it?

mild valley
#

Should be installed as a main or modular mod

grand zinc
#

CUP Terrain - Core is required by all the other CUP Terrain mods. If you don't use them you don't need core. Also this question doesn't really belong into this channel does it?

mild valley
#

Thanks for all the answers you helped me to use the mod

grand zinc
#

No I didn't 😮

forest vigil
#

Good Morning! Is there a "Best Practice" for setting MinBandwidth=<bottom_limit>; and MaxBandwidth=<top_limit>; ?

jade brook
#

To leave it blank / default.

barren umbra
#

I want to make a small edits to the animations config, but I do not want to just copy the whole file as it can break updates and such. Will this function properly and add the new values to the sprint animation?

    class StandBase;
    class SprintBaseDf: StandBase
    {
        minPlayTime = 0;
        canBlendStep = 1;
    };
jade brook
#

It's missing the super classes and CfgPatches.

barren umbra
#

I know, I was just wondering about the calling for external stuff, there is more to SprintBaseDf in the vanilla config, but I just want to add those 2 values without hardcoding the rest of it.

jade brook
#

the calling for external stuff,
base class? StandBase seems to be the base class of SprintBaseDf

#

There might be classes further down the inheritance tree that again overwrite these values though.

barren umbra
#

All I want to know is: if I call the vanilla SprintBaseDf will I ble able to ONLY add those 2 new values without editing anything else in SprintBaseDf

jade brook
#

Yes, if CfgPatches and the super classes are correct too, yes.

barren umbra
#

Ok, next question: I want to add a brand new value to the config so I can later adjust stull that is multiplied byt my new value (just so I only need to slog though the MASSIVE config once). Kinda like this

speedMult = 1.15; // the brand new value I want to create
class CfgMovesBasic;
class CfgMovesMaleSdr: CfgMovesBasic
{
class AmovPercMsprSlowWpstDf_AmovPpneMstpSrasWpstDnon: TransAnimBase
{
speed= speedMult * 2.1818199;

jade brook
#

Which one is the new config entry?

barren umbra
#

speedMult

jade brook
#

You should add an OFPEC tag to your config entry, because you're operating in a global namespace.

#

speedMult is not a config entry.

barren umbra
#

I want to add a new value so I can adjust the animations speed easily

hard chasm
#

and, even if it were you can't multiply a variable in the compiler. I think you mean a #define

jade brook
#

This doesn't work. You could make speedMult a macro though

hard chasm
#

^^

barren umbra
#

wat? I see stull multiplied in the configs all the time, most prominent in weapons and stuff

#

also RHS has created their own values for their ammo

jade brook
#

Example please.

hard chasm
#

no, you do not

#

you see #defines multpiied (constant * constant)

jade brook
#

I mean you could do this with __EVAL and __EXEC I guess.

hard chasm
#

^^

barren umbra
#

dude I just want to edit the config to change the speed values by to 1.15. I don't want to do that in the game, that value would be just used when editing configs again.

jade brook
#

uhm

#

It's very confusing that your entries don't have a proper tag. Is speed a vanilla config entry in CfgMovesX ?

barren umbra
#

speed is vanilla

jade brook
#

But speedMult isn't.

barren umbra
#

I jsut want to add a custom multiplier value with I can adjust later

hard chasm
#

you can't math a variable in a config, and you cant use exec/eval to read a var either

jade brook
#
#define SPEED_MULT 1.15

 class CfgMovesBasic; 
 class CfgMovesMaleSdr: CfgMovesBasic 
     { 
     class AmovPercMsprSlowWpstDf_AmovPpneMstpSrasWpstDnon: TransAnimBase 
         { 
         speed = SPEED_MULT * 2.1818199;
hard chasm
#

umnm i might be wrong about that, let me check my compiler

jade brook
#

(TransAnimBase is missing, took your snippet)

hard chasm
#

notice commy2 is using FULL_IPPER_CASE so that there's no ambiguity waht SPEED_MULT is.

barren umbra
#

damn, I removed the unpacked RHS stuff I had unpacked. THey had some custom stuff in their ammo configs

#

I shall use IPPER SCALE next time 😉

sharp stone
#

You wont recover macros with unpacking unless its source

jade brook
#

or the configs are unbinned.

hard chasm
#

macros dont survive the bin process, they dont exist, unbinned as such

#

their values of course, do.

jade brook
#

my snipped unbinned after binned would look like:

 class CfgMovesBasic; 
 class CfgMovesMaleSdr: CfgMovesBasic 
     { 
     class AmovPercMsprSlowWpstDf_AmovPpneMstpSrasWpstDnon: TransAnimBase 
         { 
         speed = "1.15 * 2.1818199";
barren umbra
#

man the animations config is gigantic, its a real pain in a butt to slog through it and edit every speed value for movement and add steps blending and change the minimal play time. I just want to do it once

jade brook
#

You can't.

barren umbra
#

would this:
speed = "1.15 * 2.1818199";

actually work in the game?

jade brook
#

Yes, the game accepts this as a number.

barren umbra
#

then I would be perfectly happy with an outcome like this

#

I would be just keeping the soruce with the macro on hand

hard chasm
#

you wern't. originally.

jade brook
#

You still have to go through all sister classes you want to edit though.

hard chasm
#

@barren umbra, what you want to do, eg alter values so that the effect is global iwill work, that answers your first question., but the methods how you try to do it won't

barren umbra
#

I guess I'll experiment a bit and see what I can manage to do. I really don't want to copy whole animations config as it breaks stuff added by patches and such. I'll test it on some simple movement animation and see what will come out of this

jade brook
#
__EXEC(Taro_speedMult = 1.15);

 class CfgMovesBasic; 
 class CfgMovesMaleSdr: CfgMovesBasic 
     { 
     class AmovPercMsprSlowWpstDf_AmovPpneMstpSrasWpstDnon: TransAnimBase 
         { 
         speed = __EVAL(Taro_speedMult * 2.1818199);

I think this is the closest. Never used it like this.

barren umbra
#

thanks I'll try that

hard chasm
#

the above works. garanteed

jade brook
#

It looks more impressive. But where's the benefit?

hard chasm
#

haaaaaaaaaaaaaaaaaaaaaa

jade brook
#

You can always read the multiplier in game using:

parsingNamespace getVariable "Taro_speedMult"

afterwards.

hard chasm
#

really? i thought exec private names were destroyed. they don't stay resident in a config.bin

jade brook
#

Oh, yeah. If the bin process evaluates these, then nothing will be left.

#

I think some of the 3den configs in vanilla are unbinned and use stuff like this.

hard chasm
#

k

#

2.18 looks suspciously like mph or kph converted to meters per second. am i right?

#

god, wheres a calculator when i want one.....

jade brook
#

Google search bar 😛

hard chasm
#

you want a two finger typist like me to also operate the mouse ???

sharp stone
#

1 m/s is 3.6 kph

hard chasm
#

ah good thnx nick

sharp stone
#

For your google needs :P

jade brook
#

Why is it m/s but then kph ?

#

"mps"?

sharp stone
#

Because im lazy with my mobile keyboard mostly

hard chasm
#

well m/s has no meaning for most folks wheras 60mph does

sharp stone
#

I think commy is mostly talking about using two different abbreviation standards in one sentence

hard chasm
#

so the original bis macro will be alonmg the lines of KPH(num)

jade brook
#

m⋅s⁻¹

sharp stone
#

Actually a question: with config-numbere-that-are-strings, like the above "1.5 * 2.1818199", how does the game evaluate it? Is it practically evaluated at game start, or every time its accessed from the config by a script?

#

E.g. the ui stuff that uses safeZoneH and its siblings

jade brook
#

For ui stuff it's evaluated when you create the display. So you can use profileNamespace getVariable etc. and it will update when you close and recreate the dialog.

#

Pretty sure the animations live in a cache, so once at game start.

#

You could use random for the burst length of an AI fire mode. As long as you don't close the game, the burst will always be the same, but random length.

#

2 + floor random 3
would be evaluated once at game start and every burst would be e.g. 4

#

Then you close and restart the game and it would be e.g. 2

#
hit = "[8,100] select (profileName == 'commy2')";
sharp stone
#

Aight so its at least evaluated at game start, once, invisible to the config browser but certain exceptions like ui stuff keep getting updated when you create them

jade brook
#

The config browser will show them as strings

hard chasm
#

yep, from the compilers point of view they are meaningless strings and stored as such in a binarised config.cpp (eg)

sharp stone
#

Yea thats how i meant it. How will getNumber(>>) behave if the number-as-string has say a random in it? Report the actual value the game will use or will it evaluate what you see in the cfg browser?

jade brook
#

call compile getText essentially I'd say.

hard chasm
#

the name of the variable determines whether or not sqf code is relevant.

#

scope= rand() would be stored as "rand()" and have no meaning it';s just a string

jade brook
#

getNumber would show something different each time you use it if the string contains random

hard chasm
#

that's true too

jade brook
#

I don't think there is a way to figure out what was cached for the ai fire mode for example

hard chasm
#

ultimately all paramfiles produce constants. you have to be careful what's a constant at game load time (description.ext) versus a 'hard' constant in a config.bin

#

only a very very limited range of sqf functions are usable in an exec/eval expression. they must produce a constant, right there, right then.

#

model.cfg's are a wierd hybrid fish, where the 'value' is actually a sqf statement. items like

angle=rad +90;

#

try that in a config cpp and then commit suicide.

jade brook
#

Better:
angle = pi/2

sharp stone
#

So only nullary commands, basically

jade brook
#

rad is a unary command.

#

And so is +

hard chasm
#

no nick, all sqf that produce constants including [1,2,3] select op1>opt2?opt2==op3;

#

a 'constant' is defined as anything known prior to game time. items like productVersion select 2; is NOT a constant

sharp stone
#

Ah, i understood the last sentence incorrectly

astral oasis
#

@hard chasm I worked on my php script a bit, now if I want to regenerate the whole file with more classes, I can

sly prairie
#

im trying to get my costum weapon to get a recoil that the MK200 is using, but for somereason replacing the recoil name with the mk200 its still a balanced weapon, could anyone direct me to the right direction on what I'm doing wrong ?

recoil="recoil_auto_mk200";
recoilProne="recoil_auto_prone_mk200";

jade brook
#

recoilProne is obsolete. And you probably put recoil in the wrong place.

sly prairie
#

@jade brook thanks man, that really helped me, I just need to reconfigure my whole gun but I'm fine with that.

boreal heart
#

Can someone tell me whats wrong with this?

#

Apprently there is an expected semicolon somewhere on ' class BulletBase : BulletCore{}'

sharp stone
#

well yea at the end of the {}

grand zinc
#

Yes.. you are missing 2 semicolons

boreal heart
#

Where though, everytime I add one I get the same error

#

Regardless of where I put it

candid wave
#

get mikero tools and use Rapify.

boreal heart
#

I am using Mikeros tools

candid wave
#

what does rapify tell you?

boreal heart
#

I've never used Rapify before

grand zinc
#

Where exactly did you try to add them?

candid wave
#

heh

boreal heart
#

BulletCore{}; OR BulletCore;{} OR BulletCore;

#

Same error each time

grand zinc
#

with your first fix you fixed one of the two missing semicolons

#

You also have to fix the second one..

sharp stone
#

you did the B_65x39_Caseless class correctly

boreal heart
#

This feels so simple yet I cant see it haha

sharp stone
#

semicolon at the end of line 4 AND 5

#

the statement ends after the }, so there needs to be a semicolon

boreal heart
#

Jesus how did I miss that, I chuck semi colons everywhere but no progress thus I came here haha

#

So obvious ahah thanks

sharp stone
#

boreal heart
#

I've found problems in 2000line configs faster than this 7 line config haha

hot pine
#

does somebody here knows a mod which use =+ syntax for adding weapon accessories to vanilla optic slots?

hard chasm
#

it doesn't work as you'd think. the class containing the original array must be in the same config AND be only one inheritence level away from the +=

#

the text version eg, the cpp, works differently to the binarised

hot pine
#

I know, I'm just trying to find arguments to maybe implement that secondary syntax for weapon accessories into vanilla game

hard chasm
#

it can't be used in model,.cfg's which would be exceptionally useful.

jade brook
#
class CfgAmmo {
    class BulletCore;
    class BulletBase: BulletCore {};
};

???

hard chasm
#

secondary syntax

it has no practical value. since the origninal contents must be known, it's pointless. perhaps saving a little typing.

jade brook
#

@hot pine
You can't use += to add optics to vanilla slots (most of the time), because those are inherited by other weapons (most of the time) and then += behaves unexpectedly.
You can only use it for grenades, because no weapon inherits from Throw.
https://git.koffeinflummi.de/bwmod-team/bwa3-public/blob/master/bwa3_handgrenades/CfgWeapons.hpp#L22

untold temple
#

@hot pine I did it to add my RMR optic to the 4Five pistol in an optional config

hot pine
#

I meant more something like Joint Rail -
class compatibleItems
{
accessoryblabla=1;

untold temple
#
class CfgPatches { 
    class RKSL_RMR_4Five { 
        units[] = {}; 
        weapons[] = {}; 
        requiredVersion = 0.1; 
        requiredAddons[] = {"A3_Weapons_F_NATO"}; 
    }; 
}; 

class CowsSlot;

class CfgWeapons {
    class Pistol;
    
    class Pistol_Base_F : Pistol {
        class WeaponSlotsInfo;
    }; 
     
    class hgun_Pistol_heavy_01_F : Pistol_Base_F {

        class WeaponSlotsInfo : WeaponSlotsInfo { 

            class CowsSlot: CowsSlot { 
                compatibleItems[] += {"RKSL_optic_RMR_HG","RKSL_optic_RMR_HG_FDE"}; 
            }; 
        }; 
    }; 
};```
#

this was before JR had pistol slots

stone cove
#

does that +- work?

untold temple
#

nowadays I'd just use theirs

stone cove
#

i did test that before and it didnt

hard chasm
#

it can't

#

there is no original content to work with

#

the effect of above is an =

jade brook
#

It will work for hgun_Pistol_heavy_01_F unless on a modded weapon that inherits from it. It will not work for the MXM though for example.

untold temple
#

yep, it only works for the pistol because it's pretty standalone

#

no child classes and things

jade brook
#

I have a ticket on the tracker that explains the issues in the simplest case.

hard chasm
#

i would not touch it folks due to it's unnpredictable nature. And i certainly wouldn't give bis the opportunity to change it on me.

jade brook
#

^ this. Don't use it outside of Throw muzzles[].

#

It will only cause you headaches.

hard chasm
#

and as mentioned to you ladies, the cpp version works differently.

jade brook
#

urg, the new tracker screws up the formatting.

hard chasm
#

"The description is correct - this feature was never meant to work with inherited classes."

then why the hell implement the bastard and deviate from standard c syntax.

#

they cannot stuff you around or break the exisitng C rules, they can only implement new rules, which they'll change at a moment's notice. Be warned.

jade brook
#

I mean, I can see that "Issue 1" isn't necessarily one and could be considered expected.

#

But "Issue 2" is just retarded.

hard chasm
#

they can't change the existing operators sucn as == and etc, but they'll invent a whole new meaning to++ if that ever gets into their code.

#

so 1) let them . 2) ignore them.

stone cove
#

also what happend to those magazine groups?

#

which are still written in weapon guidelines

hard chasm
#

example?

jade brook
#

Magazine groups are a hoax. They don't exist.

hard chasm
#

haaaaaaaaaaaaaaaaaaaaa

jade brook
#

I deleted them from the wiki already, but of course it got reverted.

stone cove
#

but why they cant be true as BI wanted to be before?

#

it couldnt be just an idea

jade brook
#

If they added it to the code, then it's so bugged that it's completely ignored by the game.

#

And imo, that means that you should nuke it from the wiki. Should they ever fix it, you can just copy the old doc from the history...

#

But nooo, they want it to stay on the wiki and confuse everyone about why it doesn't work. So annoying.

stone cove
#

"1.42 adds a new functionality for magazines and their compatibility " 😛

jade brook
#

It didn't.

stone cove
#

i know it didnt but question is why

jade brook
#

A.) they broke it. B.) it never worked

#

One of these.

hard chasm
#

because the guys who implemented it fled the building a week later

stone cove
#

that thing must exists but BI never talked about it so i dont really dont know

#

but still it would be nice to have

jade brook
#

They did something pretty sure, but they didn't ever " add a new functionality for magazines and their compatibility"

#

Delete magazine groups from wiki?

hard chasm
#

you always read a statement like that from bis with fear in your heart what they broke to do it.

stone cove
#

what about making them 😄

jade brook
#

We can't make them ourselves. We can only edit the wiki

stone cove
#

well it would be too dificult if you managed to do it its function like BI wanted it?

#

or it is just a theory that never worked?

jade brook
#

It wouldn't be difficult. But you would have to edit the game files which we can't. I don't understand the question.

stone cove
#

i know you cant edit the game but in theory it would work or not , thats the question

hot pine
#

It was working in internal build for some time & got broken apparently

jade brook
#

Fix it D:

stone cove
#

that would been great if that feature would appear in the game since you could use all those custom mags via groups instead listing it each individual magazines

jade brook
#

i know you cant edit the game but in theory it would work or not , thats the question
The configs in the documentation would provide sufficient and unambiguous information about what weapon should use which magazine group and which magazines belong in which group and it's flexible enough to be used with addons that provide new weapons and/or new magazines as long as you set up some standard (like CBA JR, "Joint Mags"?)

#

But I would've done it differently.

twin plume
#

Hey guys, im making some custom ammo crates and want to retexture the plastic (case medium) but when I place it in-game it's invisible/texture doesn't show, interactions points and shadow are fine though, lines 87-94 config.cpp > https://pastebin.com/BU2kJSXC

#

Not sure if i need to add a texture header or something, anyone able to help?

hard chasm
#

i can't answer your question directly, but the first thing you'll get screamed at is calling your class(es) custom_crate

anyone and their dog, can, and will, make a custom_crate that looks like a pink elephant or quacks like a duck. Only you can make a snkdoc_custom_crate

#

it is absoletly garanteed, that someone else who also doesn't use tagname_ will with certainty make a 'custom_crate' addon that over-rides yours.

#

so the two of you can squablle with each other endlessly about who got their first, and NO ONE will use either of your addons in any case.

twin plume
#

Its a work in progress name jeez dude, i had no intention of using it in that form

#

Next time if you don't have something to constructive to say, don't say anything instead of trying to start shit. For all you know I'm making it for someone and didn't want to leave their name in a public pastbin so I just did a find and replace, didn't think of that before trying to flame me did you? 😜

grand zinc
#

Check RPT for errors. Probably wrong filepath or missing prefix

twin plume
#

Yeah, I just can't work out the format for setting the relative paths for the texture

faint echo
#

Hey guys, anyone can tell me how to increase boat max speed cause I can't go over 80km/h if anyone can help me, thanks.

faint echo
#

It's ok, i found it

twin plume
fiery vault
#

I just remembered I wanted to share something here that I figured out a while ago, but I never got round to it

#

if you ever wondered how/why the volume of sounds defined in configs don't show as db+(some number) in the config viewer, or if you wondered how to convert from decibel to... whatever it is the game is using,

#

here are the 2 formulas for back and forth conversion:

DECIBEL TO FLOAT:    _float = 10 ^ (_decibel / 20)
FLOAT TO DECIBEL:    _decibel = (20 * log(_float))```
#

frankly I have no clue if this has already been posted somewhere before, but it took me a while to figure these relations out, so I thought I might be able to save someone a headache by sharing it here

grand zinc
#

"if you ever wondered how/why the volume of sounds defined in configs don't show as db+(some number) in the config viewer"
Because the config really only has number,array,string types. db's are stored as a string and the config parser specifically checks for "db" and if it finds it it turns that into a float

fiery vault
#

aaaand that's the other loose end all wrapped up, +1 informative

narrow crow
#

any ideas on how to make it always spawn "flat" even if put on a hill?

#

considering using an attachTo

sharp stone
#

you might try with the "CAN_COLLIDE" flag

#

otherwise, setVectorUp

untold temple
narrow crow
#

Thanks for the tips, I think setvectorup could be good

lilac pelican
#

hey, how do i add a subclass to a class while still keeping all its original properties?

#

i have this

class CfgVehicles
{
    class I_Plane_Fighter_04_F
    {
        class TextureSources
        {
            class Serval
            {
                displayName = "Serval";
                author = "Clonepa";
                factions[] = {"IND_F"};
                textures[] = {"wcb_jet_livery\serval\Fighter_04_fuselage_01_co.paa","a3\air_f_jets\plane_fighter_04\data\Fighter_04_fuselage_02_co.paa","a3\air_f_jets\plane_fighter_04\data\fighter_04_misc_01_co.paa","a3\air_f_jets\plane_fighter_04\data\Numbers\Fighter_04_number_04_ca.paa","a3\air_f_jets\plane_fighter_04\data\Numbers\Fighter_04_number_04_ca.paa","a3\air_f_jets\plane_fighter_04\data\Numbers\Fighter_04_number_08_ca.paa"}; 
            };
        };
    };
};
#

but when I load it into arma it seems like all other data for the vehicle has been deleted

hard chasm
#

you need to use inheritence

#

the classes above are inheretied from elsewhere, and you need to tell the compiler what they are

#

class this : that
{
....
};

lilac pelican
#

i tried this because it's what rhs gref does to add additional camos:

class CfgVehicles
{
    class Plane;
    class Plane_Base_F: Plane{};
    class I_Plane_Fighter_04_F: Plane_Base_F
    {
        class TextureSources
        {
            class Serval
            {
                displayName = "Serval";
                author = "Clonepa";
                factions[] = {"IND_F"};
                textures[] = {"wcb_jet_livery\serval\Fighter_04_fuselage_01_co.paa","a3\air_f_jets\plane_fighter_04\data\Fighter_04_fuselage_02_co.paa","a3\air_f_jets\plane_fighter_04\data\fighter_04_misc_01_co.paa","a3\air_f_jets\plane_fighter_04\data\Numbers\Fighter_04_number_04_ca.paa","a3\air_f_jets\plane_fighter_04\data\Numbers\Fighter_04_number_04_ca.paa","a3\air_f_jets\plane_fighter_04\data\Numbers\Fighter_04_number_08_ca.paa"}; 
            };
        };
        class EventHandlers;
    };
};
#

i don't get any errors about it not having attributes defined when launching the editor now, but the vehicle still disappears from unit lists and i can't spawn it even with scripts

hot pine
#

Wrong inheritance, fighter-04-base is missing

#

You need reconstruct original inheritance and not copy paste configs from gref

novel rock
#

Hello ! I would need help quickly if someone has an idea

#

I've been on a 7 hours modding session and I think I should take a break but well... working on a tank I can't recall what parameter makes the driver visible from external when he's turnedIn

#

tried viewDriverInExternal = 1; but nope

sullen fulcrum
#

iirc thats not possible

#

you need to force it turned out

novel rock
#

🤦

#

actually i have a tank with interior

#
  • turnout option via roof hatches
#
  • front hatch user action
sullen fulcrum
#

you might better wait for someone that knows about this, i'm just recalling what i've read in here or somewhere else

novel rock
#

so that's it

sullen fulcrum
#

tought there is a big chance this will get fixed/changed for the tank dlc

untold temple
#

should already work on dev branch+RC

novel rock
#

👌 thanks @untold temple - i'm working on stable branch all the time

strange egret
#

#devbranch4life

fathom thorn
#

Hi guys. It seems the very useful odolconverter site is down. Anybody know of an alternative?

hard chasm
#

if you're just looking for the shape and properties of an odol that can be looked at in oxygen2/3

dep3d -O nameOfP3d

it will produce an unbinarised origami model.

#

(unlike above, the lod does not need distorting)

regal pond
#

would the antiRollbar values have an effect on a vehicle driving like it's on ice? Turning in any direction causes the vehicle to spin out.

nimble sequoia
#

Check out these values in class Wheels {}
latStiffX = ;
latStiffY = ;
frictionVsSlipGraph[] = {
{0, },
{0.5, },
{1, }
};

midnight niche
midnight niche
#

Im thinking of using ctrlShow false but i want a more uniform solution

#

Also has anyone looked into RscMPSetupMessage ? onLoad events defined in their config are not called

buoyant mason
#

@midnight niche Yeah for me OnLoad Events works, but I must use the command: with uiNameSpace do {};

buoyant mason
#

And you need to save your functions inside uiNamespace too

midnight niche
#

@buoyant mason this is what it used to be
onLoad = "['RscMessageProgress',_this select 0] call STS_fnc_DisplayInit";
so just doing it like "call (uiNamespace getVariabble 'STS_fnc_DisplayInit')" should be enough?

buoyant mason
#

@midnight niche Try : onLoad = "with uiNameSpace do {['RscMessageProgress',_this select 0] call STS_fnc_DisplayInit};";

#

function STS_fnc_DisplayInit need to be register in uiNamespace

midnight niche
#

Yeah it's registered through CfgFunctions so it will be in uiNamespace

#

@buoyant mason yeah, only your method works. Thanks

lilac pelican
#

@hot pine i did try to copy the original inheritance, since the gref thing i was looking at was for a BTR - you were right that i made a mistake and skipped the base class though, thanks

novel rock
#

new brainfuck ahead. I'm adding a turn in/out action to a gunner turret (no forced optics + main vehicle turret), FFV on turn out.
when turning out, no problem, FFV is active, hatch opens, etc.
when turning in, problem, FFS is still active, hatch closes

#
                animationSourceHatch = "hatch_1_2_rotate";
                gunnerAction = "copilot_VTOL_01";
                gunnerInAction = "copilot_VTOL_01";
                isPersonTurret = 1;
                personTurretAction = "vehicle_turnout_2";
                enabledByAnimationSource = "gunner_move";```
untold temple
#

is it a car?

novel rock
#

@untold temple yes

#

it's working on I_APC_Wheeled_03_base_F but this vehicle has gunnerForceOptics = 1;

#

might be the issue ?

untold temple
#

yeah, the mechanics of blocking FFV seats from firing when turned in, don't work on non-tracked vehicles

#

you have to script it

#

i.e. have the source that you use with enabledByAnimationSource scripted to open on the turn in/out event

#

at least that's what reyhard did for the Tigr and RG-33L in RHS

novel rock
#

I did this a while ago too on my first vehicle, like 2.5 years ago

#

Thought they overcame this

#

thanks for the input

hearty sandal
#

2.5 years sounds pretty fast for a fix like that.

golden loom
#

Hi all, been digging through the camera tracking/stabilisation added to the Jets a few versions back, and trying to get it implemented for helos too (as they don't seem to have the new enhanced tracking/stabilisation) - specifically, the ability to press ctrl+T to enable stabilisation, and this then automatically swapping to point tracking if you aim at a thermal signature. Can anyone 1) confirm whether it's possible for helos to even do this, or if it's hardcoded for jets only, and 2) point out where to enable this? Spent a few hours chasing my tail on this one, and thought it worth consulting the hive mind 😃

pale wind
#

How hard would it be to add the grease pencil mark to the pawnee like the MELB has, as a script to run on vanilla severs? Currently, in expert mode the pawnee has no crosshair so aiming is terrible. Or add to template so that it is no dependant?

dull bolt
#

so I was trying to add custom sounds to a vehicle, but modifying the sound classes with a different .wss just kills the sound entirely

#

That wasn't the case before I assigned the same file to both the normal and thrust class

torn remnant
#

Hello, I'm trying to remove some things from displaying on the HUD....

I'm trying to edit module_f.pbo, specifically the fn_moduleSector.sqf within the pbo.

Is there anyway I can repack this after editing the sqf into an addon and have it overwrite the base functionality of module_f.pbo?

dull bolt
#

if you put the original patch class in requiredAddons and keep the classes the same names I would imagine you could

torn remnant
#

Alright, thanks, I'll give it a shot... I think another problem I had is that my config.cpp was still pointing to the A3 functions rather than my new function

#

we'll see what happens

dull bolt
#

good luck

torn remnant
#

@dull bolt Your implication that it was possible gave me hope and I was successful! Thanks!

dull bolt
#

your welcome 😃

tranquil marlin
#

so how do I make my own faction

#

redirected from ask questions

autumn mortar
grand zinc
nimble sequoia
#

@tranquil marlin
class CfgFactionClasses {
class UK3CB_BAF_Faction {
displayName = "BAF-3CB";
priority = 1;
side = 1;
icon = "\A3\ui_f\data\map\markers\flags\UK_ca.paa";
};
};

tranquil marlin
#

yeah

#

and

gilded lake
tranquil marlin
#

can I import compositions into orbat

gilded lake
#

compositions have nothing to do with factions

#

if you meant importing existing factions and they groups then yes

tranquil marlin
#

if i import a vehicle can i edit the loadouts of the people using it

gilded lake
#

yes you should be able to edit loadouts of everything

#

check the link, it's all documented in there 😃

tranquil marlin
#

okay

#

iif I try making a faction with orbat creator and I use cup so the faction's vehicles will actually load for when I create my faction and then go back to using my cut down version of cup (just the juicy vehicles that I like) will the vehicles in said faction still load as a part of it since they're the same .pbo?
from last night

gilded lake
#

probably

#

it's all config based so if the configs are present it will work as intended

golden loom
#

I asked a question yesterday about the stabilised/tracking camera added with Jets, does anyone have any familiarity with the systems?

simple trout
#

Does anybody know how to disable the water splash effect for when a body or object falls into the water?

sullen fulcrum
#

is there a config beautifier tool available somewhere?

untold temple
#

@golden loom using pilotCamera, or an actual turret? Because the jets targeting pods are using pilotCamera, which is very different to a turret

nimble sequoia
#

da12th, not sure if Nick is here, but I think I can answer for him that it's currently a turret, class OpticsIn

#

but the hint of looking at pilotCamera might be something he can check out

untold temple
#

pilotCamera is only for the vehicle driver, and wont steer guns etc. only laser designators

#

so it has limitations

nimble sequoia
#

Right - I believe he was looking to use it for a helicopter copilot surveillance camera.

untold temple
#

looking at the way the UAV's turrets are configured is probably the way forward. IIRC they were ground-stabilized

nimble sequoia
#

I think we have the ground (directional) stabilisation, but he was talking about a thermal tracking feature...not too sure

#

thanks

untold temple
#

can't remember if UAVs have that too or not

nimble sequoia
#

he mentioned the WipeOut that had it after Jets DLC

#

can't say I've tried it myself though

fiery oriole
#

Alright lads! Was wondering if anyone would be willing to help me out with a rather irritating config issue I've been having

thorny grove
#

@fiery oriole Care to share what the issue is?

tranquil marlin
#

@marceldev89#4565 so how do I make a unit use a specific facewear in orbat editor

#

@marceldev89#4565

#

@gilded lake

fiery oriole
tranquil marlin
#

I keep specifying it to use a gasmask

#

but it goes to sunglasses

grand zinc
#

@tranquil marlin Why don't you ask your ALiVE specific question in ALiVE specific Discord?

tranquil marlin
#

because I'm not in it and he was answering my questions

grand zinc
#

But in there there are many more ALiVE devs and people that know the answers to your question

stoic lily
#

anyone knows why BI made StaticWeapon uses tankX/physx simulation?

jade brook
#

So they have the new physics?

stoic lily
#

aka the bugs?

jade brook
#

Sure.

stoic lily
#

i guess for physx to physx interaction, but rather weak argument given the downsides

#

only other reason i can see is the buggyness of physx to non physx interaction

jade brook
#

I don't think they saw it like that. PhysX was supposed to be an improvement and people still love it for some reason.

golden loom
#

@untold temple Thanks very much, I was only now able to check back in on Discord but I suspect that's the issue. I'll investigate the UAV camera just in case, thanks! 😃

astral oasis
#

Wierd one for ya, Im trying to get most of my colours of my mission down to defines. so I can easily change colors from 1 file, then include the one file at the top of the page, most of them are working, just this one is giving me trouble.

      #define PRIMARYCOLOR_ARBG "#(argb,8,8,3)color(0.376,0.49,0.545,1)"
      animTextureOver = PRIMARYCOLOR_ARBG;

if I put the string in directly, it works fine. but if i put it in the define, it doenst.

#

I fixed it, my defines file didnt save./

novel rock
#

any reason why my gunners are turned out by default ? 🤔

#

(inheriting from Truck_F)

novel rock
#

this locks access to other crew members despite the turret being empty

hot pine
#

hideProxyInCombat = 0?

#

if you want them turned in then use 1

novel rock
#

if true, disables turn-in option for all crew
I want to keep the turn-in/out option available, but the crew should start turned in.

#

i'll try

hot pine
#

uhm, that comment from bi wiki is very wrong

novel rock
#

yep it worked thanks @hot pine 😘

#

the value's name isn't self-explicit neither

stoic lily
#

is there a way to make AI not use ammo vs *soldiers/only vs vehicles?

jade brook
#

But still fire?

stoic lily
#

aiAmmoUsageFlags doesnt seem to help

#

in the past irLock was one way but seems broken

#

high cost for ammo doesnt help either

untold temple
#

irLock is generaly superceded by the ir sensor component

stoic lily
#

well what if we don have them configured/what about WW2 setting configuration?

sly prairie
#

@here do I place these lines in my CfgAmmo.hpp ?

#

fireSpreadAngle=3;
simulation=shotSpread;

#

or in the mag ?

untold temple
#

@stoic lily well you can configure the sensor, and disable locking/marking and sensor display

#

IIRC fireSpreadAngle is defined in the cfgweapons class and simulation=shotSpread; is in the cfgammo class

stoic lily
#

@da12thMonkey#2096 sure but i found no docu on how to make a weapon not engage infantry with sensors either

vital tundra
#

Hey, if someone could give me a hand with a quick question I'd appreciate it.

#

I recently followed this tutorial, slightly modfying it, to create a Droid Gunship for a Star Wars mod

#

My question however, is how I can switch from the civilian unarmed helicopter as a flight model to Pawnee helicopter instead, as I'd like it to have weapons

#

I tried switching the classnames but the mod gave me an error when packing and I wasn't able to get it in game

boreal heart
#

Inherit from the Pawnee

vital tundra
#

like, just try to swap the classnames? Sorry for the ignorance, I'm very new to this

boreal heart
#

What classa re you inheriting off? I'm guessing its the civilian helicopter?

#

class CfgVehicles {

class Heli_Light_01_base_F;
class tut_R22: Heli_Light_01_base_F

Change the 'Heli_Light_01_base_F' to the armed Pawnee classname and it should then inherit off of the NATO heli rather than civvie one

vital tundra
#

Yeah, that's what I first tried but I'll give it another shot

#

Also, for reference I haven't changed the config at all from what that tutorial has, so the entire config is linked there

#

So I'd be inheriting from the civilian m900 I think

vital tundra
#

@boreal heart That actually got it working, I must have messed up somewhere the first time. Thanks!

odd token
#

does anybody know if it's possible to remove the frame of a RscEdit ?

#

or at least change the color

#

i think it would be possible by wrapping it in a RscControlsGroup since the frame seems to be outside and not part of the width/height

#

ugly work around

stone cove
#

Anybody got an idea what value controls Range in Arsenal?

#

meaning the handheld weapon

untold temple
#

max zeroing capabilities?

stone cove
#

well i got already set that to - maxZeroing = 1200; and that bar is full

#

so is there anything else that i missed?

tight pilot
#

Is there a template config for adding in a custom backpack model?

sullen fulcrum
#

Having a quick problem with ladders, I saw the problem in a BI thread long time ago, couldnt find it anymore. The problem is that the soldiers model is basically "shining" through the ladder, in third person everything is working fine !? :/ Heres a picture of it: http://fs5.directupload.net/images/170902/ggh4vjsv.png

grand zinc
#

The model is just drawn after the ladder. So it's in foreground.. It makes sense. But I don't remember that happening in Arma 2

sullen fulcrum
#

So...there is no real way of fixing it?

grand zinc
#

If it appeared recently there is a way. Because something must have broken it. But if it's always been like that then not really

sullen fulcrum
#

Oh, ok...yeah the problem has always been the same. Ill just leave it like that, thanks anyways 😃

wise tusk
#

Hi there, Is there anyone active and willing to help me?

hearty sandal
#

Most of europe is sleeping by now so it usually gives best results to drop your question here and usually someone answers.