Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: WMCoolmon on May 13, 2004, 01:45:39 am
-
After some hours of work, I present to you...
CSGEdit (http://members.cox.net/~wmcoolmon/progs/csgedit.exe)! :D
It allows you to edit the .csg files, which store such data as Current campaign mission, Allowed ships, and Allowed weapons. They're located in data/tables. So theoretically, if you install a new mod, it should now be possible to edit the campaign file to account for any extra ships or weapons. :nod:
However, I strongly recommend you BACKUP ALL PILOT FILES FOR THE PILOT YOU ARE EDITING
-
DispError: 'Invalid Version'
retail campaing file
-
Untested retail support added. Note that it'll save in whatever version it loads.
-
Now this is a useful little program. I'll try it out in a bit :)
-
How about... er, points and/or rank? :nervous:
-
hey awesome, now I can fix my pilot that the new media pack broke, thanks!!! :)
Edit: erm, except it crashed trying to load the file :(
-
Awesome work, Coolmon. Maybe you ought to post some front page news about this. :nod:
Originally posted by Goober5000
How about... er, points and/or rank? :nervous:
"Rear Admiral Goober"? :D
-
Goober: I'm pretty sure that's in the pilot file. I actually wrote a partial loader for it, along with a partial companion program, so it actually wouldn't take that long. :p
I'm working to resolve the issue with Shadow right now. Is anyone else having trouble with loading files?
Edit: I uploaded a new version of test_shiplib to my webspace (http://members.cox.net/~wmcoolmon/progs/test_shiplib.exe); it shows the ship ID for ships a ships.tbl file.
-
Everyone should grab the update (http://members.cox.net/~wmcoolmon/progs/csgedit.exe) - it fixes loop handling.
If you're having problems with crashing on loading a file, use the command line option "-noshipnames". Shadow, I think this might fix your problem. :)
-
Originally posted by Setekh
"Rear Admiral Goober"? :D
Hehe... I actually am a Rear Admiral, but that's because the FS1 campaign (in the port) automatically promotes you every time you destroy the Anvil in Black Omega. I want to see my raw point score so I know what my rank should be. :)
EDIT: I just realized that technically I could have run FSO under debug and have it print out my score that way all along. What can I say, I'm lazy. :p
-
WM: strangely enough, the updated file works fine even w/o the command line param... what all did you change?
Update: it opens files now, but it shows no descriptions and won't save any changes made
-
Some code relating to the loading of the ships.tbl file, and the checkbox stuff. Probably some other stuff.
When you say won't save, do you mean it won't open the dialog, gives you an error, or the file isn't modified after you've hit ok in the save dialog?
I don't see why descriptions shouldn't be showin up, unless something weird is happening...like your computer is taking "read-only" to mean "unsettable".
-
Originally posted by Goober5000
Hehe... I actually am a Rear Admiral, but that's because the FS1 campaign (in the port) automatically promotes you every time you destroy the Anvil in Black Omega. I want to see my raw point score so I know what my rank should be. :)
:D Me too... but I actually legitimately got to the rank playing FS1. Damn, that was a great game. :)
-
Originally posted by WMCoolmon
Some code relating to the loading of the ships.tbl file, and the checkbox stuff. Probably some other stuff.
When you say won't save, do you mean it won't open the dialog, gives you an error, or the file isn't modified after you've hit ok in the save dialog?
I don't see why descriptions shouldn't be showin up, unless something weird is happening...like your computer is taking "read-only" to mean "unsettable".
The dialog and everything works, but the file doesn't get changed.
The file isn't set to read only, so unless I misunderstand what you mean that's not it.
What it's doing as far as things not showin up, is the bottom 2 listboxes have numbers in them, but no text. Like it'll have 0, 2, 5, 7, 9, 11, 12, 13, 15.... etc then jumps up into the 50's
I try adding numbers in the gaps and saving, but when I reopen it's back exactly how it was.
-
Originally posted by ShadowDrakken
What it's doing as far as things not showin up, is the bottom 2 listboxes have numbers in them, but no text. Like it'll have 0, 2, 5, 7, 9, 11, 12, 13, 15.... etc then jumps up into the 50's
I try adding numbers in the gaps and saving, but when I reopen it's back exactly how it was.
Right, that's because ATM it's just displaying what's in the file. The numbers are the number of the ship/weapon in the table, starting at 0 - so the GTF Ulysses would be 0.
Changing these to weapon or ship names in FS2 should fix the problem with minor table changes breaking campaigns, but that's a post-3.6 thing to do.
Anyway, I'll check and see if I can find what's wrong. :)
Edit: Oh, the large gaps in the ships numbers are because you get to use Vasudan ships in the campaign. Probably something similar for weapons.
-
CSGEdit (http://members.cox.net/~wmcoolmon/progs/csgedit.exe)
This is version .9, all that needs to be done is resolve any remaining bugs (None known) and add an icon. Then it'll be final release time. :D
-
Originally posted by Setekh
:D Me too... but I actually legitimately got to the rank playing FS1. Damn, that was a great game. :)
I found my OLD fs1 pilot on a disk last week, and i just opened it in Pilotview32, a staggering 8954234 points (Vice admiral)... a meer 45766 points from making admiral... It did say, "(We think you cheated) at one point, and that i was going to be assigned a desk job, since thats what admirals do... then in FS2 it tells you to "Now go read a book."...
-
awesome, it's saving now... now just need it display the text related to the numbers cause I have NO clue what numbers mean what, lol :)
-
Read the text next to the fields. :nod:
All you need to do is put the 'destination' ships and weapons .tbl files in the same directory as the program, ie the ones you're fixing the pilot file to work with.
So if you wanted to use it with the mediaVP, you'd extract the tables from either speffects or zlib and fix any problems in the allowed ships/weapons. Like, say you always wanted to fly TC 2... :D
-
I don't have and don't want to bother with the tools for messing inside the vp files. I'm just a player, not a modder, so there is NO reason i should have to get the tools and eat up tons of disk space with useless trash
-
Besides VPView, which is 1.62 MB, there's also VP Combiner (http://www.hard-light.net/forums/index.php/topic,23253.0.html), 84 KB.
The first is more user-friendly than the second, admittedly, though the second lets you modify and build VPs.
But I did add the ability to use the TBL files directly from VP files, so you don't need to bother to learn either program. Use the "Set tables VP..." button to load the ships and weapons info into memory.
Using this, you'll want to load either "root_fs2.vp" or "mv_zpack.vp" or "mv_speffects.vp", depending on whether you're using retail FS2 or the mediaVP zpack, or the separate mediaVP packages.
CSGEdit (http://members.cox.net/~wmcoolmon/progs/csgedit.exe)
-
awesome, great job... you're an impressive coder WM :)
I just dabble in VB myself (from 3.0 up to .NET 2003, I've got and use them all, lol ;) )
-
The manual (http://dynamic4.gamespy.com/~freespace/fsdoc/index.php/UsingCsgEdit)
Questions, comments, constructive criticism?
Edit: Oh, yeah, I just uploaded a more optimized version. It seems to be smaller, faster, and should be more reliable. The link is in my last post. :)
-
Bump. All the links to CSGEdit are broken. WMCoolmon, can you fix the links please?