Page 4 of 30 FirstFirst 1234567814 ... LastLast
Results 31 to 40 of 294

  Click here to go to the first Developer post in this thread.  

Thread: Arma2NET

  1. #31
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    137
    Author of the Thread
    I have started playing around with SQL Server Compact Edition and have managed to get database insertion/retrieval working from Arma 2 as a proof of concept. So we could use this to store player data when they leave and then retrieve it when the player rejoins for a bit of MP persistence.

    Code:
    _n = ("Arma2net.Unmanaged" callExtension "MPDatabase ['Insert', 'Scott', 1, 2, 3, 'Radio', '1 mag', 'akm']")
    hint ("Arma2Net.Unmanaged" callExtension "MPDatabase ['Select', 'Scott']")
    hints ["Scott", 1, 2, 3, "Radio", "1 mag", "akm"]

  2. #32
    Quote Originally Posted by Scott_NZ View Post
    I have started playing around with SQL Server Compact Edition and have managed to get database insertion/retrieval working from Arma 2 as a proof of concept. So we could use this to store player data when they leave and then retrieve it when the player rejoins for a bit of MP persistence.

    Code:
    _n = ("Arma2net.Unmanaged" callExtension "MPDatabase ['Insert', 'Scott', 1, 2, 3, 'Radio', '1 mag', 'akm']")
    hint ("Arma2Net.Unmanaged" callExtension "MPDatabase ['Select', 'Scott']")
    hints ["Scott", 1, 2, 3, "Radio", "1 mag", "akm"]
    Wow - that is very cool indeed! Where does it store the connection string?
    Jedra's Addons
    Arma 2 : Enhanced Skills Slider
    Take On Helicopters : Take On Taxi | Jedra's Time Trials | Weapon Indicators | No Radar

  3. #33
    good work.
    altho. take care of little bobby. we dont want him to drop anything

    -- BEC, Battleye Extended Controls --
    -- BEC Forum Thread --

    Spoiler:

  4. #34
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    137
    Author of the Thread
    I'm thinking of storing the connection string in a text file. And Bobby is taken care of, I'm using prepared commands.

  5. #35
    Very nice Scott

    I had one more idea - maybe you can give an estimate if it would work and make sense:
    There is something we call AIO/All In One config. It is basically a memory dump of the config space currently active.
    More see: http://forums.bistudio.com/showthrea...llInOne-config

    Currently there are two ways:
    1) Dump to rpt
    2) Write to clipboard

    The later is faster, yet requires user input, while one wants to have the processes automated (via autotest).
    The former needs so adjustments in the formatting due the limit of the rpt and noise present in the rpt.

    What do you think?

  6. #36
    To get AIO to dump into a database would be fantastic - it would also be something useful to Sickboy for the online config browser - might cut out quite a few conversion steps for him.

  7. #37
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    137
    Author of the Thread
    It would work, but I'm not really sure what you're after here, you'll have to elaborate :P

  8. #38
    a) Directly write strings from the game to an external file.
    b) Possible speed benefit.
    c) Easier to post process the result.
    d) Easier to add a pipeline afterwards to do further tasks.

    Does that help?

  9. #39
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    137
    Author of the Thread
    Yeah that would be a good and simple task. I'll write a plugin and then sign it using Arma2NET's key so it'll be able to write to the host PC without the sandboxing interfering.

    Edit: Something like this?

    Code:
    using System.AddIn;
    using System.IO;
    using System.Reflection;
    using AddInView;
    
    namespace WriteToFilePlugin
    {
        [AddIn("WriteToFile")]
        public class WriteToFile : Arma2NetAddIn
        {
            public override string Run(string args)
            {
                File.WriteAllText(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "WriteToFile.txt"), args);
                return null;
            }
        }
    }
    Writes a file named WriteToFile.txt to the plugin's folder. Called like:
    Code:
    _blah = ("Arma2Net.Unmanaged" callExtension "WriteToFile blah")
    If you'd like to test it, I uploaded it to https://bitbucket.org/Scott_NZ/arma2...FilePlugin.dll
    Simply create a folder named "WriteToFilePlugin" inside the AddIns folder and pop the dll in there.
    Last edited by Scott_NZ; Mar 15 2012 at 09:50.

  10. #40
    Sergeant
    Join Date
    May 11 2011
    Location
    Christchurch, New Zealand
    Posts
    137
    Author of the Thread
    I have written some more documentation about some of the 1.2 changes, the explicit plugin/CLR activation and the SQF generator.
    https://bitbucket.org/Scott_NZ/arma2net/wiki/Activation#!activation
    https://bitbucket.org/Scott_NZ/arma2...qf_expressions

Page 4 of 30 FirstFirst 1234567814 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •