csv_editor v2

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.
Post Reply
GAlex
Mercenary
Mercenary
Posts: 126
Joined: Sun May 01, 2005 10:33 am
Location: Italia

csv_editor v2

Post 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.
You do not have the required permissions to view the files attached to this post.
"Eppur si muove ..."
(Galileo Galilei just after abjuring to the Inquisition)
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

Thx for the new version GAlex.

Enjoy the Choice :)
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post 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
GAlex
Mercenary
Mercenary
Posts: 126
Joined: Sun May 01, 2005 10:33 am
Location: Italia

Post 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:
You do not have the required permissions to view the files attached to this post.
"Eppur si muove ..."
(Galileo Galilei just after abjuring to the Inquisition)
GAlex
Mercenary
Mercenary
Posts: 126
Joined: Sun May 01, 2005 10:33 am
Location: Italia

as per loki request...

Post 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.
You do not have the required permissions to view the files attached to this post.
"Eppur si muove ..."
(Galileo Galilei just after abjuring to the Inquisition)
baba2007
Star Pilot
Star Pilot
Posts: 7
Joined: Tue Jan 16, 2007 12:47 am

Post by baba2007 »

Doesn't work well with wing commander universe save games for some reason I get an error.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post by loki1950 »

@baba2007 save game files are not cvs so of course it did not work well :wink:

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
baba2007
Star Pilot
Star Pilot
Posts: 7
Joined: Tue Jan 16, 2007 12:47 am

Post 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.
doh123
Insys Pilot
Insys Pilot
Posts: 2
Joined: Wed Sep 19, 2007 3:47 am

Post 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?
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post 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 :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
doh123
Insys Pilot
Insys Pilot
Posts: 2
Joined: Wed Sep 19, 2007 3:47 am

Post 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.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post 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 :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Drakna
Hunter
Hunter
Posts: 85
Joined: Fri Oct 05, 2007 11:04 pm

Post by Drakna »

hmmm still no linux version?
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post 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 :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Drakna
Hunter
Hunter
Posts: 85
Joined: Fri Oct 05, 2007 11:04 pm

Post by Drakna »

i dont see an attachment in the 4th post

oh LOL i had to be logged in to see it
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Post 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 :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Zebedee
Trader
Trader
Posts: 17
Joined: Thu Jul 30, 2009 8:58 pm

Re: csv_editor v2

Post by Zebedee »

Much appreciated. Thank you :)
Post Reply