#arma3_scripting

1 messages ยท Page 400 of 1

queen cargo
#

is possible

#

the push instructions probably always get some callFunction or something like that in the end?

still forum
#

Ah yeah. You only get to know it's an array after the values have been pushed

#

Not always
_myvar = [1,2,3]

endStatement;
push float 1;
push float 2;
push float 3;
makeArray 3;
assignTo _myvar;
queen cargo
#

gonna private convo
probably better ๐Ÿ™ˆ

still forum
#

๐Ÿ˜„

little eagle
#

Could I use intercept to make Mr. de-dmen publish tf ar version one point zero?

still forum
#

no

#

You can use TFAR yourself and try to help find that bug

little eagle
#

I believe the bug doesn't exist.

#

Phantom bug.

#

Mirage glitch.

subtle ore
#

I thought intercept ate bugs for breakfast lunch and dinner?

still forum
little eagle
#

Oh, someone from the Panzergrenadierbrigade 37 is in the ST HUD!

halcyon crypt
#

what is the actual bug in that video? The popping sound?

tough abyss
#

"GameDataCrap " naming lel

halcyon crypt
#

I get that same sound when I plug in my headset or sometimes when I start playing music or some other system sound starts playing

#

(on Linux)

queen cargo
#

you did not noticed that the guy starts radio chatting and keeps being normal on the left side?

#

while the character rotates

#

and the guy radio chatting should be moving too?

#

from the left to the right (according to the position)

halcyon crypt
#

lol no didn't notice that

still forum
#

The pop sound moves your speaker into full negative so it cannot generate any sounds anymore. Which essentially makes you completly deaf

queen cargo
#

so what i said was not even the bug?

#

cool ... where can i file a bug report? ๐Ÿ˜›

#

(i know where, just making jokes here)

still forum
#

The movement was right when I heard it last time

halcyon crypt
#

it's not ๐Ÿ˜›

queen cargo
still forum
#

Are you sure it doesn't just sound wrong because you cannot hear anything at all on one ear?

#

The right ear is completly soundless

queen cargo
#

same end-result

still forum
#

You can see the sound going full negative

halcyon crypt
#

that's quite some weird behavior ๐Ÿ˜›

still forum
#

Indeed

queen cargo
#

last time i tried to do something like that i could not get the L & R channels fixed ... made a minecraft plugin for teamspeak
but it was fully retarded in regards of angle

#

but i would start in pretty much all routines that modify sound

#

when a radio chat close starts

subtle ore
#

@still forum Aha! A fellow audition user!

still forum
#

I mainly use it as live mixer

subtle ore
#

Welp

subtle ore
#

Neat

still forum
#

decompileASM {[1,2,3,4]}

push float 1;
push float 2;
push float 3;
push float 4;
makeArray 4;

decompileASM optimize {[1,2,3,4]}

push array [1,2,3,4];

This will be so good when it's done :3

little eagle
#

Dedmen, if you're bored this much then maybe you should look into making a preprocessor for sqf files that does it's stuff at addon build time. Instead of the game start.

#

I'm pretty sure we could shave off 20 seconds of preprocess/compile time when starting the game with ace, and at least 3 for every mission restart (preInit and postInit are recompiled mostly).

still forum
#

That's armake stuff though

#

I'd like too but I can't C

little eagle
#

Also make it kill newlines except for those used inside strings! I'm tired of line 3k errors for functions with 20 lines.

#

It would've been something I can see purpose in for a change...

still forum
#

You can fix the 3k line errors by just moving your script component include

little eagle
#

You mean above the functions header?

still forum
#

yeah

little eagle
#

But then the thingy wouldn't work anymore

still forum
#

You can't teach it to ignore the first line if it's a #include ?

little eagle
#

Would it work if we do:

#include "script_component.hpp"/**/

?

#

But even if the lines were correct, 2k chars wasted for every function is dumb.

queen cargo
#

@little eagle no need for such things
just use gcc preprocessing only
wont be 1:1 the arma preprocessor, but better

little eagle
#

Sure I "just use" it. Now I have to find someone that actually knows how to implement that into the make.py.

queen cargo
little eagle
#

Doesn't help me as no one has done this for Arma yet.

queen cargo
#

uhm ... so you say that due to nobody having used gcc preprocessor on arma you cannot google on how to use preprocessor on any file?

#

fyi: already used gcc on arma sqf file

little eagle
#

Thanks.

queen cargo
#

some macros will be broken due to arma not being fully c preprocessor

#

those need small adjustments

little eagle
#

Oh, we don't have a lot of those, so...

queen cargo
#

you actually really do not have a lot

#

this would be the first entry on that google search

#

which would have provided you with this information: gcc -E in.c -o in.i

#

where in.c is the input file and in.i is the output file

still forum
#

@queen cargo How do you make gcc find the include files?

queen cargo
#

correct pathing and correct workspace

#

armas "file system" is at last nothing but a simple copycat of normal filesystem

#

--> start at the root of your addon

#

eg. addons/x39_proj_scripting/

#

execute from there

#

gcc will do the rest

little eagle
#

See? This is a deep rabbit hole and some smart ass posting lmgtfy won't help...

queen cargo
#

@little eagle gcc is fully documented with literally all questions ever asked already available

#

just no sqf attached to it

little eagle
#

And? I wanted dedmen to sink his time into it because he already seemed bored.

queen cargo
#

just that dedmen is busy enough with things that would do way more good then solving a problem that is none

little eagle
#

than*

#

And saving 20 seconds would actually be an improvement over doing stuff that never will be finished anyway.

queen cargo
#

told you how to archive

#

a tool doing stuff would be no different from gcc

little eagle
#

Have you considered deleting your account?

queen cargo
#

have you ever considered listening to what i am saying?

little eagle
#

Why would I when you clearly don't?

queen cargo
#

gimme examples

little eagle
#

I wanted dedmen to sink his time into it
told you how to archive

queen cargo
#

just that dedmen is busy enough with things that would do way more good then solving a problem that is none

little eagle
#

So are you saying that you posted that lmgtfy for dedmen, even though I requested something from him and he didn't respond with any questions about how to achieve it?

subtle ore
#

๐Ÿฟ ๐Ÿช ๐Ÿฅ›

#

Oh thanks commy, forgot beer.

still forum
#

It'd be faster for me to replace the ingame preproc to remove all the empty lines. But that won't really make it faster

little eagle
#

Now that we bullied Quiksilver away, I need a new (old) one to pick on.

still forum
#

But If I give you the ability to load precompiled code that's already after preproc+compile+optimizer

queen cargo
#

i was here before you @little eagle
i will be here long after you have been forgotten

still forum
#

I'm also here way less time than you. And I'm blue :u

little eagle
#

daba

still forum
#

But all I can do is Intercept stuff. And as long as you don't want Intercept

austere granite
#

nobulli.jpg

subtle ore
#

Isn't the bully life kind of hard ? @little eagle

austere granite
little eagle
#

