Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2009, 12:20 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.
Reply With Quote
  #2  
Old 12-05-2009, 12:32 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Doesn't sound hard at all, could probably even do it with a batch file or so. I hope someone does it.
__________________
Reply With Quote
  #3  
Old 12-05-2009, 12:35 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.
Reply With Quote
  #4  
Old 12-05-2009, 01:29 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Could be possible, but what's the number after the filename? Just wondering.
__________________
Reply With Quote
  #5  
Old 12-05-2009, 01:48 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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
__________________
Quote:
Reply With Quote
  #6  
Old 12-05-2009, 02:05 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
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

Graal -delete filenamecache.zip
(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?
__________________
Reply With Quote
  #7  
Old 12-05-2009, 02:24 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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
Attached Thumbnails
Click image for larger version

Name:	modified.png
Views:	161
Size:	35.8 KB
ID:	49972  
__________________
Quote:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:30 AM.


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