Author Topic: New Utilities And Tools  (Read 4226 times)

0 Members and 1 Guest are viewing this topic.

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
it no longer relies on batch files

version 2 relies on the registry


the registry data is as follows


To register a package do the following

append "YourModName," [WITH THE COMMA] to

Key:
String Variable: ModList

please check if your mod is already installed so you don't double register it

add a new key
HKEY_LOCAL_MACHINE/Software/DMEN/FS2ModMan/YourModName

with the following data

String Variable: Extension: contains the alternative extension for you files - ie when your mod is disabled the files will have their extension changed, and this is that extension - please be as unique as possible, as to not collide

examples: .uam "Unholy Alliance Mod", .dlm "Derelict Mod", .wzm "Warzone Mod"

Integer Variable: NumToggle: contains the number of files that are in the "toggle" list - files in the "toggle" list get renamed in activitation/deactivation  VP that create name collisions and table files should be in the toggle list

Integer Variable: NumUninstal: contains the number of files your installed since all your files go into the uninstall list


then for each file in the toggle or uninstall lists there is a key

for the Toggle list it's

String Variable: Toggle#: where # is in the range 0 to NumToggle-1, the contents of the string is the aboslute path of the file on the harddrive [in the FreeSpace 2 Programmable installer does the absolute pathing auotmatically so it's correct on that person's system]

it's the same for the delete list except the Key name is Uninst# range 0 to NumUninstal-1



FreeSpace 2 Package Manager can save Mod Info files with the extension .fmi

it's a simple text file in the Following Format
Quote

ModName
NumUninstal
Uninst0
....
Uninst
NumToggle
Toggle0
...
ToggleN
extension


and example freshly exported from my registry
Quote

UnholyAlliance
7
C:\Games\FreeSpace2\UAMods.txt
C:\Games\FreeSpace2\UnholyAlliance.vp
C:\Games\FreeSpace2\data\tables\ships.tbl
C:\Games\FreeSpace2\data\tables\sounds.tbl
C:\Games\FreeSpace2\data\tables\stars.tbl
C:\Games\FreeSpace2\data\tables\weapon_expl.tbl
C:\Games\FreeSpace2\data\tables\weapons.tbl
6
C:\Games\FreeSpace2\UnholyAlliance.vp
C:\Games\FreeSpace2\data\tables\ships.tbl
C:\Games\FreeSpace2\data\tables\sounds.tbl
C:\Games\FreeSpace2\data\tables\stars.tbl
C:\Games\FreeSpace2\data\tables\weapon_expl.tbl
C:\Games\FreeSpace2\data\tables\weapons.tbl
uam






I didn't think anyone was actually using FS2PM so i stopped making revisions, but if you're acting going to use it I will implement more features for you

[edit]

oh yeah, it's designed for three-letter extensions, on VPs it actually kabongs the . when it's in toggled-off
« Last Edit: July 13, 2002, 02:25:47 pm by 30 »
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline Kazashi

  • 26
Quote
Originally posted by Kazan


perhaps you should look around for the prexisting programs and ask the authors of them [ie me] for features like that


You are correct. Now that I know of your willingness to entertain feature requests I will inquire.
Blatant advertising #1: Keep the Blood flowing!

Blatant advertising #2: Visit TheDDRZone now!

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Kazan
it no longer relies on batch files

version 2 relies on the registry


the registry data is as follows



Makes the sign of the cross and backs off nervously

Argh. That's even worse than bat files. I think I`ll stick to just renaming directories. :) Thanks for replying though. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
how is registry data harder?

When i get a chance i'll goingto make it so the .fmi files have relative paths instead of absolute paths so all you have to do is write and .fmi and FS2PM will do the rest on all systems with the same .fmi

as it is all you have to do is write an .fmi and if someone has freespace 2 installed somewhere else they simply fix the directory
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Cause I know even less about the registry than I do about batch files :)
 Plus I also know that a badly written one can have really bad effects. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
you can write an .fmi file
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
I wouldn`t even know how :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

  

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
read my big long post in this thread
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir