sickboy 13 Posted December 27, 2006 Welcome to the 6th Sense ArmA Network Services “Lite†by Sickboy (sb_at_6thSense.eu) This scripting package is a (very)basic implementation of a solution for executing code sent over the network. Basicly, you can execute code on all clients, on only the server or on all clients+server. Idea based on the CoC Network Services for OFP. Links: [*]6thSense.eu NS-Lite Wiki <span style='color:red'>As of now, all information (incl. Downloads) regarding 6thSense.eu is to be found in our: [*]6th Sense Community Wiki [*]ArmA Trac/Wiki Development Area</span> Share this post Link to post Share on other sites
[aps]gnat 28 Posted December 27, 2006 Looks handy thanks SB tar Share this post Link to post Share on other sites
sickboy 13 Posted December 27, 2006 Gnat @ Dec. 27 2006,12:48)]Looks handy thanks SB tar Thanks m8, you should try it together with the debug console by GAIA, altough i'm using that one integrated into my missions instead of as an addon, to make it work in MP... You got much power at your fingertips to do various tasks, test, debug, check variables on multiple clients etc. etc. Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted December 27, 2006 That looks like it will be very handy. Good job man. Share this post Link to post Share on other sites
foobee 0 Posted December 27, 2006 Thanks Sickboy, nice scripts ! I noticed that you use while(true) infinite loops as listeners, you might want to read this topic about such loops ending after 10k cycles. Very informative topic by the way... Keep up the great work! Cheers Share this post Link to post Share on other sites
sickboy 13 Posted December 28, 2006 ... Thanks for the tip m8, I was aware of it but was waiting for a proper solution. For now that seems to be a while in a while I hereby present to you v0.2! First post is updated. Mind you, this new version comes with an init.SQF and not init.SQS, please make sure you switch accordingly or convert my init to yours Share this post Link to post Share on other sites
nubbin77 0 Posted December 29, 2006 Holy crap, I've been trying to get the mapclick script to work all night. I must be dense but I get an error after I am asked to click on the map where I want the designated group to move. for my unit I put this in the initialization <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">thisaddaction ["Move GW1", "scripts\mapclick.sqf",[destination,[GW1]]]; I name the leader of the group I want to move GW1 (I've also tried naming the group, like this: GW1 = group this) The action comes up fine, then when I execute the action it asks where me to click on the map where I want to move the unit then I do. Then I get an error at the top (scalar bool... _pos) and such.. The only function that has _pos in it is FNdomove.sqf I've even tried simplifiying the functions since I don't need an array of units (I was going to have a different action or eventually radio command for each group). getting desperate I tried stuff like this in that function: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">/////////////////////////////////////////////////////////// // ArmA - fnDomove.sqf v0.1 - By Sickboy (sb_at_6thSense.eu) // Call with [position,[leader1,leader2,leader3,leader4...]] /////////////////////////////////////////////////////////// private ["_pos","_unit"]; _pos = _this select 0; _unit = _this select 1; {_unit domove _pos}; disregard my feable attempt to get this thing to work, but right now I am unable to follow your instructions to get this sucker working? Any ideas? Share this post Link to post Share on other sites
sickboy 13 Posted December 29, 2006 ... Heya, You say you used this line for the action: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">thisaddaction ["Move GW1", "scripts\mapclick.sqf",[destination,[GW1]]]; destination is supposed to be 0, as it describes the destination of the networked command, 0 = server, 1 = clients, 2 = server + clients. I added this so you could easily create a client and server part in the doMove function that for example would execute the move on the server, but the clients will give a hint or sidechat etc... Possiblities are endless If you exchange the word destination to one of the numbers, it should be fine. I'm sorry for the 'destination' confusion btw... I used 'destination' in the netsend command, so I wanted to keep it uniformal and keep it 'destination' at this function aswell, but that's a bit confusing for a move command BTW, I made it an action instead of a radio command, as radio commands are activated on all the machines at the same time. And I don't remember at the moment how to narrow it down that only the player clicking it, will activate it ... altough in 1 group missions, you could of coarse simply make a if((player==leader player)) then { ... }; In OFP I just gave 1 radio in the map and the one carrying it would be able to do the radio commands Goodluck m8! Share this post Link to post Share on other sites
nubbin77 0 Posted December 29, 2006 Thanks Sickboy. That makes sense. I couldn't figure out where the "destination" variable would be used. I kept saying to myself, "how the hell does it know where the "destination is without it being part of the mapclick function..." I'm still having trouble following functions over scripts. I don't know what it is but the old scripts just seemed to follow a more logical path. I am trying my best to follow these functions. I guess it will come with time. Share this post Link to post Share on other sites
sickboy 13 Posted December 29, 2006 ... Check the readme, last 3 pages I wrote full with explainations, tips, examples etc Functions are usually used to do something very specific, like making calculations and returning results etc, but sometimes aswell to execute something which might change some variables etc, before the script continues executing, with possibly updated values due to the function call... etc. etc. A few of my functions could've been written in scripts instead of functions, but I choose to make them functions anyway, as they can be used for more tasks and in more different situations than I've used them currently in. Share this post Link to post Share on other sites
fasad 1 Posted May 2, 2007 Is this still available? I cannot find any way to download it other than inside map_misc.pbo Share this post Link to post Share on other sites
maddogx 13 Posted May 2, 2007 Instead of while in a while loops, try: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> for [{_loop=0},{_loop>=0},{_loop=_loop}] do { }; Share this post Link to post Share on other sites
t_d 47 Posted May 3, 2007 The 10000 cycle limit is gone since 1.05, so one while is enough. Share this post Link to post Share on other sites
mattxr 9 Posted May 3, 2007 LOL Sickboy, see i wasnt the only one who got confused with that desination part ^,^ Anyways Good Work Share this post Link to post Share on other sites
sickboy 13 Posted May 24, 2007 Sorry for the late reply lads... damn I hate expiring Thread Subscriptions As requested, a standalone version of NS-Lite, though not-tested, will do that in the next days, but if you guys can report me back if it's working fine, that would be cool too! [*]v1.07+ Compatible-only due to new: isServer function [*]Removed the while-in-while loop as it's not needed anymore, ty for the for-loop example, but also not needed [*]I added a shitload of functions and stuff from the 6thSenseMod Base, aswell used in the AI-Manager Project! http://dl2.6thsense.eu/arma/6th-NS_Lite_v0.3beta.rar Documentation updates follow soon! Share this post Link to post Share on other sites
sickboy 13 Posted May 27, 2007 Released v0.4 with Demo Mission (though basic ): [*] Added six_fTxRadio and fRxRadio (Thanks to Vipermaul for giving me the idea! [*] Added 1 Demo Mission simply displaying the application of the six_fTxRadio function Documentation updated aswell: http://trac.6thsense.eu:800/arma/trac/wiki/6thSense.eu%20NS-Lite Enjoy fellows... Share this post Link to post Share on other sites
mr.peanut 1 Posted August 26, 2007 Wiki broken permanently? Share this post Link to post Share on other sites
.kju 3245 Posted August 26, 2007 i guess not. sickboy isnt available these days it seems. just a little patience. Share this post Link to post Share on other sites
mr.peanut 1 Posted August 28, 2007 Not only that, but even after registering it is not possible to download NS Lite from 6th Sense. Share this post Link to post Share on other sites