Feature #8344

Functions available as mission scripts (no addon)

Added by alef about 5 years ago. Updated over 3 years ago.

Status:Closed Start date:01/20/2010
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
Component: Affected Version:
Close Reason:

Description

All CBA_fnc_* code available to mission-makers for use without the add-on @CBA.

An AHK script is available to refactor CBA components/functions as workaround to #8275 and to implement this feature request.

How to use the script:

Related issues

related to ARMA2 Community Issue Tracker - Bug #8275: Using #include from mission editor with relative path Assigned 01/19/2010

History

Updated by alef about 5 years ago

  • File make.bash added

Updated by Sickboy about 5 years ago

Cool, tnx!
Now to detect the presence of the CBA addon variant.
Also vital piece of script_mod / component missing, with COMPONENT and PREFIX defines :)

Updated by alef about 5 years ago

  • add CBA_init.hpp created dynamically, but the call order needs to be done manually
  • repath of extended_eventhandler/ too and inclusion in CBA_init.hpp
  • redefine PATHTO_SYS for the new naming scheme after each repath of #include script_component
  • CfgFunction to be included in description.ext inside an existing class CfgFunction section (to be merged with others)
  • edit common/XEH_preInit.sqf GVAR (delayless.fsm) one dir up and copy the .fsm too
  • copy strings/hashes private included files

Needs to be tested, then the new version will be uploaded here.

Sickboy wrote:

Now to detect the presence of the CBA addon variant.

Later.

Updated by Sickboy about 5 years ago

Nice one alef!
Working on official v0.3.0 update btw.

Updated by alef about 5 years ago

  • File make.bash added

Updated by alef about 5 years ago

  • File make.bash added

Please delete older versions, thanks. Script tested on CBA version 0.3.0.

Updated by Sickboy about 5 years ago

  • File deleted (make.bash)

Updated by Sickboy about 5 years ago

  • File deleted (make.bash)

Updated by Sickboy about 5 years ago

  • File deleted (make.bash)

Updated by Sickboy about 5 years ago

Awesome mate, thanks! Cleaned up.
Still have to take a look aswell.
Have you presented it to kju by chance ? :D

Updated by Sickboy about 5 years ago

  • Status changed from New to In progress
  • Assignee set to alef
  • % Done changed from 0 to 50

Updated by alef about 5 years ago

  • File convert.ahk added
  • File convert.exe added

make.bash has been converted to this AHK script. No more cygwin/Unix is required, only AHK.
The compiled executable is also here. No AHK installed is required to run it.

The addons subdirectories must be copied under a directory called orig. Place the script above it and run.

Updated by alef about 5 years ago

  • File convert.ahk added
  • File convert.exe added

New version. fixes delayless.fsm

Updated by Sickboy almost 5 years ago

Added to repo under utils.

Updated by alef over 4 years ago

TODO

  • align to latest CBA
  • bring the .ahk into alef-project to continue development
  • find the right order of inits
  • detect the presence of the CBA addon variant
  • test

Updated by Sickboy over 4 years ago

Made me think;
How about dumping the AllInOne config, with only CBA loaded.
Then extract the Extended_*** Eventhandlers from that config,
put it in XEH.hpp
and then in description.ext:
#include "XEH.hpp"

Since XEH supports XEH's from within missionConfigFile, this should give you always the correct initialization order, just after doing a configDump with latest version.

You would just have to launch XEH.

Updated by alef over 3 years ago

  • Description updated (diff)

Updated by alef over 3 years ago

  • File deleted (convert.ahk)

Updated by alef over 3 years ago

  • File deleted (convert.ahk)

Updated by alef over 3 years ago

  • File deleted (convert.exe)

Updated by alef over 3 years ago

  • File deleted (convert.exe)

Updated by alef over 3 years ago

  • File deleted (make.bash)

Updated by alef over 3 years ago

  • File cba.zip added

Updated by alef over 3 years ago

  • File deleted (cba.zip)

Updated by alef over 3 years ago

  • File cba.zip added

Updated by alef over 3 years ago

  • File deleted (cba.zip)

Updated by alef over 3 years ago

  • % Done changed from 50 to 100

The script is now part of alef-projects. You can find the file(s) there and update the one in @CBA at your whish.
Please close this ticket. Use the tracker in my project space when needed.

Updated by Sickboy over 3 years ago

  • Status changed from In progress to Closed

Thanks Alef :) The email spam was getting numereous :P Very much appreciate your efforts ref CBA mission version!

Updated by alef over 3 years ago

  • Assignee deleted (alef)

Also available in: Atom PDF