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 11-02-2011 02:12 AM

[QUOTE=arty-fishL;42887]What could you possibly be doing that requires dual simultaneous file access though? Can you not just do one file at a time?[/QUOTE]

data transfer to one world to another.

arty-fishL 11-02-2011 01:18 PM

[QUOTE=room14;42893]data transfer to one world to another.[/QUOTE]If that were so then there would be two instances of Alice working simultaneously with one IO Tool each and it would be absolutely possible, just not two instances of the object in the same world

Dj Tech42 11-02-2011 01:20 PM

[QUOTE=arty-fishL;42887]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?[/QUOTE]

I figured that was the case. I was hoping I could do all the loading operations at once in the beginning to speed up the "boot up" of the world, but that may not have helped much anyway.

DensetsuNoKaboom 01-19-2012 03:04 PM

Have you worked any more on this tool, Arty?

A string-to-number converter would be useful for the next project I am planning...

arty-fishL 01-19-2012 04:07 PM

[QUOTE=DensetsuNoKaboom;45818]Have you worked any more on this tool, Arty?

A string-to-number converter would be useful for the next project I am planning...[/QUOTE]I forgot about this. It shouldn't be too hard to do, I will do it at the weekend. I promise.

PS - nice avatar and sig

DensetsuNoKaboom 01-19-2012 05:02 PM

[QUOTE=arty-fishL;45825]I forgot about this. It shouldn't be too hard to do, I will do it at the weekend. I promise.

PS - nice avatar and sig[/QUOTE]

Thank you. Any time you can get it done.

arty-fishL 01-22-2012 12:03 AM

Inovation
 
I decided not to update this tool.
Instead I made a new one :D.

This one is much simpler to use and supports variable saving and loading, rather than file access.

You can still use this tool at the same time as the Save Tool if you really want!

[B][URL="http://alice.org/community/showthread.php?p=45897"]Save Tool[/URL] - for specifically saving and loading variables[/B].


All times are GMT -5. The time now is 12:32 AM.

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