Jump to content

Bomba

Member
  • Content Count

    13
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About Bomba

  • Rank
    Private First Class
  1. i checked, :( this is due to the fact that the preprocessor currently are not processed, (actually include script not loaded too), so substitute empty string instead "string", defined in hpp not be executed so script parsing is failed on: string _vehicleClass = _this select 0; string _vehicleType = switch (true) do and in result have some unintelligible warnings and errors :( if remove "strings" and rewrote script to (this do preprocessor) _vehicleClass = _this select 0; _vehicleType = switch (true) do in result no warning and errors.
  2. about EH and PrivateVarUndeclared i think for this code must be warned about undeclared vars _displayEH_mousezchanged = (finddisplay 46) displayaddeventhandler ["mousezchanged"," _zchange = _this select 1; _oldAperture = BIS_UAV_PLANE getvariable 'BIS_UAV_aperture'; _zChangeFinal = _zChange / 2; if (_oldAperture <= 1.0) then {_zChangeFinal = _zChange / 10}; if (_oldAperture <= 0.1) then {_zChangeFinal = _zChange / 1000}; _aperture = _oldAperture + _zchangeFinal; if (_oldaperture > 1.0 && _aperture < 1.0) then {_aperture = 1.0}; if (_oldaperture > 0.1 && _aperture < 0.1) then {_aperture = 0.1}; if (_aperture < 0.001) then {_aperture = 0.001}; BIS_UAV_PLANE setvariable ['BIS_UAV_aperture',_aperture]; setaperture _aperture; "]; although perhaps the arma2 script runtime itself is well clear of these variables and not transfer them to the global stack allocated variables. I have not tested this. But think be better raise warn about this. :) In many scripts I see that for such EH declaration was added private declare. ---------- Post added at 10:31 PM ---------- Previous post was at 10:16 PM ---------- Also I check you sample sample: http://pastebin.jonasscholz.de/1312 and not receive any warning CS105: PrivateVarDuplicate just four errors error CS501: UsedNotAssigned Variables used, but not have assigned: '_vehicleClass' can you show completed script where incorrect warning was generated.
  3. Thx for response, "Possible Perfomance Degradade" is warning for code with runtime compilation and execute: for sample to follow line warning will be generated. call/spawn compile format ["_funds = %1;",_itemFunds]; in sample1.ps this warning is disabled But here not complex analysis, just simple compare with code template match, so this warning is just flag for check for a performance: because such code can be called once, but in other cases can can be called unlimited times. for sample in warfareBE mission a lot of code is often compiled on the fly, replacing it with the same static code get increase server performance to 5-10 fps
  4. Tool: ArmA2 Script Compiler v.0.1 /link/ Home: http://code.google.com/p/arma2warfare/ The solution is designed as standalone script compiler/syntax checker for ArmA2. This is partial syntax checker, so it not cover checking all function arguments and arguments types; Allowed file types: .sqf, .fsm FSM path tracing - all avaible paths routing and script checking. FSM extract script definition and check it as regular .sqf and check in common context of FSM file; REQUIREMENTS ------------ Microsoft .NET Framework 3.5 PowerShell 2.0 (required to launch an example) USAGE ----- Examine the file sample.ps1, it contains a typical usage: a compilation set of scripts from ArmA2 mission folder Run the file compile.bat or .\sample.ps1 from PowerShell console By default will compiled mission scripts from folder sampleMission warning: Script sample.ps1 not signed with certificate, so you propably get PowerShell error about restriction to run unsigned scripts. To resolve this issue, execute follow the command with administrator privileges in powershell console Set-ExecutionPolicy -ExecutionPolicy ByPass or sign a file sample.ps1 with your trusted certificate. CHECKED WARNING AND ERRORS: --------------------------- * Possible Perfomance Degradade * Out Of Function Scope Variable Declaration * Assigment To Reserved Variable Name, * Not declared as Private Var * Duplicate declaration as Private Var * Declared as private but never Used * Variable used but not have assign prior * Invalid Array ElementType for some operations * Command Invalid Argument, * Missing Separator * FsmMissedProperty, * FsmMissedClass, * FsmInvalidValueType COMPILE RESULT SAMPLE ------------------------ ArmA2 Script Compiler, Version 0.1 © Evgeny Zyuzin, 2011. All rights reserved Compile: C:\Users\Administrator\AppData\Local\Temp\_sampleMission.compiled\initJIPCompatible.sqf warning CS104: PrivateVarUndeclared Not declared as private: '_u' At Scope: if(!isServer || local player)then { waitUntil{!isNull(player)}; 12452 cutText[(localize 'STR_WF_Loading') + "...", "BLACK FADED", 0] }; setVi ...
  5. I had a same issue with server crash on Bad weapon selected. occurs several times Create issue on tracker. http://dev-heaven.net/issues/16043
  6. kickduplicate set to 0 but when i connect in 2nd session i get error: CD key in use
  7. Is anyway simulate mutiplayer mode without real players? I need at least 10 simulated "real players" for debugging. I search way howto detemine problem why server crash at 40+ players. I start dedicated server. Can connect to it from remote machine, Can start new ArmA2 session on remote machine, but cant join to server - duplicate cdkey
  8. Bomba

    Patch 1.56 Bug reports

    Dedicated server crash 3 times with same error. After working for 2-3 hours the dedicated server crashes with an error EastSlot1: Bad weapon selected (28 of 18) Exception code: C0000005 ACCESS_VIOLATION at 005E0A8E The same error occurs 3 times: Bad weapon selected Exception code: C0000005 ACCESS_VIOLATION at 005E0A8E exception code and memory point also identical in all crash times. full error under spoiler
  9. Thanks a lot, :( I saw it as a useful feature.
  10. Is mergeConfigFile support yet? I try sample mission attached to issue: http://dev-heaven.net/issues/14163 and get follow error: Error in expression <mergeConfigFile ["test.cpp",false]> Error position: <["test.cpp",false]> Error Missing ; The same error, I get then try call mergeConfigFile in my mission; - arma 2 CO: beta version 1.55.74858
  11. I do not want to change existing classes, I want to add a class that inherits from the existing one. Change the picture and caption is only attributes. I want to give players additional opportunities if the player has a certain type of backpack. Just check by className Backpack Medic Backpack Engineer Backpack Pilot Backpack Saboteur I can store information about the type into object properties of a standard backpack. But the mission (warfare) has already been written and in this case required rewrite a lot of code. I would like to simply add a new class and not to conduct additional processing, such as when the backpack is passed from player to player
  12. Is any way to declare custom class for mission without use addons? I want declare class class CfgVehicles { class US_Patrol_Pack_EP1; class US_Patrol_Pack_EP1_Medic : US_Patrol_Pack_EP1 { displayName = "$STR_MEDICBACKPACK"; picture = "\images\medicbackpack.paa" }; }; I try declare CfgPatches in description.ext, but without any success configFile >> "CfgVehicles" >> "US_Patrol_Pack_EP1_Medic" return emtpy string :j:
×