[quote=“chazion, post:8, topic:555688”][quote author=sk8rdude461 link=topic=674901.msg4510008#msg4510008 date=1466898724]
Might help.
GSON is a great library, it can convert generally any object into JSON.
I had it parse the item data from the cfg that PI’s come with into a .json, took literally seconds (minus time writing code).
[/quote]
This is awesome dude. I’m basically doing something similar with the items, except I’m using a command to manually output to a file.[/quote]
Yeah you can do that no problem.
It’d probably be easier that way anyways. As after the server starts up all the data that was in the cfg gets parsed into an item list (pretty sure the object is literally “ItemList”).
From there it’s kinda just turning the ItemList array into a string using gson, then writing that string to a file.
You’re pretty late to the party. Pretty sure Ruse doesn’t use any cfg files, same with Vencillio (the two biggest leached servers currently).