Krixes - Self Bloodbag Script

Just downloading and extracting those files will not work. Theres more scripts in that mission and some of the scripts require changes to be made in the dayz_server.pbo

Sigh!!!!!!!!!!

I'm gonna start all over and try again... I'm gonna try to do what you had instructed this time, but you never did answer my question. Where in the init.sqf should I put those "//Load in compiled functions"? According to everything I've read, placement is extremely important.
 
Well... I deleted everything that was in my /dayz_1.chernarus/ folder, extracted your files into my folder, and gave it a whirl. Still no luck. Now I'm getting an error message regarding the loadscreen.jpg (no being found). Even with the missing loadscreen, it appears that it still tries to load, but unfortunately it keeps timing out on me.

I'm discouraged now... I thought that was gonna work...

I've got a hunch that my timeout issue has something to do with the \fixes\variables.sqf or \fixes\publicEH.sqf. Ever since I tried to implement those files, using them instead of the default ones, I haven't been able to join my server. It just times out each and every time. Any thoughts?


////////////////////////////// Load in compiled functions
call compile preprocessFileLineNumbers "fixes\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)

progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "fixes\publicEH.sqf"; //Initilize the publicVariable event handlers

progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "fixes\compiles.sqf";
fnc_usec_selfActions = compile preprocessFileLineNumbers "scripts\fn_selfActions.sqf";
progressLoadingScreen 1.0;
 
Hoo-Rah!!! I finally got it working... :)

I restored my ..\MPMissions\ folder back to the original (default) settings, took a deep breath, soaked in everything that I had read online, and tried it again. Keeping in mind that 'THIS HAS TO BE REALLY SIMPLE", I was finally able to get it working. I kinda feel like an idiot now. LOL But hey! Atleast I got it working... I do want to thank Squadron_2 (from dayzcc.org) and Wookieman for their time, and for putting up with my stupidity. and of coarse Krixes for the actual script(s).

I will post what I did (to get the self-bloodbag feature working) later this evening. Just a hint... Attention to detail is paramount!
 
Hoo-Rah!!! I finally got it working... :)

I restored my ..\MPMissions\ folder back to the original (default) settings, took a deep breath, soaked in everything that I had read online, and tried it again. Keeping in mind that 'THIS HAS TO BE REALLY SIMPLE", I was finally able to get it working. I kinda feel like an idiot now. LOL But hey! Atleast I got it working... I do want to thank Squadron_2 (from dayzcc.org) and Wookieman for their time, and for putting up with my stupidity. and of coarse Krixes for the actual script(s).

I will post what I did (to get the self-bloodbag feature working) later this evening. Just a hint... Attention to detail is paramount!


Glad you got it working, I don't know if you even noticed that I uploaded all the files you needed (with the new init.sqf) in your post on our website. Just an extract and done.
 
Well... I deleted everything that was in my /dayz_1.chernarus/ folder, extracted your files into my folder, and gave it a whirl. Still no luck. Now I'm getting an error message regarding the loadscreen.jpg (no being found). Even with the missing loadscreen, it appears that it still tries to load, but unfortunately it keeps timing out on me.

I'm discouraged now... I thought that was gonna work...
put in a load screen and make sure you have a MySQL or xampp very important and make your own loadscrean.jpg
 
Hoo-Rah!!! I finally got it working... :)

I restored my ..\MPMissions\ folder back to the original (default) settings, took a deep breath, soaked in everything that I had read online, and tried it again. Keeping in mind that 'THIS HAS TO BE REALLY SIMPLE", I was finally able to get it working. I kinda feel like an idiot now. LOL But hey! Atleast I got it working... I do want to thank Squadron_2 (from dayzcc.org) and Wookieman for their time, and for putting up with my stupidity. and of coarse Krixes for the actual script(s).

I will post what I did (to get the self-bloodbag feature working) later this evening. Just a hint... Attention to detail is paramount!


HOW TO INSTALL
*using the standard DayZ Mod 1.8.0.3 and DayZ Control Center 5.9.4.1



STEP 1.) MODIFY THE INIT.SQF FILE
The first thing I did was modify the init.sqf file that resides in my ../MPMissions/ folder. I opened it up and added in the required //LOAD IN COMPILE FUNCTIONS. I placed them right after the include function (#include "\z\addons\dayz_code\system\mission\init.sqf").