What can I do, people chose to be wrong (disagree with me).

#

You will not make me wear an anime avatar, sorry.

still forum
#

No one wants anime. We need more fur

subtle ore
#

Is commy always right is the real question? ๐Ÿค”

#

Hey don't force your furry nature on us dedmen

#

That's just plain wrong

austere granite
#

dedmen in the middle

halcyon crypt
#

๐Ÿ˜

subtle ore
#

Lool

still forum
#

Rather Dedmen on the right :u The middle guy is ugly

little eagle
#

Is commy always right is the real question?
Yes.

subtle ore
#

Good to know Commy, import or local?

little eagle
#

The burden of always being right about things when the shit hits the fan does not mean I'm your personal magic eight ball.

subtle ore
#

Hahahah ๐Ÿ˜‚

fallen locust
#

"The amount of indents should be inversely proportional to the length of the function." ๐Ÿฟ

little eagle
#

That's right.

fallen locust
#

Sooo the longer the function the less of indentation?

little eagle
#

Yep.

fallen locust
#

Cool

little eagle
#

This is prescriptive, not descriptive. It's an ideal for making good code.

fallen locust
#

void thing()
{ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t return 0;};

little eagle
#

And I don't take credit for it. Linus wrote that.

subtle ore
#

Linus....who...?

little eagle
#

The guy with the penguin.

peak plover
#

Indents slow Arma ?

#

That's why I have no fps

#

Not the life mod im playing at all

little eagle
#

No, but they are like 30% of the file size of unbinned mission.sqms.

fallen locust
#

No wonder with that logic

peak plover
#

Is there a way to binarize all sqf and remove all indent

little eagle
#

preprocessFile(LineNumbers)

peak plover
#

But files will still big

little eagle
#

That is why I suggested to dedmen that he makes a preprocessor that does it's magic at addon build time.

fallen locust
#

Why just not make it yourself?

little eagle
#

Because dedmen seemed bored.

still forum
#

I'm not bored. I just like doing cool stuff :U

#

SQF Assembly is cool.

#

When X39's optimizer works as I imagine it about 20% speedup across the board through all scripts

#

Imagine!

fallen locust
#

I mean 20% of infinity is still infinity ๐Ÿ˜›

queen cargo
#

assembly is funny
at least non-cpu ones

queen cargo
#

๐Ÿ›

peak plover
#

๐Ÿ‘† ๐Ÿ‘Ž ๐Ÿ‘Ž ๐Ÿ‘Ž ๐Ÿ‘Ž ๐Ÿ‘Ž

still forum
#

Hey guys does anyone know how I can check if my player received damage with a script?

little eagle
#

damage player > 0

still forum
#

Thanks! I'll try that

little eagle
#

๐Ÿ‘€

#

Wtf.

#

This has been there since alpha?

#

Why did no one tell me.

still forum
#

probably broke?

little eagle
#

It isn't and it works perfectly.

still forum
#

So much hidden candy

#

could fill a whole van with it

little eagle
#

When will they add lbSetColorRight etc. to the wiki?

still forum
#

With "they" you mean KK or me?

little eagle
#

"They" means everyone but me.

still forum
#

When they feel like it I guess

#

Weird tho.. He lsits that command as 1.80 but we got only bug fixes in 1.80. No new script commands

#

My OCD isn't big enough to fix that

little eagle
#

No one should care about which version a command was introduced.

lone glade
#

it's useful for people playing on legacy aka linux users ๐Ÿ˜„

little eagle
#

All 3.

still forum
#

I lied. Fixed.

lone glade
#

never forget the 17 days of crossplay

little eagle
#

It lasted twice as long as 1.78

subtle ore
#

Alganthe, don't worry. Eol will be nice

#

Linux, mac and windows users all in sweet harmony

lone glade
#

mac users, aka the one dude who's testing branches on it

little eagle
#

I just have given a multiline edit box control a scrollbar by putting it inside a controls group with the same height dynamically determined using ctrlTextHeight.

still forum
#

Be careful about dem branches. Some to thin to carry yo weight

meager heart
still forum
#

And?

meager heart
#

Exactly!

still forum
#

Why did you post that?

meager heart
#

This has been there since alpha?
Why did no one tell me.

little eagle
#

It's false, because I see commands from A3 there.

still forum
#

No it's not false

#

It's a Category page. It updates itself. No need to Edit it

little eagle
#

Well, then it's still false, even if it edits itself, that is an edit.

#

So saying last edited 10 years ago is wrong.

still forum
#

It doesn't edit itself

#

Check it's source

#

It's source just says "display everything from that category here"

little eagle
#

Guess that makes sense.

still forum
#

And that's what it does and what it did for the last 11 years

meager heart
#

nice

little eagle
#

Oh noes. I just realized that Dedmen can now attach poop emoji to all my comments.

kindred bane
#

Will this code work?

case (!isNil {_x getVariable "player_rank"}): {format ["%1<br/><t size='0.8' color='#B6B6B6'>%2</t>",_x getVariable ["realname",name _x],switch ((_x getVariable "player_rank")) do {
                                case 0: {"Test"};
                                case 1: {"Test 2"};
                                default {"Unknown"};
                            }]};
subtle ore
kindred bane
#

sorry ill do

#

done

#

it does the weird stuff by itself

subtle ore
#

Err...how many tabs do you have in there? Use spaces next time lol

kindred bane
#

why use spaces? i always use tabs XD

#

anyways 2 sek ill hastebin it instead

subtle ore
#

Use 4 tabs in replacement of tabs

kindred bane
#

What u mean?

subtle ore
#

It's kind of horrendous to look at here lol

#

Hit space 4 times instead of tabbing

lone glade
#

no, don't

subtle ore
#

Anyways, that code isn't complrte

lone glade
#

use a proper editor that replace tabs by 4 spaces

subtle ore
#

Atom

kindred bane
#

im using sublime text 2? ;P

subtle ore
#

Sublime Text

lone glade
#

wait, 2 not 3?

kindred bane
#

ye

#

couldnt find an sqf highlighter for 3 eh

subtle ore
#

Atom is fine Alganthe

lone glade
#

no

#

no it isn't

subtle ore
#

Yes, yes itbis

lone glade
#

wait one, we have sqf highliters from ace

kindred bane
#

wait

#

i found it em

lone glade
#

it crashes when opening RPT files

#

It's slow as fuck

#

no regex

kindred bane
#

anyways any idea if that switch thing will work XD?

lone glade
#

no it won't

kindred bane
#

hmm =/

lone glade
#

you're also missing parts of the code

kindred bane
#

what u mean

