JasonStiletto wrote:beta... for the units.csv editor..
is here
vsdataboy-linux32.zip
vsdataboy-win32.zip
all basic functionality implemented. Download it, put it in the vegastrike data directory, or probably wherever your vs app happens to be (less sure) and it should run. Let me know if anything doesn't work. Or if you find a crash I didn't. Or alternately, let me know of anything it doesn't do that you'd like it to.
gtk1 linux and winapi win32 app included. If for some reason the linux app doesn't work with your setup (and it should) if you've got wine the win32 version will run.
source coming later after some clean up.
Can we get that source soon, please? Or at least a statically compiled version? Your Linux binary is horribly broken on my Debian (unstable) system. It runs, but after I poke the directory selection control a couple times to get it to actually find the files (the first time, it looks for .units/units.csv), it loads units.csv (and I can see data running through the text fields). But as soon as it's done, it pops up a window that says "Access violation. ok to ignore and risk data corruption. cancel to kill the program". If I let it continue, no matter what I select in the index, it shows me the stats for an AsteroidFighterBase.
terminal output of strace -efile ./vsdataboy
...
stat("/tmp/data-0.4.3/", {st_mode=S_IFDIR|0775, st_size=640, ...}) = 0
stat("/tmp/data-0.4.3/", {st_mode=S_IFDIR|0775, st_size=640, ...}) = 0
stat("/tmp/data-0.4.3/", {st_mode=S_IFDIR|0775, st_size=640, ...}) = 0
chdir("/tmp/data-0.4.3") = 0
stat("/tmp/data-0.4.3/units/units.csv", {st_mode=S_IFREG|0644, st_size=887324, ...}) = 0
open("/tmp/data-0.4.3/master_part_list.csv", O_RDONLY) = 8
open("/tmp/data-0.4.3/master_part_list.csv_noblanks", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 9
open("/tmp/data-0.4.3/master_part_list.csv_noblanks", O_RDONLY) = 8
open("/tmp/data-0.4.3/units/units.csv", O_RDONLY) = 8
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
TApplication.HandleException Access violation
Stack trace:
open("/net/tesla/usr/local/src/vegastrike/vsdataboy/vsdataboy", O_RDONLY) = 9
$08059499
$081CBA71
$080758BD TFM_DATABOY__POPULATEDB, line 643 of vsedit.pas
$0807BDD5 TFM_DATABOY__DATADIRACCEPTDIRECTORY, line 1587 of vsedit.pas
$081E2CDF TDIRECTORYEDIT__RUNDIALOG, line 810 of editbtn.pas
$081E2C07 TDIRECTORYEDIT__DOBUTTONCLICK, line 787 of editbtn.pas
$0805E2B5
$080F7DF8 TWINCONTROL__ISCONTROLMOUSEMSG, line 2918 of ./include/wincontrol.inc
$080F8B55 TWINCONTROL__WNDPROC, line 3407 of ./include/wincontrol.inc
$0806E1F3 TCUSTOMFORM__WNDPROC, line 918 of ./include/customform.inc
$08118795 DELIVERMOUSEUPMESSAGE, line 1509 of gtkcallback.inc
$08118862 GTKMOUSEBTNRELEASE, line 1558 of gtkcallback.inc
$B7DA8D1C
$B7DDB760
$B7DDC8AF
$B7DDCF02
$B7E19085
So you can debug that, or you can provide source and I can try compiling it
I could try it under Wine, but I don't drink.
Seriously, I'd much rather have source code, so if there's some minor change in units.csv, the program can be updated even if you've lost interest in Vegastrike and aren't maintaining it anymore. This happened to VSnav, with the save file format.
BTW, I'm making a list of out-of-game tools for vegastrike, focusing on stuff players might use while playing. vsdataboy does such a good job of displaying stats that I'm including it.
http://vegastrike.sourceforge.net/wiki/OOG_Tools
(Although probably a good spreadsheet would be used more, since you could sort it and see multiple rows at once.) But if you are attacked by some ships and you can't remember whether they tore you apart last time or not, vsdataboy might be just the trick.