Stable1.1.3
UPDATE
- Removed ch_mining_config_xp.lua from config files since the configs are in the main file already.
- Switched to using math.floor instead of math.Round on level percentage to avoid saying 100% when almost there.
- Fixed the position of the XP bar by a pixel.
- Added the ability to only show the mining hud (minerals and xp on screen) after earning XP.
- Enable with
CH_Mining.Config.OnlyShowHUDOnXPEarn - Determine how long it shows for with
CH_Mining.Config.HUDShowTime - This disregards the need of having the pickaxe or jackhammer equipped to show HUD if enabled.
- Added the ability to enable/disable players deducting their own skills after upgrading them.
- Config
CH_Mining.Config.AbilityToDecreaseSkills - Removed MaxLevel config from skill config as that is now automatically detected.
- Skills now start at level 0 instead of 1.
- It makes more logical sense to do it this way.
- That also means that the config for skills have a new starting point, 0.
- Added a config to allow paying to reset your skill points.
- Config
CH_Mining.Config.EnableSkillResetButtonwill enable a button in the skill menu. - Use config to set the price
CH_Mining.Config.SkillResetPrice - Added a config to refund all skill points or go to starter when paying to reset.
- Use config
CH_Mining.Config.RefundAllSkillPointsOnReset - Allocated less bits when networking skills as it seems unlikely anyone will have 4 billion points or levels.
- Changed AcceptInput to Use on NPC entity.
- Added a button to auto full the sell/send amount of minerals to your maximum.
- Removed DarkRP dependencies and added support for all gamemodes.
- New notification function.
- Currency system. Set your currency with config
CH_Mining.Config.Currency - Included text wrap function from DarkRP thanks to FPtje
Please be aware of the skill config changes when updating! A fresh install is recommended with this update!
Everything is still saved. It is simply the change that skills start at 0 instead of 1 that matters in the configs!
Stable1.1.2
UPDATE
- Fixed a small problem with the MySQL structure.
Stable1.1.1
UPDATE
- Fixed an error if you've added the pickaxe to the players default loadout.
- Changed the outline color of "Sell Minerals" to green instead of red when they can actually sell minerals.
- Added a Sell All Minerals button to the inventory tab.
- It will instantly sell all your minerals and give you the money plus any bonus you may be eligible for (skill/level)
Stable1.1.0
UPDATE
- Fixed a problem with database if users nickname was long.
- Fixed an error if a bonus was triggered, but the player had no bonuses available based on their level.
Stable1.0.9
UPDATE
- Added mining bonuses!
- Bonuses are triggers randomly when mining.
- There is a percentual chance of a bonus tigering. Config
CH_Mining.Config.BonusChanceto adjust the bonus chance. - All bonuses have a minimum level variable.
- You can adjust this, so some higher level can receive other bonuses than lower levels can.
- Bonuses calls custom lua, so you can make bonuses do whatever you want. Default bonuses are:
- Receive a bonus of minerals.
- Receive an XP bonus.
- Receive DarkRP money as a bonus.
- Receive a free skill point as a bonus.
- Configure bonuses and add new ones in
shared/config/ch_mining_config_bonuses.lua - Added bonus effect from rocks when you're lucky.
- Enable or disable via
CH_Mining.Config.BonusEffect - Improved screenscaling icons in the menu.
- Switched a pairs loop to ipairs.
- Improved some text positioning in the leaderboards menu.
- Fixed a few missing translation strings.
- Rocks spawned are now immediately saved in that position.
- his fixed a glitch where rocks that respawned after running out of minerals would error out.
Stable1.0.8
UPDATE
- Fixed a rare error with the AFK pickaxe.
- Added Russian translation by matveicher
Updated file: lua/weapons/ch_mining_pickaxe_afk/shared.lua
Stable1.0.7
UPDATE
- Leaderboards are now networked when requested first time instead of on first spawn.
- This is more optimized since a lot of addons request data on connection. Networking it once when players open the menu for the first time means it will only be networked IF they open it and during a less "busy" time on the server.
- Added compatibility code for Boost Upgrades
- You can now spawn unlimited mining NPCs via the Q menu.
- All mining entities (rocks and npcs) now save via one console command
ch_mining_saveents - Fixed a bug with the AFK Pickaxe not respecting the players actual mining speed according to their skill level.
- More adjustments to the crafting tab.
- Moved "required" and "total" more to the right to make more space for the name.
- The name now caps at 18 characters and puts a few dots if it's too long.
- The rate at which the jackhammer cooldown is now based on your mining level.
- The config
CH_Mining.Config.DecreaseTemperaturePerTickis now a table and you can add as many new fields as you'd like. - Added sell bonus defined per mining level.
- This can be enabled via
CH_Mining.Config.EnableSellBonusPerLevel - Adjust the level multiplier with the config
CH_Mining.Config.SellLevelMultiplier - It will multiply the total payout based on their level multiplier and give it as a bonus when selling minerals.
- Removed debug prints.
Stable1.0.6
UPDATE
- Crafting UI now shows a reason why you cannot craft an item.
- Added custom checks to crafting items. You can now run custom lua code to stop an item from being crafted.
- This is useful to limit items to certain usergroups, jobs or simply if the player already has a weapon equipped.
- Added an AFK mining pickaxe.
- Start AFK mining with left click. Stop mining with right click.
- Auto mining automatically stops if you stop aiming at a rock or move too far away from it.
- Config to enable godmode while AFK mining is
CH_Mining.Config.GodModeAFKMiners - Config to make AFK miners resistant to arrest
CH_Mining.Config.StopArrestingAFKMiners - AFK pickaxe name is
ch_mining_pickaxe_afk- will need to be manually given.
Stable1.0.5
UPDATE
- Added a check for config
MiningTeamson hitting rocks if configUseMiningTeamsis enabled. - UI adjustments to crafting tab.
- Decreased the font size of item names, required level and minerals required.
- Item descriptions now support multiple lines. It will automatically wrap the text in the UI.
- Decreased the size of the model preview.
- Fixed glitch with jackhammer temperature where dying or dropping it reset the temperature.
Stable1.0.4
UPDATE
- Added leaderboards.
- The leaderboards are in the main menu.
- Select a leaderboard at the top. All statistics are present.
- Minerals mined, rocks destroyed, rocks emptied, minerals sold, money earned or items crafted.
- Leaderboards are only networked once you connect to avoid more load on the server than necessary.
- Mineral names and skill names are now translated in the translation file. Don't edit them in their respective config files!
- Added a new option per rock, so you can set a required mining level to allow mining certain mineral types.
- Option is
MinimumLevelinch_mining_config_rocks.luafor each rock. - Added the ability to send ores to others from the inventory menu.
- Added option in-game to set inventory and level hud X and Y position.
- The configs are now the default position. Players can adjust themselves in-game.
- More UI adjustments.
- Only the selected tab on the left has the blue bar.
- Disallow pressing sell button if trying to sell 0 minerals.
- Fixed a problem with rocks respawning with 0% durability.
Stable1.0.3
UPDATE
- Added German translation thanks to Deltaa
- Added Turkish translation thanks to Heratix
- Fixed not stopping jackhammer sound if overheated.
- Added a "Random" option in the Q menu.
- When selected the ore spawned will be randomize with the chosen settings.
- Tool tips in skills menu now update instantly as you upgrade/downgrade skills.
UI Improvements
- General
- The font color of a selected tab is now white while non-selected or gray.
- Dashboard
- Subtitle is now a smaller font.
- Price of showcased minerals are now white.
- Fonts are smaller for price and price change percentage.
- Inventory
- Changed the size of the percentage change since update to a smaller font.
- Red lines/outlines are no longer drawn on "sell minerals" button if player has none.
- Skills
- Icons are now a bit darker.
- The progress bar now turns green when the skill is maxed out.
- Icon sizes have been decreased.
Thanks for Menschlich for sending UI ideas and improvements. I will continue to improve the UI over time.