lone glade
#
case (!isNil {_x getVariable "player_rank"}): {
    format ["%1<br/><t size='0.8' color='#B6B6B6'>%2</t>",
    _x getVariable ["realname",name _x],
    switch (_x getVariable "player_rank") do {
        case 0: {"Test"};
        case 1: {"Test 2"};
        default {"Unknown"};
    }
]};
``` properly formatted
#

and see the first case? that means there's a switch, and I don't see it

subtle ore
#

@lone glade Maybe it crashes for you sure...peasent.

kindred bane
#

Oh, thats cause its part of the code alganthe im editing playertags in altis life ;P

lone glade
#

eat a dick midnight, you know electron apps are utter shite

#

the only one that somehow works is VS code, and it's because it's not electron per se but typescript

#

whomever thought making apps in native javascript / coffeescript need to rethink their life choices

subtle ore
#

Heheheheh

kindred bane
#

well thanks guys ๐Ÿ˜„ i think i got it ill test now.

austere granite
#

I like atom

#

Come at me

lone glade
#

it's objectively worse than other editors

#

sublime and vs code shit on it

#

if you think it's good you're also probably using github for windows or gitkraken

charred carbon
#

Notepad++

kindred bane
#

default windows notepad

#

๐Ÿ˜ƒ

austere granite
#

I use gitkraken

#

Come at me

lone glade
#

fucking hell

austere granite
#

VS code I couldn't get used to.

#

Tried pretty hard, but no luck

#

I keep sublime for my rpt

lone glade
#

I keep sublime for my rpt
You realize how stupid that sounds?

#

You're using a text editor that can't edit large files, aka what an editor is supposed to do.

#

or even fucking read them

charred carbon
#

Why not vim, it's a great editor

meager heart
#

@austere granite Did you released yourchristmas present?

austere granite
#

I'm not editing large files. I worked with both vs code, sublime, np++ and I like atom the most.

jade abyss
#

" case 1: {"Donator"};"

#

...

austere granite
#

LIFE PROBLEM

lone glade
#

that's why I told him to post it in scripting

kindred bane
#

I dont get it??

lone glade
#

Most people won't help you when they realize it's for life stuff

#

and for good reasons

meager heart
#

@austere granite Question above ? ๐Ÿ˜„

little eagle
jade abyss
#

aaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhh

austere granite
#

No, not yet. Maybe tomorrow

little eagle
#

๐Ÿ˜‚

jade abyss
#

#define GROUP_CREATE (call {\

#

You create your own list of groups?

little eagle
#

I needed my own data type essentially.

jade abyss
#

How comes?

little eagle
#

To create lobby groups and I could attach variables to it and the other type SLOT.

jade abyss
#
#define CREATE_NAMESPACE_GLOBAL createSimpleObject ["Building", [0,0,0]]```
You create an obj and use it as namespace? ๐Ÿ˜‚
little eagle
#

Yup.

jade abyss
#

Ah, i think i remember. Haven't you done that IngameGroupSelection UI?

austere granite
#

.. never saw that before?

#

Isn't that or location the default pseudo namespaces?

lone glade
#

"use it as namespace", no, all objects are namespaces

jade abyss
#

I only knew of location

lone glade
#

controls can also be used as namespaces

little eagle
#

I needed two global namespaces, so I use the simple objects for them.

austere granite
#

The only namespace I use is profileNamespace

little eagle
#

Actually it's more like 50kb.

jade abyss
#

dynamic Groups i assume?

little eagle
#

Half of it is exported gui configs and the mission.sqm tabs.

#

Yep.

jade abyss
#

Like "Adding new Groups on the fly"

little eagle
#

Created by script during the mission.

jade abyss
#

๐Ÿ‘

little eagle
lone glade
#

it makes not being able to store arrays or vars in lnbData a lot less problematic

little eagle
#

Too many parenthesis, alganthe.

#

aaaaaaaaa

lone glade
#

it's for readability

#

technically I could drop the one for params, but I find it more readable this way.

little eagle
#

No joke, you could technically remove all of them.

meager heart
#

Is it fully scripted and no addons needed ?

little eagle
#

No addons.

#

The mission has to be adjusted ofc.

jade abyss
#

adding the UI-Files, rest should be doable without it

little eagle
#

There are no ui files. It's all mono color ๐Ÿ˜‚

jade abyss
#

Technicaly, the whole OBE thing i did, could be Vanilla Only too. Just the changes in the CfgVehicles forced me to do it as an Addon.

#

Why not? Add some fancy interface!

little eagle
#

That's the worst. I'm always glad if there're no "pretty" pictures.

#

Dunno why I made this. Probably to prove a point about me being able to do vanilla scripting.

meager heart
#

My 1/5 cents - It has some style or design or whatever you call it.. just leave it like that, without funky colors and toxic elements

jade abyss
#

Dunno why I made this.
Bored?

#

๐Ÿ˜„

austere granite
#

What are you scripting? A mission lobby

little eagle
#

The task only lasted me 2 days

#

