taultunleashed logoquestion about the openlogfile function : Developer's Corner
newtopic  postreply
 [ 5 posts ] 
blue large dot

question about the openlogfile function : Developer's Corner

Posted: December 28th, 2003, 5:51 am
 
virusfxp
virusfxp's Reps:
User avatar
logfile = XUscripthost.OpenLogFile("C:chat.log")

getting a problem stating: value of the 'Scripting.TextStream' connot be converted to String

as far as i understand its supposed to be a string which i have logfile declared to string

also i grabbed this from other plugins and saying not declared but not sure what to declare it as to begin with

vb6.getpath

i assume its getting the path to where the plugin resides since it is used in conjunction with the loading the xml file which resides in the plugin folder

anyone able to ive me any hints about what i need to do for this well. Thanks for any help

edit: to get the pluginpath would i be able to just use Xunleashed.ixuplugin pluginpath to do the same thing?


Reply with quote
Posted: December 28th, 2003, 10:40 am
 
Admin
Admin's Reps:
User avatar
Try using Set logfile = bla bla bla

Also, there are no declared types in scripting (only variants), so you cannot use

Dim logfile as String

you can ONLY have

Dim logfile


Some functions from standard vb are not implemented in vbscript. (See the vbscript documentation for details)

That is why there is a XUScriptHost.GetXUnleashedDirectory() to get the directory of the xunleashed program. From there, you can append your other directory information like & "/scripts" etc.



Are you developing a script or plugin?


Reply with quote
Posted: December 28th, 2003, 4:02 pm
 
virusfxp
virusfxp's Reps:
User avatar
this is for aplugin.. piecing thigns together and porting a script into a plugin

i am pretty sure i have the references i need all loaded up as well

i'm using visual studio.net 2003

any ideas on what i may possibly be doing wrong?


Reply with quote
Posted: December 28th, 2003, 4:19 pm
 
WyvernX
WyvernX's Reps:
User avatar
Try declaring logfile NOT as a string, but as

Dim logfile as Scripting.TextStream


Reply with quote
Posted: December 28th, 2003, 4:31 pm
 
virusfxp
virusfxp's Reps:
User avatar
i changed logfile to be an object after noticing something in a reference somewhere and that got rid fo the error for it... so i think i now have everything setup fine for now so gonna try and see if it actually works and such next... then next step is criticism and find out what people want with it so i can try and make it better to use


Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 5 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of Developer's Corner RSS Feed 

SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?