Author Topic: Autosaver with new brick format that has support for user added fields/values.  (Read 2902 times)


Yeah, that's what I said.
The "for seconds" referred to a hypothetical maximum of time that the COMBINED saves in an hour might take. It saves multiple times an hour, you'd know this if you read the OP.
If there's less than say ten thousand bricks, I don't even notice it.


I made modifications to the file format, version two looks like this:
Code: [Select]
File type description.
File type description.
File description.
Version (current version is 2)
Ownership omitted. (0 means ownership has been saved)
<brick event and var data>

Line types below, \ represents tab:

Brick:
dataBlock\position\angle(\owner)\color\(colorFX\ShapeFx\(colliding\rendering\raycasting\(name\print\(emitter dir\light\item pos dir\respawnTime\music\vehicle))))
If the datablock name starts with "brick" and ends with "data" these are omitted.
If it does not, a | is put in front of the unmodified datablock name.
The parenthesis designate different levels of information groups.
If a brick has no item emitter light music and vehicle, but has a print, the line will only provide info up unto the print.
However if it has no print or name yet has a vehicle, all of the information before the last category must also be included.

Event:
event\number\enabled\input\delay\target\targetName\output\parm1\param2\param3...

Var:
var\name\value
Variable names may not include semicolons.

The files are now smaller than their bls counterparts, they save far faster (compared to client side saving) and even when saved on the server rarely cause any noticeable disruption. They load at about the same speed. Currently the autosaver saves ownership, whereas the commands do not. I'll add in options for these later. (no ownership reduces the filesize a good bit too)
« Last Edit: November 13, 2013, 07:55:47 AM by DrenDran »

the hell
I'm doing "/loadbvss save.bvs" and nothing is happening.

the hell
I'm doing "/loadbvss save.bvs" and nothing is happening.

It adds the .bvs for you.
Also, it's /bvssload and /bvsssave
not /loadbvss

edit: realized the op had the save command right but not the load command
fixed, sorry for the dumb mistake

It adds the .bvs for you.
make it work if the user is dumb enough to put it in anyway

also make it work with full paths for 1337 hackers

It adds the .bvs for you.
Also, it's /bvssload and /bvsssave
not /loadbvss

edit: realized the op had the save command right but not the load command
fixed, sorry for the dumb mistake
So, I did "/bvssload save" and then my BL froze, and my console flipped out.

console.log

So, I did "/bvssload save" and then my BL froze, and my console flipped out.

console.log
When did you download it?
Because line 287 of bvss.cs is just "else".
So the error makes no sense, at least if you're using a recent version.


So far I have found one error that I need to fix.
If you try loading it with bot_hole enabled, then bot_hole will spam the console with errors, though afaik it still loads fine.
Will have to look in the bot_Hole code when I get home and see if I can't prevent that.
« Last Edit: November 15, 2013, 12:12:30 PM by DrenDran »

I'l redownload it, see what happenes.

aaa
just realized
the save I have has the old format on
I just installed the new version that saves/loads in the new format
I just lost everything
aaa

aaa
just realized
the save I have has the old format on
I just installed the new version that saves/loads in the new format
I just lost everything
aaa
give it to me and ill fix it for ya if its important

give it to me and ill fix it for ya if its important
nvm, I found out another autosaver was running at the time