PtokaX forum

Archive => Archived 5.1 boards => Finished Scripts => Topic started by: bastya_elvtars on 22 November, 2006, 21:56:15

Title: Pickle
Post by: bastya_elvtars on 22 November, 2006, 21:56:15
Yes, I've done some coding at last. I hax0r3d pickle for use with Lua 5.1. Pickle is a table save/load utility.
Pickle.pickle returns a string representing the table, Pickle.unpickle returns a table created from a pickled string.
Hope it will be useful.
Title: Re: Pickle
Post by: speedX on 29 November, 2006, 14:02:37
hm..plzz could explain something more abt this script with example. I tried to test it myself but got the following errors:
Quote
0.3.5.1\scripts\pickletest.lua:9: module 'pickle' not found:
   no field package.preload['pickle']
   no file 'I:/!!!PXL51!!!/libs'
   no file '.\pickle.dll'
   no file 0.3.5.1\PtokaX DC Hub 0.3.5.1\pickle.dll'
   no file 0.3.5.1\PtokaX DC Hub 0.3.5.1\loadall.dll'
Where can i find those .dll files?
Title: Re: Pickle
Post by: st0ne-db on 29 November, 2006, 20:38:41
Quote from: speedX on 29 November, 2006, 14:02:37
hm..plzz could explain something more abt this script with example. I tried to test it myself but got the following errors:Where can i find those .dll files?

seems like there is a problem with the package path
change the package path to this:


package.path=package.path..";./libs/?.lua"