Keyitems Converter

Applications/Tools written to make running DarkStar easier for the rest of us.
Post Reply
User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Keyitems Converter

Post by kjLotus » Sun Aug 14, 2016 7:33 pm

Commit 7d749f63272592c7c6b4bc01bca6f07a24cb90c2 changed how keyitems are stored. Attached is an .exe that will read your map_darkstar.conf and convert every characters keyitems blob into the new format. Place it in your darkstar folder (where libmariadb.dll is) and then run it from the command line. It won't print anything out if it ran successfully. There is no way to guard against running it on an already converted blob, so make sure that you don't run it twice.
Attachments
keyitemconverter.7z
(14.5 KiB) Downloaded 347 times

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Keyitems Converter

Post by kjLotus » Sun Aug 14, 2016 7:43 pm

And the source, of course.
Attachments
main.cpp
(3.61 KiB) Downloaded 342 times

Abriasffxi
Posts: 10
Joined: Mon Jul 18, 2016 6:57 pm

Re: Keyitems Converter

Post by Abriasffxi » Sun Aug 14, 2016 11:20 pm

Any love for us on linux?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Keyitems Converter

Post by kjLotus » Sun Aug 14, 2016 11:42 pm

Oh oops, I took the time to make it portable and everything... I'll see what I can do

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Keyitems Converter

Post by kjLotus » Mon Aug 15, 2016 12:17 am

For Linux, build this in darkstar/keyitemconverter and then mv the tool to darkstar and run it
Attachments
keyitemconverter.tar
(10 KiB) Downloaded 301 times

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Keyitems Converter

Post by demolish » Mon Aug 15, 2016 7:57 am

<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

nevaeh
Posts: 7
Joined: Tue Sep 23, 2014 9:33 am

Re: Keyitems Converter

Post by nevaeh » Tue Aug 23, 2016 8:38 pm

I believe there's been a couple database changes since the project's beginning and I was just curious if there was a good place to view the history of changes or do I just have to do a compare my server's SQL files compared to the latest master's SQL files?

If not, it is what it is and I don't know if it would be beneficial enough for the team to manage going forward.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Keyitems Converter

Post by whasf » Tue Aug 23, 2016 9:03 pm

right-click the file / tortisegit / show log
-- Whasf

Cloudef
Posts: 9
Joined: Fri Aug 22, 2014 10:38 am

Re: Keyitems Converter

Post by Cloudef » Tue Aug 30, 2016 1:51 am

I also have this "general purpose" database migrator written in bash here https://gist.github.com/Cloudef/7dd5cbd589235e5d2e85 It only handles table/field additions and removals, it won't understand field/table renames, or magically convert contents of field to new format, so it won't handle keyitems conversion nor the magic table refactor. It's mainly useful for keeping your schemas up-to-date.

Post Reply