KolMafia installs to SVN folder and then can't find scripts

elysecat

New member
Hi everyone,

Sorry if this has been posted before! When I use the Graphical CLI to install scripts from SVN, KolMafia installs those scripts into the SVN folder, where it then is unable to find them. Is there a workaround for this?

Thank you!
 

fewyn

Administrator
Staff member
In the scripts menu in the menu bar or if you know the name of the script you can call it from the CLI with the name of it... for example you can just type autoscend to run autoscend if you have it installed etc.
 

fronobulax

Developer
Staff member
When the process works as it is supposed to installing a script has two actions - copying from a remote repository to a local SVN directory and then copying from the local SVN directory to the local scripts directory. The ability to run a script depends upon its presence in the scripts directory.

So if you go to the main Scripts menu if properly installed it may appear in the dropdown list of scripts. If it doesn't you can use the Load script option to look for it in the scripts subdirectory.

There are some minor exceptions to the above but for the moment let's now worry about them.

If reading the above does not change your expectations then perhaps a more robust report would be useful.

Specifically
  • What did you do?
  • What did you expect to happen?
  • What happened?
KolMafia installs those scripts into the SVN folder, where it then is unable to find them.

The last part of that doesn't make any sense to me, at least without understanding what you think is being done to find them and why you think something failed.
 

MCroft

Developer
Staff member
In the SVN preference, do you have Sync after svn update selected?

Wha happens when you type svn sync in the gCLI?
 

elysecat

New member
In the SVN preference, do you have Sync after svn update selected?

Wha happens when you type svn sync in the gCLI?
So so sorry for the delay, I never got notifications that anyone responded to this thread! I do have that selected, but when I type svn sync, it gives me the following error:
svn: E155007: 'C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\Configuration' is not a working copy
 

elysecat

New member
When the process works as it is supposed to installing a script has two actions - copying from a remote repository to a local SVN directory and then copying from the local SVN directory to the local scripts directory. The ability to run a script depends upon its presence in the scripts directory.

So if you go to the main Scripts menu if properly installed it may appear in the dropdown list of scripts. If it doesn't you can use the Load script option to look for it in the scripts subdirectory.

There are some minor exceptions to the above but for the moment let's now worry about them.

If reading the above does not change your expectations then perhaps a more robust report would be useful.

Specifically
  • What did you do?
  • What did you expect to happen?
  • What happened?


The last part of that doesn't make any sense to me, at least without understanding what you think is being done to find them and why you think something failed.
Sorry for the delay, I never got notified about replies to this post.
It seems like Mafia isn't syncing my svn folder and my scripts folder. It downloads my scripts to the svn folder, but then almost none of them get moved to the scripts folder, which is where it looks for scripts. If I try to run a script by selecting one from the svn folder, it throws an error:

> call C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\bestbetweenbattle\scripts\BestBetweenBattle.ash

Unable to invoke C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\bestbetweenbattle\scripts\BestBetweenBattle.ash

I hope that helps, but I can give more info if needed.
 

fronobulax

Developer
Staff member
svn: E155007: 'C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\Configuration' is not a working copy

Superficially, that says that something on your machine is corrupted and the solution would be to uninstall/delete and reinstall.

The nuclear option would be to delete and its contents and then try and update all of the scripts.

A more nuanced approach would be to see which script thought it was installed in C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\Configuration and just delete that script and reinstall.

The only script I have installed on my system that would be looking at Configuration would be Veracity's Gingerbread City script. But a similar error would reference C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\veracity0-gingerbread\scripts\Configuration so I don't think that is your issue.

Sorry for the delay, I never got notified about replies to this post.
It seems like Mafia isn't syncing my svn folder and my scripts folder. It downloads my scripts to the svn folder, but then almost none of them get moved to the scripts folder, which is where it looks for scripts. If I try to run a script by selecting one from the svn folder, it throws an error:

> call C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\bestbetweenbattle\scripts\BestBetweenBattle.ash

Unable to invoke C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\bestbetweenbattle\scripts\BestBetweenBattle.ash

I hope that helps, but I can give more info if needed.

If your svn folder is corrupt then sync'ing probably won't happen until you correct the corruption.

You should not be able to run directly from the svn folder so the unable to invoke error is mafia behaving as designed.
 

elysecat

New member
Superficially, that says that something on your machine is corrupted and the solution would be to uninstall/delete and reinstall.

The nuclear option would be to delete and its contents and then try and update all of the scripts.

A more nuanced approach would be to see which script thought it was installed in C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\Configuration and just delete that script and reinstall.

The only script I have installed on my system that would be looking at Configuration would be Veracity's Gingerbread City script. But a similar error would reference C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn\veracity0-gingerbread\scripts\Configuration so I don't think that is your issue.



If your svn folder is corrupt then sync'ing probably won't happen until you correct the corruption.

You should not be able to run directly from the svn folder so the unable to invoke error is mafia behaving as designed.
Thanks for the response. I'm going to try deleting and reinstalling KolMafia and see if that fixes the problem.
 

fronobulax

Developer
Staff member
Thanks for the response. I'm going to try deleting and reinstalling KolMafia and see if that fixes the problem.
If by deleting and reinstalling mafia you mean making sure all the mafia created and used directories are deleted then OK. But the problem you described is unlikely to go away if C:\Users\Elyse\OneDrive\Desktop\KoLMafia\svn persists and some people say delete and reinstall KoLmafia when all they really do is delete and "reinstall" the mafia jar file.
 
Top