Author Topic: Something for everyone! (Program)  (Read 3923 times)

0 Members and 1 Guest are viewing this topic.

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
After some hours of work, I present to you...

CSGEdit! :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
-C

 

Offline JarC

  • 28
Something for everyone! (Program)
DispError: 'Invalid Version'

retail campaing file
Use the WiKi Luke
See You @ WIGGY's

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
Untested retail support added. Note that it'll save in whatever version it loads.
-C

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Something for everyone! (Program)
Now this is a useful little program. I'll try it out in a bit :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Something for everyone! (Program)
How about... er, points and/or rank? :nervous:

 
Something for everyone! (Program)
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 :(

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
Something for everyone! (Program)
Awesome work, Coolmon. Maybe you ought to post some front page news about this. :nod:

Quote
Originally posted by Goober5000
How about... er, points and/or rank? :nervous:


"Rear Admiral Goober"? :D
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
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; it shows the ship ID for ships a ships.tbl file.
« Last Edit: May 13, 2004, 01:28:00 pm by 374 »
-C

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
Everyone should grab the update - 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. :)
-C

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Something for everyone! (Program)
Quote
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

 
Something for everyone! (Program)
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
« Last Edit: May 13, 2004, 05:27:22 pm by 1819 »

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
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".
-C

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
Something for everyone! (Program)
Quote
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. :)
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 
Something for everyone! (Program)
Quote
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.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
Quote
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.
« Last Edit: May 15, 2004, 05:46:57 pm by 374 »
-C

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
CSGEdit

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
-C

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
Something for everyone! (Program)
Quote
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."...
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 
Something for everyone! (Program)
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 :)

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Something for everyone! (Program)
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
-C

 
Something for everyone! (Program)
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