[BETA] SpkInstall Beta Test: Version 0.80

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

[BETA] SpkInstall Beta Test: Version 0.80

Post by Cycrow »

This is the first beta for the Plugin Manager.

:arrow: Download

Bug reports can go on the plugin manager forum on thexuniverse site, Here

SpkInstaller is a command line programming for installing and uninstalling packages.

this is mainly to test the new package library which will eventually be used to make the full plugin manager.

this should not be tested in a live game installer, as it ignores much of the old plugin manager data file and will make it incompatable with the current plugin manager.

The purpose of this beta is to test the installing and uninstall of packages file, and make sure the files are installing correctly.

none of the advanced features of the plugin manager will be availabe, some of these include
  • Custom Wares
  • Update Packages
  • Patch Mods
  • Different language texts
Things to test
  • All files are installed correctly and in the right place
  • When file already exists from another package, the newest one is used
  • Uninstalling removes all unused files
  • Uninstalling doesn't remove files that are used by other isntalled packages
  • Enabling/Disabling packages
  • Original file backup/restore
  • Fake patch renaming
  • Uninstall scripts
  • Text files for correct languages are being created
  • Shared flagged files
  • Parent/Child packages
  • Installing Multiple files at once
  • Installing mutl-spk files
The command, spkinstall is a command line tool, so best to run from the command prompt.

If your using vista, you most likly need to run the command prompt as adminstrator. Still trying to work out the file permissions, etc.

The program can be used from the current X3TC directory, or you can specific a "Working" directory to use it in.

ChangeLog:

V0.70:
  • Added Game Version Checking
  • Added long names for switch and commands, ie (/install, /uninstall) and (--verbose)
  • Added Support to installed as disabled, use command (/installdisable)
  • Added Support to install multiple files at once, use command (/install [file1] [file2] [file3])
  • Added Support for Multi-Spk files
V0.60:
  • Added Parent/Child support
  • Added Marked Shared file support
  • Added Script Lanague Names
V0.40:
  • Added original file handling
  • Added fake patch sorting
  • Added uninstall scripts
V0.31:
  • the Error = 3 when uninstalling fixed
  • /s folder is now being removed, as are all folders created in the extras section
  • Added debug messages for removing directories
  • Added debug messages for /e and /d commands
V0.3:
  • Removal of empty directories
  • Enabling/Disabling of packages
  • Fixed uninstalling of directories
  • Added version check for already installed packages
  • Added -o (override flag) to install even if version check fails
V0.2:
  • Fixed creation of directories
  • Fixed readme file installing
Last edited by Cycrow on Sun, 16. Aug 09, 23:14, edited 14 times in total.
paladindiablo
Posts: 12
Joined: Thu, 23. Apr 09, 11:47
x3tc

DL doesn't work

Post by paladindiablo »

Hi Cycrow,

at first, I've to apologize for my english. I've to less ocation to perfect it.
And now, respect for the job you are doing, for your passion and your engagement.

My question: The downloadlink for the beta you've posted does not work. So, I please you, to check this link, or to post a new one.
regards
paladin
X3TC ohne Xpluginmanager ist ....... :-(

Die Menschen fragen nach Dingen und fragen dabei : warum?
Ich frage: warum nicht?
User avatar
spacefueladdict
Posts: 508
Joined: Thu, 12. Jun 08, 15:42
x3tc

Re: DL doesn't work

Post by spacefueladdict »

paladindiablo wrote:Hi Cycrow,

at first, I've to apologize for my english. I've to less ocation to perfect it.
And now, respect for the job you are doing, for your passion and your engagement.

My question: The downloadlink for the beta you've posted does not work. So, I please you, to check this link, or to post a new one.
regards
paladin
I have just tested the link, and it works just fine, keep trying and it may work, if not, Cycrow may add a mirror d/load link.
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

FYI:

for completeness i have tested all 3 exe's and have run into problems.

spkconvert.exe
1. attempted to convert a .spk created by 2.00. convert stopped working
2. attempted to convert a .spk created by 2.10. convert stopped working
3. attempted to convert a .spk created by 2.12beta 6. convert reported spk file was already in new format. (so this one appears to work)
4. i do not have a .spk created by 1.87 so i could not test this.

so 1) and 2) are not working. here is an example output:
[ external image ]
as you can see all it does is generate this ">" and this is the point it stops working on every try.

