Jump to content

Hoplox

Member
  • Posts

    107
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Hoplox

  1. Another cinematic camera script :)

    Again this is a very simple script to implement and the camera zooms out on death.

    Spoiler

     

    If you do not already have a custom player_death.sqf called from your custom compiles.sqf, Do this by unpacking the dayz_code.pbo inside the @Dayz_Epoch folder and search for "Player_death.sqf" excluding quotation marks. Copy this somewhere into your mission e.g Epoch_11.Chenarus etc.. file. After doing this, call your player_death.sqf by adding

    
    player_death = compile preprocessFileLineNumbers "PATH\player_death.sqf";

    Into your compiles.sqf, make sure you alter it so the path is correct.

     

    //Callous Gaming Death Camera
    _body spawn {
    	"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.1],  [1, 1, 1, 0.0]];
    	"colorCorrections" ppEffectCommit 0;
    	"dynamicBlur" ppEffectEnable true;
    	"dynamicBlur" ppEffectAdjust [2]; 
    	"dynamicBlur" ppEffectCommit 0;
    	showCinemaBorder true;
    	camUseNVG false;
    	playSound "heartbeat_1";
    	CG_CAM = "camera" camCreate [(getPosATL _this select 0), (getPosATL _this select 1),(getPosATL _this select 2)+4];
    	CG_CAM cameraEffect ["internal","back"];
    	
    	CG_CAM camSetFOV 2;
    	CG_CAM camSetTarget (vehicle _this);
    	CG_CAM camCommit 0;
    	waitUntil {camCommitted CG_CAM};
    	sleep 3;
    	CG_CAM camSetTarget [(getPosATL _this select 0), (getPosATL _this select 1),(getPosATL _this select 2)+800];
    	CG_CAM camSetRelPos [0,5,0];
    	CG_CAM camCommit 80;
    };

    Copy and paste this into your player_death.sqf

    Make sure it is pasted below the following two lines:

    PVDZE_plr_Died = [dayz_characterID,0,_body,_playerID,_infected, dayz_playerName];
    publicVariableServer "PVDZE_plr_Died";

    After doing this load up your server and test in-game :)

    Feel free to criticize or like if this helped you!

    -Hoplox, Thanks for reading!

  2. 3 minutes ago, DangerRuss said:

    The new error
     

    
    ---------------------------
    Error
    ---------------------------
    SQL Error (1235): This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table'
    ---------------------------
    OK   
    ---------------------------

     

    You may already have this trigger in your database. If so, look for this line:

    (NEW.PlayerUID, NEW.PlayerName, 100000, NOW())

    and change the 100000 to any value of your choice.

  3. 1 minute ago, creativv said:

    It is not about the Trigger it's open source on epochmod .

    My friend joined his server and my friend was allowed to use my server files .

    Since this kid wants all the donations coming to him he has locked my friend out of his own server files and is now posting stuff from my mission files wich is all open source btw before even checking if it is already something on epochmod .

     

    .... He has access to the github.... He can access his files anytime. There's no need to make such a fuss.. ^^

  4. 1 minute ago, Buck0 said:

    Why are you guys bickering over stupid shit, anyone who was already using that fix and has half a brain knows chaning that value adds a starting ammount.

     

    What difference does it make crediting people who wrote that ages ago, half of them have been banned and removed from these forums anyway.

     

    Seriously kids you all go thru eachothers pbos amd thats why theres nothing new around and all the servers are the same

     

    Lol

    Yeah... It's really simple stuff.. If you really want me to take down this post Creativv i will. :)

  5. 1 minute ago, creativv said:

    Shawn says no , now take the time you spend on acting you are reinventing mods to fix your coin duping issue's on your server .

    And please let shawn take my servers files of your dedicated box before you abuse them even more i gave those files to shawn not you .

    Excuse me? If shawn has a problem, he can talk to me. I'm sure he doesn't need someone else to tell me what he wants. No need to be salty man lmao...

  6. 27 minutes ago, DangerRuss said:
    
    ---------------------------
    Error
    ---------------------------
    SQL Error (1054): Unknown column 'NEW.PlayerUID' in 'field list'
    ---------------------------
    OK   
    ---------------------------

     

    Try this instead:

    CREATE TRIGGER `bankingIssueFix` AFTER INSERT ON `player_data`
     FOR EACH ROW INSERT INTO banking_data
    ( PlayerUID, PlayerName, BankSaldo,  LastUpdated)
    VALUES
    (NEW.PlayerUID, NEW.PlayerName, 100000, NOW())

     

  7. A very simple trigger to add a certain amount of money into a players bank when they join!

    Requirements:

    Access to MYSQL Database.

    Single Currency 2.0

    CREATE TRIGGER `StartingMoney` AFTER INSERT ON `player_data`
     FOR EACH ROW INSERT INTO banking_data
    ( PlayerUID, PlayerName, BankSaldo,  LastUpdated)
    VALUES
    (NEW.PlayerUID, NEW.PlayerName, 100000, NOW())

    Select your database and insert this code by pasting it into your query and running it.

    Now everytime a new player joins your server, 100k should be added to their bank account.

    You can change the 100000 to any amount you wish.

    Please like if this helped you out!

    -Hoplox, Thanks taking a look.

    -Credit to Rocu

     

  8. Well, this is my first script post. Been using this on my server; Just makes a nicer entrance when you load in and spawn. I believe this has been posted but no instructions for how to use it with ESSV2.

    _welcomeMessage = format["Welcome to [Your server name here], %1, Enjoy your stay!",format["%1", name player]];
    _camDistance = 75;
     
    waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
    
    showCinemaBorder true;
    camUseNVG false;
     
    _camera = "camera" camCreate [(position player select 0)-2, position player select 1,(position player select 2)+_camDistance];
    _camera cameraEffect ["internal","back"];
     
    _camera camSetFOV 2.000;
    _camera camCommit 0;
    waitUntil {camCommitted _camera};
     
    _camera camSetTarget vehicle player;
    _camera camSetRelPos [0,0,5];
    _camera camCommit 8;
     
    cutText [_welcomeMessage, "PLAIN DOWN"];
     
    waitUntil {camCommitted _camera};
     
    _camera cameraEffect ["terminate","back"];
    camDestroy _camera;

    if you use ESSV2, place the code at the bottom of start.sqf and save.

    You can play around with the camera settings to suit your preferances.

    Feel free to be critical and point out any problems :)

    If this helped you please like!

    -Hoplox, Thanks for having a look :)

    -Credits to JuanDayz and his original post 

     

  9. 8 hours ago, ViseVersa said:

    Hi,

    so the following may sound a bit cruel, but i hope you`ll understand. At the Moment i`m working on a Headless Client Library (.dll) written in C++. The core Function of it is to join in the correct Slot, Monitor the Process of the HeadlessClient and restart it, if necessary. It also supports some main Features, such as customizable scripts, which you can define in the config File. It also logs all it`s actions to a .txt File.

    So basically you start the Server and the Library does all the rest. It will monitor and wait for the server to fully load and then start loading the HC. The Start Parameters can be set in the config File. I am not very far yet, as i only just started doing it a few days ago, but i`m getting on well so far. The thing is, i am currently creating a new kind of server, with custom hard coded Missions and stuff where i would like to bring an actual survival aspect to the game without missing the feature of building something. For this purpose only i`m writing the Library and i wouldn`t want to give it away just like that, but with a smal donation i`ll make you a copy that will suit your needs once im done - i won`t provide any source code.

     

    The reason i`m not giving it away is because i had a server before and all my scripts got stolen and published, even gtxgaming stole quite some scripts - which is why from now on i will use only dedicated root servers and i won`t give away anything for free no more.

     

    Add me on steam and i'm sure we can come to a deal. My server is hosted on a dedicated server box anyways. :) http://steamcommunity.com/id/hoplox/

  10. Hello, i'm the current owner of Callous Gaming (www.callousgaming.com) and due to a big influx of players, the server seems to get alot of .rpt errors like:

    16:10:54 NetServer::SendMsg: cannot find channel #1524815965, users.card=23
    16:10:54 NetServer: users.get failed when sending to 1524815965
    16:10:54 Message not sent - error 0, message ID = ffffffff, to 1524815965 (Putin)
    16:10:54 NetServer::SendMsg: cannot find channel #1524815965, users.card=23
    16:10:54 NetServer: users.get failed when sending to 152481596516:12:55 Server: Network message 13399e is pending
    16:12:55 Server: Network message 13399e is pending
    16:12:55 Server: Network message 133a54 is pending
    16:12:55 Server: Network message 133aab is pending
    16:12:55 Server: Network message 133aab is pending
    16:12:55 Server: Network message 133aab is pending
    16:12:55 Server: Network message 133aac is pending
    16:12:55 Server: Network message 133aac is pending
    16:12:55 Server: Network message 133aff is pending
    16:12:55 Server: Network message 133aff is pending
    16:12:55 Server: Network message 133aff is pending
    16:12:55 Server: Network message 133aff is pending
    16:12:55 Server: Network message 133aff is pending
    
    15:53:51 Server: Object 9:3587 not found (message 70)
    15:53:51 Server: Object 9:3588 not found (message 70)
    15:53:51 Server: Object 9:3589 not found (message 70)
    15:53:51 Server: Object 9:3590 not found (message 70)
    15:53:51 Server: Object 9:3591 not found (message 69)

    This is causing a lot of problems for my players as it causes a lot of vehicle/object saving issues and also a "waiting for character to create" message sometimes when players try to join. These problems are negatively impacting my server massively. Here is my currently basic.cfg:  

    MinBandwidth=104857600;
    MaxBandwidth=1073741824;
    MaxMsgSend=256;
    MaxSizeGuaranteed=128;
    MaxSizeNonguaranteed=256;
    MinErrorToSendNear=0.029999999;
    MinErrorToSend=0.003;
    MaxCustomFileSize=0;
    Windowed=0;
    adapter=-1;
    3D_Performance=1;
    Resolution_Bpp=32;
    class sockets
    {
        maxPacketSize=1400;
    };
    language="English";
    Resolution_W=800;
    Resolution_H=600;
    serverLongitude=2;
    serverLatitude=49;
    serverLongitudeAuto=2;
    serverLatitudeAuto=49;
    
    

    I have used various guides and checked many threads across Epochmod.com forums and none of them have found a solution for me. My server is hosted on a dedicated box with the current specs:

    Windows Server 2008

    32GB Ram

    1GB Internet speed

    Intel Xenon E3 1245 V2 3.40 Ghz.

    -Would appreciate if anyone could help me out. Hoplox.

×
×
  • Create New...