Page 1 of 1

csv_editor v2

Posted: Sat Jul 15, 2006 3:35 pm
by GAlex
thanks to Halleck, Klauss and Jacks, the V2 version of my li'l app is here.

attached is the latest win32 build.
linux build will follow in a few days.

it's a (guess what?) csv file editor, specifically designed to fast-edit the units.csv file (and those that will follow), but remains a general purpose csv file editor.

it's released as GPLv2, and comes with full source code.
it's written in freepascal with the aid of lazarus's lcl component library (all GPLv?).
it can be compiled for almost any platform and OS.
the linux version will use GTK2.
a mac os x version can be compiled with the carbon interface (see www.lazarus.freepascal.org forums and docs for howtos)

hope You'll find it usefull.

p.s.: little advices:
- it's a statically linked apps, so it doesn't need any library.
- the textfiles in the archive MUST BE IN THE SAME WORKING DIR OF THE EXECUTABLE in order for the app to start.
- elements.txt is deprecated and it's in the archive only 'cause I'm lazy, you can delete it.
- the textfiles contains in a simple to edit syntax a bunch of things that can be inserted in various field of the units.csv file; if anyone adds fields to them, please post it here, so others (me, for example :wink: ) can make use of it.
- sorry for the lack of documentation, but my spare time lacks as well; the GUI should be simple and auto-explaining, and has NO MENU (i hate them); if You have question, ask me and You will be replied.
- if any of you will find a bug or wants a new feature, feel free to ask me, i will do my best.

at Your service.

Posted: Sat Jul 15, 2006 4:29 pm
by loki1950
Thx for the new version GAlex.

Enjoy the Choice :)

Posted: Sun Jul 16, 2006 5:14 pm
by Halleck
Yesssssssssss!

Looks great so far, I'm amazed at how handy this tool has proven to be. I'll be sure to report on any trouble I have when I'm using v2.

BTW, I updated the shameless plug for this program in the HowTo:Add Ships article. :D

Posted: Sun Jul 16, 2006 6:10 pm
by GAlex
very thanks Halleck.

as promised... the linux build.

it relies on gtk2, but it's again statically linked so...

too bad the win32 version under wine works better and faster :cry:

as per loki request...

Posted: Sat Jan 13, 2007 12:40 pm
by GAlex
@loki: as i'm unable to attach this in a pm, i post it in here for everyone.

this new version fixes a bug pointed by loki1950 in handling a one line csv file and files whose last record doesn't terminate with a paragrah (scii10) char.
the save procedure has been rewritten accordingly and fixes the last problem on save (adding a chr(10) if it lacks).

this will the li'l app work also in PR csv (or was it svn?)

thanks to loki for the information and the files provided.

this is only a win32 build. if the linux one is needed, let me know.

Posted: Mon Jan 29, 2007 10:45 pm
by baba2007
Doesn't work well with wing commander universe save games for some reason I get an error.

Posted: Mon Jan 29, 2007 11:08 pm
by loki1950
@baba2007 save game files are not cvs so of course it did not work well :wink:

Enjoy the Choice :)

Posted: Tue Jan 30, 2007 3:49 am
by baba2007
Thanksf or a great tool i created a centariun with 1000000 hidden cargo and units. I will be the black market king of vega strike universe nothing will stop me.

Posted: Wed Sep 19, 2007 6:37 am
by doh123
been trying to figure out your source. not familiar with Pascal so its not easy... been trying to find different ways to compile it on my OSX box... can you maybe say what files are what? the only files i saw that seemed to be source code were the unit1.pas and unit2.pas are both of those the entire program?

Posted: Wed Sep 19, 2007 2:28 pm
by loki1950
Welcome doh123 and the project1.lpi file as well i believe as for compiling under OSX

GAlex wrote:
a mac os x version can be compiled with the carbon interface (see www.lazarus.freepascal.org forums and docs for howtos)
if you have problems just post.

Enjoy the Choice :)

Posted: Wed Sep 19, 2007 7:26 pm
by doh123
Well thanks for the response

I tried many times installing many things to get Lazarus working right, but i cant ever get it working right, that was a longer problem, and seems to come down to it not liking x86 OSX, and only wanting PPC. Lazarus seems to be well supported for Windows and Linux, but little to nothing for OSX, which makes sence because Xcode is awesome and free with OSX, so they just made a FPC plug in for it.

I was trying to do some compiling in Xcode with the FPC for Xcode plug in... which seems to work fine, i just do not know enough about Free Pascal to build the project out right with the right code in the right places... I've mainly only used Xcode for Java coding. I'll figure it out sometime, or I'll just give up and run it in Linux, i just perfer using my Mac for most things.

Posted: Wed Sep 19, 2007 10:46 pm
by loki1950
glad you made some sense of it i haven't looked at Pascal for about 20 years :wink: and in a main frame environment it was the teaching language of the moment.you might try the windows exe under wine as GAlex mentioned.

Enjoy the Choice :)

Posted: Sun Oct 14, 2007 3:54 am
by Drakna
hmmm still no linux version?

Posted: Sun Oct 14, 2007 2:27 pm
by loki1950
Yes there is the attachment in the fourth post
very thanks Halleck.

as promised... the linux build.

it relies on gtk2, but it's again statically linked so...

too bad the win32 version under wine works better and faster Crying or Very sad
Enjoy the Choice :)

Posted: Sun Oct 14, 2007 4:23 pm
by Drakna
i dont see an attachment in the 4th post

oh LOL i had to be logged in to see it

Posted: Sun Oct 14, 2007 4:42 pm
by loki1950
oh LOL i had to be logged in to see it
We have to keep our toys under lock and key :wink:

Enjoy the Choice :)

Re: csv_editor v2

Posted: Sat Aug 01, 2009 3:12 pm
by Zebedee
Much appreciated. Thank you :)