spktool.exe
1. using the command spktool -x <spkfile> <type> <file> [destination] causes it to stop working. even thou it reports "opening SPK file, 3.spk... <done>". but it doesn't do anything.

2. suggestion for improvement; when using any of the following commands:
-s <multispkfile> [destination]
-x <multispkfile> <file> [destination]
-x <spkfile> [destination]
if the [destination] doesn't exist have spktool create the directory rather then just error out.

3. spktool -v wouldn't work on this file even thou it was created by 2.12beta 6;
6doesn't work.spk


spkinstall
1. doesn't have the ability to create dirs that don't exist; so it just errors out.

as 3/4 of the spk's i attempted to test contain dirs that do not exist in the game folder; i am unable to effectively test this exe.

suggestion:
2. if it errors out have it generate a log of what it did install so the user can remove those files if they want to at a later time when using the command line.
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

draffutt wrote: spkinstall
1. doesn't have the ability to create dirs that don't exist; so it just errors out.

as 3/4 of the spk's i attempted to test contain dirs that do not exist in the game folder; i am unable to effectively test this exe.
It should be able to create directories it uses, what errors were u getting from it ?

i did have a few problems with vista not creating directories in some places.

what was you trying to install too ?
draffutt wrote: suggestion:
2. if it errors out have it generate a log of what it did install so the user can remove those files if they want to at a later time when using the command line.
if u run it with -v then it'll go into verbose mode and display a debug for each file that was installed/uninstalled, and any errors it had


spkconvert is for converting the old format spk files, anything created in 2.00 or above should already be in the correct format, its mainly for the really old spk files, not sure if theres many of them left thou.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Re: DL doesn't work

Post by Cycrow »

paladindiablo wrote:Hi Cycrow,

at first, I've to apologize for my english. I've to less ocation to perfect it.
And now, respect for the job you are doing, for your passion and your engagement.

My question: The downloadlink for the beta you've posted does not work. So, I please you, to check this link, or to post a new one.
regards
paladin
i've added another site, so u should be able to download it from one of them now
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

Cycrow wrote:It should be able to create directories it uses, what errors were u getting from it ?
tried it again. this time moved my test folder to a drive that does not have vista or windows7 on it. when i try to just extract the file(s) give the error "unable to creating directory: scripts". when i try it with my test game directory "unable to creating directory: s" this is one of the scripts i tried out: link
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

draffutt wrote:
Cycrow wrote:It should be able to create directories it uses, what errors were u getting from it ?
tried it again. this time moved my test folder to a drive that does not have vista or windows7 on it. when i try to just extract the file(s) give the error "unable to creating directory: scripts". when i try it with my test game directory "unable to creating directory: s" this is one of the scripts i tried out: link
ok, i figured it out, its when u use the current directory that it doesn't work, but if u specify the directory then it seems to work fine.

so for now, if u just use the -d, then it should work.

ie, say you run it from c:\test, just use, spkinstall -dv c:\test /i spkfile.spk

and ill work on a fixed version for the current directory
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

ok, theres a new update available, this should fix the creating directory problem, as well as a problem with readme files.
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

1. spkinstall still will not install to current directory. instead of giving an error like before; when it gets to the "installing" part all i get is a flashing cursor.

for the rest of these i used the -d to install

2. if 2 or more packages are installed lets say for instance i have four spks installed (i have verified this by using the /l ) and i want to remove number #3. if i use spkinstall -dv f:\test /u 3 doesn't work. all i get is reading game directory followed by preaparing game directory then done!. only way i can remove #3 is to use spkinstall -dv f:\test /u 1 and do this three times.

3. if uninstalling and there are no more files in the folder doesn't remove the empty folder.

4. if a .spk contains a multi spk installer doesn't install. only says "error" but not why there is an error.


fyi: in your sig your firelance x3 links to a search engine.
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

