Datafiles
ORIGINAL PLUGIN BY JAMES - PERMISSION FOR RELEASE GRANTED
Conversion done by kiobu (kiobu#0011).
Note
Here's a full conversion of this plugin for HL2:RP v1.3.
There are still some things you will have to add 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.
Information
Edits made by kiobu:
- Now converted for use with HL2:RP v1.3 (removed deprecated functions).
- Changed community-specific factions and unrecognizable names to more general use.
What does the datapad/pda's do?
- Combine Datapad gives access to the /datafile, /managedatafile, /restrictdatafile, /scrubdatafile commands.
- 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.
- 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.
Shared vars
- LoyaltyPoints
- BOL
- LoyaltyTier
- PlayerIsRestricted
- DatafileOpen
- ManagementOpen
- PlayerObjectivesOpen
- PlayerEnterOpen
Unfinished
- Didn't make SQL table creation automatic.
- Didn't do CWU & CMU PDA attachments item-wise.
- Apparently there's an error which I'm unable to recreate with the datapad derma.
Installation
Place all four directories into your gamemodes/cwhl2rp/plugins/ folder.
Add these columns to the characters SQL table with datatype TEXT. _GenericData _Datafile
ie.
ALTER TABLE characters ADD _GenericData TEXT;
ALTER TABLE characters ADD _Datafile TEXT;
FAQ
Q: I keep getting a tmysql error about a bad argument to pair #1! A: This is because the plugin checks for data before the datafiles are populated for new characters. You can ignore this.
