Forum Jump :

Author Message

uno  



Posts: 2
Rank:


Level: Member

Country: 00
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2014-11-17 09:56        
     
Hello every one,

I was lurking in this forum for quite long now. went into the light to ask a question. I made a mission for closed community where we play as guerrilla force in occupied area. First mission was quite a success, we got our hands on some gear and vics. I thought I can make second mission sequel by placing looted gear in game with editor/zeus/mcc (screen shot all vics and loot box content), but his is hell of a job...
So the question is, is there a way to register what was put into the specific box and make it persistent for my next mission?

I beleve it should look like this:
1. everyone dies/logs of server checks specific box for its content
2. registers content in it and makes the loot list
3. for the next mission i add string line in the box to load that gear again
4. drink beer with mah palls

I have found iniDBI but that looks too complicated for me. I believe there is much simpler way to do that...

I have very limited knowledge of scripting, yet I made a great progress and willing to move forward.

Thank you for your time.

This post was edited by uno (2014-11-17 10:14, ago)


Author Message

Tajin  



Posts: 433
Rank:


Level: Member

Country: de
Location: Bavaria
Occupation: Communications Designer
Age: 35
In-game name: Tajin

 
#2 Posted at 2014-11-17 10:26        
     
Believe it or not, but iniDBi is actually very simple in comparison. ;)

Anyway, it happens that we played a "guerilla" campaign on our server too, among others.
I've made a mission-template that allows me to create/load campaigns by name. Once a campaign is loaded, you can save specific containers/vehicles and when you play the next part of the campaign you can place those objects again. (player gear is also stored separately for each campaign)

It's been a while since we last used that and is also built to work with a bunch of mods. So it would have to be stripped of that and updated.
I'm afraid doing that might be a bit of a large step if you're not confident in your scripting skills yet.



I guess I'll take care of that myself and release that as template to the public.
However, I'm already working on a few other projects with higher priority, so it might take a while.

There are a lot of very capable people on this forum, willing to spend some of their time to help you out. So if you have a problem, it surely isn't too much to ask that you atleast take the time to describe it properly. Thanks.

Advertisement


Author Message

uno  



Posts: 2
Rank:


Level: Member

Country: 00
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2014-11-17 10:30        
     
Thank you for your fast reply. I think Ill give a iniDBi second try.

This post was edited by uno (2014-11-17 10:38, ago)


Author Message

Tajin  



Posts: 433
Rank:


Level: Member

Country: de
Location: Bavaria
Occupation: Communications Designer
Age: 35
In-game name: Tajin

 
#4 Posted at 2014-11-17 10:36        
     
Here are two simplified examples, for loading and saving data with iniDBi:

Save _contents
["filename", "mybox", "contents", _contents] call iniDB_write;

Load _contents
_contents = ["filename", "mybox", "contents", "ARRAY"] call iniDB_read;

There are a lot of very capable people on this forum, willing to spend some of their time to help you out. So if you have a problem, it surely isn't too much to ask that you atleast take the time to describe it properly. Thanks.