ok, i've got a new version ready.
draffutt wrote:1. spkinstall still will not install to current directory. instead of giving an error like before; when it gets to the "installing" part all i get is a flashing cursor.
still not sure y its not working for the current directory, seems to work ok for me, i made some changes, so u can test it again, but -d should still work fine.
draffutt wrote:2. if 2 or more packages are installed lets say for instance i have four spks installed (i have verified this by using the /l ) and i want to remove number #3. if i use spkinstall -dv f:\test /u 3 doesn't work. all i get is reading game directory followed by preaparing game directory then done!. only way i can remove #3 is to use spkinstall -dv f:\test /u 1 and do this three times.
You should be able to uninstall the selected package now, also if your file names/directories have space in them, remember to put quotes around them, ie.

spkinstall -d "c:\my directory" /i "my spk file.spk"
draffutt wrote:3. if uninstalling and there are no more files in the folder doesn't remove the empty folder.
should not remove most empty folders, doesn't try to remove the main ones, like scripts, t, maps
draffutt wrote:4. if a .spk contains a multi spk installer doesn't install. only says "error" but not why there is an error.
errors are no given when it cant open the spk file


Additional Changes:
Now checks for previous installed versions, and doesn't let you install older ones, unless u use the flag -o

Added /d and /e commands for disabling and enabling packages
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

1. current directory works now

2. uninstalling packages works now

3. to clarify on the m/t folders. it will only remove those m/t folders that are in the pluginmanager folder correct? if that is the case it is working so far.

4. only problem i have run across so far is this:qrf1.0.spk
this is LV's race response fleet version 1.0 for TC and installer will not install this. the error it gives is this "error! invalid package file"

also as with the file (6doesn't work.spk) i posted in an earlier post the spktool will not allow me to view its contains of this .spk even thou you can see the contents here (using beta 6 plugin manager) of the qrf1.0.spk:
[ external image ]i even tried renaming this file to see if it was a problem with the double .'s.

so whatever the problem is applies to both the install and tool program.

i will test this out some more this afternoon when i get more time as i haven't even looked at the additions you added.
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

the problem with that file is that its using the old compression thats no longer supported, mainly coz i no longer have the code for it.

not sure y recent scripts are still using it thou, as it hasn't been part of the packager for ages.

not much u can do about it, other than using the packager to convert formats


as for removing directories, there are some that will get removed outside the pluginmanager folder, these are mainly the extra files, but not many scripts use these
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

1) im getting an error = 3 every time i uninstall something now. does this error mean its not deleting the directory? i have gotten up to 4 of these errors from 1 spk so far. also i am getting this error when i use the /e after disabling a .spk and re-enabling.

2) when i install a testv1.spk then install testv2.spk (to simulate a newer spk install. first one contained just an xml and the second contained the xml and a readme) and do a spkinstall /l. it list the spk twice. I.E. testv1 is the first package and testv2 is the second package installed. i had to uninstall both to remove the spk. (limitation of command line?)

3) when installing a spk that contains a cat/dat; first test.spk contained a 09.cat/dat and installer installed it as 01cat/dat. but when i installed a newer version (in the spk it was label 13cat/dat) it installed it as 02cat/dat deleted the 01cat/dat but did not rename the 02cat/dat to take the place of the 01cat/dat that was just deleted. maybe swap the order it is doing the tasks. delete the 01cat/dat then install....

4) can you include the /s folder as one of the folder that gets deleted when uninstalled?

5) because of the issue with 2) if i attempt to /d one of those scripts neither is disabled even thou installer says it disabled one of them.

6) if uninstalling a spk and the spk contains an uninstall script. rather then moving the uninstall script from the uninstall folder to the scripts folder it is deleted.

7) disabling example: if the disable folder contains a 01cat/dat from another installed script and a user installs another script that contains a cat/dat. when installed it enables that one as a 01cat/dat and if the user decides to disable spkinstaller gives an error! when attempting to disable. it seems spkinstaller doesn't know what to do with the 01cat/dat that is enable to disable because there already is a 01cat/dat in the disabled folder. same applies when enabling. if there is a file with the same name in the enable folder using the /d it seems spkinstaller doesn't know what do with the disabled file.

