Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Program Request: FILENAMECACHE manager (https://forums.graalonline.com/forums/showthread.php?t=134257196)

DustyPorViva 12-05-2009 12:20 AM

Program Request: FILENAMECACHE manager
 
I think a fairly simple request that may benefit developers who work with the offline tools. A simple program, much like gif2mng: You drag files onto it and it moves them into the Graal directory(maybe in a subfolder for organization... Cached?), and adds them properly into FILENAMECACHE. This will eliminate the process of needing to constantly delete the cache when you add files to Graal's folder, then starting Graal and letting it scan. In fact, it's more of a band-aid fix, but I'd love to use it.

cbk1994 12-05-2009 12:32 AM

Doesn't sound hard at all, could probably even do it with a batch file or so. I hope someone does it.

DustyPorViva 12-05-2009 12:35 AM

Another addition, though possibly more complicated, would be when the program is run stand-alone(just by double-clicking it), it scans the folder and updates the cache much like Graal does... though this sounds vastly less important in the grand scheme of things.

Chompy 12-05-2009 01:29 AM

Could be possible, but what's the number after the filename? Just wondering.

fowlplay4 12-05-2009 01:48 AM

Here's a cheat version, that still tied to Graal.

Save it as updatecache.bat (or whatever you like..) and store it in your Graal folder.

PHP Code:

@echo off
echo Deleting cache.
del FILENAMECACHE.txt
echo Deleted.
echo 
Opening Graal.
echo Exit 
when you've reached login screen.
Graal.exe
echo Cache updated. 

Clicks required: 2

Chompy 12-05-2009 02:05 AM

1 Attachment(s)
Made a little batch file myself, it gets the installation path from the registry so it can be run from any directory. It also automatically closes the DOS window after starting graal.exe

Attachment 49971
(Had to zip it because of 'percent-percent' -.-)

here's a version where you have to replace $ with percent

HTML Code:

FOR /F "tokens=2* delims=        " $$A IN ('REG QUERY "HKCU\Software\Graal\Setup" /v path') DO SET Path=$$B
del $Path$\FILENAMECACHE.txt
start $Path$\graal.exe


I did start on a file allowing droping files into it to append it into FILENAMECACHE.txt, but unsure about the number behind the filename, if it's needed, how to generate it etc?

fowlplay4 12-05-2009 02:24 AM

1 Attachment(s)
The number is the file's last modified time.

I.e:

levels\images\zodiac\zodiac_warrior-armor-lv30.png,1156042719

JerretNPC: converttimetostring(1156042719)
Returns - Sat Aug 19 21:58:39 2006


All times are GMT +2. The time now is 10:16 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.