1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

HL2RP [Release] Datafiles

Discussion in 'Plugins' started by Fruitylicious, Jun 16, 2019.

  1. Github copy and paste:

    [​IMG]
    # Datafiles

    ORIGINAL PLUGIN BY JAMES (iskjames) - PERMISSION FOR RELEASE GRANTED

    _________________________
    INFORMATION
    _________________________

    An edited version I worked on for a community that closed (unfinished).

    Features different from the version by James:
    1. BOL removal fixed.
    2. Employment status config implemented.
    3. Actual datapad items and sweps that switches materials when you use the datafile commands and need to be held in order to use the datafile commands.
    4. CWU and CMU pda for those factions that allows either adding notes or medical notes.
    5. RL and SCN able to use datafile management, restriction and reset commands.
    6. Restriction now restricts datafile to be viewed only by RL and SCN.
    7. A bunch of sharedvars added to use with other plugins.
    8. Fixed some incorrect datastream names.
    9. Transfered datafile SQL information to characters table instead of a whole new datafile table (did this because data transfered between characters if characters were deleted).

    What does the datapad/pda's do?
    1. Combine Datapad gives access to the /datafile, /managedatafile, /restrictdatafile, /scrubdatafile commands.
    2. CWU datapad gives access to a limited version of the /datafile (adding notes) and custom CWU only objectives editable by CWU leader settable by /setcwulead and /removecwulead.
    3. CMU datapad gives access to a limited version of the /datafile (adding medical notes) and custom CMU only objectives editable by CMU leader settable by /setcmulead and /removecmulead.

    _________________________
    SHAREDVARS (playerVars:Number only) -- primarily used for datapad sweps material switching to work properly
    _________________________

    1. LoyaltyPoints
    2. BOL
    3. LoyaltyTier
    4. PlayerIsRestricted
    5. DatafileOpen
    6. ManagementOpen
    7. PlayerObjectivesOpen
    8. PlayerEnterOpen

    _________________________
    UNFINISHED PARTS
    _________________________

    1. Didn't make SQL table creation automatic.
    2. Didn't do CWU & CMU PDA attachments item-wise.
    3. Apparently there's an error which I'm unable to recreate with the datapad derma.

    _________________________
    FOR IT TO WORK YOU NEED TO DO THIS
    _________________________

    Add these columns to characters SQL table with default variable "fill" and datatype "TEXT" (I didn't bother to make it create itself):
    _GenericData
    _Datafile

    _________________________
    STREAMABLES OF THE PLUGIN(S) - videos may or may not differ from what the plugin looks like now.
    _________________________

    1. https://streamable.com/vfjmu
    2. https://streamable.com/9uou4
    _________________________
    DOWNLOAD
    _________________________
     
    • Good Coder Good Coder x 1
    Last edited: Jun 17, 2019
    • Good Coder Good Coder x 1
  2. svensis_

    svensis_ Clockwork Customer

    This is pretty cool, could you upload the content for it on workshop?
     
  3. Sloth_

    Sloth_ Runs a shitty Hl2rp community Legend Clockwork Customer

    Are these plugins working at all currently? Tried to give the items to players and it didn't work at all.
     
    • Disagree Disagree x 1
    • Good Coder Good Coder x 1
  4. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    Here's a full conversion of this plugin for HL2:RP v1.3.
    https://github.com/moschetto/datafiles

    There are still some things you will have to fix manually. For example, I didn't add automatic population and implementation of the two custom columns this plugin adds into the characters table of the database. I left the two SQL queries you will have to use in the Installation section of the readme.

    For those running MySQL, be aware you may run across an issue where you can't run these two queries. This is because some versions of MySQL on Windows have a restriction in place where you cannot configure default values for TEXT types. In this case, I'm still unsure how to bypass it, but I believe there is a workaround listed here: https://stackoverflow.com/questions/3466872/why-cant-a-text-column-have-a-default-value-in-mysql. Using SQLite works perfectly with these two queries.

    EDIT: This should be fixed in the latest version.

    Additionally, I wasn't able to find the content for the models that were used in the screenshots and the videos, so I've replaced the world models with basic HL2 ones to prevent errors in your inventory. If you want to switch them yourself, you can do so easily in the item files of each datapad.

    EDIT: Also fixed.
     
    • Winner Winner x 1
    • Good Coder Good Coder x 1
    Last edited: Jul 6, 2019
  5. The items use special_weapon base I think.

    Also there might be issues with CW with the tables not having a default value, try allowing NULL and see if that works.
     
    • Good Coder Good Coder x 1
  6. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    Hah, thanks, not sure how I missed that. It's not a CW issue regardless, it's a MySQL issue. Not really a fix can be made from our end, either.
     
    • Good Coder Good Coder x 1
  7. Sloth_

    Sloth_ Runs a shitty Hl2rp community Legend Clockwork Customer

    • Good Coder Good Coder x 1
  8. The objective is editable by and limited to CWU and CMU faction leaders. Faction members can only read it, not change it.

    Use this plugin to set the leaders.
     

    Attached Files:

    • Like Like x 1
    • Good Coder Good Coder x 1
  9. Sloth_

    Sloth_ Runs a shitty Hl2rp community Legend Clockwork Customer

    Do I keep /setcwulead and /setcmulead in the original plugin? Or delete those in replacement for this
     
    • Good Coder Good Coder x 1
  10. Ah forgot that I added them to the original plugin, well then you don't need the plugin above, just use those commands to set the leaders.
     
    • Good Coder Good Coder x 1

Previous Readers (Total: 0)