Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Objects (http://www.alice.org/community/forumdisplay.php?f=8)
-   -   File I/O Tool (http://www.alice.org/community/showthread.php?t=6758)

room14 09-26-2011 02:10 AM

hey this popped into my head. Can/have you make/made a String-Number converter?

arty-fishL 09-26-2011 01:29 PM

[QUOTE=room14;41897]hey this popped into my head. Can/have you make/made a String-Number converter?[/QUOTE]This feature is coming in my next file IO Tool update. Even if you don't want to use any file IO functions you can still import it for the string-number conversion feature. This update is postponed though, while I work on higher-priority stuff.

Dj Tech42 09-26-2011 03:41 PM

[QUOTE=room14;41897]hey this popped into my head. Can/have you make/made a String-Number converter?[/QUOTE]

Arty has already made one that isn't in the File IO Tool. I forget where it is posted, but it is in my flight simulator if you want to get the script.

room14 09-27-2011 12:24 AM

what? where?

Dj Tech42 09-27-2011 06:05 AM

I forget where Arty posted it, but you can go to the link in my signature to download my flight simulator and get it from there. It is a Jython script.

arty-fishL 09-27-2011 03:06 PM

[QUOTE=Dj Tech42;41919]Arty has already made one that isn't in the File IO Tool. I forget where it is posted, but it is in my flight simulator if you want to get the script.[/QUOTE]
I did? Great :)

Dj Tech42 10-24-2011 07:24 PM

Is the new version of the File IO Tool coming out soon?

arty-fishL 10-26-2011 03:16 PM

[QUOTE=Dj Tech42;42712]Is the new version of the File IO Tool coming out soon?[/QUOTE]

I'm still focussing on my primary projects, sorry, and as I said elsewhere:
[QUOTE=arty-fishL;42755]Battlefield 3 comes out on Friday (here in the UK, on the traditional release day) and I have it pre-ordered. I will be playing it as much as possible.[/QUOTE]

Dj Tech42 11-01-2011 07:26 PM

[QUOTE=arty-fishL;42756]I'm still focussing on my primary projects, sorry, and as I said elsewhere:[/QUOTE]

That's OK.

I just have a question. Can I use multiple instances of the File IO Tool object in my world? If so, can one run methods at the same time another one is running methods?

arty-fishL 11-01-2011 08:06 PM

[QUOTE=Dj Tech42;42886]That's OK.

I just have a question. Can I use multiple instances of the File IO Tool object in my world? If so, can one run methods at the same time another one is running methods?[/QUOTE]That is actually a very interesting question. I understand that due to the limited access to scripting in Alice I have implemented a rather strange and also limited way of accessing those functions in the tool, so I can understand why you might want to do this.

Having two instances of the tool means having duplicate python functions. Whether these just override each other, as I would expect them to do, or whether in this environment they can run simultaneously under seperate scopes I am not sure of. The other major issue, which probably cancels out the last issue, is that the second tool would have a different object name, meaning its functions would access the variables of the first object, so in effect still only having one usable instance of the object.

So in summary Im not too sure, but I am expecting the answer to your question to, unfortunately , be no. The best way to find out is to test it for yourself (Im not at my computer, so I cant). The worst that could happen is you could get an error message and a duff file that you can easily delete.

What could you possibly be doing that requires dual simultaneous file access though? Can you not just do one file at a time?


All times are GMT -5. The time now is 01:27 PM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.