FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
463 stars 708 forks source link

data #1855

Closed advancedrazor closed 9 years ago

advancedrazor commented 9 years ago

I dont like everything is saved to sv.db. Actually there could be a setting to save to "data". Its useful to keep youre server clean. However it doesnt work well like MySQL or SQLite

FPtje commented 9 years ago

It's terrible, slow, a lot of work, bad practice, easy to corrupt and it will kill your babies.

advancedrazor commented 9 years ago

Yea but its cool to save private files without saving a whole filebase for no reason.

Shigbeard commented 9 years ago

No. No it isn't.

On 27/3/2015 1:31 AM, Razor Glaze wrote:

Yea but its cool to save private files without saving a whole filebase for no reason.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1855#issuecomment-86541572.

advancedrazor commented 9 years ago

Why its not?

Shigbeard commented 9 years ago
  1. Formatting. The data directory stores data (and reads it) as plain text. To easily format it to be used by code, you'd want to turn it into a table, using JSON or another handler. This takes time, computer resources, and is something that needs to be planned for on both the reading and the writing side. And even then, the advantage to having it written in data is then lost, as the data becomes formatted for storage and becomes "untouchable" because if you edit it, you risk fucking it up.
  2. What other data is stored in SQLite: Pdata is stored there, it makes sense to store DarkRP related info about a player on SQLite with the Pdata.
  3. Too many files, not enough organization.

SQL > Raw every day.

On 27/3/2015 1:41 AM, Razor Glaze wrote:

Why its not?

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1855#issuecomment-86543773.

advancedrazor commented 9 years ago

I just want a option for that, just for saving doors and FAdmin settings as I sometime need to reset my sv.db and I dont want to be not prepared for that day. My community is quite big, and the server quite full and I had alot of sv.db problems in the past. So just adding a option for that couldnt hurt anyone.

Shigbeard commented 9 years ago

If your community is big, you may want to look into making your own database handler, something more high-end. IIRC, DarkRP does have limited support towards your own database handler.

On 27/3/2015 3:59 AM, Razor Glaze wrote:

I just want a option for that, just for saving doors and FAdmin settings as I sometime need to reset my sv.db and I dont want to be not prepared for that day. My community is quite big, and the server quite full and I had alot of sv.db problems in the past. So just adding a option for that couldnt hurt anyone.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1855#issuecomment-86624273.

FPtje commented 9 years ago

Use an SQLite export tool or someshit. You can convert it to plaintext yourself.

2015-03-26 18:01 GMT+01:00 Nathan Davies-Lee notifications@github.com:

If your community is big, you may want to look into making your own database handler, something more high-end. IIRC, DarkRP does have limited support towards your own database handler.

On 27/3/2015 3:59 AM, Razor Glaze wrote:

I just want a option for that, just for saving doors and FAdmin settings as I sometime need to reset my sv.db and I dont want to be not prepared for that day. My community is quite big, and the server quite full and I had alot of sv.db problems in the past. So just adding a option for that couldnt hurt anyone.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1855#issuecomment-86624273.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1855#issuecomment-86625687.

advancedrazor commented 9 years ago

Yea but a structure wouldnt damage. Even its easy to write. Just some file.Write, file.Exists, file.Create additions to some files and done! DarkRP is something which you cant really play without modding, but actually standard functions should be given. Such as Saving in Data files. Fix the weaponbase. Fix the hardcore recoil of the weapons. Fix AFK Bugs Fix Jail bugs Replace X:IsValid() with IsValid(X) for faster code Replace not with ! for faster code Edit the weapons to look better like the stunstick or arrest stick. Probably another material on it.

It just shouldnt be the standard way look like shit and play like it. It should work without modification too. I dont mean that for me, cause I edited nearly every fucking file of the game and the gamemode, but for others and people who want things work this way without the much modding, so they could mod other things to work either

FPtje commented 9 years ago

Replace not with ! for faster code

HAHAHAHAHAHAHAHAHAHAHAHAHAHA

advancedrazor commented 9 years ago

Less code. Faster reading. So it got told me. But dont focus on the shit I probably told. Cause I know im just some script kiddy, focus on the things that are barely true.

FPtje commented 9 years ago

focus on the things that are barely true.

I burst out in laughter when reading that grammar mistake. Sorry for that.

Look. Here's a site: https://sqlite.org/download.html

It has a tool. And with this tool. You can grab the sv.db. Give it to the tool. And the tool will output a

text file

That's right, a text file. Everything you request is in that tool. That saves me:

Look, the only reason you're making this request is your own incompetence. You want to edit money data and you don't know how SQLite works and you're too god damn lazy to fucking Google it. This request has huge negative consequences for DarkRP and would do nothing but pander to your incompetence.

I'm not making it.

Shigbeard commented 9 years ago

That awkward moment when excessive emphasis shouldn't be required, but is anyway.

FPtje commented 9 years ago

I'd like to be extra fucking clear on this one.

Shigbeard commented 9 years ago

inb4 "id like the gmod to can read it and give the moneez to the ppl"

On 27/3/2015 5:18 AM, Falco Peijnenburg wrote:

I'd like to be extra fucking clear on this one.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1855#issuecomment-86654457.

Shigbeard commented 9 years ago

well, actually im in a bit late for that.

advancedrazor commented 9 years ago

I never wanted edit money data. I never mentioned that. I wanted to store doorgroups etc, the important stuff, nothing that could cause really lag. Either people are not lazy for not extracting ever a change to sv.db was made the whole sv.db. Just because youre a developer I dont have to be one and behave like one.

And if people chose MySQL they will complain either about lag, so whats the difference. people will ever complain about shit they dont know. But shit like saving important data is really important for me,

Shigbeard commented 9 years ago

You want to store doorgroups? They are fine the way they are, they work, and if they ever reset, it takes literally 30 seconds to remake the door groups.

Listen kid, I'm sure on some planet, your idea is good... but your problem is this is Earth. On 27/3/2015 5:21 AM, Razor Glaze wrote:

I never wanted edit money data. I never mentioned that. I wanted to store doorgroups etc, the important stuff, nothing that could cause really lag. Either people are not lazy for not extracting ever a change to sv.db was made the whole sv.db. Just because youre a developer I dont have to be one and behave like one.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1855#issuecomment-86655317.

advancedrazor commented 9 years ago

Wait? I go through 10 maps to change the doorgroup for every door on the fucking map, if every map has 20-30 doors to change, thats more than an hour for me. Im not a kid, but okay. Maybe a scriptkiddy. But what rights give that you, to treat my like shit. I understand the problems with the Data saving method, but it doesnt is just bad. Just for saving odd things, Its not bad. Just because Dogs bite, you want em either. I don't cause I like cats, but okay! MySQL is bad either, so why not add another "bad" method to save shit.

I mean its not much work and it doesnt really cause any problems, besides kiddys who doesnt know how to restrict adv. dupe.

i have alot problems with DarkRP, but why didnt I open 200 issues? Cause I ever I opened a github issue got treaten like shit. Cause developers are better. But okay. I will never report anything for you guys. Just let DarkRP suffer as it does the last 2 years. Its not RP, Its GTA

Shigbeard commented 9 years ago

Ok, I'm going to make this as clear as possible, because Falco already did just that.

Download and run the tool that @FPtje mentioned 9 posts above this (including this post).

Extract the doorgroups data, or any data you wish to back up, as plain text.

When, and if you wish to restore this data, use the tool to import the backed up data.

Problem Solved im unsubscribing from this issue