// LOAD IN COMPILED FUNCTIONS
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
call compile preprocessFileLineNumbers "custom\compiles.sqf";
fnc_usec_selfActions = compile preprocessFileLineNumbers "scripts\fn_selfActions.sqf";
progressLoadingScreen 1.0;


* Be sure to note the items in red and pay close attention to the folder names.


STEP 2.) CREATE THE NECESSARY FOLDERS
Go into your /MPMissions/ folder and create (2) subfolders; one called 'custom' and another called 'scripts'. Make them all lowercase!!! Do not capitalize the first letter or it will not work...


STEP 3.) CREATE A SIMPLE COMPILES.SQF FILE
Open up notepad, and then copy and pasted the following:

fnc_usec_selfActions = compile preprocessFileLineNumbers "scripts\fn_selfActions.sqf";
// fnc_usec_selfActions - adds custom actions to the dayz code


Save it as compiles.sqf, and then put it in the /custom/ folder you just created.


STEP 4.) EXTRACT THE FN_SELFACTIONS.SQF FILE

NOTE: You will need a .PBO manager to do this step. I used CPBO from Arma Tools. It doesn't have a GUI or anything fancy but it worked great for me...
a.) Using CPBO, go ahead and unpack the dayz_code.pbo.
b.) Copy the fn_selfActions.sqf file that resides in the /dayz_code/compile/ folder
c.) Paste it into the /scripts/ folder you just created.


STEP 5.) MODIFY THE FN_SELFACTIONS.SQF FILE
Using notepad, open up the fn_selfActions.sqf file (the one that is in your /scripts/ folder), and then copy and paste the following lines of code:

// -----------Beginning of Krixes Self Bloodbag-------------------------
_mags = magazines player;

// Krixes Self Bloodbag
if ("ItemBloodbag" in _mags) then {
hasBagItem = true;
} else { hasBagItem = false;};
if((speed player <= 1) && hasBagItem && _canDo) then {
if (s_player_selfBloodbag < 0) then {
s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"scripts\player_selfbloodbag.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_selfBloodbag;
s_player_selfBloodbag = -1;
};
// -----------End of Krixes Self Bloodbag-------------------------------


Paste it immediately after the line that reads:
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);


STEP 6.) DOWNLOAD THE PLAYER_SELFBLOODBAG.SQF FILE
Go here: http://opendayz.net/threads/krixes-self-bloodbag-script.12288/
and download the player_selfbloodbag.sqf file (the link to download it is located at the bottom of the page). Once the file has been downloaded, copy and paste it directly into your /scripts/ folder.


STEP 7.) CUSTOMIZE YOUR SELF-BLOODBAG EXPERIENCE (OPTIONAL)

Using notepad, open up the player_selfbloodbag.sqf file (the one that is now in your /scripts/ folder), and customize the options however you like.
 
Glad you got it working, I don't know if you even noticed that I uploaded all the files you needed (with the new init.sqf) in your post on our website. Just an extract and done.

Thanks Squadron!

When I get a free moment, I'll be sure to head over there and take a look... Thanks again for your time. I do appreciate the help. ;)
 
put in a load screen and make sure you have a MySQL or xampp very important and make your own loadscrean.jpg

Thanks again for your time Wookie. I really do appreciate the help...

I will take a close look at all those files you provided, see if I can make some sense of em', and then try to put em to use. I'd like to continue adding some things. I want to add vehicle strip, smelting, base building, a custom debug monitor, tent heal/sleep, sarge ai, and that menu that allows you to choose a spawn point. I've got a hunch we'll be talkin' again in the future. ;)
 
i just added this above the script!

player removeAction s_player_selfBloodbag;
s_player_selfBloodbag = -1;

So the code looks like this.

Code:
// ---------------------------------------Krixes Self Bloodbag Start------------------------------------
    player removeAction s_player_selfBloodbag;
    s_player_selfBloodbag = -1;
   
   
    _mags = magazines player;
    // Krixes Self Bloodbag
    if ("ItemBloodbag" in _mags) then {
        hasBagItem = true;
    } else { hasBagItem = false;};
    if((speed player <= 1) && hasBagItem && _canDo) then {
        if (s_player_selfBloodbag < 0) then {
            s_player_selfBloodbag = player addaction[("<t color=""#c70000"">" + ("Self Bloodbag") +"</t>"),"Scripts\player_selfbloodbag.sqf","",5,false,true,"", ""];
        };
    } else {
        player removeAction s_player_selfBloodbag;
        s_player_selfBloodbag = -1;
    };

