TheWanderer001 Posted March 4, 2015 Author Share Posted March 4, 2015 Hi QQuix I tried both "long" and "string_var" Ah... I got the path wrong :)I didn't add the "\User Files" directoryBut it seems the file name isn't being set to start with though... well not when checking with console/debugging/message/print code anyway... I'll correct the path and try again though... Thanks Link to comment Share on other sites More sharing options...
QQuix Posted March 4, 2015 Share Posted March 4, 2015 This sample code works scn zzTestPluggy string_var s string_var sFile long psFile ;===Pluggy=== long psFileText ;===Pluggy=== begin Function {} ;=== Setup vars === Let sFile := "Test.ini" Let psFile := CreateString -1 0 1 1 Let psFileText := CreateString -1 0 1 1 ;=== Read file === SetString psFile $sFile FileToString psFile psFileText ;=== Show file text === set s to ToOBSE psFileText printc $s endAs Drake said, RunBatchScript would be simpler, but I can't figure a way to load a variable number of data using console-OK functions. Link to comment Share on other sites More sharing options...
TheWanderer001 Posted March 4, 2015 Author Share Posted March 4, 2015 Hmm... I get a syntax error on "ToOBSE" unknown command ? As far as I know I have both OBSE and Pluggy installed correctly though. Link to comment Share on other sites More sharing options...
QQuix Posted March 4, 2015 Share Posted March 4, 2015 If memory serves, ToOBSE was added late in development. I use Pluggy Dev v132 Link to comment Share on other sites More sharing options...
TheWanderer001 Posted March 4, 2015 Author Share Posted March 4, 2015 I've just downloaded that one :)going to upgrade pluggy to it shortly and retry... but I did think I was already using that oneBut if I not not then that would explain a LOT :D Link to comment Share on other sites More sharing options...
TheWanderer001 Posted March 4, 2015 Author Share Posted March 4, 2015 That seems to have fixed that part at leasthad to fix 1-2 other small syntax bugsBut I am now finding and reading through the list correctly :) Just need to get the compare to work correctly then it should all be good. :thumbsup: Thanks for your input QQuix very helpful :) Link to comment Share on other sites More sharing options...
QQuix Posted March 4, 2015 Share Posted March 4, 2015 Have fun. Just noticed that the WIKI did not have ToOBSE documented. Added. Link to comment Share on other sites More sharing options...
TheWanderer001 Posted March 4, 2015 Author Share Posted March 4, 2015 I think there are several omissions from the wiki... a good one to have updated though :) Once I have this completely working I'll drop a note back here as well Again thanks for the help :) Link to comment Share on other sites More sharing options...
TheWanderer001 Posted March 4, 2015 Author Share Posted March 4, 2015 A quick update After a few more tweaks I've gotten my whole script to work how I wanted it to :)So now players will be able to easily add their own items to the lists in my upcoming automagical cloud storage mod.... Just need to now make the same change to the other 14 scripts :geek: Link to comment Share on other sites More sharing options...
Recommended Posts