Jump to content

sparcdr

Member
  • Content Count

    27
  • Joined

  • Last visited

  • Medals

Everything posted by sparcdr

  1. Please do not remove branding, I have provided my mission for public use under the condition the attributions are maintained. Thank you.
  2. sparcdr

    Arma2NET

    Hey Scott_NZ. Mono works for me. Thanks much.
  3. sparcdr

    Arma2NET

    I don't use UAC, so that option isn't there, so no it isn't blocked. I completed my C# program using jayarma2lib, and it works, but I loathe the timing issues. Still would like to port it to a plugin for arma2net. Actually did it already, it's not much different, except removing the entry point, just have to do it again whenever a plugin won't crash ARMA2. I'd like to know if arma2net works with ARMA 2 Free, since an eventual side-task may be porting back to it. (We use Chernarus) I hope you intend to support ARMA 3 (Granted loadext support) so you got my support, even though it hasn't yet worked for me, even the included plugins. Give me infos about what version you develop for, and I'll try that too.
  4. sparcdr

    Arma2NET

    No dice, still crashes. File not found exception or so as before. _result = call compile ("Arma2Net.Unmanaged" callExtension "MyPlugin [Hello]"); hint _result; Works in the explorer fine though. * UPDATE MySQL plugin doesn't even function in explorer. Says couldn't find file i/o exception. It behaves the same as MyPlugin in-game, crashing it.
  5. sparcdr

    Arma2NET

    Same crash as before.
  6. sparcdr

    Arma2NET

    Application: arma2oa.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.TypeInitializationException Stack: at Arma2Net.Managed.Bridge.InvokeFunction(System.String, Int32) at <Module>.Arma2Net.Unmanaged.InvokeFunctionImpl(SByte*, Int32, SByte*) at <Module>.Arma2Net.Unmanaged.InvokeFunction(SByte*, Int32, SByte*)
  7. sparcdr

    Arma2NET

    Nothing except saying arma2oa crashed. What patch you use normally?
  8. sparcdr

    Arma2NET

    08/02/2012 08:03:39 Info Successfully loaded into process Arma2NetExplorer 08/02/2012 08:03:39 Info Unloading addins 08/02/2012 08:03:40 Info Loading addins 08/02/2012 08:03:40 Info Name Version Publisher Description 08/02/2012 08:03:40 Info CompareVersion 2.0.0.0 Scott_NZ Compares two version strings and returns an integer indicating how they compare. 08/02/2012 08:03:40 Info ClrVersion 2.0.0.0 Scott_NZ Retrieves the version of the Common Language Runtime. 08/02/2012 08:03:40 Info Version 2.0.0.0 Scott_NZ Returns the version of Arma2NET. 08/02/2012 08:03:40 Info CommandLine 2.0.0.0 Scott_NZ Returns the command line used to start the application. 08/02/2012 08:03:40 Info DateTime 2.0.0.0 Scott_NZ Returns the current date and time. 08/02/2012 08:03:40 Info MyPlugin 08/02/2012 08:07:13 Log: Unmanaged side loaded 08/02/2012 08:07:13 Info Successfully loaded into process arma2oa 08/02/2012 08:07:13 Info Arma2NET 2.1.0.0 initializing on CLR 4.0.30319.17626 08/02/2012 08:07:13 Info Loading addins 08/02/2012 08:07:13 Info Name Version Publisher Description Nothing more is given. I have VS installed if you can provide a debug build so I could get you a stack trace or something. The project is a Windows/C# class library with only the proxy as a reference and the most recent MyPlugin code from this thread's last current page.
  9. sparcdr

    Arma2NET

    Still crashes fwiw, with new addinproxy, references removed.
  10. sparcdr

    Arma2NET

    Thanks to both of you, will try when I get off work.
  11. sparcdr

    Arma2NET

    Hi Scott. Getting an ARMA 2 crash when running MyPlugin using your example for "Unmanaged", beta 95417. Also, why did you chose to use parenthesis, it's syntactically incorrect and hurts Squint (2). Ported my save system to a library, using arma2net as a dependency, but trying provided example failed horribly. Could you try a current beta against your example? Trying to get away from JayARMA2Lib, making me waste time.. (C# program sends correct strings, ARMA adds garbage to the end, and the handler management totally blows) Compiled "MyPlugin" with VS2010 (Stock settings / .NET 4) copied into "\addins\myplugin". MyPlugin.cs: using System.AddIn; using AddInView; namespace MyPlugin { [AddIn("MyPlugin")] public class MyPlugin : Arma2NetMethodAddIn { public string Hello() { return "Hello world!"; } } } Had to add System.Addin manually to the project (Win7 x64) and the modules references in the project (@arma2net\addinview.dll) _result = call compile ("Arma2Net.Unmanaged" callExtension "MyPlugin [Hello]"); hint _result; Anything different now? (PS): Happens on 2.1 too. Stock ARMA (No beta) crashes immediately trying to load ARMA2Net. Thanks!
  12. sparcdr

    Light sources

    I have an example mission in Utes for you all, that dynamically adds light onto flagpoles declared in init.sqf. Light Test (Utes) @Disco, while loop, use a table of colours with their own seconds, and use differentials to say where the points go sorta like what I showed. I'll play around with it, but don't except UK flag colours in sequence. It's not that simple, every light source has to have its own relative position to the anchor, with its own colour, then have independent sleep state (Sleeps and waituntils in each anchor loop), and for each anchor must wait on each light source.
  13. Edit RPM\Server\FNC_Server.sqf, comment out execVM "\a2server\server.sqf"; with //'s to disable it. On a soon release I have it check for dedicated. You can make an empty a2server directory in your OA root, then an empty server.sqf file inside there, so it execVM's nil.
  14. sparcdr

    Dedicated Server RPG

    There was some misinformation about City Life, where people felt they were obliged to buy some sort of points for advantage. I suppose it's for people who are more impatient, but what it really is, was as bluevein stated, an incentive so they can afford to operate month to month. It's not necessary, and the advantages are largely affecting rich players, who have sunk their hours into the gameplay, and that's really why people claim it's unfair. City Life posts their donations for the month, so people can see how much they need, and it's not like people constantly donate. I don't feel it's out of order to have a need to do it, while most groups would refuse such a notion, investments have been made to ensure solid gameplay, and that is not usually the case for other groups, who buy into budget systems so the founders or hardcore people can just eat the cost, to assure its availability, obviously with occasional hiccups the counter due to the lack of initial investment. Most people are not in a situation to offer high availability due to lack of funds, and despite the fact BIS provides us a framework to develop for, it likes to in Scorpio fashion dictate something that is unenforcable. BIS ignores the fact that a good server is hard to come by, and has largely ignored RPGs by its lack of action to provide proper functions that would aid the development for such, if all the strange database-addon projects are an indication of a need, BIS refuses to fulfill. Even if games are scripted, does not make the games any less valuable, or cost-intensive as a box-standard one, and thinking that they run on pixie dust should only be left to those who believe in unicorns, or that politicians are inherently of good intent. Money-grabbing is not what this is about, it's about balance, and that is what most people are truly concerned about, bar a few people here with their own opinions, which are largely unfounded. RP-Mods and HGS in turn have not been financially competent for years now, and constantly has to plea to the plebs, using threats in an attempt to get the funds, that there will be a shutdown. This is counter-productive, and scares away users. Planning ahead is necessary if you want to be successful. You can't depend on the goodness of people alone to survive with all the competition. Either you narrow your costs so you can out of your own heart foot the bill, make reasonable investments in technology and in time to ensure your mission is playable, has little downtime, or you will go the way of the dodo.
  15. Hey all, if you have any questions, you can visit our site, or I'll eventually get back to answering here. Known missing features: Emissions Taxes, Bombs, Nitro/Armor, Cameras, and Administration GUI. Contributing: If you'd like to contribute, learn version control if you haven't already, write up a patch, submit it directly to sparcdr [at] arma-rp.com, fork the tree if you end up changing too much, or ask for write access once you prove your fix/feature works. DVCS remote branching (Mostly git people would chose this) may also be in order if you prefer that. I track development on hg, and port the changes back to git normally, since I've been using hg from the beginning. Credits: I'd like for any person or community using the code to at least give credit as stated in the README, thanks. Either keep in the introduction, put in the diary, put on site somewhere, or any combination. Playing the mission: Also, we host a playable server, filter ARMA-RP or use arma-rp.com as the remote host. No addons, just CO 1.60. About statsave: Our hosted version has a statsave script written in Perl, but it's not parsed in real-time, just with #shutdown on a watchdog, which is provided on the thread (The watchdog).. I've used pskill from SysInternals (MS) for resolving file locking on HUP on Windows, which is omitted but comes before the arma2oaserver bit, then run the script. We host on Linux still, and only have modified the stock BIS arma2server shellscript so that it pulls from hg. Some of the code is there, but if you want to write your own server-side, it uses tagging to find lines, makes a big array (Collection) of the lines read via FIFO, iterates, storing the frontmost line, strips the superfluous characters. You'll have to deal with arma engine line limits for debug output (2048 chars), by using something like if (_line call RPM_str_Length >= 2047) then {...}; or explicitly create arrays for groups of data so the output can be iterated, normally avoiding the format issue. The script loops around matching an end tag from the start so it reads-to the contents until. _somearr = ["test", "hello"]; _otherarr = ["other", "stuff"]; _bigarr = _somearr + _otherarr; Arrays internally are only limited by 32-bit dimensions, so you're free to have any size short of ridiculous so long as your output is hit with a big hammer. hint localize "--start"; hint localize "someparsedarr = ["; for[{_i = 0}, {_i < count(_bigarr)}, {_i = _i + 1}] do { if (((format["%1", _bigarr select _i]) call RPM_str_Length) <= 2047) then { hint localize format["%1", _bigarr select _i]; }; }; hint localize "];"; hint localize "--end"; Then write the parser so it matches output from right of "--start" to before "--end", stripping unnecessary [, ], or ;'s with your scripting language's substring or equivalent. (Using length of line to focus the trim operation) I've been throwing around ideas about how to use jayarma2lib for real-time saving, and you can help out the folks at the arma2-mysql devheaven project if you want to go that direction. Concurrency: The mission has only been tested with loads up to say a dozen players, but if you host more with success, I'd like to know, since there's a fair share of data sent for all the various subsystems. If you can improve this, see Contributing above.
  16. sparcdr

    Vehicle towing script

    It says: 4 - static (bool as in true/false) - tracking positions as it would seem. nil means undescribed (n/a) / void. PS: What's the proper way of "attach to" via vehicle init or script for a specific unit? The scripts scan for targets, when I don't want the action, it needs to be automatic.
  17. Fixed, have to use http://community.bistudio.com/wiki/addWeaponCargoGlobal Nothing was wrong it just wasn't synchronized. if ((_type == 0) or (_type == 1)) then { _box = call RPM_GetShopBox; if (!(isNull(_box))) then { _class = [_item] call RPM_GetItemClass; if (_type == 0) then { _box addWeaponCargoGlobal[_class, _amount]; }; if (_type == 1) then { _box addMagazineCargoGlobal[_class, _amount]; }; _additem = true; }; };
  18. When I add weapons to a box, I cannot take them out. I've tried sending a broadcast of the addWeaponCargo command, using local and network-aware boxes, but only the ammunition can be taken out when running as a dedicated server. I've had the issue on both a locally running dedicated server (Windows) and on my remote (Linux). _box addWeaponCargo [_class,_amount]; add_weapon = [_box, _class]; publicVariable "add_weapon"; Where I've tried the classes for MakarovPM and Revolver, and they both show up in the box.
  19. Good progress, saves me from stabbing random objects normally. Formatting needs work still, finding coupled {} w/wo ;'s is especially grinding on my psyche. Performance is problematic when the program hits syntaxtically unclean files. The parser also has failings when parsing over format'd textual instances. Specifically, a redundant space or tab is not cleanly detected in a format[''];'d statement, nor can be semicolons. Having a file parsed with a format'd problem causes a tree->leaf going parse problem which hides globals and causes all files to fail to be able to have their locals declared as private. I do some work for RP-Mods, and her'e an excerpt from a line you'd probably seen: (format["[" "KilledCiv" ", %1, " "%2""] spawn Isse_AddCrimeLogEntry; if (%1 in civarray)then{if(!(" "murder"" in %1_reason))then{%1_reason = %1_reason + [" "murder""]}; kopfgeld_%1 = kopfgeld_%1 + 30000};", player,_killer]) call broadcast; Triggers "Missing element after comma" and a cyclic recursive failure to interpret (Like ANSI C would) thereafter despite it being the only true issue. (Missing comma, missing element, after, expecting, etc) attempts should be made to see if the next element regardless of the problematic line is functionally accurate in the ARMA scope instead of reverting to as I said cyclic recursion or par deforma trickle down problems. Not under every circumstance will the parser fail, but let's just say a few should cause it.. Through a few missing quotes, malformated formats, it'll happen. I have a munged file loaded, this causes it to complain of variable being undeclared (corrupt, blah) but no suggestion or attempt is made to let the user or parser suggest privatizing, despite an individual file elsewhere in the project being clean except for missing it's privates, no puns intended. Math-oriented functions don't correctly diagnose evaluation problems. Normally math issues are like the logic, left to right as are Latin-deriving speakers is how we think, thus moving further through the line, a multiplication or division of a variable suggests precedence also from left to right, where items encapsulated in parenthesis are explicitly acted upon after the last parenthesis, a syntax issue, but a functionally correct interpretation most of us have. if ((cos(this)*that)==hai) is fairly common - James
  20. sparcdr

    JayArma2Lib

    Works again, thanks Jaynus!
  21. sparcdr

    JayArma2Lib

    The one that used to be at the bottom?
  22. sparcdr

    JayArma2Lib

    Doesn't seem to work on 1.57.56.815 or 1.57.0.777777 (Steam user) The jaylib logfile claims it successfully patched, but the dsound.dll isn't locked, and the overlay doesn't appear for either version. I've tried the latest beta as well to no avail.
  23. If I wanted to add debugging so I was to print an array out to the RPT how would this be accomplished? I've tried: call compile format["%1 = %2", mainarray, debugstring]; localize debugstring; With a scalar bool array string error as a result.
  24. Was told the answer elsewhere: hint localize ("array = " + str(array));
  25. sparcdr

    ArmA II Under Cedega & Wine?

    Wine is still missing necessary stubs to mimic windows function calls, including some especially in the area of D3DEx and as noted Shader/Texture conversion to GL format for X11 usage. http://bugs2.winehq.org/attachment.cgi?id=23265 D2D is the principle reason for DRM issues as the Steam version yet is less invasive given the track record. If there's no paul.dll file in your ARMA root it probably isn't securom and could rather be Starforce or more commonly Tages.
×