// ---------------------------------------Krixes Self Bloodbag end------------------------------------

worked for me !
 
I know this is the wrong forum section for this question, but...

Has anyone gotten the Self Bloodbag Script and Tent Sleep Script (from Krixes) working on a 1.8.0.3 vanilla server? I have posted a separate thread for my problem (below), but have yet to come up with a solution. Perhaps some extra eyeballs could help. Anyone??

http://opendayz.net/threads/how-to-get-tent-sleep-and-self-bloodbag-working.18442/

Vampire and I are started to think that script is outdated and no longer works. Can anyone confirm this?
 
I know this is the wrong forum section for this question, but...

Has anyone gotten the Self Bloodbag Script and Tent Sleep Script (from Krixes) working on a 1.8.0.3 vanilla server? I have posted a separate thread for my problem (below), but have yet to come up with a solution. Perhaps some extra eyeballs could help. Anyone??

http://opendayz.net/threads/how-to-get-tent-sleep-and-self-bloodbag-working.18442/

Vampire and I are started to think that script is outdated and no longer works. Can anyone confirm this?

Hey,

They both work in epoch 1.0.4.1 i dont know for vanilla?

Greetz
 
try this https://dl.dropboxusercontent.com/u/73434581/dayz_5.chernarus.rar if it does work i hope it does and if it does not im sorry

Hey thanks Wookie!
I finally had an opportunity to explore your .pbo. I set it up so that it uses the default load screen and everything loaded up fine. Once I added the player_sleep.sqf file to the /custom/ folder and added the snoring.ogg file, everything worked great. Self-Bloodbag works. Tent Sleep is now working. and the Strip Vehicles works exactly as I wanted. It's awesome. Good job! Hopefully now I can use your files to figure out where I went wrong.

After some further digging (in your .pbo), I noticed that you have an /addons/ folder with SARGE, SKH_pos, and UPSMON. I'm familiar with Sarge-Ai, but what are the other two. Also, do I have do anything special to get the sarge-ai going?

Thanks again for all your time. I do appreciate it! Keep up the good work! ;)
 
the script stopped working after updating epoch to 1.4.2. the version 1.4.0. he worked. After I take out the files from the dayZ_code (fn_selfActions, compiles) not working traders menu and dont work lock\unlock the machine (full chaos in config of the game)
 
Krixes - Self Bloodbag Script help and discussion goes here
the script stopped working after updating epoch to 1.4.2. the version 1.4.0. he worked. After I take out the files from the dayZ_code (fn_selfActions, compiles) not working traders menu and dont work lock\unlock the machine (full chaos in config of the game)
 
Script works fine on 1.0.4.2. Make sure you are using the latest fn_selfActions.sqf and compiles.sqf!
 
100% I have used this script on all versions of the game, all worked. But now dont work scrips all!!! help please. Could this be due to the fact that I don't update the DB?
 
Hey thanks Wookie! I finally had an opportunity to explore your .pbo. I set it up so that it uses the default load screen and everything loaded up fine. Once I added the player_sleep.sqf file to the /custom/ folder and added the snoring.ogg file, everything worked great. Self-Bloodbag works. Tent Sleep is now working. and the Strip Vehicles works exactly as I wanted. It's awesome. Good job! Hopefully now I can use your files to figure out where I went wrong.

After some further digging (in your .pbo), I noticed that you have an /addons/ folder with SARGE, SKH_pos, and UPSMON. I'm familiar with Sarge-Ai, but what are the other two. Also, do I have do anything special to get the sarge-ai going?

Thanks again for all your time. I do appreciate it! Keep up the good work! ;)


Hey Wookie! I have some problems with my .RPT file. Seems there is an undefined variable called _cantype. There also seems to be a syntax related problem spawn_loot.sqf. Below is a link to my .RPT file. What should I do to resolve this?

http://uppit.com/62bvqrybx1h4/arma2oaserver_1.RPT
 
Back
Top