8 ) if a condition from 7) (in this example i tried to install xtm 7.3 and disable it but the disabled folder already contained 01cat/dat) when i tried to re-enable the xtm spkinstall did not recover. I.E. it disable to whole package but the 01cat/dat and it did not log what it had successfully disabled before the error so i could not recover what it successfully disable using the /e (hope that made sense).

9) if the disabled folder contains more then one cat/dat file for example 01, 02, 03 and the user /e the 03 cat/dat. spkinstaller doesn't rename the cat/dat to the next available position in the enabled folder. in my case 01.

10) -v doesn't work when used with the /e /d. it doesn't give a verbose for the user to see what is going on.

that is all i have run across so far.
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

draffutt wrote:1) im getting an error = 3 every time i uninstall something now. does this error mean its not deleting the directory? i have gotten up to 4 of these errors from 1 spk so far. also i am getting this error when i use the /e after disabling a .spk and re-enabling.
strange, it shouldn't be displaying the number, 3 is actually when it fails to write a file, does this happen when ever you uninstall anything ?
ill have to check that
draffutt wrote:2) when i install a testv1.spk then install testv2.spk (to simulate a newer spk install. first one contained just an xml and the second contained the xml and a readme) and do a spkinstall /l. it list the spk twice. I.E. testv1 is the first package and testv2 is the second package installed. i had to uninstall both to remove the spk. (limitation of command line?)
i assume the script name and author name in those packages are the same ? it uses both of them to find a matching package to replace
draffutt wrote:3) when installing a spk that contains a cat/dat; first test.spk contained a 09.cat/dat and installer installed it as 01cat/dat. but when i installed a newer version (in the spk it was label 13cat/dat) it installed it as 02cat/dat deleted the 01cat/dat but did not rename the 02cat/dat to take the place of the 01cat/dat that was just deleted. maybe swap the order it is doing the tasks. delete the 01cat/dat then install....
fake patching is not fully implemented yet
draffutt wrote: 4) can you include the /s folder as one of the folder that gets deleted when uninstalled?
it already is, it should be removing the s, but i've been having the same problem, not sure y it isn't
draffutt wrote: 6) if uninstalling a spk and the spk contains an uninstall script. rather then moving the uninstall script from the uninstall folder to the scripts folder it is deleted.
not implemented yet either
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

ok, i have a new version uploaded.

this version just fixes a few things.
  • the Error = 3 was actually just some debug messages not related to the actual debug output, this has been fixed.
  • /s folder is now being removed, as are all folders created in the extras section
  • Added debug messages for removing directories
  • Added debug messages for /e and /d commands
next version will have support for uninstall scripts and fake patches, so testing on those can wait for the next version
lordofdragons
Posts: 18
Joined: Sun, 10. Dec 06, 19:18
x3tc

Post by lordofdragons »

Cycrow is back??? :o Woohoo, maybe he can fix my plugin manager now!!!
Did I do that?
CaptainRAVE
Posts: 432
Joined: Thu, 23. Oct 03, 20:55
x4

Post by CaptainRAVE »

Sorry to hear what happened Cycrow! Great to see you are back. I remember using your plugin manager for X3R and it worked wonders.
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

appears to be working fine in its current state.
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22407
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

a new version available now: 0.4

a few changes to the core that should make it more stable.
a few fixes to spktool, adding files are now done properly, the compression wasn't working right before
spkconvert should now convert all of them properly, even the really old format.

spkinstall has been renamed to spkmanager, this fixes the problem with vista and admistrator. Seems in vista, any filename with "installl" in is classes as needing adminster rights regardless of what it actually does, i guess this was what was causing the old plugin manager problems too.

spkmanager updates:
  • Added uninstall script support, they are moves to "Scripts" when unisntalled
  • added option /r to remove the unistall scripts
  • Original file handling added
  • Fake patch support added
Original File Handling:
When the program first runs, it'll record all pck files in the "scripts" and "t" directories and the mp3's in "soundtrack" these will be marked as original files.
When a package installs a file that matches these, they will be backed up, and restored when the package is removed to prevent overrighting and losing the standard files.

There are 2 new flags shown on the syntax screen, -l and -t, ignores these, they are not implemented yet

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”