Exporting resource database

jowwarr

New Member
Nov 7, 2015
5
0
1
#1
I was wondering if anyone has looked into exporting either the resource database or the resource_manager_spawns.lua file to something that can be imported into an excel spreadsheet?
 

Malketh

New Member
Jan 8, 2017
3
0
1
#2
I haven't done anything quite like that, but I have used python and the slpp module to turn the lua file int a list of resource objects. So, in theory it'd probably be rather easy to go from that to a CSV file.
 
Jun 18, 2013
40
0
6
35
tarkin.org
#3
I was wondering if anyone has looked into exporting either the resource database or the resource_manager_spawns.lua file to something that can be imported into an excel spreadsheet?
I made a lua script years ago that you could paste into a copy of resource_manager_spawns.lua (a copy you saved to your computer, not the server copy), and double-click, and it exports the contents into a txt file, in a csv format. (Which I used for uploading out-of-spawn resource data to swgcraft, but you could obviously do anything you want with it.)

It would spit out the entire contents of that file in a format like this:

Blahblahblah,Corellian Conifer Wood,123,444,576,374
Whateveritscalled,Colat Iron,774,694,833,873,967,124,375
Somethingelse,Nabooian Fiberplast,468,467,938,474,498

I'm away from home right now, but if that's something you're interested in, I could post it later. You need to have Lua installed on your computer in order for it to execute.