Jump to content
Sign in to follow this  
spitfire007

Mission file being ripped off and passed as their own - obfiscator wanted. Will Pay !

Recommended Posts

Anyway, I might as well post that here. I worked on a system a few months ago that would transfer files from server to client. I called it scriptVault. It's "done" but there's an issue somewhere, and I believe my lack of using rpt's is causing me to not be able to find the problem.

Basically, the files are transferred by the server to each client and then compiled (client does the compiling). In the same way BIS's functions all begin with "BIS_fnc_", scriptVault's functions all begin with "SVS_"(script vault script). However, like I said, there's a problem somewhere and it's not working. Perhaps you can debug it:

Download

EDIT: SV also does automatic file chunking(server) and rebuilding(client) to help cut down on network traffic

Share this post


Link to post
Share on other sites
Anyway, I might as well post that here. I worked on a system a few months ago that would transfer files from server to client. I called it scriptVault. It's "done" but there's an issue somewhere, and I believe my lack of using rpt's is causing me to not be able to find the problem.

Basically, the files are transferred by the server to each client and then compiled (client does the compiling). In the same way BIS's functions all begin with "BIS_fnc_", scriptVault's functions all begin with "SVS_"(script vault script). However, like I said, there's a problem somewhere and it's not working. Perhaps you can debug it:

Download

Are you around on skriptorchat channel later? This looks interesting and would like to have a chat about it.

Share this post


Link to post
Share on other sites
Are you around on skriptorchat channel later? This looks interesting and would like to have a chat about it.

I haven't been for about 2 weeks now. My connection is pretty spotty right now [mutters something about ISP's]. But we can talk all about it through PM, of course. That way is better for me at the moment as I can respond whenever I really get a chance

Share this post


Link to post
Share on other sites

I share your hatred of ISP's - got quoted £130 to get connected but our new neighbours are our friends so we're going to piggyback their amazing connection and contribute to their monthly bill.

PM's cool though - I'll have a look at the code now and be in touch later :)

Share this post


Link to post
Share on other sites
Can you give example how it works for you? On player connected id is quite large number where as owner id is 2, 3, 4 etc

In onPlayerConnected _this select 0 works with publicVariableClient

---------- Post added at 11:16 ---------- Previous post was at 11:12 ----------

Mistake again... _id, not _this select 0

Share this post


Link to post
Share on other sites
I think I would have noticed if I had a computer inside me tyvm :P

Haha... they do make them pretty small these days though...

Share this post


Link to post
Share on other sites

Every piece of code we have has been a copy or an improvement over someone elses work going back well over 10 years to OFP days

One of the greatest attributes we have in this community is the open spirit that the majority of us have.

Getting a server populated and keeping it populated takes a lot of effort and a hell of a lot of backend organisation.

Front end wise you need good admins, good admin coverage, little if any tolerance to idiots and well organised gameplay. That is how to beat the other servers that run similar content to yourself

Edited by Terox

Share this post


Link to post
Share on other sites
In onPlayerConnected _this select 0 works with publicVariableClient

---------- Post added at 11:16 ---------- Previous post was at 11:12 ----------

Mistake again... _id, not _this select 0

you mean

onplayerconnected {

_id publicvariableclient "whatevr";

};

works?

I actually just tested out of curiousity, since Arma is full of surprises. It doesn't work.

Edited by Killzone_Kid

Share this post


Link to post
Share on other sites
you mean

onplayerconnected {

_id publicvariableclient "whatevr";

};

works?

I actually just tested out of curiousity, since Arma is full of surprises. It doesn't work.

I have a mission where it works.

onPlayerConnected "[_id, _name] execVM ""PlayerConnected.sqf""";

and then inside the PlayerConnected.sqf

_id = _this select 0;
_name = _this select 1;

sleep 1;
_id publicVariableClient "GAME_progress";

I remember how I struggled to get this to work, but it works. It comes from my gun game thingy (Im trying to make a gun game that is compatible with any weapon mod or map).

Edited by Ed

Share this post


Link to post
Share on other sites
I have a mission where it works.

onPlayerConnected "[_id, _name] execVM ""PlayerConnected.sqf""";

and then inside the PlayerConnected.sqf

_id = _this select 0;
_name = _this select 1;

sleep 1;
_id publicVariableClient "GAME_progress";

I remember how I struggled to get this to work, but it works. It comes from my gun game thingy (Im trying to make a gun game that is compatible with any weapon mod or map).

Nope, can't make it work, tried everything. Are you by any chance running this on hosted server?

Share this post


Link to post
Share on other sites
Nope, can't make it work, tried everything. Are you by any chance running this on hosted server?

Im not hosting this, but other people are. gungame.clanservers.com:2302

The onPlayerConnected is in my init.sqf line 19

Share this post


Link to post
Share on other sites

onPlayerConnected's _id is dpnid which is not the same as network identity's playerid that owner command returns. Host's dpnid is always 2 which is equal to server's playerid being 2 but these are two completely different entities.

Share this post


Link to post
Share on other sites

About your server hosting challenge. Looks like you want full dedicated server not shared box right?

If so then yeah your not going to find a cheap rental solution. If your willing to spend that kind of cash then I suggest you did what i did at one time. Save the money you were going to spend on the monthly for a few months or however long it takes you. Then buy your own used box or blade. Look into SuperMicro servers they support IPMI. Set up your OS, IPMI, Image your system to secondary Hard drive without game installed. Also keep copy of needed game files on secondary HD. Make several inquiries, phone calls/email to collocation centers in OZ land. Request to rent only, rackspace, cooling, electricity and bandwidth for your box with no tech support except initial installation like setting IP's for your IPMI and main IP.

Last thing, install the game.

Then you can totally manage and tech it yourself via IPMI and even perform a re-image if need. As a backup collocation centers often want an OS or image of OS on CD/DVD in case you do need their help. They will only charge you an hourly/ or task rate.

Much cheaper, more control, and better money spent on Server hosting.

Had a sweet deal in USA Atlanta for 50 bucks a month including dedicated 10up/10down megabit , with unlimited data, Connection was limited to 100 mb. peak. Only got charged for bandwidth overages if more then 1% of average bandwidth of 10mb was exceeded. It never happened.

Only required their assistance after that once and it costed me 35$

Had a server with Linux Ubuntu Server as OS. I used a a free (as all linux) software firewall. Worked brilliantly. never got hacked or virused. Purred like a kitten. Had 60 player on at most a few times with bandwidth to spare at the end of the month.

Oh and the beauty of it all was that we could run 4 game servers at once cuz Arma server binary only utilized 2 cores and box had 8 total..

Edited by Jigsor

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×