: (

edgy dune
#

So I got the following code

peak plover
#

who whoa

edgy dune
#

_this  addAction ["action I wana add",
{
//Code
},[1],0,false,true,"User20"," driver  _target == _this"];
peak plover
#

Waidaminnat

#

Dis script no mod

subtle ore
#

_this ?!?!?!

edgy dune
#

okay hold lemme finish XD

#

so ik that watever the code is will run once custom key 20 is pressed,but how can I have it where the action will run while the key is pressed down

subtle ore
#

Wha

#

So you mean when you arent using the actio?

#

Ui event handler

lone glade
#

words

subtle ore
#

Mobile sucks

peak plover
#

@little eagle does this need a certain amount of units pre-placed? or can I only place 1 playable unit and it would work?

jade abyss
#

Since you can't add Lobby Slots ingame...

#

(sadly)

subtle ore
#

setPlayable, rip :'(

lone glade
#

you don't know real pain

#

select all units -> playable

#

2D editor:
CRY A LOT

peak plover
#

not played since OFP

#

ok

subtle ore
#

Eden n00bs

#

2D editor is for real peoplez

peak plover
#

I remember arma1-2

#

Where I mostly started

#

I know the pain

#

But I don't know the pain of editing raw sqm without an editor

#

That A2 3d editor was so garbage

#

We've come a long way

lone glade
#

and then people STILL complain "waaaaah it's not good enough"

subtle ore
#

Well it wasn't really all that editor and more 3d

lone glade
#

member when placing shit on a table took 10 minutes?

subtle ore
#

Only if you're lazy

peak plover
#

I know of people who placed down bases by reloading the mission after every object to get it right

#

rip

subtle ore
#

Aww man another 9.4 units from the ground? Shucks

#

@peak plover I did that lol

peak plover
#

I remewber when 3den was announced to completely replace 2d editor

#

And people were mad and sad

lone glade
#

"how can I still access the 2D editor"
"Do you have brain damage after using it for so long?"

jade abyss
#

I remember the first steps in A2 with the alternative 3D-Editor

subtle ore
#

@jade abyss Pretty awful right?

jade abyss
#

The old one? Yes

peak plover
#

If you survive that without an annurism, you are a god

#

an ancient greek god

#

ZEUS

subtle ore
#

Nigel many people are gods then

lone glade
#

you mean... poseidon

subtle ore
#

Zeus gods no less

peak plover
#

I love that mod

#

crap

#

Tool

subtle ore
#

๐Ÿค”

lone glade
#

I meant, poseidon is the official name of the opposing zeus in ZGM, as well as a tool ๐Ÿ˜„

#

or whatever the zeus vs zeus gamemode is called

peak plover
#

I never palyed that

lone glade
#

I never touched any official gamemodes

peak plover
#

I only play ~life~ ugh... hardcore gamemodes

lone glade
#

outside of EG, and that was like, 2h top

subtle ore
#

Endgame was nice with public players at first

#

Then it was bad...

lone glade
#

the whole thing doesn't fit arma

#

it's too fast paced

subtle ore
#

Yeah...

peak plover
#

Anyone played that TVT mode called blitzkreig when a3 was in alpha, one of the first servers

subtle ore
#

Sales newbs

#

Everywhere

#

@peak plover Yep

peak plover
#

So many teamkills when people didn't know how to play arma and recognize uniforms

lone glade
#

"G is for Gear"

subtle ore
#

Lol

peak plover
#

hahaha

subtle ore
#

loool

#

What the fuck guys?

#

I am pressing g!

lone glade
#

I still had people do that in 2016

subtle ore
#

Why?

peak plover
#

So you can go a lot faster in this car, are you using the boost?
you mean shift?
No double tap V

#

My latest favourite

lone glade
#

hahahahaha

subtle ore
#

I remember when grenades were a firing mode of sorts too

lone glade
#

your hand is a muzzle

subtle ore
#

Overheats? :P

peak plover
#

There was a mod for A2 that kinda fixed some of the CQB combat. ST_(something)
They need to fix the turning around and stuff in A3

lone glade
#

I want barrel occlusion back

peak plover
#

Like turning around is not centered around you, but your gun or sth

subtle ore
#

Barrel occlusion lol

#

@peak plover Meh

lone glade
#

try to go through a doorway with a sniper rifle, the barrel pokes through the wall

peak plover
#

Well, New squad update does it well, pubg does it well

lone glade
#

before you got stuck

subtle ore
#

@peak plover Nuh uh, gtfo with that comparison shit

#

I am stopping you right there

#

That shit ends here

peak plover
#

Just talking about barrel occlusion being possible

subtle ore
#

Nu uh

lone glade
#

it's possible, BECAUSE IT WAS FUCKING REMOVED

#

like the perfectly working gun pipper we had for planes

subtle ore
#

I don't want to hear it Nigel

lone glade
#

why the everloving fuck did BI decide to remove it

#

it makes 0 fucking sense

peak plover
#

maybe some bug or shit

#

probably turning around really fast

lone glade
#

nope

subtle ore
#

๐Ÿค”

peak plover
#

Turn around before the next frame loads. glitched

lone glade
#

that's not how the collisions work

peak plover
#

Sure

subtle ore
#

PhysX is tricky like that altanthe

lone glade
#

and I know why they removed gun occlusion, too many people complained and thought it was clunky

subtle ore
#

It could pull a fuck you at any moment

lone glade
#

you're trying to use a fucking lmg / sniper rifle in a doorway

subtle ore
#

Physics or not

lone glade
#

players aren't physX objects

#

just so you know

subtle ore
#

I don't care Alganthe (and i understand that)

#

PhysX

#

RV4

#

No can do my friend

#

It'd find a way to send the player to space

lone glade
#

no, the "sending to space" happens due to shit going under the ground and being propulsed with an insane force out of it

peak plover
#

๐Ÿค”

lone glade
#

player collisions aren't affected by those issues

subtle ore
#

Yeah but Alganthe never doubt the possibility

lone glade
#

well, if you somehow end up squished between units it does but hey

subtle ore
#

"Somehow"

#

I would deem that deliberate

lone glade
#

as in:
spawn with a shitload of other people spawning at the same time

#

you'll either ragdoll and fall face first on the ground or die on the stop and your body propulsed into the air

subtle ore
#

I've still seen the player adjusted left or right even when spawning in the same spot

lone glade
#

or in very rare cases ragdoll and then propulsed then die

#

yeah, that's normal

#

that's not a physX interaction tho.

subtle ore
#

Nope

peak plover
#

fug

#

deleteAt edits original

lone glade
#

ofc

#

it returns the deleted index, not the array

peak plover
#

Alternative is - param [0];

#

deleteAt should return the data

subtle ore
#

Nigel...

lone glade
#

nigel....

#

if you delete something you need the index ref, guess what, you can store that in a var

peak plover
#
_arr = [1,2,3];
_arr = _arr - [2];
#

๐Ÿค”

lone glade
#

[1,2]

peak plover
#

ughhh

lone glade
#

deleteAt would removed the third number (index: 0, 1, 2)

agile pumice
peak plover
#

fnc_tracksreplace = 
{

bannable offence

agile pumice
#

i know it should be fn_

#

but im too lazy to go and correct 100 game logics

lone glade
#

no

#

not even that

agile pumice
#

im also to lazy to do a cfgFunctions

#

but I know what you're going to say

tough abyss
#

you know you can make an addon to just replace objects without having to use sqf

agile pumice
#

XD

peak plover
#

Your { is on the wrong line

lone glade
#

he's using fnc_ as a fucking tag

#

also, global var inline func

#

gg

agile pumice
#

look, this isn't general practice for me okay?

#

its just a quick script for a proof of concept

lone glade
#

do it properly or don't do it at all

#

you're fostering bad habits

agile pumice
#

its only a habbit of I repeat it again, which I most likely will not

#

but I agree with you

#

I would fix it if it weren't for all the gamelogics using it

lone glade
#

you know ctrl+F exist right?

subtle ore
#

Wait wat

lone glade
#

if you don't have an editor that can mass replace (N++ at the very least) you're doing something wrong

subtle ore
#

You're using game logic init to execute shit?

agile pumice
#

yes

subtle ore
#

Well there is your issue to begin with

#

Don't do that

#

It's more work than you need to do

lone glade
#

justification incoming in: 3...2...1

subtle ore
#

Plus

#

It's just bad practice, and jip runs it too

#

So wtf is the point

agile pumice
#

so what would the alternative be to find the position of the tracks

#

I thought checking a radius of several map tiles would be better than scanning the entire map

subtle ore
#

Oh god

#

Don't tell me you placed a gl for every track

lone glade
#

...

#

ohgod

agile pumice
#

no.

#

"I thought checking a radius of several map tiles"

lone glade
#

100m * 100m is a single tile

agile pumice
#

yes

subtle ore
#

terrain object comand variant would work fine for track finding iirc

lone glade
#

so you placed a fuckload of game logics all over the map

agile pumice
#

thats where the 100 comes into play on line 6

subtle ore
#

๐Ÿ˜ฑ

agile pumice
#

there's about 30 of em

subtle ore
#

Dude....

agile pumice
#

I'm open to suggestions for an alternate method

subtle ore
#

"track"

#

Alganthe probably has a better method

lone glade
#

using [worldisze / 2, worldsize / 2, 0] as a position and worldsize radius

subtle ore
#

^

lone glade
#

do it once on the server at init and cache the thing

peak plover
#

posinit and also add a init EH so that if zeus adds stuff

subtle ore
#

Wait, how is worldSize determined as a command? Distance diagonally?

lone glade
#

config

nocturne iron
#

@agile pumice it may seem like a waste of time, but you will eventually some limitation inherent to the non dynamic nature of your approach and will have to rewrite the entire thing as a script or series of functions

lone glade
#

and yes, it's the diagonal

subtle ore
#

I think that was implied shifty

nocturne iron
#

it's a hard learned lesson that hurts the more you put it off

subtle ore
#

@lone glade figured as muc

nocturne iron
#

I've done pretty much the exact same thing in the past, just trying to save him the pain

subtle ore
#

Yeah but bad practice will remain bad practice if you can't learn how to use better alternatives

lone glade
#

or recognize why it's terrible

subtle ore
#

"triggers are amazing guys" "it just works"

tulip cloud
#

I was looking for the paa that is used for the gradient for the info sections in the topleft/topright corners. Anyone know where they are located or if there is a way to give a gui element a gradient background instead of using paa?

lone glade
#

inb4 "uh, my triggers don't work anymore"
sounds of the scheduler choking in the background

subtle ore
#

Hahahah

nocturne iron
#

triggers are cancer

subtle ore
#

@tulip cloud How do you mean?

nocturne iron
#

bite the bullet

#

do functions

agile pumice
#

this is honestly the first time I've heard someone tell me not to execute code from a game logic

lone glade
#

O.o

#

thefuck

subtle ore
#

What

nocturne iron
#

fuck it, write 3den modules if you're lazy and dip your fingers into addons

lone glade
#

I want to know who taught you that now

subtle ore
#

Who the hell told you that?

agile pumice
#

You did, 5 minutes ago

lone glade
#

inb4 it's one of us who was trolling, trying to find the worst way to execute sqf

subtle ore
#

@nocturne iron I wouldn't necessarily recomend that

#

Who?

#

5 minutes ago? When?

agile pumice
#

Midnight - Today at 12:28 AM You're using game logic init to execute shit? eagledude4 - Today at 12:29 AM yes Midnight - Today at 12:29 AM Well there is your issue to begin with Don't do that

tulip cloud
lone glade
#

call compile an execVM in a game logic -> the creator of all things

peak plover
#

@tulip cloud it's an image

subtle ore
#

How am i encouraging you to use gls with that statement?

lone glade
#

it's paa images, can't do gradients

agile pumice
#

I think there's some confusion going on here, Midnight

subtle ore
#

Evidently, can you explain to me what i am missing sorry?

nocturne iron
#

@subtle ore only recommended if you're writing code to be accessible, ie for a gamemode you want to be adapted easily

agile pumice
#

I said I was executing code from a game logic, you told me not to. Then when I said "this is honestly the first time I've heard someone tell me not to execute code from a game logic" you asked me who said it XD

subtle ore
#

@nocturne iron True, but only if you're looking for simpleton setup kind ot stuff.

lone glade
#

yes

nocturne iron
#

ye, I'm pretty much doing that for my binkov thing

tulip cloud
#

Anyone know where the transparent gradient file is located? I'm hoping it's a 1x25 or something pixel image that I can stretch to scale.

subtle ore
#

@agile pumice You were talking about people who told you do execute, not the people who told you not to

lone glade
#

and we were wondering who told you to do that (execute code from GLs)

subtle ore
#

@nocturne iron Which isn't a bad thing...accessibility is the first step to expansion

nocturne iron
#

@tulip cloud just make it yourself, photoshop + ImagetoPAA spam is a neccessary part of the arma 3 graphic design process

lone glade
#

it isn't necessary

#

at all

nocturne iron
#

for maximum pretty ui tho

subtle ore
#

Hmmm...

tulip cloud
#

@nocturne iron I try to avoid what is already part of the game if someone knows.

lone glade
#

I reused BI VA icons and got a non copyrighted bin icon from the net for ACE Arsenal ๐Ÿ˜„

#

and someone made me a GL icon ๐Ÿ˜„

subtle ore
#

If Justin wants something more unique to his mission then make it yourself justin, otherwise i'd agree with you

nocturne iron
#

Awesome

subtle ore
#

@lone glade Gross

lone glade
#

no search bar for loadouts for you midnight

#

i'll make sure to put your UID in my naughty list ๐Ÿ˜„

tulip cloud
#

I'm very OCD about duplicating content that might already be available to me in all the arma files. I can easily create it that isn't the problem. Trying to be efficient.

subtle ore
#

Damn! Such evil Alganthe

lone glade
#

that'd be a great april's fools ....

subtle ore
#

Hehe

nocturne iron
#

inb4 sneaking UID bans into CBA

lone glade
#

get most of you guys UIDs and randomly fuck with your game

#

"thefuck, why do bananas appear in my inventory?"

#

"why does my weapon keep jamming?"

subtle ore
#

You don't have it Alganthe, i am fine

nocturne iron
#

'nvm must just be one of those arma things'

#

slowly drive someone crazy

subtle ore
#

Bannanas -> excllent source of nutrition

#

@nocturne iron Hehehe

lone glade
#

It can't be that hard to find your steam profile midnight

subtle ore
#

Oh shit

#

Fuck i think i have it linked with discorr

#

Damn

#

I concede Alganthe

peak plover
#

lol alganthe

#

Get hired by BI

#

Add it into base code game

subtle ore
#

Nooooo

nocturne iron
#

already got it @subtle ore

subtle ore
#

Nigel don't give him ideas

#

@nocturne iron damnnnn..... Lightning quick

nocturne iron
#

get hired by battleye

subtle ore
#

Even worse

nocturne iron
#

detect uid to make it slightly less reliable

#

mildly infuriate

peak plover
#

Get hired by microsoft

#

...

subtle ore
#

TKOH, TKOM, Arma 3, Arma 2, DayZ

#

That's my soul you are banning

lone glade
#

til, there's websites that reference all your steam IDs

peak plover
#

Yup

#

Not a huge secret really

subtle ore
#

Oh

lone glade
#

also, locations, real name, current game being played

#

wow

subtle ore
#

Do it Alganthe, nuke from orbit

nocturne iron
#

remove your name from your steam dude

subtle ore
#

Wha?

lone glade
#

why?

#

I use my real name nearly everywhere too.

nocturne iron
#

fair enough

peak plover
#

doxxed

nocturne iron
#

tbh I don't mind if people find me

peak plover
#

pizza time

subtle ore
#

There are at least more than one Bryce Cain's from Boise Idaho

nocturne iron
#

ayyyyy

#

@peak plover

subtle ore
#

Pizza whar kind?

peak plover
#

Doxxer's choice

lone glade
#

do people still do that ?

subtle ore
#

Double dog dare you nigel

lone glade
#

because you sure as fuck get sued by the pizzeria here

peak plover
#

IT IS THE C U R R E N T Y E A R
Doxxing is old

lone glade
#

it's not on the person who's "receiving" but on the person calling

#

but damn, trolling specific people through ACE and CBA is much easier than I thought....

peak plover
#

haha

#

Yup

subtle ore
#

Do it...

peak plover
#

high time to sign up as a dve

lone glade
#

don't like that asshole who keep reporting issues not using the template?
BOOM, profile vars cleared

peak plover
#

hahaha

#

What are you gonna do with those profile vars?

subtle ore
#

Holy fuck lol

lone glade
#

that's where your loadouts are saved

#

cba / ace settings too ๐Ÿ˜„

subtle ore
#

Steal mom's credit card info from a lifer entry?

peak plover
#

๐Ÿ˜„

subtle ore
#

"but mooom, i get extra swag bucks if i buy this cup uniform"

#

Inb4 #350 in 14 days

lone glade
#

honestly "fun bucks" should be banned / illegal

#

it's euros / local currency or bust

#

would cut down on a lot of predatory practices

subtle ore
#

Maybe

stable wave
#

are there any script libraries other than the armaholic one?

subtle ore
#

Yes

lone glade
#

the ACE3 / CBA github repos ๐Ÿ˜„

peak plover
#

for cba

if ((toLower serverName) find 'life' > -1) then {
    // rip
};
subtle ore
#

Hey Alganthe, that's really low of you

#

Is greater than -1?

#

!= -1

lone glade
#

inb4 you realize nigel typed that

subtle ore
#

Wtf

peak plover
#

-1 is everything from 0 to infinite

subtle ore
#

But.

lone glade
#

also, that is perfectly valid

subtle ore
#

Why

lone glade
#

find returns -1 when it doesn't find a valid index

peak plover
#

!= is two buttons > is 1

subtle ore
#

Yes

#

I know

#

Bur

#

Wby

peak plover
#

simple

lone glade
#

also, != is two commands

subtle ore
#

Why

#

You're fucking with my brain

peak plover
#

do you mean whiy find >-1?

subtle ore
#

No

nocturne iron
#

time to speed test this

peak plover
#

ggg

#

I win

subtle ore
#

.....

#

I don't care the speed, it just screws with how my brain thinks

lone glade
#

i'll probably do arsenal stats in january, don't have the drive with holidays and skrubs screaming that I broke their loadouts (hint, I didn't touch them)

subtle ore
#

Oh

peak plover
#

what u mean stats

#

What that stuff

subtle ore
#

They're screaming at you now huh?

#

Lovely

lone glade
#

ACE Arsenal doesn't have stats implemented yet

peak plover
#

Alganthe why does my game not freeze when I open arsenal. You are taking away from the expereince

subtle ore
#

Stats, we dunno what that is supposed to mean

lone glade
#

statistics

#

the white bars in BI VA

peak plover
#

like how many u used

#

aah

subtle ore
#

Uh

peak plover
#

Ballistic infromation

subtle ore
#

Oh

peak plover
#

Tactical technical info

lone glade
#

which is basically useless in vanilla

nocturne iron
#

(((stats)))

subtle ore
#

Not really

#

It is useful

#

In different calibers

peak plover
#

I only take armour >lvl 4

lone glade
#

no, the info there is wrong

subtle ore
#

How so?

lone glade
#

only ballistic protection and explosive resistance / mass are right

peak plover
#

Is new one based on ace ballsitic info etc.?

subtle ore
#

Doesnt read config values?

lone glade
#

all the "range" and other ballistic info are wrong

#

it does

#

but "range" is the maximum zeroing for example

subtle ore
#

Huh, interesting

lone glade
#

still need to look into how i'll do the interface, in the meantime I got commy to fix scaling for the button bar, I fixed other scaling issues.
Added QOL improvements to the loadouts screen (including a search bar)
Added a button to import loadouts from BI VA

nocturne iron
#

tbf range is a fairly empirical measurement in the first place

#

ah sweet

peak plover
#

manually test and insert all values

lone glade
#

still haven't gotten a single proper "issue" reported, I already knew of the scaling issues and it happens on really weird resolutions anyways

peak plover
#

Are u using pixel?

lone glade
#

interface is pixel perfect

#

OUTSIDE OF THOSE FUCKING FRAMES THAT RENDER DIFFERENTLY

#

oh god...

subtle ore
#

๐Ÿค”

lone glade
#

that 1px difference between literally all the controls and how frames render

nocturne iron
#

ballistic pro, explo pro and damage could probably be done dynamically by spawning in actors with the given armour etc and shooting them with a 'standard' rifle and normalizing the values you get back

#

ew

lone glade
#

thefuck

#

that'd be insanely stupid

nocturne iron
#

has a better feel

subtle ore
#

Well, it wouldn't be practical

nocturne iron
#

you could probably automate it and export it to a table

lone glade
#

and would be wrong

nocturne iron
#

why?

lone glade
#

because of the error margin due to the value being taken after all the calculations are done

#

damage isn't only using armor

nocturne iron
#

yeah ofc

#

you'd have to refine it a lot

#

but you'd get an empirical measurement of performance without having to use the guns or translate fairly arcane weapons stats

#

either that or a 'bullets to kill ruskie at 300m bodyshot' rating

lone glade
#

"fairly arcane", you mean what is actually used for the damage calculations?

nocturne iron
#

yeah, it doesn't make sense to people who aren't versed in it

lone glade
#

also, fun fact:
those bars "limits" (min and max) are taken from the lowest and highest value for the currently loaded weapons / containers configs

nocturne iron
#

interesting'

subtle ore
#

So question here, never used controls very much. When do i use ctrlCreate and when do I use a config?

lone glade
#

never
always

subtle ore
#

Gotcha.

lone glade
#

unless you like pain, then go for it ๐Ÿ˜„

subtle ore
#

Never

nocturne iron
#

always do it by config

lone glade
#

there's a very VERY niche use case for ctrlCreate

#

like, the pylons UI for ACE uses it

#

and that's because the number and position of pylons isn't fixed

subtle ore
#

Couldn't you just adjust it during runtime via script?

lone glade
#

No, what happen if you run out of controls because there's too many pylons?

nocturne iron
#

only if there's a hard set maximum midnight

subtle ore
#

Right, forgot that tid bit

#

@nocturne iron How do you mean?

nocturne iron
#

like, say I'm writing a button board menu

#

I can hide options/change their functions dynamically

#

but I can't have more buttons than I've defined in the config without using ctrlCreate

subtle ore
#

Yep, exactly

#

Okay, that makes more sense

drowsy meteor
#

ctrlCreate is a wonderful tool if you need to add buttons to pre-existing interfaces, like map screen or display 42. other than that, it has very limited use. i use it on loop scripts so i dont have to copy and paste a million times as well

nocturne iron
#

really dumb question

#

but params works for _this var in event handlers right?

#

fixing lots of ugly old code

jade abyss
#

Sure, why not?

#

param["_Var1","_Var2","_Var3"] etc

#

Don't see why it shouldn't work ยฏ_(ใƒ„)_/ยฏ

nocturne iron
#

thanks dscha โค

lone glade
#

params works for ANYTHING that is on the left of it and provides an array

#

well, that returns an argument that it can take at least

nocturne iron
#

ahh

#

makes sense

jade abyss
#

e.g.
_Arr = [1,2,3];
_Arr params ["_VarWith1","_VarWith2","_VarWith3"];
Should also work

#

without a "prefix", it uses _this

warm gorge
#

Is it possible to have players on 2 different sides in 1 group?

lone glade
#

No

warm gorge
#

Damn alright ty

nocturne iron
#

what do you need it for

nocturne iron
#

@warm gorge

warm gorge
#

Something im working on. Need to create the ability for different sided players to talk to each other. I know I could use channels created radioChannelCreate, but I cant use them as theres a limit to how many can be made

peak plover
#

Createa your own chat

little eagle
#

@little eagle does this need a certain amount of units pre-placed? or can I only place 1 playable unit and it would work?
Yes. The debug mission has 20 dummy slots placed. I was thinking about automating the process of placing them by adding 3den scripts to my missions pre int though. Thanks for reminding me. After that, it will work essentially automatically by just opening the mission in the editor once. I can even make it autosave ๐Ÿ˜›

#

3den is, in contrast to the arsenal and zeus, pretty great actually.

lone glade
#

"If only the goddamn menu commands were documented properly." - silentspike 2017

peak plover
#

gucci ๐Ÿ˜„

#

I looked at it and the units are like virtual dude, I wonder how well this will plug and play with one of my missions

#

I hope it works just liek that

little eagle
#

Things that will need adjusting are:
initPlayerLocal.sqf and initPlayerServer.sqf need to be redirected to the new unit.
init.sqf scripts with waitUntil {!isNull player};.

#

Maybe that could be worked around by doing selectNoPlayer every frame until you've chosen a slot. Will try.

#

Trying to make it as compatible as possible.

stable wave
#

anyone knows why BIS_fnc_textTiles causes FPS drop?

little eagle
#

Checked the RPT log file for script errors?

stable wave
#

there doesn't seem to be any error

little eagle
#

If it works correctly, then the fps drop is probably just from the function operating.

stable wave
#

hmm. might need to give it a performance test

little eagle
#

How many years until we get "ctrlFocused"?

meager heart
#

and ctrlSetFocus _ctrl returnยฏ_(ใƒ„)_/ยฏ

little eagle
tame portal
#

"Hey guys let's only make the scripting commands we need for our content and not more"

#

"Sounds like a great idea John"

#

and so ctrlSetFocus but not ctrlFocused was born

little eagle
#

Can't believe they don't need ctrlFocused. If they think so, they just don't know yet.

nocturne iron
#

interesting tidbit, BIS_fnc_findExtreme was introduced after BIS_fnc_findMix and BIS_fnc_findMax

#

why

#

ofc we have selectMin and selectMax now, but it's inexplicable

jade abyss
#
How many years until we get "ctrlFocused"?```
Imagine having RV-E OpenSource ๐Ÿ˜„
lone glade
#

there's an EH for that commy

#

are you ready to witness greatness?:

onSetFocus = QUOTE(GVAR(leftSearchbarFocus) = true);
onKillFocus = QUOTE(GVAR(leftSearchbarFocus) = false);
#

i'm sure you weren't ready

little eagle
#

Yeah, just add both of them to all controls and set some variables yourself. <_<

lone glade
#

you could turn this into a command

#

and I have 0 ideas why the fuck they still haven't

little eagle
#

XEH for displays when?

queen cargo
#

hint that is how actually a lot of ui development outside of arma works too @little eagle

lone glade
#

No

#

just no

little eagle
#

Working around incomplete api? Great.

lone glade
#

cue in the 930 required js dependencies

queen cargo
#

@lone glade yes, just yes
there are multiple properties which are not-existing but can be created using event handlers

it is common to have to do it yourself

#

simply because not everything can be covered

#

a missing command with existing event handlers is no flaw

#

if neither was existing, it would be a problem

lone glade
#

a command that returns which UI element is in focus seems..... you know, useful

#

but then again, no more senior devs on A3 coding wise, or they're focusing on tonks

queen cargo
#

QoL feature

#

nothing more

#

or even worse: current focused element can be anything including nothign from your actual dialog

lone glade
#

the one thing I hope get changed for A4 is the asset reuse, it's extremely blatant (but not a problem due to the modding scene)

little eagle
#

Idea 2:
focusedControl
Returning the control the focus is on.
I think we don't even have this for dialog/display.

lone glade
#

nope :/

queen cargo
#

there is always just one focused control

little eagle
#

And?

queen cargo
#

and one control with keyboard focus

lone glade
#

which is the focused control

little eagle
#

^

queen cargo
#

and? and if your script bugs out it will bug everything out

#

keyboard focus does not has to be the actual focused control

lone glade
#

wat

little eagle
#

What? ๐Ÿ˜‚

lone glade
#

yes it does

queen cargo
#

no ...

lone glade
#

if the control isn't focused you can't give it keyboard inputs

austere granite
#

even ctrlSetFocus has quirks ๐Ÿ˜‰

little eagle
#

I mean, if there are 2 kinds of focus, just make it return an array with both elements or smth.

austere granite
#

actually that's al ie

#

the mouseEnter / mouseExit EHs for control have quirks

lone glade
#

because those aren't the focused EH

austere granite
#

Some do detect mouseEnter, but not exit... and mouseEnter will only ever trigger once

lone glade
#

I can guarantee you 100% that a control CANNOT take keyboard inputs if it isn't focused

little eagle
#

Never heard of that either.

austere granite
#

and one that note, if you open up a dialog then keyUp will still pass through from the mission display, but keyDown will not

queen cargo
#

difference is the kind of focus

#

only one control on your whole system can have keyboard focus
logical focus however, is something different

lone glade
#

wait a second, mouse hover isn't focus

queen cargo
#

same goes for arma

austere granite
#

i'm talking about different UI stuff, not setfocus

#

that's al ie .. a lie ๐Ÿ˜„

lone glade
#

keep it to arma, we all know how arma systems compare to "the rest"

austere granite
#

I'm talking about different ARMA ui stuff ๐Ÿ˜„

little eagle
#

Ya'll weird.

austere granite
#

in the case of "You'd expect this to work... but for some reason it doesnt"

lone glade
#

no, it's more the case of:
"wait, why the fuck is that working like this?"

queen cargo
#

you all just hate arma for SQF, for its UI system, for foobarblublub and ignore possible solutions completly ...
you just hate it that it is not perfectly fitted for your needs ...

lone glade
#

like, FSMs, most of SQF, UI, the physX implementation

#

let's be honest, nearly all of them are either aged as fuck or badly implemented

#

there's no redeeming factor here

queen cargo
#

go and code another game

austere granite
#

well X39 in 90% of cases i can work around it, and granted A3 UI scripting has improved a lot

lone glade
#

wow, I was waiting for that one

austere granite
#

but still sometimes there's some stuff thats.... wtf

queen cargo
#

yes @Adanteh#0761
obviously there is
but nothing they ever complain about is an actual issue

#

it is QoL

lone glade
#

fun fact QOL are issues

austere granite
#

yeah the lack of QoL is what makes arma a turn-off for most people i think :p

lone glade
#

in some way 3DEN could be considered QOL

#

zeus too

queen cargo
#

QoL in scripting is literaly on the lowest end ever possible

#

UI QoL? even more lower priority

#

you can work around your "issues" extremly easy

little eagle
#

It takes like 3 minutes to write ctrlFocused.

queen cargo
#

especially you should be capable of doing it in a brief moment

austere granite
#

in some cases i can't with UI ๐Ÿ˜ฆ

queen cargo
#

same in SQF @little eagle

lone glade
#

the thing is, the less we need to abuse the sqf layer the better.

little eagle
#

Hmm, write it once in 3 minutes or write it 1000 times in 3 minutes ๐Ÿค”

austere granite
#

i don't have examples right here, but i've spend way too much time on arma UI in the last month and in a couple scenarios spend a ton of time on trying workarounds, none of them working

#

X39 how do you work around not being able to detect how far you scroll in a controls group? Handle mouseZChanged yourself and use that to detect scroll levels? ๐Ÿ˜„

#

i mean... that could potentially be a workaround, but wtf

#

i understand we can't have absolutely everything

lone glade
#

the UI system is a gigantic band-aid on an open wound

queen cargo
#

@Adanteh#0761 sadly yes ...
however, scrolling is not rly usable in any UI system i ever used
all just required a hell lot of background coding

austere granite
#

But for example the ctrlFocused would be a nice easy thing to do probably

little eagle
lone glade
#

wtf

austere granite
#

i wonder if that's for the admin commands? ๐Ÿ˜„

queen cargo
#

could be something BI themself needed @little eagle

#

personally i see no use for it

lone glade
#

considering how much they abused uiNamespace for arsenal (and for no fucking reasons too) I wouldn't be so sure about that

austere granite
#

uiNamespace needs to speak out against this blatant #metoo'ing

delicate lotus
#

Is this a good implementation of a mission timelimit?

_timeLimit = "Timelimit" call BIS_fnc_getParamValue;
timeLimitEnabled = false;
if(_timeLimit>0) then {
    timeLimitEnabled = true;
    globalStartTime = diag_tickTime;
    waitUntil {diag_tickTime - globalStartTime >= 3600};
    "endTime" call BIS_fnc_endMissionServer;
};

If not then Im keen to hear suggestion to improve it ^^

still forum
#

If you have spawned that and not called from init.sqf then yes

little eagle
#

What is globalStartTime ?

#

ok, nvm.

lone glade
#

not using tags

delicate lotus
#

tags?

little eagle
#

Yeah, globals need ofpec tags.

delicate lotus
#

well... its not a script for others to implement

#

but yeah

lone glade
#

any global var need tags imho

still forum
#

Might not be bad for a mission.. I mean.. it's your mission that breaks when you add a mod from someone who thought the same

lone glade
#

if someone end up using your varname you're kinda screwed

little eagle
#

well... its not a script for others to implement
That has nothing to do with anything. Global variables need ofpec tags to be considered "good implementation" period.

delicate lotus
#

also the code is spawned like this from initServer.sqf .
[] spawn compile preprocessFileLineNumbers "scripts\timeLimit.sqf";

still forum
#

why not just execVM?

delicate lotus
#

Ive read on german arma forums (armaworld) that execVM is bad

still forum
#

execVM and spawn compile preprocessFileLineNumbers are exactly the same thing

little eagle
#

Or why not just make these variables local variables. I see no point in having them as globals.

still forum
#

^

delicate lotus
#

They will have furtur implementation in npc dialogs

#

like HQ telling you how much time left

lone glade
#

then better start using tags now

little eagle
#

execVM is bad, but it's slightly better than spawn compile preprocessFileLineNumbers by virtue of being shorter to write.

delicate lotus
#

ah okay

lone glade
#

both shouldn't be used anyways

delicate lotus
#

what should then be used?

little eagle
#

Well, idk. Seems fine for this.

#

It's for a mission right?

delicate lotus
#

yes

still forum
#

For a script that is just spawned once execVM is the best if you want to be scheduled

little eagle
#

execVM it, because it's executed only once anyway.

delicate lotus
#

okay. And what if It would be executed multiple times? A function?

still forum
#

Don't listen to the idiots from some idiot filled german arma forum

#

exactly

#

cfgFunctions

delicate lotus
#

okay

#

Now, any suggestion for a tag? XD

lone glade
#

call compile through a game logic ๐ŸšŽ

#

ascends further

delicate lotus
#

but why through a game logic?

lone glade
#

i'm trolling, ignore me

delicate lotus
#

lol XD

little eagle
#

You could optimize it by using sleep 1 or smth like that inside the waitUntil, but no one will ever notice any difference so meh.

delicate lotus
#

you mean uiSleep

still forum
#

FurV as Tag?

delicate lotus
#

Yeah that could work

lone glade
#

fur

little eagle
#

They're the same for dedicated servers for all intents and purposes.

still forum
#

You could use FurtherV if you really wanted to

delicate lotus
#

I should use the same tag in my stringtables.xml right?

little eagle
#

Silly Dedmen, OFPEC tags are 3 to 5 chars ๐Ÿ˜‰

lone glade
#

case in point:
derp

#

best tag ever

little eagle
#

Yes, everything in global space should use OFPEC tags.

#

commy_

delicate lotus
#

Yeah lucky you, your name has the length of 5 characters

little eagle
#

Is it luck or foresight?

delicate lotus
#

wait I know your name from somewhere

lone glade
#

Furer works too ๐Ÿ˜„

little eagle
#

wait I know your name from somewhere
hides

delicate lotus
#

commy2 the guy who released a script to make custom guided missiles on armaworld

lone glade
#

wow

#

of ALL the things

little eagle
#

Yes, that is what I'm known for.

lone glade
#

Don't know if I should laugh or feel empathy ๐Ÿ˜„

delicate lotus
#

The tag should be lowercase right?

little eagle
#

No one recognized you, and I'm practically famous now, alganthe. So I don't need your pity.

#

Doesn't matter.

lone glade
#

cries in wiki pages

little eagle
#

Lower or mixed.

delicate lotus
#

I love the refector function of intellij

peak plover
#

๐Ÿค”

#

saving used building positions

#

ace garrison moduel does that?

lone glade
#

what do you mean?

#

it places units on building pos (or try to guide them there)

#

and trust me, it took me ages to write the "guide them to the pos" part, AI is really REALLY not compliant